Unverified Commit 12c83ff1 authored by Craig Jellick's avatar Craig Jellick Committed by GitHub

Merge pull request #1526 from galal-hussein/backport_add_asterisk

[release-1.17] Backport add asterisk
parents fa85cf78 179cb47d
......@@ -16,6 +16,7 @@ const (
NodeArgsAnnotation = "k3s.io/node-args"
NodeEnvAnnotation = "k3s.io/node-env"
NodeConfigHashAnnotation = "k3s.io/node-config-hash"
OmittedValue = "********"
)
func getNodeArgs() (string, error) {
......@@ -31,7 +32,7 @@ func getNodeArgs() (string, error) {
for i, arg := range nodeArgsList {
if isSecret(arg) {
if i+1 < len(nodeArgsList) {
nodeArgsList[i+1] = ""
nodeArgsList[i+1] = OmittedValue
}
}
}
......@@ -52,7 +53,7 @@ func getNodeEnv() (string, error) {
}
for key := range k3sEnv {
if isSecret(key) {
k3sEnv[key] = ""
k3sEnv[key] = OmittedValue
}
}
k3sEnvJSON, err := json.Marshal(k3sEnv)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment