Skip to content

Validating webhook for ingress and ingress class#11

Draft
fischerman wants to merge 1 commit into
mainfrom
validating-webhook
Draft

Validating webhook for ingress and ingress class#11
fischerman wants to merge 1 commit into
mainfrom
validating-webhook

Conversation

@fischerman

Copy link
Copy Markdown
Member

How to categorize this PR?

/kind enhancement

What this PR does / why we need it:

When the controller receives an invalid object it either needs to discard it or stop reconciliation altogether. A webhook can catch invalid objects during admission.

@ske-prow ske-prow Bot added kind/enhancement Enhancement, improvement, extension do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jul 23, 2026
@ske-prow

ske-prow Bot commented Jul 23, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ske-prow

ske-prow Bot commented Jul 23, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ftl for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ske-prow ske-prow Bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 23, 2026
}

ingressClass := &networkingv1.IngressClass{}
// TODO: How do we deal with 404s? The ingress class might be created just moments later.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is not ideal that we do a lookup here that might fail.

Alternatively, we could also check stackit.cloud annotations regardless of the ingress class. However, we can't validate missing required annotations that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/enhancement Enhancement, improvement, extension size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant