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

Kafka release name check - #5770

Merged
k8s-ci-robot merged 10 commits into
helm:masterfrom
timm088:kafka-release-name-check
Jun 13, 2018
Merged

k8s-ci-robot merged 10 commits into
helm:masterfrom
timm088:kafka-release-name-check

Conversation

@timm088

@timm088 timm088 commented May 25, 2018

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

When releasing these charts, service name will be prefixed with the release name, resulting in name-name. This also impacts DNS resolutions.

Special notes for your reviewer:

From my research, looks like the default chart template was changed (i.e., when running helm create locally), this function was just not added here

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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 25, 2018
@timm088

timm088 commented May 25, 2018

Copy link
Copy Markdown
Contributor Author

/assign @benjigoldberg

@unguiculus

Copy link
Copy Markdown
Member

Why not update to the latest _helpers.tpl you get with helm create using Helm 2.8+?

@timm088

timm088 commented May 25, 2018

Copy link
Copy Markdown
Contributor Author

Valid feedback, was only trying to ensure did not change the behaviour too much of what users may be familiar with (as the older _helpers had much less functionality)

I'll update to latest

@k8s-ci-robot k8s-ci-robot 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 May 25, 2018
@timm088

timm088 commented Jun 2, 2018

Copy link
Copy Markdown
Contributor Author

@unguiculus Have implemented the change as you suggest, thank for picking that up.

@benjigoldberg

Copy link
Copy Markdown
Collaborator

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 2, 2018
@timm088

timm088 commented Jun 2, 2018

Copy link
Copy Markdown
Contributor Author

By upgrading the helm _helpers.tpl to the latest, this has introduced a failure in the tests

The reason the test failed is because kubernetes sets a deprecated envvar for the service by default, that Kafka makes use of at startup see https://github.com/confluentinc/cp-docker-images/blob/master/debian/kafka/include/etc/confluent/docker/configure#L61

There are a few options to deal with this:

  1. we change the default name to kafka-cluster in Chart.yml
  2. the test needs to change to install this chart with a release name e.g., --name kafka-cluster (and we should probably note in NOTES.txt to never name your release kafka
  3. we have to live with the fact this chart will always deploy append -kafka to any name you give the release

Options 1 is the simplest fix, but introduces a breaking change for anyone using this chart (it is still in the incubator track however)

@benjigoldberg thoughts on the options?
Primarily i was looking to fix the "kafka-kafka" issue, but it would appear have entered a bit of a hole

@timm088

timm088 commented Jun 2, 2018

Copy link
Copy Markdown
Contributor Author

Actually, the solution presented here in an open issue on the confluent repo is quite simple confluentinc/cp-docker-images#388.

Have added an additional commit for this

@timm088

timm088 commented Jun 2, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 3, 2018
@timm088

timm088 commented Jun 3, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@timm088

timm088 commented Jun 7, 2018

Copy link
Copy Markdown
Contributor Author

@benjigoldberg anything further or LGTM?

@benjigoldberg

benjigoldberg commented Jun 7, 2018 •

Copy link
Copy Markdown
Collaborator

Thanks for the contribution @timm088!

/lgtm

@k8s-ci-robot k8s-ci-robot 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 Jun 7, 2018
@benjigoldberg

Copy link
Copy Markdown
Collaborator

@timm088 needs another version bump

@k8s-ci-robot k8s-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2018
@timm088

timm088 commented Jun 7, 2018

Copy link
Copy Markdown
Contributor Author

@benjigoldberg Bumped the chart version, thanks.
(Looks like something in CI is brokenERROR: 'Faraaz Khan' is not a valid GitHub account.)

@benjigoldberg

Copy link
Copy Markdown
Collaborator

/retest

@benjigoldberg

Copy link
Copy Markdown
Collaborator

ok @timm088 it took me a bit to figure this out, but its referring to @faraazkhan's email address in this file: https://github.com/kubernetes/charts/blob/master/incubator/kafka/Chart.yaml#L18

I think we need to figure out what his email address is now? Maybe he changed jobs? I've never seen this error before, but its definitely not on you.

@unguiculus are you familiar with this one?

@timm088

timm088 commented Jun 8, 2018

Copy link
Copy Markdown
Contributor Author

Thanks @benjigoldberg ! Happy to help out with maintaining if need be, use this chart a fair bit

@faraazkhan

Copy link
Copy Markdown
Contributor

The email seems correct and is the primary email for this github account. I’ve never seen the error message before, but it seems that its expecting the github username rather than the person’s name? In which case mine would be ‘faraazkhan’

@timm088

timm088 commented Jun 8, 2018

Copy link
Copy Markdown
Contributor Author

So @faraazkhan ... I would change the github username then in the Chart.yml file?

@faraazkhan

Copy link
Copy Markdown
Contributor

Yes, I believe we need to do that for each of the maintainers listed in there.

@timm088

timm088 commented Jun 8, 2018

Copy link
Copy Markdown
Contributor Author

@faraazkhan @benjigoldberg have changed the maintainers to use github usernames and the pipeline is now working again (quite odd)

@timm088

timm088 commented Jun 10, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@unguiculus

Copy link
Copy Markdown
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 13, 2018
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benjigoldberg, timm088, unguiculus

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 merged commit d4be57f into helm:master Jun 13, 2018
jainishshah17 added a commit to jainishshah17/charts that referenced this pull request Jun 14, 2018
* art-ha-static-volumes: (60 commits)
  added support for static pv
  [stable/artifactory] adding support for edge node and replicator (helm#5649)
  [stable/grafana] Set the user and fs group for grafana (helm#5854)
  [stable/stolon] Fix issue with secret deletion during helm upgrade (helm#5903)
  cert-manager: fast-forward to upstream 36289cf0 (helm#5919)
  Split Jenkins readiness and liveness probe periods (helm#5704)
  Kafka release name check (helm#5770)
  Adding JFrog Distribution (helm#5631)
  Correct default zookeeper host to be compatible with zk charts (helm#5824)
  [stable/redis] add RBAC (helm#5971)
  [stable/wordpress] Set dependencies to latest version (helm#6074)
  [stable/rabbitmq] Release 1.1.6 (helm#6095)
  [stable/mariadb] Fix configurable parameters (helm#6092)
  [stable/keycloak] Add option to configure sidecars and misc improvements (helm#6090)
  [stable/kubewatch] - Use maintained bitnami image for kubewatch (helm#5871)
  [stable/ghost] Release 4.0.1 (helm#6085)
  update PROCESSES.md to clarify promotion process (helm#6084)
  [incubator/drone] Move drone from incubator to stable (helm#5780)
  fix for helm#6039 (helm#6042)
  [stable/sonatype-nexus] Update image to 3.12.1 (helm#6076)
  ...
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
* Add default function from chart template to check release name match

* Increment chart version

* Update to latest _helpers.tpl

* Unset deprecated port created by kubernetes

* Revert change to zookeeper.fullname for  KAFKA_ZOOKEEPER_CONNECT var

* Update readme to clarify limitation

* Increment version number

* Bump chart version, not appversion

* Alter maintainers to have github username for CI

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/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants