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(core): do not automatically inject parameterConfig on pipelines #7009

Merged
merged 1 commit into from
May 16, 2019
Merged

fix(core): do not automatically inject parameterConfig on pipelines #7009

merged 1 commit into from
May 16, 2019

Conversation

anotherchrisberry
Copy link
Contributor

Pipelines created before #6923 was deployed will not have parameterConfig unless the user has added parameters.

We don't really need to add the empty parameterConfig array to the pipeline. Doing so changes the JSON, which makes the pipeline dirty, which shows a revert button, which throws an error when clicked.

There's already a guard in place on the addParameter which will initialize the field. That's all we really need AFAICT.

@anotherchrisberry anotherchrisberry merged commit d805c18 into spinnaker:master May 16, 2019
@anotherchrisberry anotherchrisberry deleted the noparams branch May 16, 2019 05:31
anotherchrisberry added a commit that referenced this pull request May 16, 2019
d805c18 fix(core): do not automatically inject parameterConfig on pipelines (#7009)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants