Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Fix for GKE CI pipeline#5428

Merged
castelblanque merged 6 commits into
mainfrom
prerelease-check
Oct 5, 2022
Merged

Fix for GKE CI pipeline#5428
castelblanque merged 6 commits into
mainfrom
prerelease-check

Conversation

@castelblanque
Copy link
Copy Markdown
Contributor

Description of the change

This PR fixes the CI pipeline in GKE at the point of accesing the Chart Museum.
In #5337, an ingress was added to use Chart Museum, instead of using a port-forward.
Nginx ingress is installed in the Kind clusters created, but not on GKE cluster. Hence this PR.

Example of passing GKE pipeline.

Benefits

GKE CI pipelines will work with chart museum without port-forward.

Possible drawbacks

Chart museum will be exposed through an Ingress in GKE clusters while testing. But Chart museum itself has authentication, so it should not be a problem.

Applicable issues

Rafa Castelblanque added 5 commits October 4, 2022 17:09
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 5, 2022

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 7566d0b
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/633d554548494c0008595593

Comment thread script/install-nginx.sh
Comment on lines +17 to +21
while [ -z $LB_IP ]; do
echo "Waiting for external IP"
LB_IP=$(kubectl -n nginx-ingress get service nginx-ingress-ingress-nginx-controller --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")
[ -z "$LB_IP" ] && sleep 10
done
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we would like this to have a max retries limitation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I think we should add it to avoid potential headaches 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is the timeout of the pipeline run itself that will kick in for now. Will try to tackle it in a further PR.

Copy link
Copy Markdown
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks a lot for the fix!

@beni0888, do you know if these changes are also applicable to the recent GH action?

Comment thread script/install-nginx.sh
echo "Instaling Nginx"
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install -n nginx-ingress --create-namespace nginx-ingress ingress-nginx/ingress-nginx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we don't need the annotations we use to add for Kubeapps itself, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the buffers setup? Not sure what values come installing Nginx with Helm.
If annotations don't cause harm, I would leave them by now.

Comment thread script/chart-museum.sh
@castelblanque
Copy link
Copy Markdown
Contributor Author

do you know if these changes are also applicable to the recent GH action?

This branch already contains the GH pipeline. It is actually failing at one step: push_dev_images. Looking at it with @beni0888 .

Copy link
Copy Markdown
Collaborator

@beni0888 beni0888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread script/install-nginx.sh Outdated
Comment thread script/install-nginx.sh
Comment on lines +17 to +21
while [ -z $LB_IP ]; do
echo "Waiting for external IP"
LB_IP=$(kubectl -n nginx-ingress get service nginx-ingress-ingress-nginx-controller --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")
[ -z "$LB_IP" ] && sleep 10
done
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I think we should add it to avoid potential headaches 😄

Co-authored-by: Jesús Miguel Benito Calzada <bjesus@vmware.com>
Signed-off-by: Rafa Castelblanque <67455978+castelblanque@users.noreply.github.com>
@beni0888
Copy link
Copy Markdown
Collaborator

beni0888 commented Oct 5, 2022

Great! Thanks a lot for the fix!

@beni0888, do you know if these changes are also applicable to the recent GH action?

At this moment, the GKE-related jobs haven't been migrated to the GHA workflow, so these changes shouldn't affect it.

@castelblanque
Copy link
Copy Markdown
Contributor Author

Merging, as only one step of new GH actions pipeline is failing (Kubeapps general pipeline / push_dev_images).
Not relevant by now.

@castelblanque castelblanque merged commit 75452ce into main Oct 5, 2022
@castelblanque castelblanque deleted the prerelease-check branch October 5, 2022 11:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI failing in GKE

4 participants