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

bulky-lion-74983

02/16/2023, 7:45 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


targets:
  - clusterName: alphadev

To

targets:
  - name: development
  clusterName: alphadev