cmd/k8s-operator: fix statefulset template yaml indentation (#18194)
Fixes #17000 Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This commit is contained in:
+11
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user