Skip to content

Commit 92b9785

Browse files
committed
refactor(kubernetes): remove worker node pools from the chart
The KubevirtMachineTemplate/MachineDeployment/MachineHealthCheck/worker WorkloadMonitor, the preserve-old-KMT block, the talos-reconcile Job and its RBAC now live in the kubernetes-nodes chart. The kubernetes chart renders the control plane only. Signed-off-by: Ivan Okhotnikov <[email protected]>
1 parent 86ecedb commit 92b9785

5 files changed

Lines changed: 9 additions & 1132 deletions

File tree

‎packages/apps/kubernetes/templates/_helpers.tpl‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,6 @@ enable the ingress-nginx addon, either supply an explicit nodeGroup with
135135
autoscaler will bring the default md0 up in response to the ingress-nginx
136136
controller Pods becoming Pending on install.
137137
*/}}
138-
{{- define "kubernetes.nodeGroups" -}}
139-
{{- if .Values.nodeGroups -}}
140-
{{ toYaml .Values.nodeGroups }}
141-
{{- else -}}
142-
md0:
143-
minReplicas: 0
144-
maxReplicas: 10
145-
instanceType: "u1.medium"
146-
diskSize: 20Gi
147-
storageClass: ""
148-
roles:
149-
- ingress-nginx
150-
resources: {}
151-
gpus: []
152-
kubelet: {}
153-
{{- end -}}
154-
{{- end }}
155-
156138
{{/*
157139
OIDC clientId for the per-cluster Keycloak public client (mode: System).
158140

‎packages/apps/kubernetes/templates/_resources.tpl‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,3 @@ These presets are for basic testing and not meant to be used in production
5252
Convert a CPU quantity string (e.g. "100m", "0.5", "1", "4") to millicores.
5353
Returns a number string: "100", "500", "1000", "4000".
5454
*/}}
55-
{{- define "kubernetes.cpuToMillicores" -}}
56-
{{- $str := . | toString -}}
57-
{{- if hasSuffix "m" $str -}}
58-
{{- trimSuffix "m" $str -}}
59-
{{- else -}}
60-
{{- mulf ($str | float64) 1000.0 | int | toString -}}
61-
{{- end -}}
62-
{{- end -}}

0 commit comments

Comments
 (0)