https://rancher.com/ logo
#fleet
Title
# fleet
b

bulky-lion-74983

02/16/2023, 8:18 PM
I am trying to use multiple yaml files in my helm chart depending on the environment. I have a fleet.yaml and a GitRepo like this and am trying to edit the GitRepo but keep getting an error inside Rancher. When I make the change in Rancher it gives me this error: Operation cannot be fulfilled on gitrepos.fleet.cattle.io "logapi-dev": the object has been modified; please apply your changes to the latest version and try again Does anyone know what I am doing wrong?
Copy code
targetCustomizations:
- name: development
  helm:
    valuesFiles:
    - development.yaml
  clusterName: alphadev

- name: staging
  helm:
    valuesFiles:
    - staging.yaml
  clusterName: alphadev

- name: production
  helm:
    valuesFiles:
    - values.yaml
  clusterName: alphadev

From
targets:
  - clusterName: alphadev

To
targets:
  - name: development
  clusterName: alphadev
I found the reason I am getting this error in Rancher trying to edit the GitRepo. "This is because the GitRepo object's status fields are updated every time Git is polled (by default once every 60 seconds), those changes count as a change to the GitRepo object, and the UI won't let you save changes to an object if someone else has already saved their own changes since you initially loaded it. So you either have to make you changes quickly, or quickly get in and change the
pollingInterval
for your GitRepo to something longer than 60 seconds." This is from this Github issue: https://github.com/rancher/fleet/issues/454
7 Views