Skip to content

Commit

Permalink
Add support for specifying a server group ID for (anti-)affinity (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor authored Oct 7, 2023
1 parent 22f0a1d commit b643ff3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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" -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" -}}
Expand Down
6 changes: 5 additions & 1 deletion charts/openstack-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b643ff3

Please sign in to comment.