refactor: remove vestiges of parsing release info text from helm deployment #6913
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a minor refactoring of the Helm post-deployment parsing to reflect the reality after #5723.
Prior to #5723, our Helm deployer would invoke
helm get all <chart>
to obtain the deployed manifests. This output some semi-structured text with release information, followed by the manifests. We discarded the release info and then parsed out the remaining YAML. But this could fail (#5484) as there was no clean separation between the release info and the YAML.example showing output from `helm get all skaffold-helm`
Since we don't actually use the Helm release info text, #5723 changed our deployer to instead use
helm get all <chart> --template {{.Release.Manifest}}
to only output the Kubernetes manifests. But there were some vestiges of the release-info parsing still present.This PR removes the last bits of this release-info parsing. In so doing, I discovered that our tests weren't providing an actual deployed manifest to
helm get all
, and so the namespaces were not being properly reported, and so our deploy-with-namespace tests weren't actually checking that the right namespaces were being reported!