Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/kube-prometheus-stack/hack/sync_prometheus_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def new_representer(dumper, data):
'$.Values.defaultRules.node.fsSelector': {
'replacement': '{{ $.Values.defaultRules.node.fsSelector }}',
'init': ''},
'601200': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment here

'replacement': '{{ .Values.defaultRules.kubeClientCertificateExpiration | default "601200" }}',
'init': ''},
}

# standard header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ defaultRules:
prometheusOperator: true
windows: true


kubeClientCertificateExpiration: "601200"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add more context/comments here.


# Defines the operator for namespace selection in rules
# Use "=~" to include namespaces matching the pattern (default)
# Use "!~" to exclude namespaces matching the pattern
Expand Down
Loading