Skip to content

Conversation

@jerop
Copy link
Member

@jerop jerop commented Apr 9, 2020

The config maps used by Tekton Pipeline should be able to take custom
names to avoid collisions with other services.

However, the feature-flags config map wasn't customizable because its
name hardcoded its usages.

By defining an env var in controller.yaml, from which the feature-flags
config map name can be derived, we enable it to be customizable.

Fixes #1805.

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

feature-flags config map name can be specified by the user

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@tekton-robot tekton-robot requested review from dlorenc and imjasonh April 9, 2020 21:24
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 9, 2020
@tekton-robot
Copy link
Collaborator

Hi @jerop. Thanks for your PR.

I'm waiting for a tektoncd 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.

@jerop
Copy link
Member Author

jerop commented Apr 9, 2020

/assign @dibyom

The config maps used by Tekton Pipeline should be able to take custom
names to avoid collisions with other services.

However, the feature-flags config map wasn't customizable because its
name hardcoded its usages.

By defining an env var in controller.yaml, from which the feature-flags
config map name can be derived, we enable it to be customizable.

Fixes #1805.
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit and removed cla: no labels Apr 9, 2020
@vdemeester
Copy link
Member

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe 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 10, 2020
@ghost
Copy link

ghost commented Apr 10, 2020

/approve

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 10, 2020
@ghost
Copy link

ghost commented Apr 10, 2020

I've seen the TestHelmDeployPipelineRun integration test error out across a couple of PRs but then it sometimes seems to work. Trying a rerun.

/test pull-tekton-pipeline-integration-tests

@eddycharly
Copy link
Member

@sbwsg what is this test doing ?
Are there some helm charts already available somewhere ?

@ghost
Copy link

ghost commented Apr 10, 2020

I've created #2367 for investigating the helm integration test issue further.

Copy link
Member

@dibyom dibyom left a comment

Choose a reason for hiding this comment

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

/lgtm

Thank you! I think in a follow-up PR we can move the FeatureFlags related functionality to its own package (related: #2117)

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 10, 2020
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dibyom, sbwsg

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

@tekton-robot tekton-robot merged commit e153c6f into tektoncd:master Apr 10, 2020
@bobcatfish
Copy link
Collaborator

Hey @jerop could we add some docs for this as well? Normally we try to include docs for new features we add in the same PR, in this case maybe https://github.com/tektoncd/pipeline/blob/master/docs/install.md

@bobcatfish
Copy link
Collaborator

ps. some more info (very brief tho) about docs in every PR: https://github.com/tektoncd/community/blob/master/standards.md#principles

@jerop
Copy link
Member Author

jerop commented Apr 10, 2020

@bobcatfish sure! i'll add docs

tekton-robot pushed a commit that referenced this pull request Apr 14, 2020
Add docs on how users can customize names for configmaps used for artifact persistence.

The relevant changes were implemented in #1723 and #2363.
@jerop jerop deleted the config branch April 14, 2020 15:10
@afrittoli afrittoli added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config map names should be customizable, or at least prefixable

8 participants