From 55caae23c3fdeabedde02220321d3f9bb44a691b Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Fri, 30 Aug 2024 15:04:50 -0400 Subject: [PATCH] add PriorityClass to resource creation/deletion order (#4853) --- pkg/operator/client/resource.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/operator/client/resource.go b/pkg/operator/client/resource.go index b323dc6c45..eff8526875 100644 --- a/pkg/operator/client/resource.go +++ b/pkg/operator/client/resource.go @@ -11,9 +11,10 @@ import ( ) var ( - // These lists are inspired by Helm: https://github.com/helm/helm/blob/v3.11.3/pkg/releaseutil/kind_sorter.go + // These lists are inspired by Helm: https://github.com/helm/helm/blob/v3.15.4/pkg/releaseutil/kind_sorter.go // Unknown kinds are created last. KindCreationOrder = []string{ + "PriorityClass", "Namespace", "NetworkPolicy", "ResourceQuota", @@ -87,6 +88,7 @@ var ( "ResourceQuota", "NetworkPolicy", "Namespace", + "PriorityClass", } )