···44ARG TARGETOS
55ARG TARGETARCH
6677-# Install build dependencies for PKCS#11
77+# Install build dependencies for PKCS#11 and USB event monitoring
88RUN apk add --no-cache \
99 gcc \
1010- g++
1010+ g++ \
1111+ eudev-dev \
1212+ linux-headers
11131214# Return to workspace for Go builds
1315WORKDIR /workspace
···2830RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o hsm-operator cmd/hsm-operator/main.go
29313032FROM alpine:3.22
3131-RUN apk add --no-cache opensc-dev ccid pcsc-lite openssl libtool libusb ca-certificates
3333+RUN apk add --no-cache opensc-dev ccid pcsc-lite openssl libtool libusb ca-certificates eudev
32343335WORKDIR /
3436COPY --from=builder /workspace/hsm-operator .
+3-3
Makefile
···33# To re-generate a bundle for another specific version without changing the standard setup, you can:
44# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
66-VERSION ?= 0.6.3
66+VERSION ?= 0.6.4
7788# CHANNELS define the bundle channels used in the bundle.
99# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
···136136137137.PHONY: manifests
138138manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
139139- $(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
139139+ CGO_ENABLED=0 $(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
140140141141.PHONY: helm-sync
142142helm-sync: manifests ## Sync generated CRDs from config/ to helm/crds/
···147147148148.PHONY: generate
149149generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
150150- $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
150150+ CGO_ENABLED=0 $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
151151152152.PHONY: fmt
153153fmt: ## Run go fmt against code.