From 9ee2be06f5adcf6170814cd14e416d34fe0c319a Mon Sep 17 00:00:00 2001 From: Kornilios Kourtis Date: Tue, 11 Jun 2024 14:36:47 +0200 Subject: [PATCH] install/kubernetes/Makefile: use CURDIR ./tetragon does not seem to work for my version of docker, and I'm getting: docker: Error response from daemon: create ./tetragon: "./tetragon" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. Use CURDIR to pass the full path. Other versions of docker seem to work fine. Signed-off-by: Kornilios Kourtis --- install/kubernetes/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/kubernetes/Makefile b/install/kubernetes/Makefile index 36f0d78d3d7..6e23fbb2ee5 100644 --- a/install/kubernetes/Makefile +++ b/install/kubernetes/Makefile @@ -12,7 +12,7 @@ REPO_ROOT := $(shell git rev-parse --show-toplevel) TETRAGON_CHART := tetragon CRDS := $(REPO_ROOT)/pkg/k8s/apis/cilium.io/client/crds/v1alpha1 -HELM ?= docker run --rm -v ./$(TETRAGON_CHART):/apps $(HELM_IMAGE) +HELM ?= docker run --rm -v $(CURDIR)/$(TETRAGON_CHART):/apps $(HELM_IMAGE) .PHONY: all all: deps $(TETRAGON_CHART)/crds-yaml lint docs @@ -28,7 +28,7 @@ lint: .PHONY: docs docs: - docker run --rm -v ./$(TETRAGON_CHART):/helm-docs -u $$(id -u) $(HELMDOCS_IMAGE) + docker run --rm -v $(CURDIR)/$(TETRAGON_CHART):/helm-docs -u $$(id -u) $(HELMDOCS_IMAGE) ./export-doc.sh $(REPO_ROOT)/docs/content/en/docs/reference/helm-chart.md # NB: Helm has an "official" way to install CRDs which requires simply putting