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 ctrName to network alias during kube play #17412

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

umohnani8
Copy link
Member

We currently name the container being created during kube play as ctrName-podName, but this is not how it is done in k8s. Since we can't change this at the CLI level as it will be a breaking change (it will be planned for podman 5.0), add only ctrName as an alias to the network of the pod.

Partially fixes #16544 - a follow up during podman 5.0 will be needed to make the breaking CLI change.

Signed-off-by: Urvashi Mohnani [email protected]

Does this PR introduce a user-facing change?

Add ctrName as an alias to the pod network.

@openshift-ci openshift-ci bot added release-note approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 7, 2023
@umohnani8
Copy link
Member Author

@mheon @rhatdan PTAL

pkg/domain/infra/abi/play.go Outdated Show resolved Hide resolved
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Feb 7, 2023
@umohnani8 umohnani8 force-pushed the alias branch 2 times, most recently from e599cdc to b29ff12 Compare February 7, 2023 19:49
@github-actions github-actions bot removed the kind/api-change Change to remote API; merits scrutiny label Feb 7, 2023
pkg/domain/infra/abi/play.go Outdated Show resolved Hide resolved
@umohnani8 umohnani8 force-pushed the alias branch 2 times, most recently from ca402bc to ce823cb Compare February 8, 2023 14:53
pkg/domain/infra/abi/play.go Outdated Show resolved Hide resolved
We currently name the container being created during kube play
as ctrName-podName, but this is not how it is done in k8s.
Since we can't change this at the CLI level as it will be a breaking
change (it will be planned for podman 5.0), add only ctrName as an alias
to the network of the pod.

Signed-off-by: Urvashi Mohnani <[email protected]>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, umohnani8

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

@rhatdan
Copy link
Member

rhatdan commented Feb 9, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 9, 2023
@openshift-merge-robot openshift-merge-robot merged commit d8de65b into containers:main Feb 9, 2023
@umohnani8 umohnani8 deleted the alias branch February 23, 2023 18:43
@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 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 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.

Container name inside pod is different then what it is in yaml file
4 participants