Skip to content

Commit

Permalink
chore(t8s-cluster): improve conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Nov 14, 2023
1 parent 3c17c4e commit 9bff6a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/t8s-cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ sourceRef:
{{- $hasGPUFlavor = true -}}
{{- end -}}
{{- end -}}
{{- $hasGPUFlavor -}}
{{- $hasGPUFlavor | ternary true "" -}}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if eq (include "t8s-cluster.hasGPUNodes" (dict "context" $)) "true" }}
{{- if include "t8s-cluster.hasGPUNodes" (dict "context" $) }}
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/t8s-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global:
url: https://helm.ngc.nvidia.com/nvidia
charts:
gpu-operator: 23.x.x
condition: '{{ eq (include "t8s-cluster.hasGPUNodes" (dict "context" $)) "true" }}'
condition: '{{ include "t8s-cluster.hasGPUNodes" (dict "context" $) }}'
cloud-provider-openstack:
url: https://kubernetes.github.io/cloud-provider-openstack
cetic:
Expand Down

0 comments on commit 9bff6a3

Please sign in to comment.