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:
parent
609a122ede
commit
ce2c27c2d2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -21,8 +21,8 @@ status:
|
|||
resources:
|
||||
- daemonsets
|
||||
- deployments
|
||||
- statefulsets
|
||||
- replicasets
|
||||
- statefulsets
|
||||
- apiGroups:
|
||||
- batch
|
||||
apiVersions:
|
||||
|
|
Loading…
Add table
Reference in a new issue