Skip to content

[installer]: refactor yq to run against arbitrary strings #11973

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

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

mrsimonemms
Copy link
Contributor

@mrsimonemms mrsimonemms commented Aug 8, 2022

Description

Refactor yq into its own standalone library in the Installer.

Also changes the way the apiVersion is removed from the config.yaml to use yq so it's not dependent upon the regex. This is a problem when using the input as a JSON object (it's unlikely, but as YAML is a superset of JSON, it is something we should probably support).

Originally I thought this was required to #9926 (it's not), but I thought it had merit so spun off to its own PR.

No changes in the rendered output prove this hasn't introduced any regressions

How to test

Install via KOTS

Release Notes

[installer]: refactor yq to run against arbitrary strings

Documentation

Werft options:

  • /werft with-preview

@mrsimonemms mrsimonemms marked this pull request as ready for review August 9, 2022 09:30
@mrsimonemms mrsimonemms requested a review from a team August 9, 2022 09:30
@github-actions github-actions bot added the team: delivery Issue belongs to the self-hosted team label Aug 9, 2022
@roboquat roboquat merged commit 611800c into main Aug 9, 2022
@roboquat roboquat deleted the sje/installer-config-loader branch August 9, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/L team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants