Skip to content

Commit

Permalink
Bug 1868328: Fix cases in cloud-credential's related objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jhadvig committed Aug 12, 2020
1 parent 355ca69 commit 59d5efd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/awspodidentity/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/credentialsrequest/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/secretannotator/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand All @@ -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,
})
Expand Down

0 comments on commit 59d5efd

Please sign in to comment.