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

Set default cluster resource namespace to current pod namespace #329

Merged

Conversation

munnerz
Copy link
Member

@munnerz munnerz commented Feb 22, 2018

What this PR does / why we need it:

Changes the default cluster resource namespace from kube-system to the current namespace of the cert-manager deployment.

Which issue this PR fixes: fixes #103

Release note:

Supporting resources for ClusterIssuer's (e.g. signing CA certificates, or ACME account private keys) will now be stored in the same namespace as cert-manager, instead of kube-system in previous versions. Action required: you will need to ensure to properly manually migrate these referenced resources across into the deployment namespace of cert-manager, else cert-manager may not be able to find account private keys or signing CA certificates.

/cc @mikebryant

@jetstack-bot jetstack-bot added the release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. label Feb 22, 2018
@jetstack-bot
Copy link
Contributor

@munnerz: GitHub didn't allow me to request PR reviews from the following users: mikebryant.

Note that only jetstack members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What this PR does / why we need it:

Changes the default cluster resource namespace from kube-system to the current namespace of the cert-manager deployment.

Which issue this PR fixes: fixes #103

Release note:

Supporting resources for ClusterIssuer's (e.g. signing CA certificates, or ACME account private keys) will now be stored in the same namespace as cert-manager, instead of kube-system in previous versions. Action required: you will need to ensure to properly manually migrate these referenced resources across into the deployment namespace of cert-manager, else cert-manager may not be able to find account private keys or signing CA certificates.

/cc @mikebryant

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.

@jetstack-bot jetstack-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 22, 2018
@munnerz
Copy link
Member Author

munnerz commented Feb 22, 2018

/retest

Copy link
Member

@wallrj wallrj left a comment

Choose a reason for hiding this comment

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

I can't see anywhere in the diff that we create the cert-manager namespace.

If it's created elsewhere, should that be using the new constant too?

The 1.8 tests failed with:

I0222 09:02:41.027] NAME                       DESIRED   CURRENT   READY     AGE
I0222 09:02:41.027] nginx-ingress-controller   1         1         1         2m
W0222 09:02:41.308] The Service "nginx-ingress-controller" is invalid: spec.clusterIP: Invalid value: "10.0.0.15": provided IP is already allocated

Is that a test flake?

The 1.9 e2e tests failed with an actual test error, but I'm not yet familiar enough with the code to understand the failure message.

@jetstack-bot jetstack-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 22, 2018
@munnerz
Copy link
Member Author

munnerz commented Feb 22, 2018

@wallrj Helm automatically creates the namespace before deploying. For the static manifests, a user will need to run kubectl create namespace cert-manager first.

@munnerz
Copy link
Member Author

munnerz commented Feb 22, 2018

Regarding the test - yep that's a flake that can happen when lots of VMs are starting at once 😢

@munnerz munnerz added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 22, 2018
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@jetstack-ci-bot
Copy link
Contributor

/lgtm cancel //PR changed after LGTM, removing LGTM. @munnerz

@jetstack-ci-bot jetstack-ci-bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 23, 2018
@munnerz
Copy link
Member Author

munnerz commented Feb 23, 2018

/retest

@munnerz munnerz added the lgtm Indicates that a PR is ready to be merged. label Feb 23, 2018
@jetstack-ci-bot
Copy link
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@jetstack-ci-bot
Copy link
Contributor

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

