Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NE-1530: Add API for AWS LB Subnet Selection
Allows users to specify subnets (i.e. Availability Zones) for IngressControllers using load balancers in AWS. Introduce under the `AWSLoadBalancerSubnetSelection` FeatureGate.
- Loading branch information
Showing
17 changed files
with
6,993 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
106 changes: 106 additions & 0 deletions
106
...tor/v1/tests/ingresscontrollers.operator.openshift.io/AWSLoadBalancerSubnetSelection.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,106 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "Ingress" | ||
crdName: ingresscontrollers.operator.openshift.io | ||
featureGate: AWSLoadBalancerSubnetSelection | ||
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 | ||
onUpdate: | ||
- name: Subnets should be immutable. | ||
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: | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
subnets: | ||
- subnetA | ||
- subnetB | ||
expectedError: "subnets is immutable once set" | ||
- name: Subnets should not be able to remove 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: | ||
scope: External | ||
providerParameters: | ||
type: AWS | ||
aws: | ||
type: Classic | ||
expectedError: "subnets is immutable once set" | ||
|
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.