Skip to content

Commit

Permalink
feat: add a check that the crds are installed when deploying the cont…
Browse files Browse the repository at this point in the history
…roller (#3)
  • Loading branch information
JossWhittle authored Mar 6, 2024
1 parent dddb377 commit f3c8957
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{- if .Values.controller.enabled }}
{{- if not (.Capabilities.APIVersions.Has "guacamole.ukserp.ac.uk/v1") }}
{{- fail "Guacamole CRDs not installed!" }}
{{- end }}
{{- $podNodeSelector := include "guacamole.podNodeSelector" (dict "Release" .Release "Values" .Values "nodeSelector" .Values.controller.nodeSelector) }}
{{- $podAffinity := include "guacamole.podAffinity" (dict "Release" .Release "Values" .Values "affinity" .Values.controller.affinity) }}
{{- $podTolerations := include "guacamole.podTolerations" (dict "Release" .Release "Values" .Values "tolerations" .Values.controller.tolerations) }}
Expand Down

0 comments on commit f3c8957

Please sign in to comment.