Merge pull request #1555 from GoogleCloudPlatform/jccb/toc
Fix permadiff in artifact-registry
This commit is contained in:
commit
bae985513f
|
@ -30,7 +30,12 @@ resource "google_artifact_registry_repository" "registry" {
|
||||||
kms_key_name = var.encryption_key
|
kms_key_name = var.encryption_key
|
||||||
|
|
||||||
dynamic "docker_config" {
|
dynamic "docker_config" {
|
||||||
for_each = local.format_string == "docker" ? [""] : []
|
# TODO: open a bug on the provider for this permadiff
|
||||||
|
for_each = (
|
||||||
|
local.format_string == "docker" && try(var.format.docker.immutable_tags, null) == true
|
||||||
|
? [""]
|
||||||
|
: []
|
||||||
|
)
|
||||||
content {
|
content {
|
||||||
immutable_tags = var.format.docker.immutable_tags
|
immutable_tags = var.format.docker.immutable_tags
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue