Skip to content

Commit

Permalink
Adding secret mount in the OAP (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu authored Jul 3, 2024
1 parent ee7f808 commit 1335f15
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Release Notes.
- Bump up BanyanDB Helm version to 0.2.0.
- Bump up OAP and UI to 10.0.0.
- Make release process work with Linux.
- Support setting `secretMounts` in OAP.

4.5.0
------------------
Expand Down
15 changes: 15 additions & 0 deletions chart/skywalking/templates/oap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,25 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- range .Values.oap.secretMounts }}
- name: {{ .name }}
mountPath: {{ .path }}
{{- if .subPath }}
subPath: {{ .subPath }}
{{- end }}
{{- end }}

volumes:
{{- if .Values.oap.config }}
- name: skywalking-oap-override
configMap:
name: {{ template "skywalking.fullname" . }}-oap-cm-override
{{- end }}
{{- range .Values.oap.secretMounts }}
- name: {{ .name }}
secret:
secretName: {{ .secretName }}
{{- if .defaultMode }}
defaultMode: {{ .defaultMode }}
{{- end }}
{{- end }}
16 changes: 16 additions & 0 deletions chart/skywalking/templates/oap-init.job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,25 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- range .Values.oap.secretMounts }}
- name: {{ .name }}
mountPath: {{ .path }}
{{- if .subPath }}
subPath: {{ .subPath }}
{{- end }}
{{- end }}

volumes:
{{- if .Values.oap.config }}
- name: skywalking-oap-override
configMap:
name: {{ template "skywalking.fullname" . }}-oap-cm-override
{{- end }}
{{- range .Values.oap.secretMounts }}
- name: {{ .name }}
secret:
secretName: {{ .secretName }}
{{- if .defaultMode }}
defaultMode: {{ .defaultMode }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions chart/skywalking/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ oap:
# silence-period: 5
# Response time of service {name} is more than 1000ms in 3 minutes of last 10 minutes.

# A list of secrets and their paths to mount inside the pod
secretMounts: []
# - name: elastic-certificates
# secretName: elastic-certificates
# path: /usr/share/elasticsearch/config/certs

ui:
name: ui
replicas: 1
Expand Down

0 comments on commit 1335f15

Please sign in to comment.