2022-10-12 16:30:17 +01:00

14 lines
575 B
YAML

{{- if .Values.controlPlane.healthCheck.enabled }}
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineHealthCheck
metadata:
name: {{ include "openstack-cluster.componentName" (list . "control-plane") }}
labels: {{ include "openstack-cluster.componentLabels" (list . "control-plane") | nindent 4 }}
spec:
clusterName: {{ include "openstack-cluster.clusterName" . }}
selector:
matchLabels: {{ include "openstack-cluster.componentSelectorLabels" (list . "control-plane") | nindent 6 }}
{{- toYaml .Values.controlPlane.healthCheck.spec | nindent 2 }}
{{- end }}