Skip to content

Commit a1bafe1

Browse files
authored
Merge pull request #25 from STRRL/fix-coredns-plugin-priority
fix: change the order of coredns plugin loading
2 parents f49cf55 + d8d8a6d commit a1bafe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /
66
RUN git clone https://github.com/coredns/coredns && cd coredns && git checkout 7d5f5b87a4fb310d442f7ef0d52e3fead0e10d39
77
COPY . /k8s_dns_chaos
88
# RUN ln -s /k8s_dns_chaos /coredns/plugin/k8s_dns_chaos
9-
RUN echo "k8s_dns_chaos:github.com/chaos-mesh/k8s_dns_chaos" >> /coredns/plugin.cfg
9+
RUN sed -i '/kubernetes/a\k8s_dns_chaos:github.com/chaos-mesh/k8s_dns_chaos' /coredns/plugin.cfg
1010
RUN cd coredns && \
1111
go mod edit -require github.com/chaos-mesh/[email protected] && \
1212
go mod edit -replace github.com/chaos-mesh/k8s_dns_chaos=/k8s_dns_chaos && \

0 commit comments

Comments
 (0)