Commit 1750b40d authored by Geoff Simmons's avatar Geoff Simmons

Change the name of the controller binary.

Purely cosmetic, but now it really sounds like a viking controller.
parent b0bf05e3
......@@ -82,7 +82,7 @@ spec:
- /usr/bin/pgrep
- -P
- "0"
- k8s-ingress
- vikingctrl
{{- range $k, $v := .Values.vikingController.livenessProbeConfig }}
{{ $k }}: {{ $v }}
{{- end }}
......
......@@ -23,7 +23,7 @@ COPY ./cmd/ /go/src/code.uplex.de/uplex-varnish/k8s-ingress/cmd/
COPY ./.git/ /go/src/code.uplex.de/uplex-varnish/k8s-ingress/.git/
RUN go generate ./cmd/... && go build ./pkg/... ./cmd/... && \
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o k8s-ingress cmd/*.go
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o vikingctrl cmd/*.go
FROM alpine:3.14.2
ENV USER=controller UID=10001
......@@ -33,7 +33,7 @@ RUN adduser --disabled-password --gecos "viking controller" \
--uid "${UID}" \
"${USER}"
COPY --from=builder /go/src/code.uplex.de/uplex-varnish/k8s-ingress/k8s-ingress /k8s-ingress
COPY --from=builder /go/src/code.uplex.de/uplex-varnish/k8s-ingress/vikingctrl /usr/bin/
USER controller:controller
ENTRYPOINT ["/k8s-ingress"]
ENTRYPOINT ["/usr/bin/vikingctrl"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment