Skip to content

Resolve combined-image binary via PATH instead of /usr/bin/calico#4805

Draft
caseydavenport wants to merge 1 commit into
tigera:masterfrom
caseydavenport:casey-ko-prototype
Draft

Resolve combined-image binary via PATH instead of /usr/bin/calico#4805
caseydavenport wants to merge 1 commit into
tigera:masterfrom
caseydavenport:casey-ko-prototype

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

Summary

Switch CalicoBinaryPath (and the csi-node-driver-registrar command) from absolute paths to bare commands so they resolve via PATH. The legacy Dockerfile build puts the binary at /usr/bin/calico; the ko-built image puts it at /ko-app/calico. Both /usr/bin and /ko-app are on PATH, so a bare command works either way.

Why

Companion to projectcalico/calico#12710 (ko-build prototype). Without this, the operator-managed pods can't start when the calico image is ko-built — the absolute path no longer exists in the image.

Test plan

  • Build operator image, deploy alongside ko-built calico image, verify pods come up
None

Switches CalicoBinaryPath (and the csi-node-driver-registrar command) from
absolute paths to bare commands so they resolve via PATH. Keeps us agnostic
to where the binary lives in the image: legacy Dockerfile builds use
/usr/bin/calico, ko-built images use /ko-app/calico. Both paths are on PATH.

Companion to the ko-build prototype in projectcalico/calico#12710.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants