-
Notifications
You must be signed in to change notification settings - Fork 562
CNF-13731: Add HTTP01ChallengeProxy #2434
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
base: master
Are you sure you want to change the base?
Conversation
@sebrandon1: This pull request references CNF-13731 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.20.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Hello @sebrandon1! Some important instructions when contributing to openshift/api: |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sebrandon1 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
67e12d5
to
7ab392f
Compare
be55466
to
cb15245
Compare
cb15245
to
b877e07
Compare
b877e07
to
a65cc37
Compare
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.
I'm surprised to see so many protobuf changes here. Something seems off with this many changes being made.
@JoelSpeed is probably more familiar with what might be going on here than I.
Because you are making changes to a CRD, you should be able to run PROTO_OPTIONAL=true make update
to make generation updates without touching the protobuf stuff
Proto changes appear to be unrelated, verify thinks changing them is wrong and is suggesting to change them back Possibly running with a newer or incompatible version? |
a65cc37
to
ec5602c
Compare
ec5602c
to
d538a39
Compare
0b955f2
to
a5d3810
Compare
/retest |
/test lint |
config/v1/tests/apiservers.config.openshift.io/HTTP01ChallengeProxy.yaml
Outdated
Show resolved
Hide resolved
ebd75c8
to
e9136e8
Compare
/retest |
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.
Once the linter and test issues are fixed, LGTM
56147cb
to
ed008e7
Compare
API types look good, but it looks like some of the test cases are expecting things that aren't true (optional port), so lets get those fixed up and please squash the various fixups |
d6a8c58
to
654300a
Compare
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.
Leaving some comments based on my analysis of the CI failures
config/v1/tests/apiservers.config.openshift.io/HTTP01ChallengeProxy.yaml
Outdated
Show resolved
Hide resolved
config/v1/tests/apiservers.config.openshift.io/HTTP01ChallengeProxy.yaml
Show resolved
Hide resolved
654300a
to
fe7101a
Compare
False positive on new required field with optional parent. /override ci/prow/verify-crd-schema |
@everettraven: Overrode contexts on behalf of everettraven: ci/prow/verify-crd-schema In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
b67caf9
to
f30ea16
Compare
Fix HTTP01ChallengeProxy integration test structure and enable feature gate in TechPreviewNoUpgrade - Fixed test file structure to include required crdName metadata for integration tests - Enabled HTTP01ChallengeProxy feature gate in both DevPreviewNoUpgrade and TechPreviewNoUpgrade - Regenerated feature gate manifests via make update - Resolved CI failure: missing required field crdName in test spec Make internalPort optional to resolve API compatibility error - Changed internalPort from required to optional (*int32 with omitempty) - This resolves the NoNewRequiredFields API compatibility violation - Updated test case to reflect optional field behavior - Users can now omit internalPort for custom deployments - Regenerated deepcopy functions and OpenAPI schemas Address comments 1 Update codegen crds Adjust back to required Remove pointer Address comments for linter
f30ea16
to
34d645a
Compare
@sebrandon1: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Related to: openshift/enhancements#1773
This is my first attempt at a FeatureGate so I'm expecting this to need a bunch of work.
Additions to API Specification and Validation:
HTTP01ChallengeProxy
configuration to theAPIServerSpec
struct, allowing users to enable and configure the HTTP01 challenge proxy for API endpoint certificates. This includes options forDefaultDeployment
andCustomDeployment
modes. (config/v1/types_apiserver.go
, [1] [2]Feature Gate Registration:
HTTP01ChallengeProxy
feature gate infeatures.go
, enabling it in theTechPreviewNoUpgrade
scope and providing metadata such as a contact person and enhancement proposal link. (features/features.go
, features/features.goR869-R876)Test Cases for Validation:
HTTP01ChallengeProxy.yaml
to validate the behavior of theHTTP01ChallengeProxy
configuration. Tests cover valid configurations, invalid modes, and boundary conditions for theinternalPort
field. (config/v1/tests/apiservers.config.openshift.io/HTTP01ChallengeProxy.yaml
, config/v1/tests/apiservers.config.openshift.io/HTTP01ChallengeProxy.yamlR1-R105)