Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cluster-class): rename machineDeployments #139

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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