Skip to content

ylee/multi target group v2.8.1 #2

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

Closed
wants to merge 7 commits into from

Conversation

ylee-figma
Copy link
Collaborator

Issue

Description

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the docs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

wweiwei-li and others added 7 commits May 16, 2024 14:19
* update the traffic test for ingress (kubernetes-sigs#3725)

* update the traffic test for ingress

* make crds

* prevent controller runtime complaining about SetupLogger() was never called (kubernetes-sigs#3724)

* Update go to v1.22, controller-runtime dependency to v0.18.2, and kubernetes libs to v0.30.0 (kubernetes-sigs#3707)

* go version, dep version

* refactor for controller-runtime udpate

* update tests, fix if statement

the controller-runtime strips DeletionTimestamp from manifests on
Create(). kubernetes-sigs/controller-runtime#2316

* refactor tests

* remove placeholder comments

* remove reconciler from WithOptions

* remove DefaultNamespace cache option

* remote `&& !hasGroupFinalizer`

This was causing e2e tests to fail when an ingress did not have the
group finalizer. The unit tests ing-1_been_deleted, and ing-6_been_deleted
will need reworked due to changes in the controller-runtime that cause
them to fail.

* update unit tests for ctrl client/fake >0.15

controller-runtime >=0.15 does not support creating (or adding the field via Update()) objects with a DeletionTimestamp. To work around this we add an annotation `unit-test/delete` to mark the ingresses that we want to test deletion. We check for this annotation and then call Delete(). This will set the DeletionTimestamp to the current date and time so we use IgnoreOtherFields to skip then comparing want to got.

relevant controller-runtime discussion/pr:

- kubernetes-sigs/controller-runtime#2184 (comment)
- kubernetes-sigs/controller-runtime#2316

* remove unused contexts

* add DefaultNamespaces cache config

* set opt.Cache.DefaultNamespaces conditionally

If WatchNamespace is set to corev1.NamespaceAll we should not set
DefaultNamespaces.

This code assumes that only one namespace is specified for
WatchNamespace. That decision was based on the help text for the flag
`watch-namespace`.

Related controller-runtime issue: kubernetes-sigs/controller-runtime#2628

* make crds

* set go to v1.22.3

* restrict resolve resolveViaVPCENIs to fargate only (kubernetes-sigs#3709)

* Added helm envFrom value parameter for cluster-name (kubernetes-sigs#3683)

* Added helm envFrom value parameter for cluster-name

* Update README.md file

* Add envFrom configuration to values.yaml

* Remove empty line in values.yaml

* feat: disable default helm labels (kubernetes-sigs#3574)

* feat: disable helm labels

* fix: doc

* Update README.md (kubernetes-sigs#3638)

Remove extra / in crds

---------

Co-authored-by: Luke Arntz <[email protected]>
Co-authored-by: Omer Aplatony <[email protected]>
Co-authored-by: Rémi BUISSON <[email protected]>
Co-authored-by: Mike Wilson <[email protected]>
* fixed the mTLS bug kubernetes-sigs#3715

* addressed comments

* addressed comments

* added tests

* updated tests

* updated tests

* updated fix

* updated annotation

* fixed the mTLS bug kubernetes-sigs#3715

addressed comments

addressed comments

added tests

updated tests

updated tests

updated fix

updated annotation

fixed broken tests

Co-authored-by: Yogita Sheth <[email protected]>
This effectively passes down the CIDR blocks as a flag and filters out
the list of targets that are returned from aws.
@ylee-figma ylee-figma closed this Jun 25, 2024
@ylee-figma ylee-figma reopened this Jun 25, 2024
@ylee-figma ylee-figma closed this Jun 25, 2024
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.

5 participants