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

Add support for ingress gateway CRD #407

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Add support for ingress gateway CRD #407

merged 1 commit into from
Dec 17, 2020

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Nov 26, 2020

Changes proposed in this PR:

  • Support ingress gateway CRD

How I've tested this PR:

How I expect reviewers to test this PR:

  • can use acceptance test, can also try and run through ingress gateway tutorial and use the CRD instead of the config entry.
    Use k8s image ghcr.io/lkysow/consul-k8s-dev:nov26.

Checklist:

  • Tests added
  • CHANGELOG entry added (HashiCorp engineers only, community PRs should not add a changelog entry)

@lkysow lkysow force-pushed the igw-crd branch 4 times, most recently from 3ab7337 to 4d46997 Compare November 26, 2020 23:38
@@ -1,7 +1,28 @@
# this is a generated file used for operator sdk during code generation of CRDs, Controllers and webhooks
Copy link
Member Author

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:
Copy link
Member Author

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
Copy link
Member Author

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

@lkysow lkysow marked this pull request as ready for review November 27, 2020 21:40
@blake blake linked an issue Nov 27, 2020 that may be closed by this pull request
@lkysow lkysow requested review from thisisnotashwin, a team and ndhanushkodi and removed request for a team December 10, 2020 18:20
Copy link
Contributor

@thisisnotashwin thisisnotashwin left a 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"

Copy link
Contributor

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

Copy link
Member Author

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

Copy link
Contributor

@ndhanushkodi ndhanushkodi left a 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
@lkysow lkysow merged commit e7ea294 into master Dec 17, 2020
@lkysow lkysow deleted the igw-crd branch December 17, 2020 21:06
ndhanushkodi pushed a commit to ndhanushkodi/consul-k8s that referenced this pull request Jul 9, 2021
* Run enterprise-license job on upgrades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for an ingress-gateway CRD
3 participants