2024-10-31 16:54:18 +01:00
|
|
|
{{- if or .Values.addon .Values.bootstrap .Values.controlPlane .Values.infrastructure }}
|
|
|
|
# Deploy core components if not specified
|
|
|
|
{{- if not .Values.core }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2024-11-14 18:12:54 +00:00
|
|
|
"helm.sh/hook": "post-install,post-upgrade"
|
2024-10-31 16:54:18 +01:00
|
|
|
"helm.sh/hook-weight": "1"
|
|
|
|
name: capi-system
|
|
|
|
---
|
|
|
|
apiVersion: operator.cluster.x-k8s.io/v1alpha2
|
|
|
|
kind: CoreProvider
|
|
|
|
metadata:
|
|
|
|
name: cluster-api
|
|
|
|
namespace: capi-system
|
|
|
|
annotations:
|
2024-11-14 18:12:54 +00:00
|
|
|
"helm.sh/hook": "post-install,post-upgrade"
|
2024-10-31 16:54:18 +01:00
|
|
|
"helm.sh/hook-weight": "2"
|
|
|
|
{{- with .Values.configSecret }}
|
|
|
|
spec:
|
|
|
|
configSecret:
|
|
|
|
name: {{ .name }}
|
|
|
|
{{- if .namespace }}
|
|
|
|
namespace: {{ .namespace }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|