Describe the bug
I was expecting terratest to use client-go, when run in container within a container?
To Reproduce
Create a Dockerfile:
# syntax=docker/dockerfile:1
FROM golang:1.21.7 AS builder
ARG TEST_FOLDER
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY $TEST_FOLDER/*.go ./
COPY $TEST_FOLDER/*.yml ./
kubernetes_hello_world_example_test.go:25
Error: Received unexpected error:
error while running command: exec: "kubectl": executable file not found in $PATH;
Expected behavior
A clear and concise description of what you expected to happen.
Nice to have
[ ] Terminal output
[ ] Screenshots
Versions
Terratest version:
Environment details (Ubuntu 20.04, Windows 10, etc.):
Additional context
Add any other context about the problem here.
Hi,
yes kubectl is required to be in path, AFAIK it is to be able to re-use existing configurations through KUBECONFIG and to be able to use kustomize through kubectl apply -k
Describe the bug I was expecting terratest to use client-go, when run in container within a container?
To Reproduce Create a Dockerfile:
Build using:
Pod:
Error:
Expected behavior A clear and concise description of what you expected to happen.
Nice to have
Versions
Additional context Add any other context about the problem here.