-
Notifications
You must be signed in to change notification settings - Fork 366
feat: add webhook server #2566
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
feat: add webhook server #2566
Conversation
Signed-off-by: Ashing Zheng <[email protected]>
Signed-off-by: Ashing Zheng <[email protected]>
There was a problem hiding this 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
Signed-off-by: Ashing Zheng <[email protected]>
Signed-off-by: Ashing Zheng <[email protected]>
There was a problem hiding this 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]>
Signed-off-by: Ashing Zheng <[email protected]>
test/e2e/scaffold/k8s.go
Outdated
| failurePolicy: Fail | ||
| sideEffects: None | ||
| admissionReviewVersions: ["v1"] | ||
| `, s.Namespace(), s.Namespace(), base64.StdEncoding.EncodeToString(caCert.Bytes())) |
There was a problem hiding this comment.
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]>
There was a problem hiding this 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]>
Type of change:
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 bykubebuilderand are only for reference.Currently, this PR has implemented a warning handling for Annotations that are not supported by
Ingressresources.Pre-submission checklist: