Skip to content

Commit

Permalink
Refine the permission values with operator/metricServer toggle
Browse files Browse the repository at this point in the history
Refine the permission values with operator/metricServer toggle

Signed-off-by: kevin <tengkang@msn.com>
  • Loading branch information
kevinteng525 committed Oct 12, 2022
1 parent 09b912d commit c2104b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions keda/templates/12-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ spec:
- name: KEDA_HTTP_DEFAULT_TIMEOUT
value: {{ .Values.http.timeout | quote }}
{{- end }}
{{- if .Values.restrict.secret }}
{{- if .Values.permissions.operator.restrict.secret }}
- name: KEDA_RESTRICT_SECRET_ACCESS
value: {{ .Values.restrict.secret | quote }}
value: {{ .Values.permissions.operator.restrict.secret | quote }}
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 -}}
Expand Down
4 changes: 2 additions & 2 deletions keda/templates/22-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ spec:
- name: KEDA_HTTP_DEFAULT_TIMEOUT
value: {{ .Values.http.timeout | quote }}
{{- end }}
{{- if .Values.restrict.secret }}
{{- if .Values.permissions.metricServer.restrict.secret }}
- name: KEDA_RESTRICT_SECRET_ACCESS
value: {{ .Values.restrict.secret | quote }}
value: {{ .Values.permissions.metricServer.restrict.secret | quote }}
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 -}}
Expand Down
9 changes: 7 additions & 2 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,10 @@ prometheus:
# for: 2m
# labels:

restrict:
secret: false
permissions:
metricServer:
restrict:
secret: false
operator:
restrict:
secret: false

0 comments on commit c2104b4

Please sign in to comment.