-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Resource: azurerm_container_registry_credential_set
#27528
base: main
Are you sure you want to change the base?
New Resource: azurerm_container_registry_credential_set
#27528
Conversation
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource.go
Outdated
Show resolved
Hide resolved
@stephybun with the caching rule enforcing docker.io credentials this needs to be bumped up in priority for review, please. :) |
…-credential-set # Conflicts: # internal/services/containers/client/client.go
… been updated in the main
…-credential-set # Conflicts: # .github/labeler-issue-triage.yml
…Required as discussed in the pull request (but the api will only accept type SystemAssigned)
…tyRequired to SystemAssignedIdentityRequired
} | ||
output := make([]identity.ModelSystemAssigned, 1) | ||
output[0] = identity.ModelSystemAssigned{ | ||
Type: input.Type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We call a normalising function on the identity type returned here in the flatten functions of the identity
package because the API is often inconsistent with the casing
We can do this and it should take care of the casing issue for us
Type: input.Type, | |
Type: identity.Type(input.Type), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested that and it did not resolve the issue 🫤
internal/services/containers/container_registry_credential_set_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/containers/container_registry_credential_set_resource_test.go
Outdated
Show resolved
Hide resolved
…sts. update markdown. update flattenIdentity
@jan-mrm I've opened a PR on Pandora which will patch the SDK to match the behaviour we see in the API (instead of what's been defined in the Rest API spec). Once that's made it through to hashicorp/go-azure-sdk we can bump the version in the provider, rebase this PR on top of main and get rid of the custom expand/flatten which will resolve the casing issue. |
Community Note
Description
Adding a new resource in order to manage Credential Sets for Azure Container Registries.
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
none
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_container_registry_credential_set
- New resource for managing Credential Sets of Container Registries [New Resource:azurerm_container_registry_credential_set
#27528]This is a (please select all that apply):
Related Issue(s)
Closes #26539
Note
If this PR changes meaningfully during the course of review please update the title and description as required.