Skip to content

Commit c61104f

Browse files
committed
chore: Conditionally deploy sandbox controller
Wrap the sandbox controller deployment manifest in a conditional block. This allows enabling or disabling the deployment based on the cluster's 'sandbox_controller_enabled' configuration item.
1 parent fabf624 commit c61104f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cluster/manifests/sandbox-controller/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# {{ $image := "container-registry.zalando.net/gwproxy/sandbox-controller:main-8" }}
22
# {{ $version := index (split $image ":") 1 }}
33

4+
{{ if eq .Cluster.ConfigItems.sandbox_controller_enabled "true" }}
45
apiVersion: apps/v1
56
kind: Deployment
67
metadata:
@@ -40,3 +41,4 @@ spec:
4041
requests:
4142
cpu: 50m
4243
memory: 0.3Gi
44+
{{ end }}

0 commit comments

Comments
 (0)