mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #72201 from nmiculinic/secret_key
Print non-existent key reference in the secret
This commit is contained in:
commit
53ee46f9a9
@ -285,7 +285,7 @@ func MakePayload(mappings []v1.KeyToPath, secret *v1.Secret, defaultMode *int32,
|
|||||||
if optional {
|
if optional {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
errMsg := "references non-existent secret key"
|
errMsg := fmt.Sprintf("references non-existent secret key: %s", ktp.Key)
|
||||||
klog.Errorf(errMsg)
|
klog.Errorf(errMsg)
|
||||||
return nil, fmt.Errorf(errMsg)
|
return nil, fmt.Errorf(errMsg)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user