Skip to content

Commit 78700db

Browse files
authored
[API server] add extraInitContainers field to helm deployment (skypilot-org#5918)
extra init containers
1 parent 8592b11 commit 78700db

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/skypilot/templates/api-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ spec:
323323
- name: lambda-config
324324
mountPath: /root/.lambda_cloud
325325
{{- end }}
326+
{{- if .Values.extraInitContainers }}
327+
{{- toYaml .Values.extraInitContainers | nindent 6 }}
328+
{{- end }}
329+
326330
volumes:
327331
{{- if .Values.storage.enabled }}
328332
- name: state-volume

charts/skypilot/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ nebiusCredentials:
281281
# Name of the secret containing the Nebius credentials. Only used if enabled is true.
282282
nebiusSecretName: nebius-credentials
283283

284+
# Extra init containers to run before the api container
285+
extraInitContainers:
286+
284287
# Set securityContext for the api pod
285288
podSecurityContext: {}
286289

0 commit comments

Comments
 (0)