Skip to content

Commit

Permalink
feat(t8s-cluster): update all HRs and enable driftDetection (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
tasches authored Feb 27, 2024
1 parent ab8a741 commit 139d6df
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "t8s-cluster.helm.resourceIntoCluster" -}}
apiVersion: helm.toolkit.fluxcd.io/v2beta1
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: {{ printf "%s-%s" .context.Release.Name .name }}
Expand All @@ -18,6 +18,8 @@ spec:
name: {{ printf "%s-cetic" .context.Release.Name }}
namespace: {{ .context.Release.Namespace }}
interval: 1h
driftDetection:
mode: enabled
kubeConfig:
secretRef:
name: {{ .context.Release.Name }}-kubeconfig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: {{ printf "%s-csi" .Release.Name }}
Expand All @@ -14,6 +14,8 @@ spec:
namespace: {{ .Release.Namespace }}
version: {{ printf "2.%d.x" (.Values.version.minor | int) }}
interval: 1h
driftDetection:
mode: enabled
{{- if eq .Values.cni "cilium" }}
dependsOn:
- name: {{ printf "%s-cni" .Release.Name }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: {{ printf "%s-ccm" .Release.Name }}
Expand All @@ -14,6 +14,8 @@ spec:
namespace: {{ .Release.Namespace }}
version: {{ printf "2.%d.x" (.Values.version.minor | int) }}
interval: 1h
driftDetection:
mode: enabled
{{- if eq .Values.cni "cilium" }}
dependsOn:
- name: {{ printf "%s-cni" .Release.Name }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.cni "cilium" }}
apiVersion: helm.toolkit.fluxcd.io/v2beta1
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: {{ printf "%s-cni" .Release.Name }}
Expand All @@ -9,6 +9,8 @@ spec:
chart:
spec: {{- include "t8s-cluster.helm.chartSpec" (dict "repo" "cilium" "chart" "cilium" "context" $) | nindent 6 }}
interval: 1h
driftDetection:
mode: enabled
kubeConfig:
secretRef:
name: {{ .Release.Name }}-kubeconfig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq (include "t8s-cluster.hasGPUNodes" (dict "context" $)) "true" }}
apiVersion: helm.toolkit.fluxcd.io/v2beta1
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: {{ printf "%s-gpu-operator" .Release.Name }}
Expand All @@ -9,6 +9,8 @@ spec:
chart:
spec: {{- include "t8s-cluster.helm.chartSpec" (dict "repo" "nvidia" "chart" "gpu-operator" "context" $) | nindent 6 }}
interval: 1h
driftDetection:
mode: enabled
kubeConfig:
secretRef:
name: {{ .Release.Name }}-kubeconfig
Expand Down

0 comments on commit 139d6df

Please sign in to comment.