Skip to content

Commit

Permalink
chore: fix k8s tests
Browse files Browse the repository at this point in the history
The check for k8s suite added in #9085 causes issues with applying k8s resources
which are global like `Namespace` or `StorageClass`.

Instead of failing just log.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Aug 9, 2024
1 parent 2ac8d22 commit f9f5e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/integration/base/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func (k8sSuite *K8sSuite) ApplyManifests(ctx context.Context, manifests []unstru
}

if obj.GetNamespace() == "" {
k8sSuite.T().Fatalf("namespace not set for object %s, kind %s", obj.GetName(), obj.GetObjectKind().GroupVersionKind())
k8sSuite.T().Logf("namespace not set for object %s, kind %s", obj.GetName(), obj.GetObjectKind().GroupVersionKind())
}

dr := k8sSuite.DynamicClient.Resource(mapping.Resource).Namespace(obj.GetNamespace())
Expand Down

0 comments on commit f9f5e0e

Please sign in to comment.