Skip to content

Commit

Permalink
Add option to disable helm hook for custom secret validation (#350)
Browse files Browse the repository at this point in the history
* Add option to disable helm hook for custom secret validation

Co-authored-by: Dmitrii Anoshin <[email protected]>
  • Loading branch information
akorp and dmitryax authored Jan 11, 2022
1 parent a55a0cf commit 511e7f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not .Values.secret.create }}
{{- if and (not .Values.secret.create) (.Values.secret.validateSecret) }}
# Helm hook validating that custom secret provided by user has all the required
# fields.
apiVersion: v1
Expand Down
3 changes: 3 additions & 0 deletions helm-charts/splunk-otel-collector/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,9 @@
},
"name": {
"type": "string"
},
"validateSecret": {
"type": "boolean"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/splunk-otel-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ rbac:
secret:
create: true
name: ""
# Specifies whether secret provided by user should be validated.
validateSecret: true

# This default tolerations allow the daemonset to be deployed on master nodes,
# so that we can also collect logs and metrics from those nodes.
Expand Down

0 comments on commit 511e7f0

Please sign in to comment.