-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
/kind bug
i.e.
$ podman run --rm gcr.io/k8s-staging-capi-openstack/capi-openstack-controller:v0.10.1 --version
produces no output.
cloudbuild makes release-staging
:
cluster-api-provider-openstack/cloudbuild.yaml
Lines 8 to 15 in 7b0635f
entrypoint: make | |
env: | |
- DOCKER_CLI_EXPERIMENTAL=enabled | |
- TAG=$_GIT_TAG | |
- PULL_BASE_REF=$_PULL_BASE_REF | |
- DOCKER_BUILDKIT=1 | |
args: | |
- release-staging |
which ultimately calls the docker-build
make target:
cluster-api-provider-openstack/Makefile
Lines 306 to 307 in 7b0635f
docker-build: ## Build the docker image for controller-manager | |
docker build -f Dockerfile --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CONTROLLER_IMG_TAG) |
Note that it passes --build-arg LDFLAGS="$(LDFLAGS)"
. The version information is included in the LDFLAGS
make variable and passed to docker as a build arg called LDFLAGS
. However, the docker build arg is lowercase:
cluster-api-provider-openstack/Dockerfile
Line 38 in 7b0635f
ARG ldflags |
so it is never set.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Type
Projects
Status
Done