-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Use consistent whitespace in template placeholders #1437
Conversation
Hi @fhemberger. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. 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. I understand the commands that are listed here. |
Thanks a lot. This is very much appreciated. But I'm afraid most of this, if not all, has already been done in #1062 which has just been merged today. |
@unguiculus Hmm, the issue you mentioned is about Elasticsearch. 🤔 |
Ouch, sorry. I guess I got confused by the merge conflicts. Here's an open PR for Artifactory which should get merged soon: #1314. |
@unguiculus I updated the PR to resolve the merge conflicts. My PR doesn't just cover Artifactory, it fixes the template placeholder whitespace in all charts. |
Wow, I guess I did not look far enough. Did you use some script for this? Usually we want separate PRs per chart. Do you think you can split this up? @kubernetes/charts-maintainers How should we go about this? I think this is great. |
Just a simple Regex search & replace in Sublime Text:
Splitting it up would have ended up in 38 separate PRs just adding whitespace, so I left it in one single PR instead. 😉 https://github.com/kubernetes/charts/pull/1437/files?w=1 shows that it's really only whitespace that has changed. |
Maybe we can take this as a whole. Discussing it on Slack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just found one place where the replace should not happen.
@@ -129,7 +129,7 @@ spec: | |||
fi | |||
|
|||
# etcd-SET_ID | |||
SET_ID=${HOSTNAME:5:${#HOSTNAME}} | |||
SET_ID=${HOSTNAME:5:${#HOSTNAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is shell not Go templating. We probably don't want to change that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
/test pull-charts-e2e |
Rebased master, fixed tensorflow helper. /retest |
@fhemberger: you can't request testing unless you are a kubernetes member. In response to this:
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. |
/retest |
@fhemberger: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@unguiculus Sorry, not sure what's wrong with the Jenkins built, I don't think it's actually related to my changes. |
Yeah, there seems to be some test flakiness. We are going to merge this as a whole. Anything else does not make sense. |
Would you mind covering |
Sure, I can do that as well, but I'd prefer a separate PR to minimize impact. |
Also make sure paramater order is always `kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} --template "…"`
@unguiculus Fixing NOTES.txt wasn't so bad, so I added it here. Also fixed parameter order on three occasions, so the command is always identical. Should I also adjust |
I'm going to merge this as is. You may create a separate PR as follow-up. I'd prefer SERVICE_IP as well. |
Awesome, thanks! |
Hi, this commit breaks (at least) the grafana chart. It fails a lint with the default values.
|
As a follow up, would it be worth having CI lint each of the charts in branches before merging? |
* upstream/master: (67 commits) Fix json whitespace (helm#1458) Use consistent whitespace in template placeholders (helm#1437) [stable/selenium] Make hub readiness probe timeout configurable (helm#1391) [stable/kube2iam]: add rbac support (helm#1286) [stable/traefik] Allow enabling traefik access logs (helm#1302) Add Stash chart (helm#1420) Add Gearman G2 chart (helm#1421) add option to include tolerations to daemonset (helm#1364) Moved Artifactory to stable and updated version to 5.3.2 (helm#1314) Concourse postgres conditional dependency (helm#1390) Typo in helm install command for dask-distributed (helm#1413) [stable/fluent-bit] Fluent Bit v0.11.12 (helm#1417) fixed cassandra chart's persistence bug (helm#1245) Prometheus: modify config to support k8s 1.6 by default (helm#1080) Add rocket.chat (helm#752) Fix influxdb deployment (helm#1424) feat(stable/etcd-operator): add support for supplying additional command args (helm#1418) add configurable service annotations helm#1234 (helm#1244) [stable/prometheus] extra environment variable for alert manager (helm#1237) [stable/heapster] Default service name to Heapster (helm#1266) ...
Use consistent whitespace in template placeholders
Use consistent whitespace in template placeholders
Sorry, I know this a trivial PR, but it would be nice to have consistent use of whitespace inside all charts. 😉