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

Resolve FIXMEs for gateway-ctlr-name CLI arg #235

Merged
merged 4 commits into from
Sep 21, 2022

Conversation

kate-osborn
Copy link
Contributor

Resolves the FIXMEs involving the gateway-ctlr-name CLI argument.

  • Removes the requirement for a namespace in gateway-ctlr-name CLI arg. The expected format is now DOMAIN/PATH. Valid examples include: "k8s-gateway.nginx.org/nginx-gateway-controller", "k8s-gateway.nginx.org/nginx-gateway/nginx-gateway-controller", and "k8s-gateway.nginx.org/nginx-gateway/nginx-gateway-controller/v2".

  • Updates validation of argument to use the regex provided by the kubebuilder annotation for GatewayClass.Spec.controllerName.

  • Updates manifests to use the controller name "k8s-gateway.nginx.org/nginx-gateway-controller".

  • Removes unused GatewayConfig CRD

@kate-osborn kate-osborn changed the title Fix/hardcoded namespace Resolve FIXMEs for gateway-ctlr-name CLI arg Sep 16, 2022
@kate-osborn kate-osborn requested a review from a team September 16, 2022 22:02
@github-actions github-actions bot added bug Something isn't working documentation Improvements or additions to documentation labels Sep 19, 2022
cmd/gateway/main.go Outdated Show resolved Hide resolved
Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

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

👍

cmd/gateway/setup.go Outdated Show resolved Hide resolved
kate-osborn and others added 4 commits September 20, 2022 15:00
Removes requirement for namespace in gateway-ctlr-name CLI arg. Expected format
is now DOMAIN/PATH. Valid examples include:
"k8s-gateway.nginx.org/nginx-gateway-controller",
"k8s-gateway.nginx.org/nginx-gateway/nginx-gateway-controller", and
"k8s-gateway.nginx.org/nginx-gateway/nginx-gateway-controller/v2".

Updated validation of argument to use the regex provided by the kubebuilder
annotation for GatewayClass.Spec.controllerName.

Updated manifests to use the controller name
"k8s-gateway.nginx.org/nginx-gateway-controller".
Use re.MatchString instead of re.Match

Co-authored-by: Michael Pleshakov <[email protected]>
@kate-osborn kate-osborn merged commit 52a5b73 into main Sep 21, 2022
@kate-osborn kate-osborn deleted the fix/hardcoded-namespace branch September 21, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants