cmd/k8s-operator: fix statefulset template yaml indentation (#18194)

Fixes #17000

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This commit is contained in:
Tom Meadows
2025-12-15 10:27:59 +00:00
committed by GitHub
parent cb5fa35f57
commit d7a5624841
5 changed files with 62 additions and 21 deletions
+11 -1
View File
@@ -922,7 +922,17 @@ func applyProxyClassToStatefulSet(pc *tsapi.ProxyClass, ss *appsv1.StatefulSet,
if overlay.SecurityContext != nil {
base.SecurityContext = overlay.SecurityContext
}
base.Resources = overlay.Resources
if len(overlay.Resources.Requests) > 0 {
base.Resources.Requests = overlay.Resources.Requests
}
if len(overlay.Resources.Limits) > 0 {
base.Resources.Limits = overlay.Resources.Limits
}
if len(overlay.Resources.Claims) > 0 {
base.Resources.Limits = overlay.Resources.Limits
}
for _, e := range overlay.Env {
// Env vars configured via ProxyClass might override env
// vars that have been specified by the operator, i.e