helm: Do not parse initial 'helm get' section as a manifest#4244
Closed
tstromberg wants to merge 1 commit intoGoogleContainerTools:masterfrom
Closed
helm: Do not parse initial 'helm get' section as a manifest#4244tstromberg wants to merge 1 commit intoGoogleContainerTools:masterfrom
tstromberg wants to merge 1 commit intoGoogleContainerTools:masterfrom
Conversation
|
|
||
| // The initial section of "helm get" is not a Kubernetes manifest | ||
| if i == 1 { | ||
| continue |
Member
There was a problem hiding this comment.
Is there any value in logging that section header?
I'm (very mildly) worried that Helm 4 or 5 might starting emitting valid k8s manifests and we'll throw this first element away. Would it make sense to instead try parsing it and instead ignore the error if it's the first object?
Member
|
@tstromberg were you still interested in getting this in? |
Contributor
|
@tstromberg this is starting to get stale, could you have a look at the failing unit tests? |
Contributor
@tstromberg ping |
Member
|
I have a simpler implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 removes the scary
error decoding parsed yaml: Object 'Kind' is missing inmessage that appears with every Helm deployment.This log message is caused due to skaffold parsing the front-matter of
helm getoutput as if it was a Kubernetes manifest. This PR skips the initial section for object parsing, and raises the warning level for subsequent sections frominfotoerror.Fixes #3642
Using
examples/helm-deploymentwithskaffold run -v info, you can see the difference:At head
With this PR