Open tduverge opened 1 month ago
Hi @tduverge!
I tried to replicate this issue, but everything was successful without errors. Maybe you could provide more information about this issue.
Hello @ggtisc !
Thanks to answer 😃
My problem isn't that there's an error, but that a change hasn't been taken into account.
My objective is to add a certificate authority for a private container registry, which should be done with an argument containerd_config
in the block node_config
according to the documentation (it's the only place where the argument is supported, again according to the documentation).
node_config {
containerd_config {
private_registry_access_config {
enabled = true
certificate_authority_domain_config" {
fqdns = ["example.com"]
gcp_secret_manager_certificate_config {
secret_uri = "secret link"
}
}
}
}
}
But when I'm applying this configuration, nothing append in my cluster. A change appears when I'm applying but noting is modify and the change appear again and again in each plan. Whereas when I'm putting the same configuration in the block node_pool_defaults.node_config_defaults
like that :
node_pool_defaults {
node_config_defaults {
containerd_config {
private_registry_access_config {
enabled = true
certificate_authority_domain_config" {
fqdns = ["example.com"]
gcp_secret_manager_certificate_config {
secret_uri = "secret link"
}
}
}
}
}
}
Everything is working very well.
I'm surprised that everything is working well on your side cause I've seen this bug with different terraform versions . And there is no doubt when I look at the code there that the argument containerd_config
must be in node_pool_defaults.node_config_defaults
and not in node_config
contrary to what the documentation says.
Moreover the documentation says that node_config_defaults
only support logging_variant
and gcfs_config
which is also an error, since containerd_config
is supported and should be set only there. And it describes node_config_defaults
as a Subset of NodeConfig message that has defaults.
which is also false, since containerd_config
is only supported in node_pool_defaults
and not in node_config
.
After running a terraform apply
resources were created and the change is visible on tfstate
file but user is reporting that this is not affecting the cluster and the change is not implemented
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.2 on
Affected Resource(s)
google_container_cluster
Terraform Configuration
Debug Output
No response
Expected Behavior
As a declared available argument of
node_config
(see there), I expectedcontainerd_config
modify the resource but it does nothing. I finally found that the blockcontainerd_config
do the job when you put it innode_config_defaults
.Since the
containerd_config
apply for the whole cluster and not for the node pool (as you can see there), documentation should evolve to remove the argument fromnode_config
and add it only innode_config_defaults
section.Actual Behavior
containerd_config
doesn't change anything on resource but still appear in change.Steps to reproduce
terraform apply
terraform plan
. Changes are there, previous apply does nothing.Important Factoids
No response
References
No response
b/359218687