Skip to content

Commit

Permalink
[update] add namespace in the k8ssecret error message
Browse files Browse the repository at this point in the history
  • Loading branch information
inishchith committed Dec 27, 2023
1 parent 2630aab commit d541251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cmd/serversecretinit/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Start() error {

k8sSecret, err := kubeClient.CoreV1().Secrets(namespace).Get(context.Background(), secret, metav1.GetOptions{})
if err != nil {
return err
return fmt.Errorf("failed to get kubesecret in namespace %s, %w", namespace, err)
}

_, secretKeyExists = k8sSecret.Data[serverSecretKey]
Expand Down

0 comments on commit d541251

Please sign in to comment.