Skip to content

Conversation

@ronething
Copy link
Contributor

@ronething ronething commented Sep 17, 2025

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Added webhook server feature, so that validation can be performed before the resources are actually written to the k8s cluster. The yaml resource files in the config/ directory of this PR are automatically generated by kubebuilder and are only for reference.

Currently, this PR has implemented a warning handling for Annotations that are not supported by Ingress resources.

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Signed-off-by: Ashing Zheng <[email protected]>
Signed-off-by: Ashing Zheng <[email protected]>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 283 files.

Valid Invalid Ignored Fixed
190 1 92 0
Click to see the invalid file list
  • test/e2e/e2e_test.go

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 287 files.

Valid Invalid Ignored Fixed
191 2 94 0
Click to see the invalid file list
  • internal/manager/webhooks.go
  • test/e2e/e2e_test.go

Signed-off-by: Ashing Zheng <[email protected]>
Signed-off-by: Ashing Zheng <[email protected]>
Signed-off-by: Ashing Zheng <[email protected]>
@ronething ronething marked this pull request as ready for review September 19, 2025 08:45
Signed-off-by: Ashing Zheng <[email protected]>
failurePolicy: Fail
sideEffects: None
admissionReviewVersions: ["v1"]
`, s.Namespace(), s.Namespace(), base64.StdEncoding.EncodeToString(caCert.Bytes()))
Copy link
Contributor

Choose a reason for hiding this comment

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

It may need frequent modifications, how about putting it in a file?

Signed-off-by: Ashing Zheng <[email protected]>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 290 files.

Valid Invalid Ignored Fixed
193 1 96 0
Click to see the invalid file list
  • test/e2e/framework/manifests/webhook.yaml

Signed-off-by: Ashing Zheng <[email protected]>
@ronething ronething merged commit 734849a into master Sep 22, 2025
21 checks passed
@ronething ronething deleted the feat/webhook_server branch September 22, 2025 08:04
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.

3 participants