Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide default gateway setup #502

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Provide default gateway setup #502

merged 2 commits into from
Nov 15, 2023

Conversation

solmonk
Copy link
Contributor

@solmonk solmonk commented Nov 15, 2023

What type of PR is this?

feature

Which issue does this PR fix:

What does this PR do / Why do we need it:

  • Add DEFAULT_SERVICE_NETWORK env variable, on cluster startup create service network and associate VPC
  • Keeps CLUSTER_LOCAL_GATEWAY behavior (for conformance test) with new network override mode, unlike CLUSTER_LOCAL_GATEWAY, register all gateways to the same default service network.

If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:

Testing done on this change:

Automation added to e2e:

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@zijun726911
Copy link
Contributor

Can you update doc and add instruction says that we need to pass DEFAULT_SERVICE_NETWORK to start the controller when run the make e2e-test? would be good if you could run e2e-test for this PR.

Overall LGTM.


---

#### `TARGET_GROUP_NAME_LEN_MODE`
#### `ENABLE_NETWORK_OVERRIDE`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can be a better name: ENABLE_SERVICE_NETWORK_OVERRIDE ?

if err != nil {
return fmt.Errorf("%w: failed to delete service network %s due to %s", RetryErr, snName, resp)
if snva != nil {
m.log.Debugf("ServiceNetwork %s also has VPC association %s", serviceNetwork.Spec.Name, snva.Arn)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be: ServiceNetwork %s already has VPC association ?

@solmonk
Copy link
Contributor Author

solmonk commented Nov 15, 2023

Addressed the comments, thanks

@solmonk solmonk merged commit 37f548a into aws:main Nov 15, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants