Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Conversation

@jorseng
Copy link
Contributor

@jorseng jorseng commented Dec 10, 2021

Update for January 2022 including rover ignite features.

LaurentLesle and others added 30 commits October 13, 2021 03:28
In order to source pipeline yamls from Github (non public repos), we
need to create a service connection.

This commit updates the service endpoint functionality to understand a
'type' value. For the existing configs, default type to 'TfsGit' if none
is specified. If type is set to 'Github', then use the new logic under
azdo_service_endpoint.github.tf to provision the connection.

The various values for 'type' are shown at https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/build_definition#repo_type
- however this commit only implements Github. A similar pattern should
be possible to implement Bitbucket / GitHubEnterprise.

The following shows an example config to use this new functionality:

service_endpoints = {
  github = {
    endpoint_name = "github_endpoint"
    type = "Github"
    project_key = "project_to_add_endpoint_to"
    keyvault = {
      lz_key      = "launchpad"
      key         = "secrets"
      secret_name = "github-pat"
    }
  }
}

NOTE: similar to azdo-pat-admin, a Github PAT must be manually created
and stored in the keyvault identified in the 'keyvault {}' block above:

$ az keyvault secret set --name gitub-pat --vault-name <secrets-vault> --value <pat>
To resolve error below"

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider
hashicorp/azurerm: no available releases match the given constraints ~>
2.55.0, ~> 2.81.0
update version and remove unused var
@arnaudlh arnaudlh changed the title December 2021 Release January 2022 Release Jan 18, 2022
@arnaudlh arnaudlh modified the milestones: 2112, 2201 Jan 27, 2022
@arnaudlh arnaudlh merged commit 5a9f9ac into master Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants