diff --git a/pkg/operator/awspodidentity/controller.go b/pkg/operator/awspodidentity/controller.go index e156abd5d..5bb538c25 100644 --- a/pkg/operator/awspodidentity/controller.go +++ b/pkg/operator/awspodidentity/controller.go @@ -68,12 +68,12 @@ var ( }, { Group: "rbac.authorization.k8s.io", - Resource: "clusteroles", + Resource: "clusterroles", Name: "pod-identity-webhook", }, { Group: "rbac.authorization.k8s.io", - Resource: "clusterolebindings", + Resource: "clusterrolebindings", Name: "pod-identity-webhook", }, { diff --git a/pkg/operator/credentialsrequest/status.go b/pkg/operator/credentialsrequest/status.go index 14a1c958b..e5f98dd0c 100644 --- a/pkg/operator/credentialsrequest/status.go +++ b/pkg/operator/credentialsrequest/status.go @@ -246,7 +246,7 @@ func buildExpectedRelatedObjects(credRequests []minterv1.CredentialsRequest) []c for _, cr := range credRequests { related = append(related, configv1.ObjectReference{ Group: minterv1.SchemeGroupVersion.Group, - Resource: "CredentialsRequest", + Resource: "credentialsrequest", Namespace: cr.Namespace, Name: cr.Name, }) diff --git a/pkg/operator/secretannotator/status/status.go b/pkg/operator/secretannotator/status/status.go index 2945335b9..93eef7536 100644 --- a/pkg/operator/secretannotator/status/status.go +++ b/pkg/operator/secretannotator/status/status.go @@ -68,7 +68,7 @@ func (s *SecretStatusHandler) GetRelatedObjects(logger log.FieldLogger) ([]confi related := []configv1.ObjectReference{ { Group: operatorv1.GroupName, - Resource: "CloudCredentials", + Resource: "cloudcredentials", Name: constants.CloudCredOperatorConfig, }, } @@ -83,7 +83,7 @@ func (s *SecretStatusHandler) GetRelatedObjects(logger log.FieldLogger) ([]confi // add the configmap if it exists if !errors.IsNotFound(err) { related = append(related, configv1.ObjectReference{ - Resource: "ConfigMap", + Resource: "configmap", Namespace: cm.Namespace, Name: cm.Name, })