Skip to content

Conversation

@jmeridth
Copy link
Member

Fixes #14861

Motivation

We need to check if the template is nil before using it. If it is we return and give helpful message.

Modifications

I moved the if check to check if the tmpl (template) is nil before usage.

I added a test to show that we don't currently consider empty steps to be a linting error, as mentioned in the issue. If we change our minds later we have a test that will break if so. 😄

Verification

Added linting test to the e2e tests for linting.

Documentation

Closes argoproj#14861

We need to check if the template is nil before using it. If it is
we return and give helpful message.

Signed-off-by: jmeridth <[email protected]>
@jmeridth jmeridth requested a review from Joibel September 30, 2025 00:00
@isubasinghe isubasinghe merged commit 4eb7b01 into argoproj:main Sep 30, 2025
37 checks passed
@jmeridth jmeridth deleted the jm_fix_linting_error branch September 30, 2025 03:01
@Joibel Joibel added cherry-pick/3.6 Cherry-pick this to release-3.6 cherry-pick/3.7 Cherry-pick this to release-3.7 labels Oct 20, 2025
@argo-cd-cherry-pick-bot
Copy link

❌ Cherry-pick failed for 3.7. Please check the workflow logs for details.

@argo-cd-cherry-pick-bot
Copy link

❌ Cherry-pick failed for 3.6. Please check the workflow logs for details.

@Joibel Joibel removed the cherry-pick/3.6 Cherry-pick this to release-3.6 label Oct 21, 2025
Joibel pushed a commit that referenced this pull request Oct 21, 2025
(cherry picked from commit 4eb7b01)

Signed-off-by: jmeridth <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
ItielOlenick pushed a commit to ItielOlenick/argo-workflows that referenced this pull request Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick/3.7 Cherry-pick this to release-3.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Argo cli 3.7.x crashes when linting manifest with empty array in steps and wrong template name reference

3 participants