Skip to content

Commit

Permalink
add default curl pod
Browse files Browse the repository at this point in the history
  • Loading branch information
jbohanon committed Jun 6, 2024
1 parent 7ceb89f commit 5d83312
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions testutils/kube/curl.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ import (
"github.com/solo-io/go-utils/testutils/kubectl"
)

var (
DefaultCurlImage = Image{
Registry: "curlimages",
Repository: "curl",
Tag: "",
Digest: "aa45e9d93122a3cfdf8d7de272e2798ea63733eeee6d06bd2ee4f2f8c4027d7c",
PullPolicy: "IfNotPresent",
}
)

func CurlWithEphemeralPod(ctx context.Context, logger io.Writer, kubeContext, fromns, frompod string, args ...string) string {
execParams := EphemeralPodParams{
Logger: logger,
KubeContext: kubeContext,
Image: Image{
Registry: "curlimages",
Repository: "curl",
Tag: "",
Digest: "aa45e9d93122a3cfdf8d7de272e2798ea63733eeee6d06bd2ee4f2f8c4027d7c",
PullPolicy: "IfNotPresent",
},
Logger: logger,
KubeContext: kubeContext,
Image: DefaultCurlImage,
FromContainer: "curl",
FromNamespace: fromns,
FromPod: frompod,
Expand Down

0 comments on commit 5d83312

Please sign in to comment.