Skip to content

Commit 2b61a18

Browse files
Use patched config reloader
1 parent bcc3012 commit 2b61a18

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
# Use patched reloader. Can be removed after version with fix (https://github.com/vmware/kube-fluentd-operator/pull/360) is available.
2+
FROM golang:1.18 as builder
3+
WORKDIR /go/src/github.com/vmware/kube-fluentd-operator
4+
RUN set -e \
5+
&& git clone --depth 1 --branch bugfix/migration-mode-with-cr-namespaces https://github.com/jonasrutishauser/kube-fluentd-operator.git . \
6+
&& cd config-reloader \
7+
&& GO111MODULE=on GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags "-X github.com/vmware/kube-fluentd-operator/config-reloader/config.Version=1.16.8-1 -w -s" .
8+
# End patch build
9+
110
FROM vmware/kube-fluentd-operator:v1.16.8
211

312
RUN set -e \
413
&& tdnf install -y jq sed \
514
&& gem install -N fluent-plugin-jq -v "0.5.1" \
615
&& echo OK
716

17+
# Use patched reloader
18+
COPY --from=builder /go/src/github.com/vmware/kube-fluentd-operator/config-reloader/config-reloader /bin/config-reloader
19+
820
# Patch configuration files:
921
# - relabel all at end to allow default match in kube-system.conf (is before all other namespaces)
1022
# - kubelet.log of rancher is in /var/lib/rancher/rke2/agent/logs

0 commit comments

Comments
 (0)