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

[Remove Default Objs 4/4] Update Webhook #624

Conversation

adrianchiris
Copy link
Collaborator

@adrianchiris adrianchiris commented Feb 6, 2024

As the operator no longer creates default
SriovOperatorConfig and SriovNetworkNodePolicy
the webhook is updated in the following Manner:

Validating:

  • Allow deletion of default config/policy.
  • Block create/update of non default config CR

Mutating:

  • keep skipping default but add a comment to mark as deprecated.

NOTE for reviewers: should be merged after #622

Copy link

github-actions bot commented Feb 6, 2024

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.

@adrianchiris
Copy link
Collaborator Author

Related to #592

@coveralls
Copy link

coveralls commented Feb 6, 2024

Pull Request Test Coverage Report for Build 7814727136

  • -3 of 7 (57.14%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 25.854%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/webhook/validate.go 4 5 80.0%
pkg/webhook/mutate.go 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/webhook/validate.go 1 60.19%
Totals Coverage Status
Change from base Build 7801115751: -0.01%
Covered Lines: 2907
Relevant Lines: 11244

💛 - Coveralls

@adrianchiris adrianchiris force-pushed the webhook-create-only-default-config branch from 98d1dc2 to 828c9db Compare February 7, 2024 08:49
Copy link

github-actions bot commented Feb 7, 2024

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.

As the operator no longer creates default
SriovOperatorConfig and SriovNetworkNodePolicy
the webhook is updated in the following Manner:

Validating:
- Allow deletion of default config/policy.
- Block create/update of non default config CR

Mutating:
- keep skipping default but add a comment to mark
  as deprecated.

Signed-off-by: adrianc <adrianc@nvidia.com>
@adrianchiris adrianchiris force-pushed the webhook-create-only-default-config branch from 828c9db to b98c804 Compare February 7, 2024 12:25
Copy link

github-actions bot commented Feb 7, 2024

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.

pkg/webhook/validate.go Show resolved Hide resolved
@adrianchiris adrianchiris changed the title Update Webhook [Remove Default Objs 4/4] Update Webhook Feb 8, 2024
@adrianchiris
Copy link
Collaborator Author

@zeeke @SchSeba could you take a quick look at this one ? the last of the series :)

@zeeke zeeke merged commit b3b9dfa into k8snetworkplumbingwg:master Feb 22, 2024
11 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