Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should global resources be enabled by default? #246

Open
iedsapala opened this issue Apr 27, 2021 · 4 comments
Open

should global resources be enabled by default? #246

iedsapala opened this issue Apr 27, 2021 · 4 comments

Comments

@iedsapala
Copy link

I noticed that global resources are enabled by default when using this chart, but are disabled by default when using the "off-the-shelf" concourse binary. Should this feature be enabled by default when using this chart and if so why?

@iedsapala
Copy link
Author

additional: I noticed this flag was introduced in an "enabled" state in commit 26cb45b but the comment doesn't indicate why.

@chenbh
Copy link
Contributor

chenbh commented Apr 27, 2021

It's off by default because it breaks some exotic workflows like EC2 IAM profiles, I'm not sure if it was an intentional decision to enable it for the helm chart. We did notice that the chart had it enabled, but nobody reported any issues regarding it so we kinda just let it be. 🤷

We would like it to be on by default because it gives a decent performance boost to resource checking and at this point the feature itself is stable. But until we have workarounds to unblock the exotic workflows, we have to keep it opt-in, this is better tracked at concourse/concourse#4870

@chenbh chenbh closed this as completed Apr 27, 2021
@chenbh chenbh reopened this Apr 27, 2021
@taylorsilva
Copy link
Member

Looks like this was added before we changed tactics to avoid this very confusion. The concourse binary should be the source of truth for default values. This wasn't being enforced in PR review until the last year-ish.

@iedsapala
Copy link
Author

Our team got bitten by this particular feature flag differing in the chart defaults vs the concourse defaults.

We're using two different git resources, one for input used as the trigger for the job and one for output used to push a release tagging commit, that are pointed at the same branch with the same config. When we did a put to the out resource it created a new version (decorated with [skip ci]) which should have been ignored by the input resource, but instead it got picked up and caused the job to do a new build. Please see the attached image of the pipeline below.

image

Considering this kind of possible situation, and the general feature flag discrepancy between the chart, should this feature flag be disabled by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants