Hi, we have used fleet in the past in version 0.3....
# fleet
a
Hi, we have used fleet in the past in version 0.3.5. However we do not plan to upgrade this setup and instread build upo a new rancher/fleet infrastructure. On the Newest Rancher(v2.8.2) with fleet (v0.9.0) whenever i create a GitREpo REssource, even through the UI i get the following error in the pod trying to get the repo:
Copy code
fleet HOSTNAME=k8s-pes-gitlab-4c100-x2sfm
fleet KUBERNETES_PORT_443_TCP_PROTO=tcp
fleet COMMIT=44d1976988a434e739e8986915c0137678f00f69
fleet KUBERNETES_PORT_443_TCP_ADDR=10.43.0.1
fleet KUBERNETES_PORT=<tcp://10.43.0.1:443>
fleet PWD=/workspace/source
fleet HOME=/fleet-home
fleet KUBERNETES_SERVICE_PORT_HTTPS=443
fleet GIT_SSH_COMMAND=ssh -o stricthostkeychecking=accept-new
fleet KUBERNETES_PORT_443_TCP_PORT=443
fleet KUBERNETES_PORT_443_TCP=<tcp://10.43.0.1:443>
fleet SHLVL=1
fleet KUBERNETES_SERVICE_PORT=443
fleet EVENT_TYPE=
fleet PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
fleet KUBERNETES_SERVICE_HOST=10.43.0.1
fleet _=/usr/bin/env
fleet time="2024-04-18T07:13:59Z" level=fatal msg="error unmarshaling JSON: while decoding JSON: json: cannot unmarshal array into Go value of type v1alpha1.FleetYAML"
gitcloner-initializer time="2024-04-18T07:13:58Z" level=info msg="Starting to clone git repository"
Stream closed EOF for fleet-default/k8s-pes-gitlab-4c100-x2sfm (gitcloner-initializer)
Stream closed EOF for fleet-default/k8s-pes-gitlab-4c100-x2sfm (fleet)
For Reference this is what the GitRepo Ressource looks like:
Copy code
apiVersion: fleet.cattle.io/v1alpha1
kind: GitRepo
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"fleet.cattle.io/v1alpha1","kind":"GitRepo","metadata":{"annotations":{},"name":"k8s-DEP-gitlab","namespace":"fleet-default"},"spec":{"branch":"rancher04","clientSecretName":"k8s-rancher-fleet-github-ssh-key-pair","helmSecretName":"company-cacerts","insecureSkipTLSVerify":false,"paths":["k8s-DEP-gitlab"],"repo":"git@github1.vg.company.int:adp/k8s-rancher-fleet.git","targets":[{"clusterSelector":{"matchLabels":{"company/department":"DEP","company/project":"gitlab"}}}]}}
  creationTimestamp: "2024-04-17T17:49:30Z"
  generation: 9
  name: k8s-DEP-gitlab
  namespace: fleet-default
  resourceVersion: "1892404"
  uid: 3c23e193-ad23-4b76-8b8b-3d385dad222f
spec:
  branch: rancher04
  clientSecretName: k8s-rancher-fleet-github-ssh-key-pair
  forceSyncGeneration: 5
  helmSecretName: company-cacerts
  insecureSkipTLSVerify: false
  paths:
  - k8s-DEP-gitlab
  repo: git@github1.vg.company.int:adp/k8s-rancher-fleet.git
  targets:
  - clusterName: k8s-DEP-gitlab-staging
status:
  commit: 44d1976988a434e739e8986915c0137678f00f69
  conditions:
  - lastUpdateTime: "2024-04-17T17:49:30Z"
    status: "True"
    type: Ready
  - lastUpdateTime: "2024-04-18T07:19:50Z"
    status: "True"
    type: Accepted
  - lastUpdateTime: "2024-04-17T17:49:30Z"
    status: "True"
    type: ImageSynced
  - lastUpdateTime: "2024-04-18T07:19:33Z"
    status: "False"
    type: Reconciling
  - lastUpdateTime: "2024-04-18T07:19:33Z"
    status: "False"
    type: Stalled
  - lastUpdateTime: "2024-04-18T07:19:50Z"
    status: "True"
    type: Synced
  desiredReadyClusters: 0
  display:
    readyBundleDeployments: 0/0
  gitJobStatus: Current
  lastSyncedImageScanTime: null
  observedGeneration: 9
  readyClusters: 0
  resourceCounts:
    desiredReady: 0
    missing: 0
    modified: 0
    notReady: 0
    orphaned: 0
    ready: 0
    unknown: 0
    waitApplied: 0
  summary:
    desiredReady: 0
    ready: 0
If you have any idea or pointers where this can go wrong please let me know im kind of out of ideas. Thanks in advance.