Add support for specifying a server group ID for (anti-)affinity (#135)

This commit is contained in:
Matt Pryor 2023-10-07 15:44:54 +01:00 committed by GitHub
parent 22f0a1dca2
commit b643ff30f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -30,6 +30,9 @@ template:
{{- with .Values.controlPlane.machineNetworking.ports }}
ports: {{ toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.controlPlane.serverGroupId }}
serverGroupID: {{ . }}
{{- end }}
{{- end }}
{{- define "openstack-cluster.controlplane.mt.checksum" -}}

View File

@ -32,6 +32,9 @@ template:
{{- with $nodeGroup.machineNetworking.ports }}
ports: {{ toYaml . | nindent 6 }}
{{- end }}
{{- with $nodeGroup.serverGroupId }}
serverGroupID: {{ . }}
{{- end }}
{{- end }}
{{- define "openstack-cluster.nodegroup.mt.checksum" -}}

View File

@ -151,6 +151,8 @@ controlPlane:
# The volume availability zone to use
# If not specified, the machine availability zone is used
# availabilityZone:
# The ID of the server group to use for control plane machines
serverGroupId:
# Labels to apply to the node objects in Kubernetes that correspond to control plane machines
nodeLabels:
# my.company.org/label: value
@ -256,8 +258,10 @@ nodeGroupDefaults:
# The volume availability zone to use
# If not specified, the machine availability zone is used
# availabilityZone:
# The ID of the server group to use for machines in the node group
serverGroupId:
# Labels to apply to the node objects in Kubernetes that correspond to machines in the node group
# By default, nodes that are part of a node group get the label "capi.stackhpc.com/node-group=<node group name>"
# By default, nodes get the label "capi.stackhpc.com/node-group=<node group name>"
nodeLabels:
# my.company.org/label: value
# The time to wait for a node to finish draining before it can be removed