Integration tests should use 'kubectl explain --output plaintext-openapiv2'

- OpenAPIV3 discovery of aggregate APIs seems to need a little more work in K8s 1.28
This commit is contained in:
Joshua Casey
2023-08-24 13:08:15 -05:00
parent 1b504b6fbd
commit ca05969f8d
3 changed files with 5 additions and 1 deletions

View File

@@ -701,7 +701,7 @@ func runKubectlVersion(t *testing.T) {
func runKubectlExplain(t *testing.T, resourceName string, apiVersion string) string {
t.Helper()
var stdOut, stdErr bytes.Buffer
cmd := exec.Command("kubectl", "explain", resourceName, "--api-version", apiVersion)
cmd := exec.Command("kubectl", "explain", resourceName, "--api-version", apiVersion, "--output", "plaintext-openapiv2")
t.Log("Running:", cmd.String())
cmd.Stdout = &stdOut
cmd.Stderr = &stdErr