1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Fix readiness and liveness checks

Rename grpc-health-probe -> grpc_health_probe as
our deployment yamls and its own documentation
refer to it by this name.

This should fix broken NFD deployments.

Signed-off-by: Eduard Bartosh <eduard.bartosh@intel.com>
This commit is contained in:
Eduard Bartosh 2021-12-23 12:22:21 +02:00
parent 7a7b01216e
commit c7bd2d9d8d

View file

@ -4,9 +4,12 @@ ARG BASE_IMAGE_MINIMAL
# Build node feature discovery
FROM golang:1.17.2-buster as builder
# Download the grpc_health_probe bin
# Build and install the grpc-health-probe binary
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.6 && \
go install github.com/grpc-ecosystem/grpc-health-probe@${GRPC_HEALTH_PROBE_VERSION}
go install github.com/grpc-ecosystem/grpc-health-probe@${GRPC_HEALTH_PROBE_VERSION} \
# Rename it as it's referenced as grpc_health_probe in the deployment yamls
# and in its own project https://github.com/grpc-ecosystem/grpc-health-probe
&& mv /go/bin/grpc-health-probe /go/bin/grpc_health_probe
# Get (cache) deps in a separate layer
COPY go.mod go.sum /go/node-feature-discovery/