Skip to content

Commit ce70b32

Browse files
authored
Merge pull request #125 from embik/extra-flags-syncagent
api-syncagent: add extraFlags, extraVolumes and extraVolumeMounts to chart values
2 parents 8e5ee29 + c0bec69 commit ce70b32

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

charts/api-syncagent/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ spec:
4444
{{- with .Values.publishedResourceSelector }}
4545
- "--published-resource-selector={{ . }}"
4646
{{- end }}
47+
{{- range .Values.extraFlags }}
48+
- {{ . | quote }}
49+
{{- end }}
4750
env:
4851
- name: POD_NAMESPACE
4952
valueFrom:
@@ -68,6 +71,9 @@ spec:
6871
- name: cluster-kubeconfig
6972
mountPath: /etc/api-syncagent/cluster
7073
{{- end }}
74+
{{- if .Values.extraVolumeMounts }}
75+
{{ toYaml .Values.extraVolumeMounts | indent 12 }}
76+
{{- end }}
7177
securityContext:
7278
runAsNonRoot: true
7379
runAsUser: 65534
@@ -83,3 +89,7 @@ spec:
8389
secret:
8490
secretName: "{{ . }}"
8591
{{- end }}
92+
{{- if .Values.extraVolumes }}
93+
{{ toYaml .Values.extraVolumes | indent 8 }}
94+
{{- end }}
95+

charts/api-syncagent/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,17 @@ resources:
4747
crds:
4848
# Whether to install the PublishedResource CRD.
4949
enabled: true
50+
51+
# Optional: Pass additional flags to the kcp-api-syncagent process started by the container.
52+
extraFlags: []
53+
54+
# Optional: Configure additional volumes to be added to the syncagent Pod.
55+
extraVolumes: []
56+
# - name: extra-secret
57+
# secret:
58+
# secretName: extra-secret
59+
60+
# Optional: Configure additional volume mounts to be added to the agent container.
61+
extraVolumeMounts: []
62+
# - name: extra-secret
63+
# mountPath: /etc/test

0 commit comments

Comments
 (0)