Skip to content

ref(pkg/chartutil): decrease map lookups - #2704

Merged
seh merged 2 commits into
helm:masterfrom
rbwsam:ref/2663
Jul 24, 2017
Merged

seh merged 2 commits into
helm:masterfrom
rbwsam:ref/2663

Conversation

@rbwsam

@rbwsam rbwsam commented Jul 20, 2017

Copy link
Copy Markdown
Contributor

Decrease map lookups in chartutil.coalesceValues and move comment to unit
test.

Closes #2663

Decrease map lookups in `chartutil.coalesceValues` and move comment to unit
test.

Closes #2663
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 20, 2017

@seh seh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Take my suggestion here as just that, not one to block a merge.

Comment thread pkg/chartutil/values_test.go Outdated
}
}

// When the YAML value is null, we remove the value's key.

@seh seh Jul 20, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • I apologize for not being more clear in my original suggestion, but what I meant was that we should move only line 356 (starting with "ref:") over here to clarify why we look at these different ways of writing null in YAML, and leave the rest of the comment in place in the coalesceValues function.

    I'd put this specification reference at line 277, just above the testCoalesceValuesYaml variable.

Move comment out of test. Move ref location in test.

@seh seh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@technosophos

Copy link
Copy Markdown
Member

Feel free to merge this @seh

@technosophos technosophos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM2

@seh
seh merged commit 98c8e3c into helm:master Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. in progress refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants