redhat-ai-services / ai-accelerator

The AI Accelerator is a template project for setting up Red Hat OpenShift AI using GitOps
28 stars 59 forks source link

Bootstrap fork update #54

Closed strangiato closed 1 month ago

strangiato commented 1 month ago

This PR adds some checks into the bootstrap script that compares the git url used for cloned vs the one being applied in the cluster overlay, similar to what we are already doing for the branch.

The org and repo name are extracted from the git origin url for both ssh and https based URLs and used for a comparison so if someone does use SSH for cloning it will not flag that as an issue.

If the URLs do not match, here is what the prompt the user will see looks like:

Screenshot 2024-10-04 at 5 23 14 PM