Skip to content

Conversation

@seans3
Copy link
Contributor

@seans3 seans3 commented Oct 26, 2020

  • Exports common.ExpandDir function.
  • Adds return value of inventory template filepath to this function, which was already being calculated.
  • Adds unit tests for this newly exported function.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: seans3

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 26, 2020
@seans3
Copy link
Contributor Author

seans3 commented Oct 26, 2020

/assign @mortent

continue
}
path := meta.Annotations[kioutil.PathAnnotation]
path = filepath.Join(dir, path)
Copy link
Member

Choose a reason for hiding this comment

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

Does this work for packages with subfolders? It might be worth adding a test for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added unit test for this case.

@seans3 seans3 force-pushed the inventory-template-filepath branch from 125e8a8 to bd2b1e4 Compare October 27, 2020 17:50
@seans3 seans3 force-pushed the inventory-template-filepath branch from bd2b1e4 to 500dca1 Compare October 27, 2020 21:14
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 27, 2020
@mortent
Copy link
Member

mortent commented Oct 27, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 27, 2020
@k8s-ci-robot k8s-ci-robot merged commit 5e68050 into kubernetes-sigs:master Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants