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

⚠️ Inject filesystem from CLI instead of creating several per command #2080

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

Adirio
Copy link
Contributor

@Adirio Adirio commented Mar 10, 2021

A new filesystem abstraction is being created in multiple places. This PRs creates a single filesystem abstraction in the CLI, and passes/injects it to any machinery that requires it.

Technically speaking this is a brekaing change, because it modifies the Subcommand interface in pkg/plugin/interfaces.go. This, and the corresponding signature update for the plugins, is the only breaking change in this PR. It is required to expose both the scaffolding machinery (#2036) and the config file machinery (#2056).

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 10, 2021
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 10, 2021
@Adirio Adirio mentioned this pull request Mar 10, 2021
14 tasks
Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

It is a small change which I agree with 🥇
However, as it is a breaking change would be nice to get a second thought as well.
Could you please check if another person can review and is ok with either?

pkg/cli/cli.go Outdated Show resolved Hide resolved
pkg/plugin/interfaces.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 12, 2021
@estroz
Copy link
Contributor

estroz commented Mar 13, 2021

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 13, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Adirio, camilamacedo86, estroz

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:
  • OWNERS [Adirio,camilamacedo86,estroz]

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 merged commit 73cda2b into kubernetes-sigs:master Mar 13, 2021
@Adirio Adirio deleted the inject-filesystem branch March 13, 2021 22:32
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants