Skip to content

Commit

Permalink
Merge pull request #885 from fabriziosestito/fix/policy-groups-unique…
Browse files Browse the repository at this point in the history
…-name

fix: use a different name for ClusterAdmissionpolicyGroup unique name
  • Loading branch information
flavio authored Sep 18, 2024
2 parents 5c7cf92 + 0a76443 commit 8237b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/policies/v1/admissionpolicygroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (r *AdmissionPolicyGroup) GetPolicyServer() string {
}

func (r *AdmissionPolicyGroup) GetUniqueName() string {
return "namespacedpolicygroup-" + r.Namespace + "-" + r.Name
return "namespaced-group-" + r.Namespace + "-" + r.Name
}

func (r *AdmissionPolicyGroup) GetContextAwareResources() []ContextAwareResource {
Expand Down
2 changes: 1 addition & 1 deletion api/policies/v1/clusteradmissionpolicygroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (r *ClusterAdmissionPolicyGroup) GetPolicyServer() string {
}

func (r *ClusterAdmissionPolicyGroup) GetUniqueName() string {
return "clusterwide-" + r.Name
return "clusterwide-group-" + r.Name
}

func (r *ClusterAdmissionPolicyGroup) GetContextAwareResources() []ContextAwareResource {
Expand Down

0 comments on commit 8237b77

Please sign in to comment.