-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support creating ControlPlaneMachineSet (#82)
* Support creating ControlPlaneMachineSet If using a NodeGroup named `master` a ControlPlaneMachineSet will be created instead of a normal MachineSet. * Apply suggestions from code review Co-authored-by: Simon Gerber <[email protected]> --------- Co-authored-by: Simon Gerber <[email protected]>
- Loading branch information
1 parent
7ae447b
commit ee01f07
Showing
3 changed files
with
135 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
tests/golden/gcp/openshift4-nodes/openshift4-nodes/machineset-master.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apiVersion: machine.openshift.io/v1 | ||
kind: ControlPlaneMachineSet | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: cluster | ||
name: cluster | ||
namespace: openshift-machine-api | ||
spec: | ||
replicas: 5 | ||
selector: | ||
matchLabels: | ||
machine.openshift.io/cluster-api-cluster: infra-id | ||
machine.openshift.io/cluster-api-machine-role: master | ||
machine.openshift.io/cluster-api-machine-type: master | ||
state: Inactive | ||
strategy: | ||
type: OnDelete | ||
template: | ||
machineType: machines_v1beta1_machine_openshift_io | ||
machines_v1beta1_machine_openshift_io: | ||
failureDomains: | ||
platform: '' | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-cluster: infra-id | ||
machine.openshift.io/cluster-api-machine-role: master | ||
machine.openshift.io/cluster-api-machine-type: master | ||
spec: | ||
providerSpec: | ||
value: | ||
apiVersion: gcpprovider.openshift.io/v1beta1 | ||
canIPForward: false | ||
credentialsSecret: | ||
name: gcp-cloud-credentials | ||
deletionProtection: false | ||
disks: | ||
- autoDelete: true | ||
boot: true | ||
image: infra-id-rhcos-image | ||
labels: null | ||
sizeGb: 128 | ||
type: pd-ssd | ||
kind: GCPMachineProviderSpec | ||
machineType: super-trooper | ||
metadata: | ||
creationTimestamp: null | ||
networkInterfaces: | ||
- network: infra-id-network | ||
subnetwork: infra-id-worker-subnet | ||
projectID: cluster-test | ||
region: rma1 | ||
serviceAccounts: | ||
- email: [email protected] | ||
scopes: | ||
- https://www.googleapis.com/auth/cloud-platform | ||
tags: | ||
- infra-id-master | ||
userDataSecret: | ||
name: worker-user-data | ||
zone: europe-west6-a |