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

generate kube with volumes #3472

Merged

Conversation

haircommander
Copy link
Collaborator

@haircommander haircommander commented Jul 2, 2019

Add volume functionality for generate kube, including adding the fields for containers, as well as the pod. Test added as well
Fixes: #2303

@mheon
Copy link
Member

mheon commented Jul 2, 2019

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, mheon

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 2, 2019
}
kubeContainer.VolumeDevices = devices
return kubeContainer, errors.Wrapf(define.ErrNotImplemented, "linux devices")
return kubeContainer, kubeVolumes, errors.Wrapf(define.ErrNotImplemented, "linux devices")
Copy link
Member

Choose a reason for hiding this comment

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

Wait, what's going on here? We're getting devices... and then throwing an error that they're not supported?

Copy link
Member

Choose a reason for hiding this comment

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

Should this just be a warning?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO Enable when we can support devices and their names I assume the translation isn't clear for libpod devices to kube devices?

libpod/kube.go Outdated Show resolved Hide resolved
for containers that share volumes, so the pod section doesn't list copies

Signed-off-by: Peter Hunt <[email protected]>
@haircommander
Copy link
Collaborator Author

/test images

Specifically, we were needlessly doing a double lookup to find which config mounts were user volumes. Improve this by refactoring a bit of code from inspect

Signed-off-by: Peter Hunt <[email protected]>
@mheon
Copy link
Member

mheon commented Jul 3, 2019

Changes LGTM

@haircommander
Copy link
Collaborator Author

@baude @jwhonce PTAL

@mheon
Copy link
Member

mheon commented Jul 4, 2019

@baude @jwhonce @rhatdan @TomSweeneyRedHat @vrothberg Can we get this landed? I'm messing around in Inspect and I don't want to make merge conflicts...

@TomSweeneyRedHat
Copy link
Member

Changes LGTM, if you're happy with the one question you had @mheon, feel free to merge it.
At some point, I'd like to see some expanded doc covering this new functionality.

@mheon
Copy link
Member

mheon commented Jul 4, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 4, 2019
@openshift-merge-robot openshift-merge-robot merged commit f7407f2 into containers:master Jul 4, 2019
@rh-atomic-bot rh-atomic-bot mentioned this pull request Jul 4, 2019
@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 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate kube with containers having volumes
6 participants