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

Bug 1771773: webhooks: Rely on service-ca-operator for CA injection #132

Merged
merged 2 commits into from Feb 4, 2020
Merged

Bug 1771773: webhooks: Rely on service-ca-operator for CA injection #132

merged 2 commits into from Feb 4, 2020

Conversation

bison
Copy link
Contributor

@bison bison commented Jan 28, 2020

This relies on the recently added support in the service-ca-operator
for automatically injecting its CA certificate into the webhook
configurations. We no longer need to have the CA injected into a
ConfigMap that we mount into the operator's pod, and rotation of the
CA should be handled automatically.

See: openshift/service-ca-operator#79

This relies on the recently added support in the service-ca-operator
for automatically injecting its CA certificate into the webhook
configurations.  We no longer need to have the CA injected into a
ConfigMap that we mount into the operator's pod, and rotation of the
CA should be handled automatically.
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Jan 28, 2020
@openshift-ci-robot
Copy link
Contributor

@bison: This pull request references Bugzilla bug 1771773, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1771773: webhooks: Rely on service-ca-operator for CA injection

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/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 28, 2020
const WebhookConfigurationName = "autoscaling.openshift.io"

// InjectCABundleAnnotationName is the annotation used by the
// service-ca-operator to indicate which resources it should inject the CA into.
const InjectCABundleAnnotationName = "service.beta.openshift.io/inject-cabundle"
Copy link
Contributor

Choose a reason for hiding this comment

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

Might it be worth using the const from the service-ca-operator so that if it changes there, it's updated when we update the dependency?
https://github.com/openshift/service-ca-operator/blob/61c93f3832ad2acb8cef1f4e0088d4c06965a47f/pkg/controller/api/api.go#L20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pulling in an entire new dependency for one constant, and still having to take manual action to update it if it changes doesn't seem worth it to me.

Copy link

Choose a reason for hiding this comment

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

+1 to just defining it here. Also, since the name of the annotation is supported for customers, it is effectively a stable API and any changes would follow a reasonable deprecation cycle.

Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 28, 2020
@bison
Copy link
Contributor Author

bison commented Jan 28, 2020

/hold

Needs testing on a recent 4.4 cluster.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 28, 2020
@bison
Copy link
Contributor Author

bison commented Feb 4, 2020

/hold cancel

Works for me on latest 4.4 nightly.

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 4, 2020
@enxebre
Copy link
Member

enxebre commented Feb 4, 2020

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 4, 2020
@openshift-merge-robot openshift-merge-robot merged commit 923fdba into openshift:master Feb 4, 2020
@openshift-ci-robot
Copy link
Contributor

@bison: All pull requests linked via external trackers have merged. Bugzilla bug 1771773 has been moved to the MODIFIED state.

In response to this:

Bug 1771773: webhooks: Rely on service-ca-operator for CA injection

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants