-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Handle advanced --network options in podman play kube #10816
Conversation
@e-minguez Could you verify if this fixes your issue? |
80564c7
to
778cee4
Compare
var networkOptions map[string][]string | ||
parts := strings.SplitN(network, ":", 2) | ||
|
||
ns, cniNets, err := ParseNetworkNamespace(network, containerConfig.Containers.RootlessNetworking == "cni") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this compile? I don't think we have containerConfig
as a variable in pkg/specgen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I will check that.
./pod_validate.go: containerConfig = util.DefaultContainerConfig()
201f1f0
to
6502239
Compare
I've downloaded the podman static binary from the ci job (https://cirrus-ci.com/task/5777994007445504) and tested it successfully:
|
pkg/domain/infra/abi/play.go
Outdated
p.NetNS.NSMode = specgen.Bridge | ||
p.CNINetworks = append(p.CNINetworks, networks...) | ||
} | ||
logrus.Debugf("Pod joining CNI networks: %v", cniNets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message should include Pod id if tunneled code comes via this code path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added podName to output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
Since Podman create/run can support this, so should play. Fixes: containers#10807 Signed-off-by: Daniel J Walsh <[email protected]>
New changes are detected. LGTM label has been removed. |
/hold cancel |
Since Podman create/run can support this, so should play.
Fixes: #10807
Signed-off-by: Daniel J Walsh [email protected]