-
Notifications
You must be signed in to change notification settings - Fork 101
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
Child params in operators with dependencies failing in pkg resolver #1773
Conversation
Signed-off-by: Alena Varkockova <[email protected]>
d99bc2b
to
e00806c
Compare
The operator test failure is OK, it's because I've cleaned up the operators folder |
Signed-off-by: Alena Varkockova <[email protected]>
e00806c
to
384182c
Compare
Signed-off-by: Alena Varkockova <[email protected]>
0995062
to
714dc06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great to have a newline for end of line of yaml files... otherwise lgtm
@@ -85,7 +85,7 @@ lint: ## Run golangci-lint | |||
ifneq (${GOLANGCI_LINT_VER}, "$(shell golangci-lint version --format short 2>&1)") | |||
./hack/install-golangcilint.sh ${GOLANGCI_LINT_VER} | |||
endif | |||
golangci-lint --timeout 3m run --allow-parallel-runners | |||
golangci-lint --timeout 4m run --allow-parallel-runners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮 :)
@@ -30,6 +30,12 @@ func (ReferenceVerifier) Verify(pf *packages.Files) verifier.Result { | |||
resources = task.Spec.ResourceTaskSpec.Resources | |||
case engtask.PipeTaskKind: | |||
resources = append(resources, task.Spec.PipeTaskSpec.Pod) | |||
case engtask.KudoOperatorTaskKind: | |||
// param file is being stored in the templates folder, we need to make sure it's in here | |||
// to not treat it as error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
if err != nil { | ||
res.AddErrors(fmt.Sprintf("parsing rendered YAML from %s failed: %v", k, err)) | ||
// parameter file for KudoOperator task does not have to parse to kubernetes object | ||
if !isParameterFile(k, pf) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a big deal... but I'm wondering if we have have a
if isParameterFile()
that continues and reduce the indent on the error handling
From a Go perspective, it feels like a lot of nesting... reasonable to keep as well
@asekretenko merged :) thanks for review @kensipe I missed that you approved, appreciate it! It is such a long time I've implemented this though that I don't remember some of the implementation details :D |
…1773) * Add failing test for depencencies with child params Signed-off-by: Alena Varkockova <[email protected]> * Fix verifier handling of child params files Signed-off-by: Alena Varkockova <[email protected]> * Increase timeout Signed-off-by: Alena Varkockova <[email protected]>
What this PR does / why we need it:
Fixes #1772