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

feat: add "deploy to kubernetes" button for compose group #3295

Merged
merged 2 commits into from Jul 26, 2023

Conversation

cdrage
Copy link
Contributor

@cdrage cdrage commented Jul 20, 2023

feat: add "deploy to kubernetes" button for compose group

What does this PR do?

  • Adds button to Deploy to Kubernetes for a Compose group
  • Utilizes DeployPodToKube same code, but added a "compose" type
  • Adds a new function for listSimpleContainersByLabel for an easier way
    to find containers by label that you only need the name / id of.

Screenshot/screencast of this PR

Screen.Recording.2023-07-20.at.2.11.58.PM.mov

What issues does this PR fix or reference?

Closes #3104

How to test this PR?

  1. Deploy a Docker Compose example
  2. Click on the "hamburger" button to bring up the Deploy To Kubernetes
    button.
  3. Deploy to Kubernetes and make sure it's deployed correctly.

Signed-off-by: Charlie Drage charlie@charliedrage.com

@cdrage cdrage requested review from a team and benoitf as code owners July 20, 2023 18:17
@cdrage cdrage requested review from jeffmaury and lstocchi and removed request for a team July 20, 2023 18:17
@benoitf
Copy link
Collaborator

benoitf commented Jul 21, 2023

I've checked with a docker engine, then as generateKub is not possible there is a silent error

so like for containers if engine is not of type 'podman' we should not add this action

l3G3O57LKK.mp4

@cdrage cdrage changed the title feat: add "deploy to kubernetes" label for compose group feat: add "deploy to kubernetes" button for compose group Jul 21, 2023
@cdrage
Copy link
Contributor Author

cdrage commented Jul 21, 2023

I've checked with a docker engine, then as generateKub is not possible there is a silent error

so like for containers if engine is not of type 'podman' we should not add this action

l3G3O57LKK.mp4

You're right. I had forgotten to hide that action if Docker is detected, it should only show for Podman similar to the current container / pod actions.

Updated the PR, it will appear hidden now for Docker!

@cdrage cdrage force-pushed the deploy-to-kube branch 5 times, most recently from 6c58082 to d90df20 Compare July 24, 2023 14:57
@cdrage
Copy link
Contributor Author

cdrage commented Jul 24, 2023

PR has been rebased and ready for review 💯

Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

tested and works fine

IdzyA2RqiR.mp4

### What does this PR do?

* Adds button to Deploy to Kubernetes for a Compose group
* Utilizes DeployPodToKube same code, but added a "compose" type
* Adds a new function for listSimpleContainersByLabel for an easier way
  to find containers by label that you only need the name / id of.

### Screenshot/screencast of this PR

<!-- Please include a screenshot or a screencast explaining what is doing this PR -->

### What issues does this PR fix or reference?

<!-- Please include any related issue from Podman Desktop repository (or from another issue tracker).
-->

Closes containers#3104

### How to test this PR?

1. Deploy a Docker Compose example
2. Click on the "hamburger" button to bring up the Deploy To Kubernetes
   button.
3. Deploy to Kubernetes and make sure it's deployed correctly.

<!-- Please explain steps to reproduce -->

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
@cdrage cdrage merged commit bf1acf3 into containers:main Jul 26, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.3.0 milestone Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compose: Deploy to Kubernetes button
3 participants