Skip to content

Set default cluster resource namespace to current pod namespace - #329

Merged
jetstack-ci-bot merged 2 commits into
cert-manager:masterfrom
munnerz:default-cluster-namespace
Feb 23, 2018
Merged

jetstack-ci-bot merged 2 commits into
cert-manager:masterfrom
munnerz:default-cluster-namespace

Conversation

@munnerz

@munnerz munnerz commented Feb 22, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

Details

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

munnerz commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

/retest

@wallrj wallrj left a comment

Copy link
Copy Markdown
Member

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

munnerz commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

@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

munnerz commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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.

Details 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

@munnerz
munnerz force-pushed the default-cluster-namespace branch from 5e9ab61 to 30c2897 Compare February 23, 2018 11:19
@jetstack-ci-bot

Copy link
Copy Markdown
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

munnerz commented Feb 23, 2018

Copy link
Copy Markdown
Member Author

/retest

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

Copy link
Copy Markdown
Contributor

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

@jetstack-ci-bot

Copy link
Copy Markdown
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)
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 <[email protected]>
@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