Skip to content

fix: expose container to host only with labels#1880

Merged
cdrage merged 1 commit intokubernetes:mainfrom
TessaIO:fix-expose-container-to-host-only-with-labels
May 29, 2024
Merged

fix: expose container to host only with labels#1880
cdrage merged 1 commit intokubernetes:mainfrom
TessaIO:fix-expose-container-to-host-only-with-labels

Conversation

@TessaIO
Copy link
Copy Markdown
Member

@TessaIO TessaIO commented May 29, 2024

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Only expose container to host when we specify the label

Which issue(s) this PR fixes:

Fixes #1878

Special notes for your reviewer:

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels May 29, 2024
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented May 29, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label May 29, 2024
@k8s-ci-robot k8s-ci-robot requested review from cdrage and kadel May 29, 2024 17:28
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 29, 2024
@TessaIO TessaIO force-pushed the fix-expose-container-to-host-only-with-labels branch from 4feb118 to 4c3ce3d Compare May 29, 2024 17:29
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels May 29, 2024
@TessaIO TessaIO force-pushed the fix-expose-container-to-host-only-with-labels branch 2 times, most recently from 7c97d94 to d844fd2 Compare May 29, 2024 17:41
@cdrage
Copy link
Copy Markdown
Member

cdrage commented May 29, 2024

Since this is related to the controller (in our case, deployment), it should be: kompose.controller.port.expose and as true / false I have also opened up issue #1881 as I noticed the labels are incorrect.

@TessaIO TessaIO force-pushed the fix-expose-container-to-host-only-with-labels branch 2 times, most recently from 68aee72 to 4ec2b9a Compare May 29, 2024 19:12
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 29, 2024
@TessaIO TessaIO force-pushed the fix-expose-container-to-host-only-with-labels branch from 4ec2b9a to 6e8ab1a Compare May 29, 2024 19:15
Signed-off-by: ahmed.g <ahmed.g@adjoe.io>
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
@TessaIO TessaIO force-pushed the fix-expose-container-to-host-only-with-labels branch from 6e8ab1a to e834b19 Compare May 29, 2024 19:21
@TessaIO TessaIO changed the title [WIP] fix: expose container to host only with labels fix: expose container to host only with labels May 29, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 29, 2024
@cdrage cdrage merged commit 3bf9830 into kubernetes:main May 29, 2024
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cdrage, TessaIO

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We should not be using hostPort, make it optional via a label.

3 participants