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

support switching resource injector webhook to Fail #658

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

SchSeba
Copy link
Collaborator

@SchSeba SchSeba commented Mar 15, 2024

Using MatchConditions in the mutating webhook allow us to only call the webhook for pods with annotation k8s.v1.cni.cncf.io/networks

Adding this feature under a featureGate as the MatchConditions was introduced in newer k8s version (beta on 1.28)

Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@SchSeba
Copy link
Collaborator Author

SchSeba commented Mar 15, 2024

Fixes: #649

Using MatchConditions in the mutating webhook allow us
to only call the webhook for pods with annotation  `k8s.v1.cni.cncf.io/networks`

Adding this feature under a featureGate as the MatchConditions was introduced in
newer k8s version (beta on 1.28)

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8314843722

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 37.746%

Files with Coverage Reduction New Missed Lines %
controllers/drain_controller.go 1 70.36%
api/v1/helper.go 3 45.22%
Totals Coverage Status
Change from base Build 8297808881: 0.04%
Covered Lines: 4842
Relevant Lines: 12828

💛 - Coveralls

@SchSeba
Copy link
Collaborator Author

SchSeba commented Mar 18, 2024

@e0ne @ykulazhenkov @zeeke @Eoghan1232 when you have time please take a look

Copy link
Collaborator

@ykulazhenkov ykulazhenkov left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

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

LGTM

@zeeke zeeke merged commit d9bbbb6 into k8snetworkplumbingwg:master Mar 19, 2024
12 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.

5 participants