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: ...@@ -82,7 +82,7 @@ spec:
- /usr/bin/pgrep - /usr/bin/pgrep
- -P - -P
- "0" - "0"
- k8s-ingress - vikingctrl
{{- range $k, $v := .Values.vikingController.livenessProbeConfig }} {{- range $k, $v := .Values.vikingController.livenessProbeConfig }}
{{ $k }}: {{ $v }} {{ $k }}: {{ $v }}
{{- end }} {{- end }}
......
...@@ -23,7 +23,7 @@ COPY ./cmd/ /go/src/code.uplex.de/uplex-varnish/k8s-ingress/cmd/ ...@@ -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/ COPY ./.git/ /go/src/code.uplex.de/uplex-varnish/k8s-ingress/.git/
RUN go generate ./cmd/... && go build ./pkg/... ./cmd/... && \ 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 FROM alpine:3.14.2
ENV USER=controller UID=10001 ENV USER=controller UID=10001
...@@ -33,7 +33,7 @@ RUN adduser --disabled-password --gecos "viking controller" \ ...@@ -33,7 +33,7 @@ RUN adduser --disabled-password --gecos "viking controller" \
--uid "${UID}" \ --uid "${UID}" \
"${USER}" "${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 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