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

stable/concourse: separate worker, web deployments #12920

Merged
merged 7 commits into from
Apr 25, 2019
Merged

stable/concourse: separate worker, web deployments #12920

merged 7 commits into from
Apr 25, 2019

Conversation

YoussB
Copy link
Collaborator

@YoussB YoussB commented Apr 8, 2019

What this PR does / why we need it:

  • Added .Values.Web.enabled and .Values.worker.enabled (with default to
    true).
  • if only .Values.web.enabled is enabled: only web resources are going to
    be created, as well as secrets namespace.
  • if only .Values.worker.enabled is enabled: only worker resources are going to
    be created.
  • moved the worker-specific and web-specific secrets each to a separate
    file and secrets object.
  • added .Values.concourse.worker.tsa.port and utilised
    .Values.concourse.worker.host in order to allow the user to set the
    CONCOURSE_TSA_HOST easily.
  • removed the template concourse.concourse.fullname as it is not used
    anymore.
  • bumped the chart version to 6.0.0, as this adds new ways to use the
    chart.
  • added the new variables to the README doc.

Which issue this PR fixes

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

cc: @taylorsilva

@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 8, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @YoussB. Thanks for your PR.

I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 8, 2019
@cirocosta
Copy link
Collaborator

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 8, 2019
@cirocosta
Copy link
Collaborator

/assign cirocosta

@taylorsilva
Copy link
Contributor

Looks like we forgot to push up the chart version bump. Just need to do that and then this will be good to test.

@YoussB
Copy link
Collaborator Author

YoussB commented Apr 9, 2019

@taylorsilva pushed that!

@cirocosta
Copy link
Collaborator

Hey,

Some thoughts that @YoussB and I were talking about when pairing on reviewing the PR:

  • we could make required that either one or both of {web|worker}.enabled is set to true,
  • given that the chart now internally creates and uses two secrets (one for the workers, another for the web components), there is a breaking change for consumers of the chart who are bringing their own secrets (which is what we recommend)
  • add a required to concourse.worker.tsa.host to ensure that when web is not enabled, we fail there
  • PostgreSQL dependency could have a check for web.enabled

Also, as follow-ups:

Thanks!

@YoussB
Copy link
Collaborator Author

YoussB commented Apr 12, 2019

Updates:

  • we could make required that either one or both of {web|worker}.enabled is set to true. added a hacky way to check if either of the worker or web are enabled.
  • given that the chart now internally creates and uses two secrets (one for the workers, another for the web components), there is a breaking change for consumers of the chart who are bringing their own secrets (which is what we recommend)
  • add a required to concourse.worker.tsa.host to ensure that when web is not enabled, we fail there
  • PostgreSQL dependency could have a check for web.enabled not possible! All options wether tags or condition have no and option only able to add postgress based on one value being added. Will go with the enabled disabled option

Also, as follow-ups:

@YoussB
Copy link
Collaborator Author

YoussB commented Apr 12, 2019

@cirocosta ready for testing 😁

@cirocosta
Copy link
Collaborator

/retest

Copy link
Collaborator

@cirocosta cirocosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey,

I've made quite a few suggestions in terms of phrasing, feel free to not accept them right away 😁 I tried making them a bit more coherent to the rest of the comments & docs, let me know what you think!

The overall functionality seems good to me 👍 Thanks for adding the breaking changes too!

stable/concourse/CHANGELOG.md Outdated Show resolved Hide resolved
stable/concourse/CHANGELOG.md Outdated Show resolved Hide resolved
stable/concourse/README.md Outdated Show resolved Hide resolved
stable/concourse/README.md Outdated Show resolved Hide resolved
stable/concourse/README.md Outdated Show resolved Hide resolved
stable/concourse/README.md Outdated Show resolved Hide resolved
stable/concourse/values.yaml Outdated Show resolved Hide resolved
stable/concourse/values.yaml Outdated Show resolved Hide resolved
stable/concourse/values.yaml Outdated Show resolved Hide resolved
@@ -1312,6 +1321,12 @@ web:
## Concourse Workers, see https://concourse-ci.org/concourse-worker.html
##
worker:

## enable/disable worker component
## This can allow users to create web only releases by setting this to false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## This can allow users to create web only releases by setting this to false
## This allows the creation of web-only releases by setting this to false.

@YoussB
Copy link
Collaborator Author

YoussB commented Apr 22, 2019

@cirocosta updated!

taylorsilva and others added 7 commits April 25, 2019 16:18
- Added .Values.Web.enabled and .Values.worker.enabled (with default to
true).
- if only .Values.web.enable is enabled: only web resources are going to
be created, as well as secrets namespace.
- if only .Values.worker.enable is enabled: only worker resources are going to
be created.
- moved the worker specific and web specific secrets each to a seprate
file and secrets object.
- added .Values.concourse.worker.tsa.port and utilised
.Values.concourse.worker.host in order to alow the user to set the
`CONCOURSE_TSA_HOST` easily.
- removed the template `concourse.concourse.fullname` as it is not used
anymore.
- bumped the chart version to 6.0.0, as this adds new ways to use the
chart.
- added the new variables to the README doc.

for the issue: #11280

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
…ents

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
Copy link
Collaborator

@cirocosta cirocosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@cirocosta
Copy link
Collaborator

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 25, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cirocosta, YoussB

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 /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 25, 2019
@k8s-ci-robot k8s-ci-robot merged commit 8e93db6 into helm:master Apr 25, 2019
@cirocosta cirocosta deleted the 11280-worker-only-deployments branch April 25, 2019 20:32
dermorz pushed a commit to dermorz/charts that referenced this pull request Apr 26, 2019
* stable/concourse: separate worker, web deployments

- Added .Values.Web.enabled and .Values.worker.enabled (with default to
true).
- if only .Values.web.enable is enabled: only web resources are going to
be created, as well as secrets namespace.
- if only .Values.worker.enable is enabled: only worker resources are going to
be created.
- moved the worker specific and web specific secrets each to a seprate
file and secrets object.
- added .Values.concourse.worker.tsa.port and utilised
.Values.concourse.worker.host in order to alow the user to set the
`CONCOURSE_TSA_HOST` easily.
- removed the template `concourse.concourse.fullname` as it is not used
anymore.
- bumped the chart version to 6.0.0, as this adds new ways to use the
chart.
- added the new variables to the README doc.

for the issue: helm#11280

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>

* [stable/concourse] bumping chart version and updating the Readme

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds a required check yaml for having either the web or worker enabled

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds required for concourse.worker.tsa in case of worker only deployments

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* updates readme

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* adds changelog file

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Apply suggestions from code review

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
legal90 added a commit to volvo-cars/helm-charts that referenced this pull request Apr 27, 2019
* spinnaker-additional-configmaps: (158 commits)
  [stable/spinnaker] Bump chart version
  [stable/spinnaker] Allow to use existing additionalConfigMaps objects
  [stable/instana-agent] Add instana-agent chart to stable (helm#12799)
  [stable/spring-cloud-data-flow] apiGroup extension does not have permissions over Jobs (helm#12174)
  Fluentd - Add option to add environment variables from secrets (helm#12565)
  Fluentd - Allow ingress path to be configurable (helm#12561)
  [stable/openebs]: update NDM image tag to 0.3.5 (helm#13282)
  stable/phabricator: update to 2019.16.0 (helm#13307)
  [stable/jenkins] Add support for idleMinutes and serviceAccount (helm#13263)
  [stable/gocd] Bump up k8 elastic agent to latest and bump up GoCD to v19.3.0 (helm#13301)
  [stable/atlantis] Add `--default-tf-version=` and `--allow-fork-prs` flag (helm#13299)
  stackdriver-exporter: allow google service account (helm#13214)
  SC-4435 Do not start the container if particular token is not provided (helm#13304)
  [stable/spring-cloud-data-flow] Update to new SCDF version 2.0.2 (helm#12951)
  allow to set COCKROACH_ENGINE_MAX_SYNC_DURATION (helm#13244)
  Use same JENKINS_URL no matter if slaves use different namespace (helm#12564)
  stable/concourse: separate worker, web deployments (helm#12920)
  [ci] Upgrade to chart-testing v2.3.3 (helm#13294)
  fixes incompatibility with 1.11 (helm#13261)
  Detect current network and netmask (helm#13250)
  ...

# Conflicts:
#	stable/spinnaker/Chart.yaml
dpkirchner pushed a commit to dpkirchner/charts that referenced this pull request May 9, 2019
* stable/concourse: separate worker, web deployments

- Added .Values.Web.enabled and .Values.worker.enabled (with default to
true).
- if only .Values.web.enable is enabled: only web resources are going to
be created, as well as secrets namespace.
- if only .Values.worker.enable is enabled: only worker resources are going to
be created.
- moved the worker specific and web specific secrets each to a seprate
file and secrets object.
- added .Values.concourse.worker.tsa.port and utilised
.Values.concourse.worker.host in order to alow the user to set the
`CONCOURSE_TSA_HOST` easily.
- removed the template `concourse.concourse.fullname` as it is not used
anymore.
- bumped the chart version to 6.0.0, as this adds new ways to use the
chart.
- added the new variables to the README doc.

for the issue: helm#11280

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>

* [stable/concourse] bumping chart version and updating the Readme

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds a required check yaml for having either the web or worker enabled

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds required for concourse.worker.tsa in case of worker only deployments

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* updates readme

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* adds changelog file

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Apply suggestions from code review

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
goshlanguage pushed a commit to goshlanguage/charts that referenced this pull request May 17, 2019
* stable/concourse: separate worker, web deployments

- Added .Values.Web.enabled and .Values.worker.enabled (with default to
true).
- if only .Values.web.enable is enabled: only web resources are going to
be created, as well as secrets namespace.
- if only .Values.worker.enable is enabled: only worker resources are going to
be created.
- moved the worker specific and web specific secrets each to a seprate
file and secrets object.
- added .Values.concourse.worker.tsa.port and utilised
.Values.concourse.worker.host in order to alow the user to set the
`CONCOURSE_TSA_HOST` easily.
- removed the template `concourse.concourse.fullname` as it is not used
anymore.
- bumped the chart version to 6.0.0, as this adds new ways to use the
chart.
- added the new variables to the README doc.

for the issue: helm#11280

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>

* [stable/concourse] bumping chart version and updating the Readme

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds a required check yaml for having either the web or worker enabled

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds required for concourse.worker.tsa in case of worker only deployments

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* updates readme

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* adds changelog file

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Apply suggestions from code review

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
eyenx pushed a commit to eyenx/charts that referenced this pull request May 28, 2019
* stable/concourse: separate worker, web deployments

- Added .Values.Web.enabled and .Values.worker.enabled (with default to
true).
- if only .Values.web.enable is enabled: only web resources are going to
be created, as well as secrets namespace.
- if only .Values.worker.enable is enabled: only worker resources are going to
be created.
- moved the worker specific and web specific secrets each to a seprate
file and secrets object.
- added .Values.concourse.worker.tsa.port and utilised
.Values.concourse.worker.host in order to alow the user to set the
`CONCOURSE_TSA_HOST` easily.
- removed the template `concourse.concourse.fullname` as it is not used
anymore.
- bumped the chart version to 6.0.0, as this adds new ways to use the
chart.
- added the new variables to the README doc.

for the issue: helm#11280

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>

* [stable/concourse] bumping chart version and updating the Readme

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds a required check yaml for having either the web or worker enabled

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds required for concourse.worker.tsa in case of worker only deployments

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* updates readme

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* adds changelog file

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Apply suggestions from code review

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
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. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. ok-to-test size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[stable/concourse] Creation of worker-only releases
6 participants