This message was deleted.
# fleet
a
This message was deleted.
w
No, it will not create two bundles
which version of fleet you're using ?
also, if possible can I take a look at your git repo ? or can you please paste the skeleton of it ?
n
Hi, this is my Values yaml:
Copy code
agentCheckinInterval: 15m
agentImage:
  imagePullPolicy: IfNotPresent
  repository: rancher/fleet-agent
  tag: v0.4.0
apiServerCA: ''
apiServerURL: *****************
bootstrap:
  agentNamespace: cattle-fleet-local-system
  branch: master
  namespace: fleet-local
  paths: ''
  repo: ''
  secret: ''
debug: false
debugLevel: 0
gitjob:
  debug: false
  gitjob:
    repository: rancher/gitjob
    tag: v0.1.32
  global:
    cattle:
      clusterId: local
      clusterName: local
      rkePathPrefix: ''
      rkeWindowsPathPrefix: ''
      systemDefaultRegistry: ''
      systemProjectId: p-6cnhz
      url: ****************
    systemDefaultRegistry: ''
  noProxy: 127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
  nodeSelector: {}
  tekton:
    repository: rancher/tekton-utils
    tag: v0.1.7
  tolerations: null
gitops:
  enabled: true
global:
  cattle:
    systemDefaultRegistry: ''
    clusterId: local
    clusterName: local
    rkePathPrefix: ''
    rkeWindowsPathPrefix: ''
    systemProjectId: p-6cnhz
    url: ********************
  systemDefaultRegistry: ''
ignoreClusterRegistrationLabels: false
image:
  imagePullPolicy: IfNotPresent
  repository: rancher/fleet
  tag: v0.4.0
noProxy: 127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
nodeSelector: {}
tolerations: null
This, my repo:
Copy code
apiVersion: <http://fleet.cattle.io/v1alpha1|fleet.cattle.io/v1alpha1>
kind: GitRepo
metadata:
  name: **********************
  namespace: fleet-local
spec:
  branch: master
  clientSecretName: *****************
  forceSyncGeneration: 128
  insecureSkipTLSVerify: false
  paths:
  - /***/***/ms/category
  paused: false
  repo: https:/****/repo.git
  targets:
  - clusterSelector:
      matchExpressions:
      - key: <http://provider.cattle.io|provider.cattle.io>
        operator: NotIn
        values:
        - harvester
w
looking...
According to docs:
Copy code
# A git repo can read multiple paths in a repo at once.
  # The below field is expected to be an array of paths and
  # supports path globbing (ex: some/*/path)
  #
  # Example:
  # paths:
  # - single-path
  # - multiple-paths/*
  paths:
  - simple
It read multiple paths at once
Recently I tried with this:
Copy code
repo:
      |_  myapp
      |_  myapp-second
and for me it's working, I can see only one deployment is created which I mentioned in the paths: myapp
workaround: if you don't want to install
car-second
application then rename
fleet.yaml
file from that folder.
so that it will not installed by fleet without changing anything else in the repo
I would recommend you to not try on production server. Try to dummy env and then apply it.
n
Thank you. In your case how many bundles are there in the above example with myapp? One or two?
w
One bundle each
In myapp—> nginx (demo app) myapp-second —> grafana (demo app)
n
You can you please paste the skeleton of it ? thanks.
w
Copy code
myapp
         |_fleet.yaml 
         |_nginx.yaml

myapp-second
         |_fleet.yaml
         |_grafana.yaml
Nginx is deployment Grafana is helm chart
n
Thanks
w
Hope it solve problem?
n
No, it always detects 2 bundles into main dashboard. Maybe my problem is in the skeleton. I'll reread the documentation and see where I'm going wrong.
@wonderful-carpenter-92656 I discovered one thing, the repository name groups bundles that have the same root. Example: repository name: cars => bundle counter 3 repository name: cars-service => bundle counter 1 repository name: cars-ms => bundle counter 1
w
Does all repository folders contain the fleet.yaml ?
n
No
w
only cars contains it right ?
n
none of the three.
I tried adding the repositories directly and only in the rancher configuration dashboard.
w
let me give a try without fleet.yaml in my setup i.e. myapp and myapp-second
👍 1
sorry for late response
I remove fleet.yaml files from both myapp and myapp-second, still I see only one bundle is installed
also, I removed the gitrepo and added back after making changes
n
Thank you for your time!
w
you're welcome