1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00

fix: sort autogen resources list (#12162)

Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
shuting 2025-02-13 20:49:39 +08:00 committed by GitHub
parent 609a122ede
commit ce2c27c2d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ func ComputeRules(policy policiesv1alpha1.GenericPolicy) []policiesv1alpha1.Auto
actualControllers = sets.New(strings.Split(actualControllersString, ",")...)
}
resources := strings.Join(actualControllers.UnsortedList(), ",")
resources := strings.Join(sets.List(actualControllers), ",")
genRules := generateRules(policy.GetSpec().DeepCopy(), resources)
return genRules
}

View file

@ -21,8 +21,8 @@ status:
resources:
- daemonsets
- deployments
- statefulsets
- replicasets
- statefulsets
- apiGroups:
- batch
apiVersions: