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

ProxyDefaults CRD #328

Merged
merged 19 commits into from
Sep 25, 2020
Merged

Conversation

thisisnotashwin
Copy link
Contributor

@thisisnotashwin thisisnotashwin commented Sep 22, 2020

Changes proposed in this PR:

Implement support for proxy-defaults config entries:
Copy its type definition over from Consul and implement toConsul() and matchesConsul()
Create controller and webhook for it
Run generators to create deepcopy and yaml files

How I've tested this PR: Acceptance tests from hashicorp/consul-helm#614

How I expect reviewers to test this PR:

Reviewing the acceptance tests from hashicorp/consul-helm#614 should show that the refactoring didn't break anything
I've built ashwinvenkatesh/consul-k8s@sha256:41b9c7f6a38e1b9f8d8c444f65607d7387ebbf09c43def8911eb2c5a93f1f160 that can be tested with.

Additionally, the webhook-cert-manager that gets spun up here should have less noisy log lines.

• not gonna lie, i felt lazy, so i copied over @lkysow description from ServiceResolver and removed the cool bit about a refactor. thanks Luke!!

@thisisnotashwin thisisnotashwin changed the title wip ProxyDefaults CRD Sep 22, 2020
Base automatically changed from crd-controller-resolver to crd-controller-base September 22, 2020 22:05
@thisisnotashwin thisisnotashwin marked this pull request as ready for review September 23, 2020 20:25
Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

🍬

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

Nice work!

api/common/common.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types.go Show resolved Hide resolved
api/v1alpha1/proxydefaults_types.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_webhook.go Outdated Show resolved Hide resolved
subcommand/webhook-cert-manager/command.go Show resolved Hide resolved
api/v1alpha1/proxydefaults_types_test.go Show resolved Hide resolved
@lkysow
Copy link
Member

lkysow commented Sep 24, 2020

Also this branch says it has 15 commits so you may need to futz with the git history.

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

Ohh, you'll need to do something about consul namespaces. Proxy Defaults can only be registered in the default consul namespace.

@thisisnotashwin
Copy link
Contributor Author

Also this branch says it has 15 commits so you may need to futz with the git history.

I think the merge takes care of that

@thisisnotashwin
Copy link
Contributor Author

gonna squash and merge this pupper

api/v1alpha1/proxydefaults_types.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types_test.go Outdated Show resolved Hide resolved
api/v1alpha1/proxydefaults_types_test.go Outdated Show resolved Hide resolved
controllers/configentry_controller.go Show resolved Hide resolved
@thisisnotashwin thisisnotashwin merged commit 092fc5f into crd-controller-base Sep 25, 2020
@thisisnotashwin thisisnotashwin deleted the crd-controller-proxy-def branch September 25, 2020 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/crds type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants