File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ func (m *EphemeralMachine) WaitForInstanceReady(ctx context.Context) error {
6565 m .instance = & getInstanceResponse .Instance
6666 break
6767 }
68+ // Sometimes the API request is correct, but machine creation fails and jumps to TERMINATED state, then the pod runs forever
69+ if getInstanceResponse .Instance .LifecycleState == core .InstanceLifecycleStateTerminated {
70+ return fmt .Errorf ("failed to create the machine, it's in TERMINATED state" )
71+ }
6872 time .Sleep (15 * time .Second )
6973 }
7074
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ ARG BASE_IMAGE
22
33FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime-deps:8.0-${BASE_IMAGE} AS build
44
5- ARG RUNNER_VERSION=2.329 .0
5+ ARG RUNNER_VERSION=2.330 .0
66ARG RUNNER_CONTAINER_HOOKS_VERSION=0.8.0
7- ARG DOCKER_VERSION=28.5.1
8- ARG BUILDX_VERSION=0.29 .1
7+ ARG DOCKER_VERSION=29.0.2
8+ ARG BUILDX_VERSION=0.30 .1
99ARG TARGETOS
1010ARG TARGETARCH
1111
@@ -100,9 +100,9 @@ COPY --from=build /usr/local/lib/docker/cli-plugins/docker-buildx /usr/local/lib
100100
101101RUN install -o root -g root -m 755 docker/* /usr/bin/ && rm -rf docker
102102
103- RUN curl -LO https://go.dev/dl/go1.25.3 .linux-${TARGETARCH}.tar.gz \
104- && tar -C /usr/local -xzf go1.25.3 .linux-${TARGETARCH}.tar.gz \
105- && rm go1.25.3 .linux-${TARGETARCH}.tar.gz \
103+ RUN curl -LO https://go.dev/dl/go1.25.4 .linux-${TARGETARCH}.tar.gz \
104+ && tar -C /usr/local -xzf go1.25.4 .linux-${TARGETARCH}.tar.gz \
105+ && rm go1.25.4 .linux-${TARGETARCH}.tar.gz \
106106 && echo 'export PATH=$PATH:/usr/local/go/bin:/home/runner/go/bin:/home/runner/.local/bin' >> /etc/profile \
107107 && echo 'export PATH=$PATH:/usr/local/go/bin:/home/runner/go/bin:/home/runner/.local/bin' >> /home/runner/.profile \
108108 && echo 'export PATH=$PATH:/usr/local/go/bin:/home/runner/go/bin:/home/runner/.local/bin' >> /home/runner/.bashrc
You can’t perform that action at this time.
0 commit comments