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

pkg: refactor scaffolds and machinery under plugins #1550

Merged

Conversation

estroz
Copy link
Contributor

@estroz estroz commented Jun 4, 2020

All scaffold templates and machinery are housed under pkg/plugin since that machinery directly and only relates to plugins. Scaffold templates are also versioned with plugin major version, ex. pkg/plugin/v2.

Changes:

  • pkg/scaffold/internal/{filesystem,machinery} -> pkg/plugin/internal
  • pkg/scaffold/interface.go -> pkg/plugin/scaffold
  • pkg/scaffold -> pkg/plugin/v2/scaffolds
  • pkg/plugin/internal/*.go -> pkg/plugin/util

/cc @camilamacedo86 @joelanford @DirectXMan12

@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 Jun 4, 2020
@estroz estroz force-pushed the chore/refactor-plugins-scaffolds branch from 932c1d6 to cd0c142 Compare June 4, 2020 19:08
@estroz
Copy link
Contributor Author

estroz commented Jun 4, 2020

/test pull-kubebuilder-e2e-k8s-1-16-2

that machinery directly and only relates to plugins. Scaffold templates
are also versioned with plugin major version, ex. pkg/plugin/v2.
@estroz estroz force-pushed the chore/refactor-plugins-scaffolds branch from cd0c142 to 6fde51d Compare June 4, 2020 21:12
Comment on lines +27 to +28
"sigs.k8s.io/kubebuilder/pkg/plugin/scaffold"
scaffolds "sigs.k8s.io/kubebuilder/pkg/plugin/v2/scaffolds"
Copy link
Member

Choose a reason for hiding this comment

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

may v2scaffolds

Copy link
Member

Choose a reason for hiding this comment

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

can be in the v3 follow up 👍

@camilamacedo86
Copy link
Member

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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:

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 4, 2020
@k8s-ci-robot k8s-ci-robot merged commit 6e0d3d4 into kubernetes-sigs:master Jun 4, 2020
@estroz estroz deleted the chore/refactor-plugins-scaffolds branch June 18, 2020 15:55
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.

None yet

3 participants