Skip to content

Commit

Permalink
Restrict secret Access
Browse files Browse the repository at this point in the history
Restrict secret Access

Signed-off-by: kevin <tengkang@msn.com>
  • Loading branch information
kevinteng525 committed Oct 10, 2022
1 parent 0467687 commit 01d6a28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keda/templates/12-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ spec:
- name: KEDA_HTTP_DEFAULT_TIMEOUT
value: {{ .Values.http.timeout | quote }}
{{- end }}
{{- if .Values.restrict.secret }}
- name: KEDA_RESTRICT_SECRET_ACCESS
value: {{ .Values.restrict.secret | quote }}
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 -}}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/22-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
- name: KEDA_HTTP_DEFAULT_TIMEOUT
value: {{ .Values.http.timeout | quote }}
{{- end }}
{{- if .Values.restrict.secret }}
- name: KEDA_RESTRICT_SECRET_ACCESS
value: {{ .Values.restrict.secret | quote }}
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 -}}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,6 @@ prometheus:
# expr: sum by ( scaledObject , scaler) (rate(keda_metrics_adapter_scaler_errors[2m])) > 0
# for: 2m
# labels:

restrict:
secret: false

0 comments on commit 01d6a28

Please sign in to comment.