# How to handle Ranchers Continuous Delivery?

**URL:** <https://forums.suse.com/t/how-to-handle-ranchers-continuous-delivery/37444>\
**Category:** SUSE Rancher Prime\
**Created:** [March 31, 2022, 12:34pm UTC](https://forums.suse.com/t/how-to-handle-ranchers-continuous-delivery/37444 "2022-03-31T12:34:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albattani](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Albattani](https://forums.suse.com/u/Albattani)\
**Post date:** [March 31, 2022, 12:34pm UTC](https://forums.suse.com/t/how-to-handle-ranchers-continuous-delivery/37444/1 "2022-03-31T12:34:50Z")

</div>

Hi, I am kinda new to rancher. I have a test environment with rancher and rke2. I have tested a few things and like it so far, but I am a little confused by the continuous delivery part.  
I have created a gitlab repo and added it to rancher CD. These are the things I observed:

1. When I add a path in rancher in the config under “Paths”, everything works fine and rancher grabs only those file in that subpaths in git and applies them to my cluster.
2. When I don’t add any paths, rancher seems to grab everything in root path and all subpaths but it does not grab the cluster so it does not apply the kubernetes objects anywhere.
3. After 1, when I clone the repo from 1 with a different (sub)path, rancher also does not grab the cluster so those files are also not applied.

Actually I don’t mind 2, since using root path is not that clever, but with 3 I do have a problem.  
When I want to install like different apps in my cluster, where each of them has a couple of resources (deployment, service, ingress…) I would put yml files for each of those apps in a subpath in my gitlab repo and add a repo in rancher CD pointing to that subpath, now everything is grouped for the first app and the app is installed in my cluster. But when I clone that repo in rancher CD (using “Clone” in rancher UI) and change the path, pointing it to the second app it never gets installed in my cluster because rancher does not grab my cluster a second time.

Is this as designed? or is this a bug? I kinda don’t want to add a second path to the first repo in rancher CD, because then they would not be grouped for each app and if I wanted to uninstall one of those apps it would be difficult if possible at all.

---

<div class="post-metadata">

**Author:** ![Albattani](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Albattani](https://forums.suse.com/u/Albattani)\
**Post date:** [March 31, 2022, 12:41pm UTC](https://forums.suse.com/t/how-to-handle-ranchers-continuous-delivery/37444/2 "2022-03-31T12:41:11Z")

</div>

Hmm I just checked again. Now it does work, maybe there is a bug somewhere and it is not stable so it got confused with 2 so it failed with 3 afterwards…  
I just deleted all repos in rancher CD, created a new one with a subpath, waited until everything was deployed and then I created another repo using “create”, not “clone” and now it does grab my cluster a second time ¯\_(ツ)\_/¯  
I created a bug report:

> <https://github.com/rancher/rancher/issues/37140>
>
> \*\*Rancher Server Setup\*\*
> \- Rancher version:
> 2.6.2
> \- Installation option (Dock…er install/Helm Chart):
> helm
> - If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):
> RKE2
> 
> \*\*Information about the Cluster\*\*
> \- Kubernetes version:
> v1.22.7+rke2r1
> \- Cluster Type (Local/Downstream):
> Local
> 
> \*\*User Information\*\*
> \- What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
> Admin
> 
> 
>    
> \*\*Describe the bug\*\*
> When I "Clone" repository for continuous delivery in rancher UI, "Clusters Ready" for this new repository stays at 0 even though it is at 1 for the original repository
> 
> \*\*To Reproduce\*\*
> 1. Create a Git Repo in rancher UI in CD context and wait until it succeeds and the objects defined in your repository actually appear in your cluster.
> 2. From the CD context use "Clone" on the working repository, assign a new name and a different "Path" then the first repository.
> 
> \*\*Result\*\*
> Repository works but it does not grab the cluster (Clusters Ready stays at 0) and does not apply the files so the objects actually never show in your cluster.
> 
> \*\*Expected Result\*\*
> Clusters Ready should go to 1 and objects should be applied to the cluster
> 
> \*\*Screenshots\*\*
> !\[image\](https://user-images.githubusercontent.com/98939160/161059653-30a43b27-c7bf-4c0a-83d9-e05e139ded16.png)
> !\[image\](https://user-images.githubusercontent.com/98939160/161059731-61d09c41-4477-47c4-ba35-19348c46bb24.png)
> 
> 
> \*\*Additional context\*\*
> When instead of "Clone" a brand new Git Repo is added through "Create", it does work as expected, even thogh it has the exact same configuration as in the not working case.
