-
example: i bootstrap a local git repo and define a gitrepository as a resource apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: gitsrv
namespace: flux-system
spec:
interval: 1m
url: ssh://[email protected]:2222/srv/bird.git
ref:
branch: master
secretRef:
name: ssh-credentials
ignore: |
# exclude all
/*
# include charts directory
!/src/base/gitsrv/gitsrv/ now to reconcile i have to provide a secret containing my private ssh key as a secret and expose it to the cluster. |
Beta Was this translation helpful? Give feedback.
Answered by
wibed
Jun 11, 2022
Replies: 2 comments 13 replies
-
Do you expect for Flux to be able to clone private repos without a private key? |
Beta Was this translation helpful? Give feedback.
13 replies
Answer selected by
wibed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://fluxcd.io/docs/flux-e2e/