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

Add "podman kube play" cmd #14772

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Add "podman kube play" cmd #14772

merged 1 commit into from
Jul 13, 2022

Conversation

nicrowe00
Copy link
Collaborator

The "podman kube play" command is designed to be a replacement for the
"podman play kube" command.
It performs the same function as "play kube" while also still working with the same flags and options.
The "podman play kube" command is still functional as an alias of "kube play".

Closes #12475
Signed-off-by: Niall Crowe [email protected]

Does this PR introduce a user-facing change?

The command "podman kube play" replaces the "podman play kube" command.
"podman play kube" can still be used in the same manner as before as it is now an alias of
"podman kube play".

@nicrowe00
Copy link
Collaborator Author

@vrothberg PTAL

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

pkg/bindings/kube/kube1.go Outdated Show resolved Hide resolved
pkg/api/handlers/libpod/kube.go Show resolved Hide resolved
docs/source/markdown/podman-kube-play.1.md Show resolved Hide resolved
@nicrowe00 nicrowe00 changed the title Add "podman kube play" cmd WIP: Add "podman kube play" cmd Jun 29, 2022
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 29, 2022
cmd/podman/kube/kube.go Outdated Show resolved Hide resolved
@vrothberg
Copy link
Member

@mheon, I would like this PR to get in after we branched for 4.2. Do you know when we're going to branch?

@openshift-ci openshift-ci bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 1, 2022
@giuseppe
Copy link
Member

giuseppe commented Jul 5, 2022

FWIW I find adding a podman kube subcommand confusing. I think adding a podman down kube subcommand will be cleaner and easier to extend in future

@vrothberg
Copy link
Member

vrothberg commented Jul 5, 2022

FWIW I find adding a podman kube subcommand confusing. I think adding a podman down kube subcommand will be cleaner and easier to extend in future

I think you are late to the game. @nicrowe00 is working on it for a number of weeks now and mentioned it in the meetings.

What I don't like about scattering kube-things over different commands is that it's impossible to explore functionality. I think commands should be structured by objects, not by actions. For instance, there is {volume,pod,network,image,...} rm but not rm {volume,pod,network,image,...}.

"play" does not mean anything to me personally but I can guess what may happen behind "kube".

@baude
Copy link
Member

baude commented Jul 5, 2022

it seems like we have a enough debate, including me, here to put this on pause and hash this out. might I suggest a cabal or a design doc that we can all review?

@vrothberg
Copy link
Member

How can this change go unnoticed? Niall has mentioned it in every meeting the past 3 weeks.

Let's chat in today's meeting, so we can unblock Niall. Note that there was consensus in #12475 for doing that already and is has been discussed in meetings back then.

@baude
Copy link
Member

baude commented Jul 5, 2022

How can this change go unnoticed? Niall has mentioned it in every meeting the past 3 weeks.

Because you brought this up publicly @vrothberg , I am compelled to respond. I have my hands in more than a couple of things right now including planning for the team. I have also been on PTO. It is actually relatively easy to miss something like this as it is NOT my responsibility to know what everyone on the team is doing; there are other people for that.

@mheon
Copy link
Member

mheon commented Jul 5, 2022

At this point we've had enough people weigh in on both sides that consensus seems unlikely. I'm OK to proceed with this PR given that - we've discussed the point a lot already and could not come to an agreement. The commands are aliased, which seems like the best compromise we can make.

@rhatdan
Copy link
Member

rhatdan commented Jul 5, 2022

Lets talk at Cabal.
Since we think this should compete with compose, I believe we should use the same terminology. Up and Down.

@vrothberg
Copy link
Member

Lets talk at Cabal. Since we think this should compete with compose, I believe we should use the same terminology. Up and Down.

Since you're on PTO. Which Cabal are you referring to?

I am pressing since I would ask Niall to work on something else if we need a longer period of time to iron things out.

@rhatdan
Copy link
Member

rhatdan commented Jul 5, 2022

Ill be working on Thursday.

@vrothberg
Copy link
Member

Ill be working on Thursday.

Thanks! Let's chat during Cabal on Thursday then.

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 7, 2022
@vrothberg
Copy link
Member

The remote failures are flakes. Rebasing the PR should fix it. git remote update; git pull --rebase upstream main with upstream being github.com/containers/podman.

@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 8, 2022
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Just a couple of comments, mostly related to breaking changes.

@rhatdan @baude @umohnani8 PTAL

cmd/podman/kube/kube.go Outdated Show resolved Hide resolved
cmd/podman/kube/play.go Show resolved Hide resolved
docs/kube_play_support.md Outdated Show resolved Hide resolved
docs/source/markdown/links/podman-play.1 Outdated Show resolved Hide resolved
pkg/bindings/kube/kube.go Outdated Show resolved Hide resolved
pkg/bindings/kube/kube.go Outdated Show resolved Hide resolved
pkg/bindings/kube/types.go Show resolved Hide resolved
pkg/bindings/play/play.go Outdated Show resolved Hide resolved
pkg/bindings/kube/kube.go Outdated Show resolved Hide resolved
@openshift-ci openshift-ci bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 8, 2022
@nicrowe00 nicrowe00 changed the title WIP: Add "podman kube play" cmd Add "podman kube play" cmd Jul 12, 2022
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 12, 2022
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Other than the final nit, LGTM

@rhatdan @baude PTAL

pkg/bindings/kube/types.go Outdated Show resolved Hide resolved
@TomSweeneyRedHat
Copy link
Member

A lot of unhappy red tests still.

The "podman kube play" command is designed to be a replacement for the
"podman play kube" command.
It performs the same function as "play kube"  while also still working with the same flags and options.
The "podman play kube" command is still functional as an alias of "kube play".

Closes #12475
Signed-off-by: Niall Crowe <[email protected]>
Signed-off-by: Valentin Rothberg <[email protected]>
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan @baude PTAL
Let's wait for a head nod from @edsantiago as well.

@rhatdan
Copy link
Member

rhatdan commented Jul 13, 2022

/lgtm
Once we have a podman kube down, do we remove podman kube play --down?
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 13, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nicrowe00, rhatdan

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 13, 2022
@openshift-ci openshift-ci bot merged commit 5c3eec5 into containers:main Jul 13, 2022
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker-compose-like syntax for podman play kube
9 participants