Skip to content

Commit ef891b4

Browse files
committed
fix: remove init for k8s & docker provider
1 parent 6ca9db0 commit ef891b4

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

.github/workflows/e2e-tests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- "**.go"
99
- "pkg/**.sh"
10+
- "providers/**"
1011
- "!**_test.go" # exclude test files to ignore unit test changes
1112
- "e2e/**_test.go" # include test files in e2e again
1213
- ".github/workflows/e2e-tests.yaml"

providers/docker/provider.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,5 @@ agent:
2828
env:
2929
DOCKER_HOST: ${DOCKER_HOST}
3030
exec:
31-
init: |-
32-
# Check if docker exists and is reachable
33-
DOCKER_HOST=${DOCKER_HOST} ${DOCKER_PATH} ps >/dev/null 2>&1
34-
if [ $? -ne 0 ]; then
35-
>&2 echo "Seems like docker is not reachable on your system."
36-
>&2 echo "Please make sure docker is installed and running."
37-
>&2 echo "You can verify if docker is running correctly via '${DOCKER_PATH} ps'"
38-
exit 1
39-
fi
40-
4131
command: |-
4232
"${DEVPOD}" helper sh -c "${COMMAND}"

providers/kubernetes/provider.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,5 @@ agent:
136136
pvcAccessMode: ${PVC_ACCESS_MODE}
137137
podManifestTemplate: ${POD_MANIFEST_TEMPLATE}
138138
exec:
139-
init: |-
140-
# Check if kubernetes is reachable
141-
${KUBECTL_PATH} get pods --kubeconfig=${KUBERNETES_CONFIG} --namespace=${KUBERNETES_NAMESPACE} --context=${KUBERNETES_CONTEXT} >/dev/null 2>&1
142-
if [ $? -ne 0 ]; then
143-
>&2 echo "Seems like kubernetes is not reachable on your system."
144-
>&2 echo "Please make sure kubectl is installed and working."
145-
>&2 echo "You can verify if kubectl is working correctly via: ${KUBECTL_PATH} get pods --kubeconfig=${KUBERNETES_CONFIG} --namespace=${KUBERNETES_NAMESPACE} --context=${KUBERNETES_CONTEXT}"
146-
exit 1
147-
fi
148-
149139
command: |-
150140
"${DEVPOD}" helper sh -c "${COMMAND}"

0 commit comments

Comments
 (0)