✨ Add Podman support#157
Conversation
✅ Deploy Preview for node-readiness-controller canceled.
|
9dc39b6 to
b1e4475
Compare
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. | |||
There was a problem hiding this comment.
| 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
There was a problem hiding this comment.
Yeah, Correct, I just update it. Thanks.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
In that case should I keep the docker build target, Only specific to building docker.
There was a problem hiding this comment.
I think I'm okay with either- using a variable override or a podman-target
There was a problem hiding this comment.
Added separate target for docker and podman. Please take a look. Thanks.
Makefile
Outdated
| .PHONY: docker-build-reporter | ||
| docker-build-reporter: ## Build docker image with the reporter. |
There was a problem hiding this comment.
| .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. |
docs/TEST_README.md
Outdated
| **Verify the image is loaded:** | ||
| ```bash | ||
| # Check images in the Kind cluster | ||
| docker exec -it nrr-test-control-plane crictl images | grep controller |
There was a problem hiding this comment.
we add a podman exec ... version too, since we have a podman variant for all other commands above
|
|
||
| **Using Podman:** | ||
| ```bash | ||
| make deploy IMG_PREFIX=localhost/controller IMG_TAG=latest |
There was a problem hiding this comment.
TIL, that podman forces the localhost prefix.
There was a problem hiding this comment.
Yes, Thats correct.
|
changes looks good to me. (I tested as well locally) |
424e2d9 to
f09274e
Compare
|
@Karthik-K-N I think you need to change the usage across all tests too. |
f09274e to
ba8bd79
Compare
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. |
9e169b3 to
1ebb28c
Compare
1ebb28c to
01d8525
Compare
|
/lgtm |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Add support for Podman
Related Issue
Type of Change
/kind feature
Testing
Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
Doc #(issue)