Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NE-1530: IngressController LB Subnet Selection in AWS
Allows users to specify subnets (i.e. Availability Zones) for IngressControllers using load balancers in AWS. Introduce under the `IngressControllerLBSubnetsAWS` FeatureGate.
- Loading branch information
Showing
20 changed files
with
9,463 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
204 changes: 204 additions & 0 deletions
204
...ator/v1/tests/ingresscontrollers.operator.openshift.io/IngressControllerLBSubnetsAWS.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,204 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "Ingress" | ||
crdName: ingresscontrollers.operator.openshift.io | ||
featureGate: IngressControllerLBSubnetsAWS | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal ingresscontroller with subnets. | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
httpEmptyRequestsPolicy: Respond | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC | ||
- name: Should not be able to create ingresscontroller with duplicate subnets. | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC | ||
- subnetC | ||
expectedError: "subnets cannot contain duplicates" | ||
onUpdate: | ||
- name: Subnets should be mutable. | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC | ||
updated: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
httpEmptyRequestsPolicy: Respond | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- name: Subnets should be able to be removed once set. | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC | ||
updated: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
httpEmptyRequestsPolicy: Respond | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
- name: Subnets should be able to add after IC creation. | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
updated: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: IngressController | ||
spec: | ||
httpEmptyRequestsPolicy: Respond | ||
endpointPublishingStrategy: | ||
type: LoadBalancerService | ||
loadBalancer: | ||
dnsManagementPolicy: Managed | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
- subnetC |
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.