Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Annotations and checksum - #5067

Merged
k8s-ci-robot merged 3 commits into
helm:masterfrom
dpetersen:annotations-and-checksum
Apr 16, 2018
Merged

k8s-ci-robot merged 3 commits into
helm:masterfrom
dpetersen:annotations-and-checksum

Conversation

@dpetersen

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR allows the user to include custom annotations to the created Kubernetes service. This is a common method of Kubernetes service discovery and is what the stable Prometheus chart wants. Allowing an override of that value is vital to make this chart usable in my Prometheus installation, and I think many others.

This also adds a ConfigMap checksum to the Deployment so that changes to only the the config will cause the pods to restart. This is a technique I saw in a HelmConf video and is in the Char tips and tricks docs. I find this convenient because most of my changes after initial install are to the configuration only, but I'm less attached to this change. I'm new to Helm, so if there's a reason to not make that change, I'm OK with leaving it out.

Special notes for your reviewer:
@gianrubio thanks for your work on this chart!

Service annotations are a common way to allow metric discovery in
Prometheus, including the stable Prometheus chart, so it makes sense to
allow a user of this chart to override those values.
Once a cloudwatch exporter is set up, most of the tweaking you'll be
doing will be to the configuration. This technique is described in the
Helm Chart Tips & Tricks documentation:

https://github.com/kubernetes/helm/blob/master/docs/charts_tips_and_tricks.md#automatically-roll-deployments-when-configmaps-or-secrets-change
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 16, 2018
@k8s-ci-robot
k8s-ci-robot requested a review from gianrubio April 16, 2018 20:55
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 16, 2018
@dpetersen

Copy link
Copy Markdown
Contributor Author

I also bumped the chart version to appease CI.

@gianrubio

Copy link
Copy Markdown
Collaborator

/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 16, 2018
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dpetersen, gianrubio

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2018
@k8s-ci-robot
k8s-ci-robot merged commit 178d167 into helm:master Apr 16, 2018
@gianrubio

Copy link
Copy Markdown
Collaborator

thanks @dpetersen

@dpetersen

Copy link
Copy Markdown
Contributor Author

Thanks for merging!

@dpetersen
dpetersen deleted the annotations-and-checksum branch April 16, 2018 21:22
goruha added a commit to goruha/charts that referenced this pull request Apr 19, 2018
…into rabbitmq-workload-api-fix

* 'rabbitmq-workload-api-fix' of github.com:goruha/charts: (75 commits)
  [stable/odoo] Add carrodher as owner (helm#4856)
  [stable/jasperreports] Release 1.0.3 (helm#5107)
  Add doc about redis data only persistence (helm#4965)
  [sentry] add nodeSelector, affinity & tolerations (helm#4264)
  [stable/sonarqube] Adding support for Service annotations (helm#4060)
  [incubator/schema-registry] Updating GroupID, and moving to using kafka coordinator master election (helm#5019)
  quote boolean S3 environment variables (helm#5066)
  Fix graceful shutdown of brokers, more settings, version bump (helm#5082)
  apiVersion shouldn't be hardcoded (helm#5060)
  [stable/phabricator] Release 1.0.4 (helm#5068)
  [stable/testlink] Release 1.0.5 (helm#5050)
  [stable/redis] fixed a typo into NOTES (helm#5070)
  [etcd-operator] readiness/liveness checks for operator (helm#4609)
  Annotations and checksum (helm#5067)
  Add OWNERS file to schema-registry (helm#5054)
  [stable/mongodb-replicaset] Use security context on pod level (helm#5055)
  Typo fix in sonarqube/README.md (helm#5045)
  Typo fix in sonatype-nexus/README.md (helm#5042)
  [sonarqube] nodeSelector, affinity & tolerations. also separate resoruces for plugin pod (helm#4265)
  [stable/sonarqube] upgrade to LTS version (6.7.3) (helm#5029)
  ...
ichtar pushed a commit to Bestmile/charts that referenced this pull request May 15, 2018
* Allow overriding service annotations.

Service annotations are a common way to allow metric discovery in
Prometheus, including the stable Prometheus chart, so it makes sense to
allow a user of this chart to override those values.

* Invalidate deployment on ConfigMap change.

Once a cloudwatch exporter is set up, most of the tweaking you'll be
doing will be to the configuration. This technique is described in the
Helm Chart Tips & Tricks documentation:

https://github.com/kubernetes/helm/blob/master/docs/charts_tips_and_tricks.md#automatically-roll-deployments-when-configmaps-or-secrets-change

* Raise chart version.
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
* Allow overriding service annotations.

Service annotations are a common way to allow metric discovery in
Prometheus, including the stable Prometheus chart, so it makes sense to
allow a user of this chart to override those values.

* Invalidate deployment on ConfigMap change.

Once a cloudwatch exporter is set up, most of the tweaking you'll be
doing will be to the configuration. This technique is described in the
Helm Chart Tips & Tricks documentation:

https://github.com/kubernetes/helm/blob/master/docs/charts_tips_and_tricks.md#automatically-roll-deployments-when-configmaps-or-secrets-change

* Raise chart version.

Signed-off-by: voron <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants