Skip to content

Commit

Permalink
update label for fetching kyverno cluster role
Browse files Browse the repository at this point in the history
  • Loading branch information
vyankyGH authored and realshuting committed Dec 7, 2021
1 parent 83ef767 commit ea50463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhookconfig/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (wrc *Register) constructOwner() v1.OwnerReference {
}

func (wrc *Register) GetKubePolicyClusterRoleName() (*unstructured.Unstructured, error) {
clusterRoles, err := wrc.client.ListResource(config.ClusterRoleAPIVersion, config.ClusterRoleKind, "", &v1.LabelSelector{MatchLabels: map[string]string{"app": "kyverno"}})
clusterRoles, err := wrc.client.ListResource(config.ClusterRoleAPIVersion, config.ClusterRoleKind, "", &v1.LabelSelector{MatchLabels: map[string]string{"app.kubernetes.io/name": "kyverno"}})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ea50463

Please sign in to comment.