gitkube
gitkube copied to clipboard
Improve e2e test
Currently, the e2e test fails when the following two resources already exist:
Error from server (AlreadyExists): error when creating "STDIN": customresourcedefinitions.apiextensions.k8s.io "remotes.gitkube.sh" already exists
Error from server (AlreadyExists): error when creating "STDIN": clusterrolebindings.rbac.authorization.k8s.io "gitkube" already exists
For the CRD, we just need to ignore the error and for clusterrolebindings we can just use the test namespace name.
Also see https://github.com/hasura/gitkube/issues/29