Skip to content

Commit

Permalink
fix(agent): use agent image for initcontainer
Browse files Browse the repository at this point in the history
Signed-off-by: Zespre Chang <zespre.chang@suse.com>
  • Loading branch information
starbops committed Nov 7, 2024
1 parent 5650e2d commit ec69e60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/Dockerfile.agent
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FROM registry.suse.com/bci/bci-base:15.6

RUN zypper -n rm container-suseconnect && \
zypper -n in curl dhcp-tools jq
zypper -n in curl dhcp-tools iproute2 jq

ARG TARGETPLATFORM

Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/ippool/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ func prepareAgentPod(
ServiceAccountName: agentServiceAccountName,
InitContainers: []corev1.Container{
{
Name: "ip-setter",
Image: "busybox",
ImagePullPolicy: "IfNotPresent",
Name: "ip-setter",
Image: agentImage.String(),
ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{
"/bin/sh",
"-c",
Expand Down

0 comments on commit ec69e60

Please sign in to comment.