-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test environment on GKE #5207
Conversation
✅ Deploy Preview for kubeapps-dev canceled.Built without sensitive environment variables
|
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
# Setting up local Docker registry if not in GKE | ||
if [[ -z "${GKE_BRANCH-}" ]]; then | ||
setupLocalDockerRegistry | ||
pushLocalChart | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The local docker registry doesn't work right now on GKE as the current configuration requires the k8s cert to be copied for issuing the certs. The quickest solution: ignore those tests when in GKE.
@@ -396,7 +398,7 @@ kubectl create serviceaccount kubeapps-edit -n kubeapps | |||
# default). See https://github.com/vmware-tanzu/kubeapps/issues/4435 | |||
kubectl create rolebinding kubeapps-edit -n kubeapps --clusterrole=edit --serviceaccount kubeapps:kubeapps-edit | |||
kubectl create rolebinding kubeapps-edit -n default --clusterrole=edit --serviceaccount kubeapps:kubeapps-edit | |||
kubectl create rolebinding kubeapps-repositories-read -n kubeapps --clusterrole kubeapps:kubeapps:apprepositories-read --serviceaccount kubeapps:kubeapps-edit | |||
kubectl create clusterrolebinding kubeapps-repositories-read --clusterrole kubeapps:kubeapps:apprepositories-read --serviceaccount kubeapps:kubeapps-edit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing to clusterrolebinding instead for allowing listing repos when using namespace=""
Issue tracked at #5215
Description of the change
The local registry setup for the e2e test is not working on GKE. While finding a way to create a local registry there (main issue is dealing with certs), it's ok with disabling this test (and its setup) for now. This PR is moving the
10-xxx
test into themulticluster
folder (which is not run when on GKE).Plus: using a clusterrolebinding for allowing listing repos from
ns=""
in the EDIT user in CIBenefits
GKE tests (and therefore the release) will pass.
Possible drawbacks
N/A
Applicable issues
N/A
Additional information
N/A