Skip to content

Commit

Permalink
chore(cluster-class): rename machineDeployments (#139)
Browse files Browse the repository at this point in the history
* chore(cluster-class): rename machineDeployments

Signed-off-by: Jan Schoone <6106846+jschoone@users.noreply.github.com>

* change worker class in quickstart

Signed-off-by: Danny Eiselt <eiselt@b1-systems.de>

---------

Signed-off-by: Jan Schoone <6106846+jschoone@users.noreply.github.com>
Signed-off-by: Danny Eiselt <eiselt@b1-systems.de>
Co-authored-by: Danny Eiselt <eiselt@b1-systems.de>
  • Loading branch information
jschoone and DEiselt authored Jul 18, 2024
1 parent 6b25021 commit 3e7c580
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions providers/openstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ spec:
version: v${CS_K8S_VERSION}.${CS_K8S_PATCH_VERSION}
workers:
machineDeployments:
- class: ${CS_CLASS_NAME}
- class: default-worker
failureDomain: nova
name: ${CS_CLASS_NAME}
name: default-worker
replicas: 3
EOF

Expand Down
22 changes: 11 additions & 11 deletions providers/openstack/scs/cluster-class/templates/cluster-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ spec:
name: {{ .Release.Name }}-{{ .Chart.Version }}-cluster
workers:
machineDeployments:
- class: {{ .Release.Name }}-{{ .Chart.Version }}
- class: default-worker
template:
bootstrap:
ref:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: {{ .Release.Name }}-{{ .Chart.Version }}
name: {{ .Release.Name }}-{{ .Chart.Version }}-default-worker
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
name: {{ .Release.Name }}-{{ .Chart.Version }}
name: {{ .Release.Name }}-{{ .Chart.Version }}-default-worker
variables:
- name: external_id
required: false
Expand Down Expand Up @@ -317,7 +317,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: true
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: replace
path: "/spec/template/spec/image/filter/name"
Expand Down Expand Up @@ -512,7 +512,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: false
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: replace
path: "/spec/template/spec/flavor"
Expand Down Expand Up @@ -544,7 +544,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: false
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: add
path: "/spec/template/spec/rootVolume"
Expand Down Expand Up @@ -576,7 +576,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: true
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: add
path: "/spec/template/spec/securityGroups"
Expand Down Expand Up @@ -612,7 +612,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: true
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: replace
path: "/spec/template/spec/identityRef/cloudName"
Expand All @@ -639,7 +639,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: true
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: replace
path: "/spec/template/spec/identityRef/name"
Expand Down Expand Up @@ -671,7 +671,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: false
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: add
path: "/spec/template/spec/serverGroup"
Expand All @@ -689,7 +689,7 @@ cre ate group names like oidc:engineering and oidc:infra."
controlPlane: true
machineDeploymentClass:
names:
- {{ .Release.Name }}-{{ .Chart.Version }}
- default-worker
jsonPatches:
- op: add
path: "/spec/template/spec/sshKeyName"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}
name: {{ .Release.Name }}-{{ .Chart.Version }}-default-worker
spec:
template:
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}
name: {{ .Release.Name }}-{{ .Chart.Version }}-default-worker
spec:
template:
spec:
Expand Down

0 comments on commit 3e7c580

Please sign in to comment.