Skip to content

Commit 65d2cd5

Browse files
committed
fix: build and load pint image in dev-freeradius for radsec-agent sidecar
The freeradius deployment now includes a radsec-agent sidecar that uses the pint image, so dev-freeradius must build and kind-load it alongside the freeradius image.
1 parent de7e14a commit 65d2cd5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ STUB = freeipa-stub
55
CLUSTER = pint-dev
66
NAMESPACE = pint
77
FR_IMAGE = pint-freeradius:dev
8+
PINT_IMAGE = pint:dev
89
SMOKETEST_IMAGE = pint-smoketest:dev
910
SMOKETEST_POD = pint-radsec-smoketest
1011
SCEP_PINT_URL ?= http://localhost:8080
@@ -60,10 +61,14 @@ dev-metrics:
6061
-p='[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--kubelet-insecure-tls"}]'
6162
kubectl rollout status deployment/metrics-server -n kube-system --timeout=90s
6263

63-
# Build FreeRADIUS dev image, load it into kind, and trigger a rollout.
64+
# Build FreeRADIUS and PINT dev images, load them into kind, and trigger a rollout.
65+
# Both images are needed: FreeRADIUS runs the RADIUS server; the PINT image
66+
# provides the radsec-agent sidecar for HAProxy agent-check health probes.
6467
dev-freeradius:
6568
docker build -t $(FR_IMAGE) dev/freeradius/
69+
docker build -t $(PINT_IMAGE) .
6670
kind load docker-image $(FR_IMAGE) --name $(CLUSTER)
71+
kind load docker-image $(PINT_IMAGE) --name $(CLUSTER)
6772
kubectl rollout restart deployment/pint-freeradius -n $(NAMESPACE) 2>/dev/null || true
6873

6974
# Create the envSecret K8s Secret from .env.dev so PINT can run in-cluster.
@@ -105,7 +110,7 @@ radsec-smoketest:
105110
# ── Docker build ───────────────────────────────────────────────────────────────
106111

107112
docker-build:
108-
docker build -t pint:dev .
113+
docker build -t $(PINT_IMAGE) .
109114

110115
# ── Cleanup ────────────────────────────────────────────────────────────────────
111116

0 commit comments

Comments
 (0)