Skip to content

Commit

Permalink
do now allow counters when CAST AI is used as sink (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanMelnyk113 authored Mar 25, 2024
1 parent 53e6c99 commit cc3bfbd
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions charts/egressd/templates/exporter/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ spec:
- name: API_KEY
valueFrom:
secretKeyRef:
{{- if .Values.castai.apiKey }}
name: "{{- include "egressd.fullname" . }}"
key: API_KEY
{{- else if .Values.castai.apiKeySecretRef }}
name: {{ .Values.castai.apiKeySecretRef }}
key: API_KEY
{{- if eq (get .Values.collector.extraArgs "send-traffic-delta") false }}
{{- fail "`collector.extraArgs.send-traffic-delta` should be set to `true` when CAST AI is used as sink" }}
{{- else }}
{{- if .Values.castai.apiKey }}
name: "{{- include "egressd.fullname" . }}"
key: API_KEY
{{- else if .Values.castai.apiKeySecretRef }}
name: {{ .Values.castai.apiKeySecretRef }}
key: API_KEY
{{- end }}
{{- end }}
{{- end }}
ports:
Expand Down

0 comments on commit cc3bfbd

Please sign in to comment.