Skip to content

Commit

Permalink
Merge pull request #906 from turkenf/z-t-700
Browse files Browse the repository at this point in the history
Ignore lateinitialize for secret field in the ContainerApp resource
  • Loading branch information
turkenf authored Dec 26, 2024
2 parents 8c7ec82 + d47c17e commit 3d34f36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/containerapp/v1beta1/zz_containerapp_terraformed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apis/containerapp/v1beta2/zz_containerapp_terraformed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions config/containerapp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ func Configure(p *config.Provider) {
r.ShortGroup = group
r.TerraformResource.Schema["secret"].Elem.(*schema.Resource).
Schema["name"].Sensitive = true
r.LateInitializer = config.LateInitializer{
IgnoredFields: []string{"secret"},
}
})

p.AddResourceConfigurator("azurerm_container_app_environment", func(r *config.Resource) {
Expand Down

0 comments on commit 3d34f36

Please sign in to comment.