Skip to content

Commit e2d0a3c

Browse files
committed
Remove BundleDeployments gathering from e2e's gatherArtifacts (#886)
When tests fail, gatherArtifacts is run to collect cluster state. This PR removes gathering of BundleDeployments since we don't use them anymore and it's generating additional misleading error messages. Signed-off-by: dtfranz <[email protected]>
1 parent 19ae03f commit e2d0a3c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/e2e/cluster_extension_install_test.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ func TestClusterExtensionInstallSuccessorVersion(t *testing.T) {
322322
// - clusterextensions
323323
// - pods logs
324324
// - deployments
325-
// - bundledeployments
326325
// - catalogsources
327326
func getArtifactsOutput(t *testing.T) {
328327
basePath := env.GetString("ARTIFACT_PATH", "")
@@ -382,23 +381,6 @@ func getArtifactsOutput(t *testing.T) {
382381
}
383382
}
384383

385-
// Get all BundleDeployments in the namespace and save them to the artifact path.
386-
bundleDeployments := rukpakv1alpha2.BundleDeploymentList{}
387-
if err := c.List(context.Background(), &bundleDeployments, client.InNamespace("")); err != nil {
388-
fmt.Printf("Failed to list bundleDeployments: %v", err)
389-
}
390-
for _, bundleDeployment := range bundleDeployments.Items {
391-
// Save bundleDeployment to artifact path
392-
bundleDeploymentYaml, err := yaml.Marshal(bundleDeployment)
393-
if err != nil {
394-
fmt.Printf("Failed to marshal bundleDeployment: %v", err)
395-
continue
396-
}
397-
if err := os.WriteFile(filepath.Join(artifactPath, bundleDeployment.Name+"-bundleDeployment.yaml"), bundleDeploymentYaml, 0600); err != nil {
398-
fmt.Printf("Failed to write bundleDeployment to file: %v", err)
399-
}
400-
}
401-
402384
for _, namespace := range namespaces.Items {
403385
// let's ignore kube-* namespaces.
404386
if strings.Contains(namespace.Name, "kube-") {

0 commit comments

Comments
 (0)