Skip to content

Commit

Permalink
Support Kubernetes secrets for the refresh token (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarl-tornroos authored Sep 14, 2023
1 parent 756d7c0 commit 263ce32
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm-chart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ spec:
{{- end }}
env:
- name: REFRESH_TOKEN
{{- if eq (typeOf .Values.flexera.refreshToken) "string" }}
value: "{{ .Values.flexera.refreshToken }}"
{{- else }}
{{- toYaml .Values.flexera.refreshToken | nindent 16 }}
{{- end }}
- name: ORG_ID
value: "{{ .Values.flexera.orgId }}"
- name: BILL_CONNECT_ID
Expand Down
9 changes: 9 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ cronSchedule: "0 */6 * * *" # every 6 hours

flexera:
# -- Refresh Token from FlexeraOne
# You can provide the refresh token in two ways:
# 1. Directly as a string:
# refreshToken: "your_token_here"
# 2. Reference it from a Kubernetes secret:
# refreshToken:
# valueFrom:
# secretKeyRef:
# name: flexera-secrets # Name of the Kubernetes secret
# key: refresh_token # Key in the secret containing the refresh token
refreshToken: ""
# -- Flexera Organization ID
orgId: ""
Expand Down

0 comments on commit 263ce32

Please sign in to comment.