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

fix: updates arc ext check #893

Merged
merged 6 commits into from
May 20, 2022
Merged

fix: updates arc ext check #893

merged 6 commits into from
May 20, 2022

Conversation

nilekhc
Copy link
Contributor

@nilekhc nilekhc commented May 18, 2022

Signed-off-by: Nilekh Chaudhari 1626598+nilekhc@users.noreply.github.com

Reason for Change:

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

fixes: #892

Does this change contain code from or inspired by another project?

  • Yes
  • No

If "Yes," did you notify that project's maintainers and provide attribution?

Special Notes for Reviewers:

Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
@nilekhc nilekhc marked this pull request as ready for review May 18, 2022 21:31
@nilekhc
Copy link
Contributor Author

nilekhc commented May 18, 2022

/azp run pr-e2e-azure

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nilekhc nilekhc requested a review from aramase May 18, 2022 21:33
@nilekhc
Copy link
Contributor Author

nilekhc commented May 18, 2022

cc @vittoriocanilli

Copy link

@vittoriocanilli vittoriocanilli left a comment

Choose a reason for hiding this comment

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

LGTM.

I am not sure if you could have fixed it as well, by simply swapping the operators in the AND condition instead of having 2 nested IF statements.

Anyway I am not familiar with writing Helm charts 😄

Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

Helm uses go template and the documentation (https://pkg.go.dev/text/template#hdr-Functions) does confirm that the arguments are evaluated from left to right. So if the first one is false, it should return false as the result is determined.

Could we switch the order like @vittoriocanilli suggested instead of nested ifs?

Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
@netlify
Copy link

netlify bot commented May 19, 2022

👷 Deploy request for secrets-store-csi-driver-provider-azure pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 637d767

@nilekhc
Copy link
Contributor Author

nilekhc commented May 19, 2022

Helm uses go template and the documentation (https://pkg.go.dev/text/template#hdr-Functions) does confirm that the arguments are evaluated from left to right. So if the first one is false, it should return false as the result is determined.

Could we switch the order like @vittoriocanilli suggested instead of nested ifs?

That's better. Thanks for the suggestion @vittoriocanilli

@nilekhc nilekhc requested a review from aramase May 19, 2022 17:46
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2022

Codecov Report

Merging #893 (637d767) into master (9e590f0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #893   +/-   ##
=======================================
  Coverage   59.79%   59.79%           
=======================================
  Files           7        7           
  Lines         868      868           
=======================================
  Hits          519      519           
  Misses        314      314           
  Partials       35       35           

Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
@nilekhc
Copy link
Contributor Author

nilekhc commented May 19, 2022

/azp run pr-e2e-azure

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nilekhc nilekhc merged commit 98a796f into Azure:master May 20, 2022
@nilekhc nilekhc deleted the fix-helm-chart branch May 20, 2022 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors when updating to 1.1.3
4 participants