Skip to content

Commit

Permalink
dont fail deployment if using existing secrets (#195)
Browse files Browse the repository at this point in the history
* dont fail deployment if using existing secrets
* bump chart version

---------

Signed-off-by: Brady Todhunter <[email protected]>
  • Loading branch information
Btodhunter committed Feb 16, 2024
1 parent 8eeb28a commit e86586e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/k8s-inventory/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: k8s-inventory
version: 0.2.0
version: 0.2.1
appVersion: "1.2.0"
description: A Helm chart for Kubernetes Automated Inventory, which describes which images are in use in a given Kubernetes Cluster
keywords:
Expand Down
4 changes: 2 additions & 2 deletions stable/k8s-inventory/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Create the name of the service account to use
Require Anchore endpoint and Anchore credentials
*/}}
{{- define "checkAnchoreRequisites" }}
{{- if or (not .Values.k8sInventory.anchore.url) (not .Values.k8sInventory.anchore.user) (not .Values.k8sInventory.anchore.password) }}
{{- if or (not .Values.k8sInventory.anchore.url) (not .Values.k8sInventory.anchore.user) (and (not .Values.useExistingSecret) (not .Values.k8sInventory.anchore.password)) }}
{{- fail "Anchore endpoint and credentials are required. See the chart README for more instructions on configuring Anchore Requisites." }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit e86586e

Please sign in to comment.