Skip to content

Commit

Permalink
add-additional-values (#40)
Browse files Browse the repository at this point in the history
add existing argocd secret
include disablePlaintext value
fix secret.yaml template conditions
  • Loading branch information
radomarina authored Sep 11, 2023
1 parent 1602a80 commit 12b6ec9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: firefly-k8s-collector
home: https://github.com/gofireflyio/k8s-collector
description: Firefly's Kubernetes Collector
type: application
version: 1.4.7
appVersion: "1.4.7"
version: 1.4.8
appVersion: "1.4.8"
2 changes: 2 additions & 0 deletions charts/chart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ spec:
value: {{ .Values.argocd.domain }}
- name: IACATHON_ARGOCD_INSECURE
value: {{ quote .Values.argocd.insecure }}
- name: IACATHON_ARGOCD_DISABLE_PLAINTEXT
value: {{ quote .Values.argocd.disablePlaintext }}
- name: REMOTE_BUCKET
value: {{ quote .Values.argocd.saveToRemoteBucket}}
envFrom:
Expand Down
4 changes: 2 additions & 2 deletions charts/chart/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.argocd.enabled -}}
{{- if and (.Values.argocd.enabled) (not .Values.existingFireFlyArgocdCredentialsSecret) -}}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -17,4 +17,4 @@ type: Opaque
data:
accessKey: {{ .Values.accessKey | b64enc }}
secretKey: {{ .Values.secretKey | b64enc }}
{{- end }}
{{- end }}
5 changes: 3 additions & 2 deletions charts/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ secretKey: null
# the existing secret should have accessKey and secretKey keys
# accessKey and secretKey values are ignored if this is set
existingFireFlyCredentialsSecret: ""

existingFireFlyArgocdCredentialsSecret: ""
# incase the integration does not exist in firefly, the collector will create it
# if you would like to mark as a production cluster set this to true
isProduction: false
Expand All @@ -36,6 +36,7 @@ offBoarderImage:
argocd:
enabled: false
insecure: true
disablePlaintext: true
image:
repository: infralightio/self-hosted-redactor
pullPolicy: Always
Expand Down Expand Up @@ -102,4 +103,4 @@ addTypes: [ ]
# DEPRECATED: collectSecrets is a boolean value indicating whether the collector
# should collect secrets from the cluster. This value is deprecated in favor of
# the addTypes value.
collectSecrets: false
collectSecrets: false

0 comments on commit 12b6ec9

Please sign in to comment.