munnerz pushed a commit to munnerz/charts-1 that referenced this pull request Apr 23, 2018
* f117e6e8 Merge branch 'master' into patch-1
* Add Endpoints back into the cert-manager RBAC policy (cert-manager/cert-manager#343)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* Use cert-manager & boulder installed via helm in e2e tests. Run tests with Prow. (cert-manager/cert-manager#216)
munnerz pushed a commit to munnerz/charts-1 that referenced this pull request Apr 23, 2018
* f117e6e8 Merge branch 'master' into patch-1
* Add Endpoints back into the cert-manager RBAC policy (cert-manager/cert-manager#343)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* Use cert-manager & boulder installed via helm in e2e tests. Run tests with Prow. (cert-manager/cert-manager#216)
munnerz pushed a commit to munnerz/charts-1 that referenced this pull request Apr 23, 2018
* f117e6e8 Merge branch 'master' into patch-1
* Add Endpoints back into the cert-manager RBAC policy (cert-manager/cert-manager#343)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* Use cert-manager & boulder installed via helm in e2e tests. Run tests with Prow. (cert-manager/cert-manager#216)
munnerz pushed a commit to munnerz/charts that referenced this pull request Apr 24, 2018
* f117e6e8 Merge branch 'master' into patch-1
* Add Endpoints back into the cert-manager RBAC policy (cert-manager/cert-manager#343)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* Use cert-manager & boulder installed via helm in e2e tests. Run tests with Prow. (cert-manager/cert-manager#216)
munnerz added a commit to munnerz/charts-1 that referenced this pull request Apr 24, 2018
* f117e6e8 Merge branch 'master' into patch-1
* Add Endpoints back into the cert-manager RBAC policy (cert-manager/cert-manager#343)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* Use cert-manager & boulder installed via helm in e2e tests. Run tests with Prow. (cert-manager/cert-manager#216)
munnerz added a commit to munnerz/charts-1 that referenced this pull request May 24, 2018
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575)
* add pod labels (cert-manager/cert-manager#563)
* Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548)
* Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547)
* Fix ingress-shim cli flags (cert-manager/cert-manager#526)
* Create chart OWNERS (cert-manager/cert-manager#528)
* Link ingress-shim into main controller binary (cert-manager/cert-manager#502)
* readthedocs documentation rewrite (cert-manager/cert-manager#428)
* add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440)
* Add podAnnotations (cert-manager/cert-manager#387)
* Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382)
* Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
k8s-ci-robot pushed a commit to helm/charts that referenced this pull request May 24, 2018
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575)
* add pod labels (cert-manager/cert-manager#563)
* Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548)
* Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547)
* Fix ingress-shim cli flags (cert-manager/cert-manager#526)
* Create chart OWNERS (cert-manager/cert-manager#528)
* Link ingress-shim into main controller binary (cert-manager/cert-manager#502)
* readthedocs documentation rewrite (cert-manager/cert-manager#428)
* add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440)
* Add podAnnotations (cert-manager/cert-manager#387)
* Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382)
* Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
cesaralbloz pushed a commit to cesaralbloz/charts that referenced this pull request May 25, 2018
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575)
* add pod labels (cert-manager/cert-manager#563)
* Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548)
* Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547)
* Fix ingress-shim cli flags (cert-manager/cert-manager#526)
* Create chart OWNERS (cert-manager/cert-manager#528)
* Link ingress-shim into main controller binary (cert-manager/cert-manager#502)
* readthedocs documentation rewrite (cert-manager/cert-manager#428)
* add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440)
* Add podAnnotations (cert-manager/cert-manager#387)
* Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382)
* Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
or1can pushed a commit to or1can/charts that referenced this pull request Jul 10, 2018
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575)
* add pod labels (cert-manager/cert-manager#563)
* Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548)
* Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547)
* Fix ingress-shim cli flags (cert-manager/cert-manager#526)
* Create chart OWNERS (cert-manager/cert-manager#528)
* Link ingress-shim into main controller binary (cert-manager/cert-manager#502)
* readthedocs documentation rewrite (cert-manager/cert-manager#428)
* add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440)
* Add podAnnotations (cert-manager/cert-manager#387)
* Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382)
* Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575)
* add pod labels (cert-manager/cert-manager#563)
* Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548)
* Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547)
* Fix ingress-shim cli flags (cert-manager/cert-manager#526)
* Create chart OWNERS (cert-manager/cert-manager#528)
* Link ingress-shim into main controller binary (cert-manager/cert-manager#502)
* readthedocs documentation rewrite (cert-manager/cert-manager#428)
* add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440)
* Add podAnnotations (cert-manager/cert-manager#387)
* Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382)
* Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350)
* Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329)
* Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340)
* Add default shortNames to certificates CRD (cert-manager/cert-manager#312)
* fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)

Signed-off-by: voron <av@arilot.com>
@munnerz munnerz deleted the default-cluster-namespace branch January 29, 2019 23:38
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. lgtm Indicates that a PR is ready to be merged. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default ClusterIssuer namespace for storing resources should be current namespace
5 participants