Skip to content

Commit

Permalink
Merge pull request #15 from fiverr/DO-759-fix-expireafter
Browse files Browse the repository at this point in the history
fix expire after placement according to updated spec
  • Loading branch information
nadavbuc authored Aug 15, 2024
2 parents a8a7c6c + b9a5ffb commit f01a704
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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: 1.1.0
version: 1.1.1
description: A Helm chart for generating NodeClasses and NodePools for Karpenter
maintainers:
- name: nadavbuc
2 changes: 1 addition & 1 deletion charts/karpenter_nodes/templates/nodepool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ spec:
{{- if or (hasKey $.Values "additionalRequirements") (hasKey $v "additionalRequirements") }}
{{- toYaml ($v.additionalRequirements | default $.Values.additionalRequirements) | nindent 8 }}
{{- end }}
expireAfter: {{ $v.expireAfter | default $.Values.expireAfter }}
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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ tests:
documentIndex: 0
asserts:
- equal:
path: spec.disruption.expireAfter
path: spec.template.spec.expireAfter
value: 720h
- equal:
path: spec.disruption.consolidationPolicy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ tests:
documentIndex: 3
asserts:
- equal:
path: spec.disruption.expireAfter
path: spec.template.spec.expireAfter
value: 720h
- equal:
path: spec.disruption.consolidationPolicy
Expand Down

0 comments on commit f01a704

Please sign in to comment.