Skip to content

Commit

Permalink
Merge pull request #6 from fiverr/fix_consolidate_after_conflict
Browse files Browse the repository at this point in the history
fix do not set consolidate after if consolidation enabled
  • Loading branch information
nadavbuc authored Apr 15, 2024
2 parents 468b407 + e37d15c commit 18de5e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/karpenter_nodes/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: karpenter_nodes
version: 0.1.1
version: 0.1.2
description: A Helm chart for generating NodeClasses and NodePools for Karpenter
maintainers:
- name: nadavbuc
2 changes: 2 additions & 0 deletions charts/karpenter_nodes/templates/nodepool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ spec:
disruption:
expireAfter: {{ $v.expireAfter | default $.Values.expireAfter }}
consolidationPolicy: {{$v.consolidationPolicy | default $.Values.consolidationPolicy}}
{{- if eq ($v.consolidationPolicy | default $.Values.consolidationPolicy) "WhenEmpty" }}
consolidateAfter: {{ $v.consolidateAfter | default $.Values.consolidateAfter }}
{{- end }}
{{- if $v.budgets }}
budgets:
{{- toYaml $v.budgets | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ tests:
- equal:
path: spec.disruption.consolidationPolicy
value: WhenUnderutilized
- equal:
- isNull:
path: spec.disruption.consolidateAfter
value: 5m
- isNull:
path: spec.disruption.budgets
- isNull:
Expand Down

0 comments on commit 18de5e9

Please sign in to comment.