Skip to content
Discussion options

You must be logged in to vote

Hello ,
To use an other repository, it is necessary to create a secret

flux create secret git hw-secret --url=https://gitlab.com/$GITLAB_USER/hw\
--username=$GITLAB_USER --password=****

and refer to it in the source:
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: hw
namespace: flux-system
spec:
interval: 30s
ref:
branch: main
url: https://gitlab.com/$GITLAB_USER/hw.git
secretRef:
name: hw-secret


Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@jwerre
Comment options

@JeanYvesQueignec
Comment options

@jwerre
Comment options

@JeanYvesQueignec
Comment options

@JeanYvesQueignec
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JeanYvesQueignec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants