Skip to content

Commit 3c1961b

Browse files
committed
Add configurable backend deployment
1 parent d84ef9c commit 3c1961b

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

deploy/charts/backend/templates/deployment.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ spec:
3636
hostAliases:
3737
{{- toYaml . | nindent 8 }}
3838
{{- end }}
39+
{{- with .Values.initContainers }}
40+
initContainers:
41+
{{- toYaml . | nindent 8 }}
42+
{{- end }}
3943
containers:
4044
- name: {{ .Chart.Name }}
4145
{{- with .Values.securityContext }}
@@ -112,6 +116,24 @@ spec:
112116
- --oidc-allowed-users={{ . }}
113117
{{- end }}
114118
{{- end }}
119+
{{- if .Values.backend.multiclusterRuntimeProvider }}
120+
- --multicluster-runtime-provider={{ .Values.backend.multiclusterRuntimeProvider }}
121+
{{- end }}
122+
{{- if .Values.backend.schemaSource }}
123+
- --schema-source={{ .Values.backend.schemaSource }}
124+
{{- end }}
125+
{{- if .Values.backend.apiexportEndpointSliceName }}
126+
- --apiexport-endpoint-slice-name={{ .Values.backend.apiexportEndpointSliceName }}
127+
{{- end }}
128+
{{- if .Values.backend.frontendDisabled }}
129+
- --frontend-disabled=true
130+
{{- end }}
131+
{{- range .Values.backend.apibindingIgnorePrefixes }}
132+
- --apibinding-ignore-prefixes={{ . }}
133+
{{- end }}
134+
{{- range .Values.backend.extraArgs }}
135+
- {{ . }}
136+
{{- end }}
115137
{{- if .Values.backend.loggingLevel }}
116138
- -v={{ .Values.backend.loggingLevel }}
117139
{{- end }}

deploy/charts/backend/values.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ backend:
3939
consumerScope: "namespaced"
4040
clusterScopeIsolation: "prefix" # Options: none, prefix, namespaced
4141

42+
# Multicluster runtime provider (e.g., "kcp")
43+
multiclusterRuntimeProvider: ""
44+
# Schema source (e.g., "apiresourceschemas")
45+
schemaSource: ""
46+
# APIExport EndpointSlice name to watch
47+
apiexportEndpointSliceName: ""
48+
# Disable the frontend UI
49+
frontendDisabled: false
50+
# Name prefixes of APIBindings to ignore when generating APIServiceExportTemplates
51+
apibindingIgnorePrefixes: []
52+
# Extra command-line arguments to pass to the backend
53+
extraArgs: []
54+
4255
# Cookie configuration - these should be base64 encoded keys
4356
# Empty values - will generate random keys on each start (not for production!)
4457
cookieSigningKey: ""
@@ -174,6 +187,12 @@ autoscaling:
174187
targetCPUUtilizationPercentage: 80
175188
# targetMemoryUtilizationPercentage: 80
176189

190+
# Additional init containers
191+
initContainers: []
192+
# - name: init
193+
# image: ghcr.io/platform-mesh/kube-bind-provider-init:latest
194+
# args: ["--kcp-kubeconfig", "/etc/kube-bind/kubeconfig"]
195+
177196
# Additional volumes on the output Deployment definition.
178197
volumes: []
179198
# - name: foo

0 commit comments

Comments
 (0)