Skip to content

Commit

Permalink
fix: Chart refactor (#1143)
Browse files Browse the repository at this point in the history
Signed-off-by: Milos Backonja <milos.backonja@iohk.io>
  • Loading branch information
milosbackonja authored Jun 5, 2024
1 parent eedb6fd commit f309a0e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions infrastructure/charts/agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Create chart name and version as used by the chart label.
{{- end }}
{{- end }}
{{- end -}}

{{- define "consumer-restriction" }}
- name: consumer-restriction
enable: {{ .Values.ingress.auth.consumer_restriction }}
Expand All @@ -52,9 +53,12 @@ Create chart name and version as used by the chart label.
- {{ regexReplaceAll "-" $.Release.Name "_" }}_{{ regexReplaceAll "-" . "_" | lower }}
{{- end }}
{{- end -}}

{{- define "labels.common" -}}
app.kubernetes.io/part-of: {{ include "cloud-agent.fullname" . }}
{{- end -}}
{{- $fullname := include "cloud-agent.fullname" $ -}}
app.kubernetes.io/part-of: {{ $fullname }}
{{- end }}

{{- define "headers.security" }}
- name: response-rewrite
enable: true
Expand All @@ -69,6 +73,7 @@ app.kubernetes.io/part-of: {{ include "cloud-agent.fullname" . }}
Cache-Control: "no-cache, no-store"
remove: ["Server"]
{{- end -}}

{{- define "headers.requestId" }}
- name: request-id
enable: true
Expand Down

0 comments on commit f309a0e

Please sign in to comment.