-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Currently the following return error message can be misleading when it occurs in k8s logs/describe command https://github.com/syntasso/kratix/blob/main/util/git/ssh.go#L189:
func newSSHAuthCreds(stateStoreSpec v1alpha1.GitStateStoreSpec, creds map[string][]byte) (*sshAuthCreds, error) {
sshPrivateKey, ok := creds["sshPrivateKey"]
namespace := stateStoreSpec.SecretRef.Namespace
name := stateStoreSpec.SecretRef.Name
if !ok {
return nil, fmt.Errorf("sshKey not found in secret %s/%s", namespace, name)
}
........
}
We should use return nil, fmt.Errorf("sshPrivateKey not found in secret %s/%s", namespace, name) instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels