Skip to content

Commit

Permalink
Ignore lateinitialize for secret field in the ContainerApp resource
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Türken <[email protected]>
(cherry picked from commit d47c17e)
  • Loading branch information
turkenf authored and github-actions[bot] committed Dec 26, 2024
1 parent fdc7e7c commit cca7dd7
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 cca7dd7

Please sign in to comment.