Skip to content
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

Obj null check to avoid failure on non-typed character like NULL as value for array type key/object #598

Merged
merged 4 commits into from
Sep 13, 2022

Conversation

kumaritanushree
Copy link
Contributor

@kumaritanushree kumaritanushree commented Sep 5, 2022

What this PR does / why we need it:

Added null check to avoid non-typed character error (like envFrom: null/) while applying template rules in case of versioned resources.

Which issue(s) this PR fixes:

Fixes #89

Does this PR introduce a user-facing change?

NONE

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


@kumaritanushree kumaritanushree marked this pull request as ready for review September 6, 2022 09:46
100mik
100mik previously approved these changes Sep 6, 2022
Copy link
Contributor

@100mik 100mik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test/e2e/non_typed_char_error_test.go Outdated Show resolved Hide resolved
test/e2e/non_typed_char_error_test.go Outdated Show resolved Hide resolved
test/e2e/non_typed_char_error_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@100mik 100mik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought

test/e2e/non_typed_array_fields_test.go Outdated Show resolved Hide resolved
@100mik 100mik dismissed their stale review September 11, 2022 18:54

nits regarding more recent changes

Copy link
Contributor

@100mik 100mik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it! 🚢

@praveenrewar praveenrewar merged commit 7a2f43a into develop Sep 13, 2022
@praveenrewar praveenrewar deleted the task/89-null-array-error branch September 13, 2022 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kapp template rules do not work against non-typed fields such as initContainers: null
5 participants