Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1842 from vr4manta/SPLAT-1452
SPLAT-1452: Changed vcenter MaxItems to be 3 for TechPreview.
- Loading branch information
Showing
49 changed files
with
4,755 additions
and
23 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
141 changes: 141 additions & 0 deletions
141
config/v1/tests/infrastructures.config.openshift.io/VSphereMultiVCenters.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,141 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "Infrastructure" | ||
crdName: infrastructures.config.openshift.io | ||
featureGate: VSphereMultiVCenters | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal Infrastructure | ||
initial: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: {} # No spec is required for a Infrastructure | ||
expected: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: {} | ||
- name: Should be able to pass more than 1 entries to vcenters in the vsphere platform spec | ||
initial: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
key: config | ||
name: cloud-provider-config | ||
platformSpec: | ||
type: VSphere | ||
vsphere: | ||
failureDomains: | ||
- name: generated-failure-domain | ||
region: generated-region | ||
server: server1.dev.cluster.com | ||
topology: | ||
computeCluster: /IBMCloud/host/vcs-8e-workload | ||
datacenter: IBMCloud | ||
datastore: /IBMCloud/datastore/mdcnc-ds-shared | ||
networks: | ||
- ocp-ci-seg-13 | ||
resourcePool: /IBMCloud/host/vcs-8e-workload/Resources | ||
template: /IBMCloud/vm/ngirard-dev-rqh5s-rhcos-generated-region-generated-zone | ||
zone: generated-zone | ||
nodeNetworking: | ||
external: {} | ||
internal: {} | ||
vcenters: | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: server1.dev.cluster.com | ||
- datacenters: | ||
- IBMCloud2 | ||
port: 443 | ||
server: server2.dev.cluster.com | ||
expected: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
key: config | ||
name: cloud-provider-config | ||
platformSpec: | ||
type: VSphere | ||
vsphere: | ||
failureDomains: | ||
- name: generated-failure-domain | ||
region: generated-region | ||
server: server1.dev.cluster.com | ||
topology: | ||
computeCluster: /IBMCloud/host/vcs-8e-workload | ||
datacenter: IBMCloud | ||
datastore: /IBMCloud/datastore/mdcnc-ds-shared | ||
networks: | ||
- ocp-ci-seg-13 | ||
resourcePool: /IBMCloud/host/vcs-8e-workload/Resources | ||
template: /IBMCloud/vm/ngirard-dev-rqh5s-rhcos-generated-region-generated-zone | ||
zone: generated-zone | ||
nodeNetworking: | ||
external: {} | ||
internal: {} | ||
vcenters: | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: server1.dev.cluster.com | ||
- datacenters: | ||
- IBMCloud2 | ||
port: 443 | ||
server: server2.dev.cluster.com | ||
onUpdate: | ||
- name: Should be able to set vCenters to multiple | ||
initial: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
key: config | ||
name: cloud-provider-config | ||
platformSpec: | ||
type: VSphere | ||
vsphere: | ||
vcenters: | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: vcs8e-vc.ocp2.dev.cluster.com | ||
updated: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
key: config | ||
name: cloud-provider-config | ||
platformSpec: | ||
type: VSphere | ||
vsphere: | ||
vcenters: | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: vcs8e-vc.ocp2.dev.cluster.com | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: v8c-2-vcenter.ocp2.dev.cluster.com | ||
expected: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
key: config | ||
name: cloud-provider-config | ||
platformSpec: | ||
type: VSphere | ||
vsphere: | ||
vcenters: | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: vcs8e-vc.ocp2.dev.cluster.com | ||
- datacenters: | ||
- IBMCloud | ||
port: 443 | ||
server: v8c-2-vcenter.ocp2.dev.cluster.com |
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
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
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
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
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
Oops, something went wrong.