Skip to content

Commit

Permalink
add stringData to Secret's sensitive fields
Browse files Browse the repository at this point in the history
Signed-off-by: Adphi <[email protected]>
  • Loading branch information
Adphi authored and alekc committed Sep 19, 2023
1 parent 62dd5f1 commit 2885531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/resource_kubectl_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ metadata:
if hasSensitiveFields {
sensitiveFields = expandStringList(sensitiveFieldsRaw.([]interface{}))
} else if parsedYaml.GetKind() == "Secret" && parsedYaml.GetAPIVersion() == "v1" {
sensitiveFields = []string{"data"}
sensitiveFields = []string{"data", "stringData"}
}

for _, s := range sensitiveFields {
Expand Down

0 comments on commit 2885531

Please sign in to comment.