Skip to content

Commit

Permalink
chore(chart): include rollouts cfg for API server
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
  • Loading branch information
hiddeco committed Mar 26, 2024
1 parent c483514 commit 42eb718
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions charts/kargo/templates/api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,10 @@ data:
ARGOCD_URLS: {{ range $key, $val := .Values.api.argocd.urls }}{{ $key }}={{ $val }},{{- end }}
{{- end }}
ROLLOUTS_INTEGRATION_ENABLED: {{ quote .Values.api.rollouts.integrationEnabled }}
{{- if .Values.controller.rollouts.integrationEnabled }}
{{- if .Values.kubeconfigSecrets.rollouts }}
ROLLOUTS_KUBECONFIG: /etc/kargo/rollouts-kubeconfig.yaml
{{- end }}
ROLLOUTS_ANALYSIS_RUNS_NAMESPACE: {{ quote .Values.controller.rollouts.analysisRunsNamespace }}
{{- end }}
{{- end }}
12 changes: 10 additions & 2 deletions charts/kargo/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ spec:
{{- end }}
initialDelaySeconds: 5
{{- end }}
{{- if or .Values.kubeconfigSecrets.kargo (and .Values.api.oidc.enabled .Values.api.oidc.dex.enabled) .Values.api.tls.enabled }}
{{- if or .Values.kubeconfigSecrets.kargo (and .Values.api.oidc.enabled .Values.api.oidc.dex.enabled) .Values.kubeconfigSecrets.rollouts .Values.api.tls.enabled }}
volumeMounts:
- mountPath: /etc/kargo
name: config
readOnly: true
{{- end }}
resources:
{{- toYaml .Values.api.resources | nindent 12 }}
{{- if or .Values.kubeconfigSecrets.kargo (and .Values.api.oidc.enabled .Values.api.oidc.dex.enabled) .Values.api.tls.enabled }}
{{- if or .Values.kubeconfigSecrets.kargo (and .Values.api.oidc.enabled .Values.api.oidc.dex.enabled) .Values.kubeconfigSecrets.rollouts .Values.api.tls.enabled }}
volumes:
- name: config
projected:
Expand All @@ -90,6 +90,14 @@ spec:
path: kubeconfig.yaml
mode: 0644
{{- end }}
{{- if .Values.kubeconfigSecrets.rollouts }}
- secret:
name: {{ .Values.kubeconfigSecrets.rollouts }}
items:
- key: kubeconfig.yaml
path: rollouts-kubeconfig.yaml
mode: 0644
{{- end }}
{{- if .Values.api.tls.enabled }}
- secret:
name: kargo-api-cert
Expand Down

0 comments on commit 42eb718

Please sign in to comment.