Skip to content

Add kubernetes driver for executing structured tests#553

Open
pieterjanpintens wants to merge 1 commit intoGoogleContainerTools:mainfrom
pieterjanpintens:main
Open

Add kubernetes driver for executing structured tests#553
pieterjanpintens wants to merge 1 commit intoGoogleContainerTools:mainfrom
pieterjanpintens:main

Conversation

@pieterjanpintens
Copy link

Would fix issue #311

@google-cla
Copy link

google-cla bot commented Mar 24, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

if !d.AllowReuse || d.podName == "" {
logrus.Info("k8s driver creating pod")
allEnvs := append(d.env, envVars...)
// create a pod that waits
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the k8es api does not seem to allow to get stderr and stdout as seperate streams with the regular 'start pod'. You can fetch the logs but they are mixed streams.
The trick is thus to spawn a pod that waits and to execute the actual command with another api call in the pod. This api does allow to have seperate streams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant