Skip to content

✨ Add Podman support#157

Merged
k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
Karthik-K-N:podman-support
Mar 12, 2026
Merged

✨ Add Podman support#157
k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
Karthik-K-N:podman-support

Conversation

@Karthik-K-N
Copy link
Contributor

@Karthik-K-N Karthik-K-N commented Mar 9, 2026

Description

Add support for Podman

Related Issue

Type of Change

/kind feature

Testing

Checklist

  • make test passes
  • make lint passes

Does this PR introduce a user-facing change?

Add Podman support

Doc #(issue)

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 9, 2026
@netlify
Copy link

netlify bot commented Mar 9, 2026

Deploy Preview for node-readiness-controller canceled.

Name Link
🔨 Latest commit 01d8525
🔍 Latest deploy log https://app.netlify.com/projects/node-readiness-controller/deploys/69b23d8f6b54cb000886170c

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 9, 2026
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 9, 2026
@Karthik-K-N
Copy link
Contributor Author

/cc @Priyankasaggu11929

Makefile Outdated
@@ -177,7 +181,11 @@ run: manifests generate fmt vet ## Run a controller from your host.
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
.PHONY: docker-build
docker-build: ## Build docker image with the manager.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
docker-build: ## Build docker image with the manager.
container-build: ## Build docker image with the manager.

docker-build for building with podman feels a bit confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, Correct, I just update it. Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

I understood docker-build as more of a standard target name in Make due to conventions.

Not to sound prudent, and this may be fine to make such changes as we are still in early releases -- but I think we should be careful about changing existing names / fields as it may be breaking change for users.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In that case should I keep the docker build target, Only specific to building docker.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I'm okay with either- using a variable override or a podman-target

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added separate target for docker and podman. Please take a look. Thanks.

Makefile Outdated
Comment on lines 224 to 225
.PHONY: docker-build-reporter
docker-build-reporter: ## Build docker image with the reporter.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.PHONY: docker-build-reporter
docker-build-reporter: ## Build docker image with the reporter.
.PHONY: container-build-reporter
container-build-reporter: ## Build container image with the reporter.

**Verify the image is loaded:**
```bash
# Check images in the Kind cluster
docker exec -it nrr-test-control-plane crictl images | grep controller
Copy link
Member

Choose a reason for hiding this comment

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

we add a podman exec ... version too, since we have a podman variant for all other commands above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, Done.


**Using Podman:**
```bash
make deploy IMG_PREFIX=localhost/controller IMG_TAG=latest
Copy link
Member

Choose a reason for hiding this comment

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

TIL, that podman forces the localhost prefix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, Thats correct.

@Priyankasaggu11929
Copy link
Member

changes looks good to me. (I tested as well locally)

@ajaysundark
Copy link
Contributor

@Karthik-K-N I think you need to change the usage across all tests too.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 9, 2026
@Karthik-K-N
Copy link
Contributor Author

@Karthik-K-N I think you need to change the usage across all tests too.

I just updated the e2e test to use the contaienr-build, but the podman support is not yet available in e2e tests, I hope thats fine for now? or should I add it now itself.

@ajaysundark
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 12, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ajaysundark, Karthik-K-N

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 12, 2026
@k8s-ci-robot k8s-ci-robot merged commit c206921 into kubernetes-sigs:main Mar 12, 2026
10 checks passed
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/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

4 participants