forked from openshift/api
-
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.
Merge pull request openshift#2196 from eggfoobar/add-dualreplica-feat…
…uregate OCPEDGE-1512: feat: add dualreplica featuregate
- Loading branch information
Showing
29 changed files
with
4,768 additions
and
3 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
config/v1/tests/infrastructures.config.openshift.io/DualReplica.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,79 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "Infrastructure" | ||
crdName: infrastructures.config.openshift.io | ||
featureGates: | ||
- DualReplica | ||
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: {} | ||
onUpdate: | ||
- name: status should allow controlPlaneTopology value for `DualReplica` | ||
initial: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
platformSpec: | ||
aws: {} | ||
type: AWS | ||
updated: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
platformSpec: | ||
type: AWS | ||
aws: {} | ||
status: | ||
controlPlaneTopology: DualReplica | ||
infrastructureTopology: HighlyAvailable | ||
platform: AWS | ||
platformStatus: | ||
aws: {} | ||
type: AWS | ||
expected: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
platformSpec: | ||
type: AWS | ||
aws: {} | ||
status: | ||
controlPlaneTopology: DualReplica | ||
cpuPartitioning: None | ||
infrastructureTopology: HighlyAvailable | ||
platform: AWS | ||
platformStatus: | ||
aws: | ||
cloudLoadBalancerConfig: | ||
dnsType: PlatformDefault | ||
type: AWS | ||
- name: should not allow changing infrastructureTopology value to `DualReplica` | ||
initial: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
platformSpec: | ||
aws: {} | ||
type: AWS | ||
updated: | | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
platformSpec: | ||
type: AWS | ||
aws: {} | ||
status: | ||
controlPlaneTopology: HighlyAvailable | ||
infrastructureTopology: DualReplica | ||
platform: AWS | ||
platformStatus: | ||
aws: {} | ||
type: AWS | ||
expectedStatusError: 'status.infrastructureTopology: Unsupported value: "DualReplica": supported values: "HighlyAvailable", "SingleReplica"' |
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.