Repository navigation
Use development chart version on master branch - #660
Conversation
kragniz
left a comment
There was a problem hiding this comment.
looks sensible, maybe we should add a small script to bump all these tags for new branches
/lgtm
wallrj
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
❓ 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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
❓ Isn't there a macro we can use here (and below)? Like {{ .Chart.Version }} or something?
There was a problem hiding this comment.
Does helm update the labels on the resources when you perform a helm upgrade ?
There was a problem hiding this comment.
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` | |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 😄
9bab165 to
65443bd
Compare
|
New changes are detected. LGTM label has been removed. |
|
[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 DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
* 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)
* 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)
* 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]>
* 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)
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: