-
Notifications
You must be signed in to change notification settings - Fork 324
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
Add support for ingress gateway CRD #407
Conversation
3ab7337
to
4d46997
Compare
@@ -1,7 +1,28 @@ | |||
# this is a generated file used for operator sdk during code generation of CRDs, Controllers and webhooks |
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.
Since this gets removed whenever we run the generation I was thinking we could leave it off.
domain: hashicorp.com | ||
layout: go.kubebuilder.io/v2 | ||
repo: github.com/hashicorp/consul-k8s | ||
resources: |
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.
This is added now with my version of operator-sdk
@@ -36,6 +36,15 @@ type ServiceRouter struct { | |||
Status `json:"status,omitempty"` | |||
} | |||
|
|||
// +kubebuilder:object:root=true |
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.
just reordering to match the other files
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.
Looks great. Just fix the import order in main.go
. 🏆
main.go
Outdated
"github.com/mitchellh/cli" | ||
|
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 suspect this change was made by Goland? I don't mind it but I think it makes sense to use the import order we use across the project
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.
good catch, not sure what happened there
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.
Looks great! 🎉
- Also update controller-runtime to 0.4.1
* Run enterprise-license job on upgrades
Changes proposed in this PR:
How I've tested this PR:
How I expect reviewers to test this PR:
Use k8s image
ghcr.io/lkysow/consul-k8s-dev:nov26
.Checklist: