Skip to content

Update the 'fullname' template to match helm 2.8.2 - #572

Merged
jetstack-bot merged 2 commits into
cert-manager:masterfrom
whereisaaron:patch-1
Jun 16, 2018
Merged

jetstack-bot merged 2 commits into
cert-manager:masterfrom
whereisaaron:patch-1

Conversation

@whereisaaron

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The newer 'fullname' helper function automatically avoids name duplication. This change updates the template in cert-manager to include that functionality.

Given there is generally only one cert-manager per cluster, if you install cert-manager and call it cert-manager:

helm upgrade --install cert-manager stable/cert-manager

You get deployments and pods called cert-manager-cert-manager

With the update version (taken from the helm create template for helm 2.8.2) you instead get deployments and pods called simply cert-manager.

There is a workaround possible at the moment, but the automatic behavior is more intuitive for new users.

helm upgrade --install cert-manager stable/cert-manager --set=fullnameOverride=cert-manager

Special notes for your reviewer:

This was originally included in #232, but was not merged in favor of #229. However #229 still used the out of date version.

@jetstack-bot

Copy link
Copy Markdown
Contributor

@whereisaaron: Adding do-not-merge/release-note-label-needed because the release note process has not been followed.

Details

One of the following labels is required "release-note", "release-note-action-required", or "release-note-none".
Please see: https://git.k8s.io/community/contributors/devel/pull-requests.md#write-release-notes-if-needed.

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 do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 22, 2018
@jetstack-bot
jetstack-bot requested a review from munnerz May 22, 2018 14:43
@munnerz

munnerz commented May 24, 2018

Copy link
Copy Markdown
Member

Seems pretty intuitive to me - is this a new standard in Helm then?

/ok-to-test

@jetstack-bot jetstack-bot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 24, 2018
@munnerz

munnerz commented May 24, 2018

Copy link
Copy Markdown
Member

Also, how will this effect users with existing deployments?

@jetstack-bot jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 24, 2018
@munnerz

munnerz commented Jun 5, 2018

Copy link
Copy Markdown
Member

/cc @unguiculus is this something that other charts have accepted? How does helm deal with upgrades? Does it lose track of the older resources? 😬

@whereisaaron

whereisaaron commented Jun 5, 2018 •

Copy link
Copy Markdown
Contributor Author

No it doesn't lose track of previous items, an upgrade will replace the old named items with the new. So only an issue for stateful items, like a PVC.

The code comes directly from the starter chart helm creates when you run helm create cert-manager (2.8.2).

@munnerz

munnerz commented Jun 5, 2018

Copy link
Copy Markdown
Member

Sounds good to me.

If you could bump the chart version one last time, I'll apply the appropriate labels 😄

@whereisaaron

Copy link
Copy Markdown
Contributor Author

Bumped chart version and updated chart appVersion

@munnerz

munnerz commented Jun 5, 2018

Copy link
Copy Markdown
Member

Looks like you also need to rebase on master to resolve git issues 😄

/release-note-none

@jetstack-bot jetstack-bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 5, 2018
The newer 'fullname' helper function automatically avoids name duplication. This change updates the function in cert-manager to include that functionality.

Given there is generally only one cert-manager per cluster, if you install cert-manager and call it `cert-manager`:
```
helm upgrade --install cert-manager stable/cert-manager
```
You get deployments and pods called `cert-manager-cert-manager...` 

With the update  version (taken from the `helm create` template for helm 2.8.2` you instead get deployments and pods called `cert-manager`.

There is a workaround possible at the moment, but the automatic behavior is more intuitive for new users.
```
helm upgrade --install cert-manager stable/cert-manager --set=fullnameOverride=cert-manager
```
@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 Jun 6, 2018
@whereisaaron

Copy link
Copy Markdown
Contributor Author

@munnerz over to you

@munnerz

munnerz commented Jun 16, 2018

Copy link
Copy Markdown
Member

/lgtm
/approve

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 16, 2018
@jetstack-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: munnerz

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

The pull request process is described here

Details 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

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 16, 2018
@jetstack-bot
jetstack-bot merged commit e3bb002 into cert-manager:master Jun 16, 2018
munnerz added a commit to munnerz/charts-1 that referenced this pull request Jul 12, 2018
* Allow setting http_proxy and https_proxy in cert-manager deployment (cert-manager/cert-manager#680)
* charts/cert-manager: add extraEnv (cert-manager/cert-manager#556)
* Use development chart version on master branch (cert-manager/cert-manager#660)
* Update the 'fullname' template to match helm 2.8.2 (cert-manager/cert-manager#572)
* Support for custom dns settings (cert-manager/cert-manager#522)
k8s-ci-robot pushed a commit to helm/charts that referenced this pull request Jul 13, 2018
* Allow setting http_proxy and https_proxy in cert-manager deployment (cert-manager/cert-manager#680)
* charts/cert-manager: add extraEnv (cert-manager/cert-manager#556)
* Use development chart version on master branch (cert-manager/cert-manager#660)
* Update the 'fullname' template to match helm 2.8.2 (cert-manager/cert-manager#572)
* Support for custom dns settings (cert-manager/cert-manager#522)
Jnig pushed a commit to Jnig/charts that referenced this pull request Nov 13, 2018
* Allow setting http_proxy and https_proxy in cert-manager deployment (cert-manager/cert-manager#680)
* charts/cert-manager: add extraEnv (cert-manager/cert-manager#556)
* Use development chart version on master branch (cert-manager/cert-manager#660)
* Update the 'fullname' template to match helm 2.8.2 (cert-manager/cert-manager#572)
* Support for custom dns settings (cert-manager/cert-manager#522)

Signed-off-by: Jakob Niggel <[email protected]>
gsemet pushed a commit to gsemet/charts that referenced this pull request Nov 13, 2018
* Allow setting http_proxy and https_proxy in cert-manager deployment (cert-manager/cert-manager#680)
* charts/cert-manager: add extraEnv (cert-manager/cert-manager#556)
* Use development chart version on master branch (cert-manager/cert-manager#660)
* Update the 'fullname' template to match helm 2.8.2 (cert-manager/cert-manager#572)
* Support for custom dns settings (cert-manager/cert-manager#522)
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-none Denotes a PR that doesn't merit a release note. 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.

3 participants