Closed joshuacox closed 3 weeks ago
Ran into the same issue. The docs of the GitRepo Resource mention a clientSecretName
field that should contain the name of the secret containing your ssh key, but setting it didn't solve the problem for me.
Note that the docs also mention that the default branch being tracked is master
, which is accurate for fleet-examples
, but is something to keep in mind for other repositories.
@Tortoaster tyvm for the link to that particular page. That option solves my issue. I am closing, I can re-open if think you might get better attention for your issue @Tortoaster but you are probably better off opening a new one.
Is there an existing issue for this?
Current Behavior
when cloning using the ssh identity I setup like this
I did both fleet-local and fleet-default after one didn't work.
for this repo:
clones successfully:
However, cloning using this yaml:
fails in the logs with
$ kubectl logs -f $gitjob-pod-name -n cattle-fleet-system:
Expected Behavior
successful clone and deployment
Steps To Reproduce
Once fleet is running on your cluster (I used rancher to set it up for me), simply
kubectl apply -f example-ssh.yml
as given above.Environment
Logs
Anything else?
Notice my gitrepo yaml is merely the default example given in the docs with the repo url changed to git+ssh style. Just in case anyone was wondering if using an ssh:// url works in stead, I tried the below as well:
with identical log output: