diff --git a/api/policies/v1/admissionpolicygroup_types.go b/api/policies/v1/admissionpolicygroup_types.go index c179557d..fc4d1b8b 100644 --- a/api/policies/v1/admissionpolicygroup_types.go +++ b/api/policies/v1/admissionpolicygroup_types.go @@ -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 { diff --git a/api/policies/v1/clusteradmissionpolicygroup_types.go b/api/policies/v1/clusteradmissionpolicygroup_types.go index 3905a923..ad6ff7c7 100644 --- a/api/policies/v1/clusteradmissionpolicygroup_types.go +++ b/api/policies/v1/clusteradmissionpolicygroup_types.go @@ -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 {