Skip to content

Commit aa6ffcb

Browse files
Update logs for secret update
1 parent 992b55a commit aa6ffcb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

controllers/secretproviderclasspodstatus_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ func (r *SecretProviderClassPodStatusReconciler) createOrUpdateK8sSecret(ctx con
416416
return nil
417417
}
418418
if apierrors.IsAlreadyExists(err) {
419-
klog.InfoS("Secret is already there", "secret", klog.ObjectRef{Namespace: namespace, Name: name})
419+
klog.InfoS("Kubernetes secret is already created", "secret", klog.ObjectRef{Namespace: namespace, Name: name})
420420
err := r.writer.Update(ctx, secret)
421421
if err != nil {
422-
klog.Errorf("Unable to update secret", "secret", klog.ObjectRef{Namespace: namespace, Name: name})
422+
klog.Errorf("Unable to update kubernetes secret", "secret", klog.ObjectRef{Namespace: namespace, Name: name})
423423
return err
424424
}
425425
klog.InfoS("successfully updated Kubernetes secret", "secret", klog.ObjectRef{Namespace: namespace, Name: name})

test/bats/e2e-provider.bats

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ export VALIDATE_TOKENS_AUDIENCE=$(get_token_requests_audience)
435435
run kubectl exec ${curl_pod_name} -n metrics -- curl http://${pod_ip}:8095/metrics
436436
assert_match "node_publish_total" "${output}"
437437
assert_match "node_unpublish_total" "${output}"
438-
assert_match "rotation_reconcile_total" "${output}"
439438
done
440439
# keeping metrics ns in upgrade tests has no relevance
441440
# the namespace is only to run a curl pod to validate metrics

0 commit comments

Comments
 (0)