Skip to content

Use development chart version on master branch - #660

Merged
jetstack-bot merged 1 commit into
cert-manager:masterfrom
munnerz:dev-chart-version
Jun 25, 2018
Merged

jetstack-bot merged 1 commit into
cert-manager:masterfrom
munnerz:dev-chart-version

Conversation

@munnerz

@munnerz munnerz commented Jun 16, 2018

Copy link
Copy Markdown
Member

What this PR does / why we need it:

This updates our Helm chart on the master branch to better reflect which version of the application it supports (canary).

Release branches should begin with a commit that updates this to the appropriate values for the new minor release.

This will mean we'll need to resolve chart version conflicts when cherry picking changes to the chart into release branches, however that is a better reflection of the reality of how our charts are versioned.

Release note:

NONE

@jetstack-bot jetstack-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Jun 16, 2018
@jetstack-bot jetstack-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 16, 2018
@munnerz munnerz mentioned this pull request Jun 16, 2018
@jetstack-bot jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 17, 2018

@kragniz kragniz 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.

looks sensible, maybe we should add a small script to bump all these tags for new branches

/lgtm

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

@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 left a few comments and questions, but this looks good to me.

version: v0.3.2
appVersion: v0.3.0
version: v0.4.0-dev.0
appVersion: v0.4.0-dev.0

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 wonder if there's any way to have this auto-generated from git, if this is being run from a git repo and git is installed. e.g.

$ git describe --long --tags --dirty --always
v0.3.0-59-g28c52d6f

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Perhaps, but for now I'd rather keep things simple. The output of git describe ... can/is used when linking the app (to hardcode the appversion into the binary itself). Perhaps we can explore doing this for the Helm chart too in the future, if there is some need 😄 (I'd rather not over-complicate things as part of this PR if it can be avoided!)

labels:
app: cert-manager
chart: cert-manager-v0.3.2
chart: cert-manager-v0.4.0-dev.0

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.

❓ Isn't there a macro we can use here (and below)? Like {{ .Chart.Version }} or something?

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.

Does helm update the labels on the resources when you perform a helm upgrade ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, and it is used. You are looking at auto-generated manifests here 😄 (for use when not using Helm)

| `image.tag` | Image tag | `v0.3.0` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.tag` | Image tag | `canary` |
| `image.pullPolicy` | Image pull policy | `Always` |

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.

Is it safe to Always pull the canary image?
What if a Pod restarts and downloads a newer version of the canary image than the other pods are running?
Wouldn't it be better to use IfNotPresent?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No - using IfNotPresent might seem to allow you to stick to a single revision, but in reality, as the pod gets scheduled onto different nodes around the cluster, you might find yourself running 5 different versions.

Kubernetes specifically sets pullPolicy to Always if the latest image is being used, so we are doing the same 😄

@munnerz

munnerz commented Jun 25, 2018

Copy link
Copy Markdown
Member Author

Thanks for the reviews @kragniz @wallrj - I'm going to rebase this and apply lgtm labels 😄

@munnerz
munnerz force-pushed the dev-chart-version branch from 9bab165 to 65443bd Compare June 25, 2018 10:05
@jetstack-bot

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

@jetstack-bot jetstack-bot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 25, 2018
@munnerz munnerz added 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. labels Jun 25, 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.

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 merged commit 5ed3a33 into cert-manager:master Jun 25, 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)
@munnerz
munnerz deleted the dev-chart-version 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-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.

4 participants