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

[installer]: build the config #12687

Merged
merged 3 commits into from
Sep 20, 2022
Merged

[installer]: build the config #12687

merged 3 commits into from
Sep 20, 2022

Conversation

mrsimonemms
Copy link
Contributor

@mrsimonemms mrsimonemms commented Sep 6, 2022

Description

Creates a config build-from-envvars command that replaces all of the bash script config generation with a Golang file. This ties the envvars to the config version. This means that the envvars are now part of our public contract.

This is part of a major refactoring of the configuration so that it's simpler and just config generation. See #12319 for my notepad of how it'll look eventually.

Related Issue(s)

Fixes #12199

How to test

As per #12986

Release Notes

[installer]: refactor the Installer config to build from envvars

Documentation

Werft options:

  • /werft with-preview

@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Sep 14, 2022

/werft run

👍 started the job as gitpod-build-sje-installer-config-build.21
(with .werft/ from main)

@mrsimonemms mrsimonemms force-pushed the sje/installer-config-build branch from aa7dba0 to 702f20c Compare September 14, 2022 15:51
@mrsimonemms
Copy link
Contributor Author

/hold until all the permutations are confirmed complete

@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Sep 14, 2022

/werft run publish-to-kots

👍 started the job as gitpod-build-sje-installer-config-build.24
(with .werft/ from main)

@mrsimonemms mrsimonemms marked this pull request as ready for review September 14, 2022 16:29
@mrsimonemms mrsimonemms requested a review from a team September 14, 2022 16:29
@github-actions github-actions bot added the team: delivery Issue belongs to the self-hosted team label Sep 14, 2022
@mrsimonemms mrsimonemms force-pushed the sje/installer-config-build branch from 44b36b5 to f93e57a Compare September 14, 2022 18:14
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-sje-installer-config-build.27 because the annotations in the pull request description changed
(with .werft/ from main)

@nandajavarma
Copy link
Contributor

nandajavarma commented Sep 15, 2022

/werft run with-sh-preview

👍 started the job as gitpod-build-sje-installer-config-build.28
(with .werft/ from main)

@mrsimonemms mrsimonemms force-pushed the sje/installer-config-build branch from d1063d3 to a3941fa Compare September 15, 2022 16:23
@mrsimonemms
Copy link
Contributor Author

/unhold

@mrsimonemms mrsimonemms force-pushed the sje/installer-config-build branch from a3941fa to 3e88f56 Compare September 20, 2022 07:11
Copy link
Contributor

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

Most changes are around questions/documenting the approach. Did a comparision of envvars.go with existing kots-install.sh and they seem to match!

install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
install/installer/pkg/config/v1/envvars.go Show resolved Hide resolved
@mrsimonemms mrsimonemms force-pushed the sje/installer-config-build branch from 3e88f56 to 024b467 Compare September 20, 2022 14:14
@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Sep 20, 2022

@Pothulapati added the comment we talked about. Thanks for your help 🧡

Copy link
Contributor

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

:shipit:

@roboquat roboquat merged commit 601a76b into main Sep 20, 2022
@roboquat roboquat deleted the sje/installer-config-build branch September 20, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/XXL team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create a config build-from-envvars command in the Installer that will build the config.yaml from envvars
4 participants