Skip to content

Commit

Permalink
Add well known annotations to prevent disruption (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal authored Jul 10, 2024
1 parent 9980991 commit c8b5042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/helm-blue-green/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: helm-blue-green
version: 0.1.2
version: 0.1.3
icon: https://helm.sh/img/helm.svg
description: Helm Blue Green
maintainers:
Expand Down
5 changes: 4 additions & 1 deletion charts/helm-blue-green/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ spec:
{{ if .Values.labels }}
{{ toYaml .Values.labels | indent 8 }}
{{ end }}
{{ if .Values.annotations }}
annotations:
# well known annotations to prevent disruption
karpenter.sh/do-not-disrupt: "true"
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
{{ if .Values.annotations }}
{{ toYaml .Values.annotations | indent 8 }}
{{ end }}
spec:
Expand Down

0 comments on commit c8b5042

Please sign in to comment.