Skip to content

Commit

Permalink
Merge pull request #16 from fiverr/fix_null_refs_bug
Browse files Browse the repository at this point in the history
fix new version null issues
  • Loading branch information
nadavbuc authored Aug 28, 2024
2 parents f01a704 + 6c90256 commit 60d2271
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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.1
version: 1.1.2
description: A Helm chart for generating NodeClasses and NodePools for Karpenter
maintainers:
- name: nadavbuc
2 changes: 1 addition & 1 deletion charts/karpenter_nodes/templates/nodeclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
{{- fail "nodeClass error: Either IamRole or IamInstanceProfile must be defined" }}
{{- end }}
amiFamily: {{ $v.amiFamily | default $.Values.amiFamily }}
amiSelectorTerms:
{{- if or (hasKey $v "amiSelectorTerms") (hasKey $.Values "amiSelectorTerms") }}
amiSelectorTerms:
{{- toYaml ($v.amiSelectorTerms | default $.Values.amiSelectorTerms) | nindent 4 }}
{{- end }}
subnetSelectorTerms:
Expand Down
2 changes: 2 additions & 0 deletions charts/karpenter_nodes/templates/nodepool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
{{- $v.nodeClassRef | toYaml | nindent 8 }}
{{- else }}
name: {{ $k }}-{{ $v.instances.architecture | default $.Values.instances.architecture }}
apiVersion: karpenter.sh/{{ $.Values.ApiVersion }}
kind: EC2NodeClass
{{- end }}
{{- if or (hasKey $v "taints") (eq ($v.autoTaint | default $.Values.autoTaint) "true") }}
taints:
Expand Down

0 comments on commit 60d2271

Please sign in to comment.