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

Fix build driver experimental flag checks #1825

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

carolynvs
Copy link
Member

What does this change

There are two config settings that control which build driver we use:

  • experimental
  • build-driver

The experimental feature needs to be enabled in order for the build-driver setting to take effect. When I was testing another PR, I realized that in some parts of the code, I was only checking the build-driver setting without making sure the experimental feature was
enabled.

This adds a function GetBuildDriver to Config that we can use to centralize that logic.

What issue does it fix

Found this while testing #1817

Notes for the reviewer

N/A

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

There are two config settings that control which build driver we use:

* experimental
* build-driver

The experimental feature needs to be enabled in order for the
build-driver setting to take effect. When I was testing another PR, I
realized that in some parts of the code, I was only checking the
build-driver setting without making sure the experimental feature was
enabled.

This adds a function GetBuildDriver to Config that we can use to
centralize that logic.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs marked this pull request as ready for review November 16, 2021 23:54
@carolynvs carolynvs merged commit be0aa83 into getporter:release/v1 Nov 17, 2021
@carolynvs carolynvs deleted the fix-build-driver-cfg branch November 17, 2021 22:56
@carolynvs carolynvs mentioned this pull request Nov 18, 2021
3 tasks
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

Successfully merging this pull request may close these issues.

2 participants