Added missing secret key in the message

pull/564/head
Neven Miculinic 2018-12-19 13:03:11 +01:00
parent fccb19da9f
commit 49a966cb1a
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ func MakePayload(mappings []v1.KeyToPath, secret *v1.Secret, defaultMode *int32,
if optional {
continue
}
errMsg := "references non-existent secret key"
errMsg := fmt.Sprintf("references non-existent secret key: %s", ktp.Key)
klog.Errorf(errMsg)
return nil, fmt.Errorf(errMsg)
}