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: use tmp for empty name check #180

Merged
merged 1 commit into from
Jun 8, 2021
Merged

fix: use tmp for empty name check #180

merged 1 commit into from
Jun 8, 2021

Conversation

kneal
Copy link

@kneal kneal commented Jun 8, 2021

PR includes the following changes:

  • add a check to skips secrets that have empty names

Details:

In certain, situations the compiler can call the marshaller; sometimes when this happens with templates the secrets being passed has a secret array that contains empty secret elements. This change adds extra checking in cases a secret element exists within the secrets block that doesn't have name:.

@kneal kneal added the bug Indicates a bug label Jun 8, 2021
@kneal kneal requested a review from a team as a code owner June 8, 2021 15:11
@codecov
Copy link

codecov bot commented Jun 8, 2021

Codecov Report

Merging #180 (241ce06) into master (0de9c0f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #180   +/-   ##
=======================================
  Coverage   96.91%   96.91%           
=======================================
  Files          53       53           
  Lines        3270     3274    +4     
=======================================
+ Hits         3169     3173    +4     
  Misses         56       56           
  Partials       45       45           
Impacted Files Coverage Δ
yaml/secret.go 94.73% <100.00%> (+0.29%) ⬆️

Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

@wass3r wass3r merged commit bbd070b into master Jun 8, 2021
@wass3r wass3r deleted the fix_secret_array branch June 8, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants