Skip to content

Commit

Permalink
Provide clientIdKey from in node-agent (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit authored Jan 15, 2025
1 parent 8db2c7c commit 7c6e5b1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion network-mapper/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,18 @@ spec:
- name: OTTERIZE_API_ADDRESS
value: "{{ .Values.global.otterizeCloud.apiAddress }}"
{{ end }}
{{ if .Values.global.otterizeCloud.credentials.clientId }}

{{ if (and .Values.global.otterizeCloud.credentials.clientSecretKeyRef.secretName .Values.global.otterizeCloud.credentials.clientSecretKeyRef.clientIdKey) }}
- name: OTTERIZE_CLIENT_ID
valueFrom:
secretKeyRef:
name: "{{ .Values.global.otterizeCloud.credentials.clientSecretKeyRef.secretName }}"
key: "{{ .Values.global.otterizeCloud.credentials.clientSecretKeyRef.clientIdKey }}"
{{ else if .Values.global.otterizeCloud.credentials.clientId }}
- name: OTTERIZE_CLIENT_ID
value: "{{ .Values.global.otterizeCloud.credentials.clientId }}"
{{ end }}

{{ if (and .Values.global.otterizeCloud.credentials.clientSecretKeyRef.secretName .Values.global.otterizeCloud.credentials.clientSecretKeyRef.secretKey) }}
- name: OTTERIZE_CLIENT_SECRET
valueFrom:
Expand Down

0 comments on commit 7c6e5b1

Please sign in to comment.