Skip to content

Commit

Permalink
Merge pull request #309 from wallrj/pdb-tweaks
Browse files Browse the repository at this point in the history
Production readiness Helm chart tweaks
  • Loading branch information
jetstack-bot authored Feb 28, 2024
2 parents 67d4784 + 63535c8 commit 34bb21e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/trust-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ Additional labels to add to the ServiceMonitor.
Enable or disable the PodDisruptionBudget resource.
This prevents downtime during voluntary disruptions such as during a Node upgrade. For example, the PodDisruptionBudget will block `kubectl drain` if it is used on the Node where the only remaining cert-manager
This prevents downtime during voluntary disruptions such as during a Node upgrade. For example, the PodDisruptionBudget will block `kubectl drain` if it is used on the Node where the only remaining trust-manager
Pod is currently running.
#### **podDisruptionBudget.minAvailable** ~ `unknown`
Expand Down
8 changes: 8 additions & 0 deletions deploy/charts/trust-manager/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{{- if (lt (int .Values.replicaCount) 2) }}
⚠️ WARNING: Consider increasing the Helm value `replicaCount` to 2 if you require high availability.
{{- end }}

{{- if (not .Values.podDisruptionBudget.enabled) }}
⚠️ WARNING: Consider setting the Helm value `podDisruptionBudget.enabled` to true if you require high availability.
{{- end }}

trust-manager {{ .Chart.AppVersion }} has been deployed successfully!

{{- if .Values.defaultPackage.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/trust-manager/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@
"additionalProperties": false
},
"helm-values.podDisruptionBudget.enabled": {
"description": "Enable or disable the PodDisruptionBudget resource.\n\nThis prevents downtime during voluntary disruptions such as during a Node upgrade. For example, the PodDisruptionBudget will block `kubectl drain` if it is used on the Node where the only remaining cert-manager\nPod is currently running.",
"description": "Enable or disable the PodDisruptionBudget resource.\n\nThis prevents downtime during voluntary disruptions such as during a Node upgrade. For example, the PodDisruptionBudget will block `kubectl drain` if it is used on the Node where the only remaining trust-manager\nPod is currently running.",
"type": "boolean",
"default": false
},
Expand Down
4 changes: 2 additions & 2 deletions deploy/charts/trust-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ app:
port: 6443
# Timeout of webhook HTTP request.
timeoutSeconds: 5

service:
# The type of Kubernetes Service used by the Webhook.
type: ClusterIP
Expand Down Expand Up @@ -237,7 +237,7 @@ podDisruptionBudget:
#
# This prevents downtime during voluntary disruptions such as during a Node upgrade.
# For example, the PodDisruptionBudget will block `kubectl drain`
# if it is used on the Node where the only remaining cert-manager
# if it is used on the Node where the only remaining trust-manager
# Pod is currently running.
enabled: false

Expand Down

0 comments on commit 34bb21e

Please sign in to comment.