-
Notifications
You must be signed in to change notification settings - Fork 16.9k
[stable/concourse] Make values.yaml more consistent #11296
Conversation
f3b5244
to
8da1896
Compare
2b46e16
to
6eac2d5
Compare
As a result, now the templates from this Chart are all "kubeval"-ready:
|
@@ -1,8 +0,0 @@ | |||
web: |
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.
damn, this one was me being stupid and using git add --all .
. Lesson learned 👍
Hey, As a result of this huge PR, we now have:
If you're curious, running cc @xulsitatirev @william-tran Would you mind taking a look too @ralekseenkov ? Thx! |
I would split it into two separate pull requests.
|
looks reasonable from the first glance. as long as there are no unexpected side effects related to uncommenting a bunch of values... |
Oh yeah, I totally agree with you @xulsitatirev 👍 This one is just about making @ralekseenkov true! Thanks! |
Assuming empty values fail the condition |
Yeah, that's a good point, I'll give it another check at the values that I got uncommented here in this PR to make sure the diff between what gets set right now and after this PR doesn't change much. Thx! |
oh yeah, the changes here indeed introduce a bunch of extra env vars that we don't really need: webdiff --git a/tmp/before b/tmp/after
index dbfde672..12eb94b3 100644
--- a/tmp/before
+++ b/tmp/after
@@ -1,5 +1,14 @@
CONCOURSE_ADD_LOCAL_USER
+CONCOURSE_AUTH_DURATION
+CONCOURSE_BAGGAGECLAIM_RESPONSE_HEADER_TIMEOUT
+CONCOURSE_BIND_IP
CONCOURSE_BIND_PORT
+CONCOURSE_BUILD_TRACKER_INTERVAL
+CONCOURSE_CONTAINER_PLACEMENT_STRATEGY
+CONCOURSE_DEBUG_BIND_IP
+CONCOURSE_DEBUG_BIND_PORT
+CONCOURSE_GLOBAL_RESOURCE_CHECK_TIMEOUT
+CONCOURSE_INTERCEPT_IDLE_TIMEOUT
CONCOURSE_KUBERNETES_IN_CLUSTER
CONCOURSE_KUBERNETES_NAMESPACE_PREFIX
CONCOURSE_MAIN_TEAM_LOCAL_USER
@@ -8,8 +17,14 @@ CONCOURSE_POSTGRES_DATABASE
CONCOURSE_POSTGRES_HOST
CONCOURSE_POSTGRES_PASSWORD
CONCOURSE_POSTGRES_USER
+CONCOURSE_RESOURCE_CHECKING_INTERVAL
+CONCOURSE_RESOURCE_TYPE_CHECKING_INTERVAL
CONCOURSE_SESSION_SIGNING_KEY
CONCOURSE_TSA_AUTHORIZED_KEYS
+CONCOURSE_TSA_BIND_DEBUG_PORT
+CONCOURSE_TSA_BIND_IP
CONCOURSE_TSA_BIND_PORT
+CONCOURSE_TSA_HEARTBEAT_INTERVAL
CONCOURSE_TSA_HOST_KEY
+CONCOURSE_TSA_LOG_LEVEL
POD_IP workerdiff --git a/tmp/before b/tmp/after
index f96f5649..3e93f5b5 100644
--- a/tmp/before
+++ b/tmp/after
@@ -1,5 +1,16 @@
+CONCOURSE_BAGGAGECLAIM_BIND_DEBUG_PORT
+CONCOURSE_BAGGAGECLAIM_BIND_IP
+CONCOURSE_BAGGAGECLAIM_BIND_PORT
+CONCOURSE_BAGGAGECLAIM_BTRFS_BIN
CONCOURSE_BAGGAGECLAIM_DRIVER
+CONCOURSE_BAGGAGECLAIM_LOG_LEVEL
+CONCOURSE_BAGGAGECLAIM_MKFS_BIN
+CONCOURSE_BAGGAGECLAIM_REAP_INTERVAL
+CONCOURSE_BIND_DEBUG_PORT
+CONCOURSE_BIND_IP
+CONCOURSE_BIND_PORT
CONCOURSE_GARDEN_BIND_PORT
+CONCOURSE_LOG_LEVEL
CONCOURSE_TSA_HOST
CONCOURSE_TSA_PUBLIC_KEY
CONCOURSE_TSA_WORKER_PRIVATE_KEY I'll follow up with some changes to get that number of env vars back to the original. |
Maybe a helper function could help with that? |
@william-tran What do you think about, Will? |
62d13cb
to
7bdf311
Compare
The `values.yaml` for `stable/concourse` didn't look much consistent, having some values with totally different commenting formats compared to others. This commit also improves the documentation around some of those values that are not very easy to infer what they're all about. By making the values uncommented we can leverage tools that parse yaml files to make sure we have all variables documented. He we also remove an unused debug values file and fix few values check. With the use of default values under `values.yaml` as opposed to commented fields, few values (like default `storageClass`) needed to be updated, as well as adding few checks. Also, Previously we allowed the creation of objects that wouldn't pass `kubeval`'s validation. Now `kubeval` is ok with all of our objects. Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
7bdf311
to
7907100
Compare
Sorry, but In terms of what? I didn't understand 🤔 I just pushed a final squashed commit with all of those default values that got introduced removed so that Now the diff shows .. no differences 😁 |
@cirocosta Approved. |
Thanks for reviewing it @xulsitatirev ! cc @william-tran |
/test all |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cirocosta, paulczar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
helm#11296) The `values.yaml` for `stable/concourse` didn't look much consistent, having some values with totally different commenting formats compared to others. This commit also improves the documentation around some of those values that are not very easy to infer what they're all about. By making the values uncommented we can leverage tools that parse yaml files to make sure we have all variables documented. He we also remove an unused debug values file and fix few values check. With the use of default values under `values.yaml` as opposed to commented fields, few values (like default `storageClass`) needed to be updated, as well as adding few checks. Also, Previously we allowed the creation of objects that wouldn't pass `kubeval`'s validation. Now `kubeval` is ok with all of our objects. Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
helm#11296) The `values.yaml` for `stable/concourse` didn't look much consistent, having some values with totally different commenting formats compared to others. This commit also improves the documentation around some of those values that are not very easy to infer what they're all about. By making the values uncommented we can leverage tools that parse yaml files to make sure we have all variables documented. He we also remove an unused debug values file and fix few values check. With the use of default values under `values.yaml` as opposed to commented fields, few values (like default `storageClass`) needed to be updated, as well as adding few checks. Also, Previously we allowed the creation of objects that wouldn't pass `kubeval`'s validation. Now `kubeval` is ok with all of our objects. Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
helm#11296) The `values.yaml` for `stable/concourse` didn't look much consistent, having some values with totally different commenting formats compared to others. This commit also improves the documentation around some of those values that are not very easy to infer what they're all about. By making the values uncommented we can leverage tools that parse yaml files to make sure we have all variables documented. He we also remove an unused debug values file and fix few values check. With the use of default values under `values.yaml` as opposed to commented fields, few values (like default `storageClass`) needed to be updated, as well as adding few checks. Also, Previously we allowed the creation of objects that wouldn't pass `kubeval`'s validation. Now `kubeval` is ok with all of our objects. Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
What this PR does / why we need it:
Previously, the
values.yaml
forstable/concourse
didn't look much consistent, having some values with totally different commenting formats compared to others, making hard for us to establish a baseline of how those values should be documented and enforce them when reviewing PRs.This commit also improves the documentation around some of those values that are not very easy to infer what they're all about.
Which issue this PR fixes
Special notes for your reviewer:
These changes do not change any behavior, and should not introduce any backward incompatibility - it's all about style and improving the documentation around the values.
However:
garden
properties are unchanged: that's on purpose as in 5.x (to be released very soon), those will all go away in favor of a garden config file (if you don't agree with not applying the changes to them, please let me know!)Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
cc @william-tran