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

Moving pkg/kubectl/util/storage to staging #79204

Merged
merged 1 commit into from Jun 26, 2019

Conversation

pswica
Copy link
Contributor

@pswica pswica commented Jun 20, 2019

/kind cleanup
/sig cli
/area kubectl

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. sig/cli Categorizes an issue or PR as relevant to SIG CLI. area/kubectl cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jun 20, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @pswica. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. area/dependency Issues or PRs related to dependency changes area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. labels Jun 20, 2019
@pswica
Copy link
Contributor Author

pswica commented Jun 20, 2019

/cc @seans3 @soltysh

@seans3
Copy link
Contributor

seans3 commented Jun 20, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 20, 2019
dependencies:
- repository: apimachinery
branch: master
- repository: client-go
Copy link
Member

Choose a reason for hiding this comment

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

it looks like client-go is not a dependency yet, can we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix this too (I was just copying rules from another PR--there are lots for this big move). Thanks again for your review

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I re-added this. I think with all of our code moves and re-merging this is now necessary, otherwise tests start failing.

- source:
branch: release-1.15
dir: staging/src/k8s.io/kubectl
name: release-1.15
go: 1.12.5

dependencies:
- repository: apimachinery
Copy link
Member

Choose a reason for hiding this comment

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

nit: to be alphabetically consistent, would be better to put api over apimachinery 😛

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch! Thanks for reviewing, I will change this.

@nikhita
Copy link
Member

nikhita commented Jun 20, 2019

@pswica
Copy link
Contributor Author

pswica commented Jun 20, 2019

@nikhita can you help me understand this portion? I'm still new to this codebase and I don't want to update this .yaml in the wrong places.

Please also kubectl to https://github.com/kubernetes/kubernetes/blob/master/staging/publishing/import-restrictions.yaml

@nikhita
Copy link
Member

nikhita commented Jun 20, 2019

@nikhita can you help me understand this portion? I'm still new to this codebase and I don't want to update this .yaml in the wrong places.

Sure! We want to make sure that certain (staging) packages don't end up importing other staging packges. For example, apimachinery should never depend on another staging repo. These import restrictions are enforced by that yaml file.

For instance, in this:

- baseImportPath: "./vendor/k8s.io/apimachinery/"
allowedImports:
- k8s.io/apimachinery
- k8s.io/kube-openapi
- k8s.io/klog

It shows that apimachinery should only depend on kube-openapi and klog (they have the k8s.io imports because they are in the kubernetes GitHub org, but they are not staging repos). If someone adds an import to, say client-go, the tests will fail.

For kubectl, we'll need to add something like https://github.com/kubernetes/kubernetes/pull/79207/files#diff-2c52da2e345c051a2fed16d27e7702a7 to make sure we don't accidentally add any unwanted imports. :)

@pswica
Copy link
Contributor Author

pswica commented Jun 20, 2019

@nikhita thanks so so much for your thoughtful reviews, I tried to make the suggested changes. You are the best.

@nikhita
Copy link
Member

nikhita commented Jun 20, 2019

No, no, thank you for making these changes! ❤️

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 26, 2019
@pswica
Copy link
Contributor Author

pswica commented Jun 26, 2019

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 26, 2019
@seans3
Copy link
Contributor

seans3 commented Jun 26, 2019

/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jun 26, 2019
Copy link
Contributor

@seans3 seans3 left a comment

Choose a reason for hiding this comment

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

Please remove "staging/publishing/rules.yaml" from this PR. We shouldn't have to change this file anymore. Your changes to this file are only indentation changes, making the indentation inconsistent.

@seans3
Copy link
Contributor

seans3 commented Jun 26, 2019

/uncc @dchen1107
/uncc @deads2k

@pswica
Copy link
Contributor Author

pswica commented Jun 26, 2019

Okay I changed that file. I think that was a remnant of me editing that file before all the merging.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 26, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pswica, soltysh

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 26, 2019
@pswica
Copy link
Contributor Author

pswica commented Jun 26, 2019

/retest

@seans3
Copy link
Contributor

seans3 commented Jun 26, 2019

/lgtm

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

seans3 commented Jun 26, 2019

/retest

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jun 26, 2019

@pswica: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-publishing-bot-validate 7b3f8f4e919a0a91ea33d5d33baecfc535e86e13 link /test pull-publishing-bot-validate

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@fejta-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@k8s-ci-robot k8s-ci-robot merged commit b84d5b8 into kubernetes:master Jun 26, 2019
wking pushed a commit to wking/kubernetes that referenced this pull request Jul 21, 2020
Moving pkg/kubectl/util/storage to staging

Kubernetes-commit: b84d5b8
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. area/dependency Issues or PRs related to dependency changes area/kubectl area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/release Categorizes an issue or PR as relevant to SIG Release. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants