[WIP] Migrate to CRDs#61
Conversation
| COPY --from=builder /go/bin/machine-controller /go/bin/controller-manager / | ||
| WORKDIR /root/ | ||
| COPY --from=builder /go/src/github.com/openshift/cluster-api-provider-libvirt/manager . | ||
| ENTRYPOINT ["./manager"] |
There was a problem hiding this comment.
Why we are adding entrypoint?
There was a problem hiding this comment.
There are still parts to be cleaned up. Dockerfile nad Makefile i mentioned explicitly in description. Will cleanup soon.
|
|
||
| # Final container | ||
| FROM openshift/origin-base | ||
| RUN yum install -y ca-certificates libvirt-libs openssh-clients |
There was a problem hiding this comment.
Aren't those libraries needed to connect to libvirt hypervisor via qemu+ssh method?
| RUN mkdir -p /go/src/github.com/openshift/cluster-api-provider-libvirt | ||
| # Copy in the go src | ||
| WORKDIR /go/src/github.com/openshift/cluster-api-provider-libvirt | ||
| COPY pkg/ pkg/ |
|
|
||
| # Run go vet against code | ||
| vet: | ||
| go vet ./pkg/... ./cmd/... |
There was a problem hiding this comment.
Why this changed from using hack/go-vet.sh script?
|
|
||
| # Run go fmt against code | ||
| fmt: | ||
| go fmt ./pkg/... ./cmd/... |
There was a problem hiding this comment.
Why this changed from using hack/go-fmt.sh script?
| .PHONY: all | ||
| all: build images check | ||
|
|
||
| NO_DOCKER ?= 0 |
|
|
||
| .PHONY: test | ||
| test: # Run unit test | ||
| $(DOCKER_CMD) go test -race -cover ./cmd/... ./cloud/... |
There was a problem hiding this comment.
Running go should be containerized to ensure local test env is identical with CI one.
There was a problem hiding this comment.
Running go should be containerized to ensure local test env is identical with CI one.
I think our Makefile's are upside down. They should favour the developer who types a lot of make commands. In dev, I just want a local binary.
There was a problem hiding this comment.
Produced binary is preserved in bin/ directory and our makefiles allow to use non-containerized builds.
|
Shouldn't this PR use |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: If they are not already assigned, you can assign the PR to them by writing 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 |
|
@vikaschoudhary16: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@vikaschoudhary16 please shout when this is ready for review :)
Previously we suited the layout on master moving the cloud folder into packages |
|
Closing in favor of #72 |
|
oh, this was very aggressive overtake.
|
|
Sorry about that Vikas :( Alberto restructured his PR during the week with additional changes that we discussed, the e2e framework has changed, some downstream patches were applied. I did not want you to spend time duplicating the same job we did with Alberto. |
LibvirtMachineProviderStatuscommand to build at the moment:
Local testing is done using these steps: