Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gitrepositories.md #1253

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/spec/v1/gitrepositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Git repository.
is not supported for SSH addresses (e.g. `[email protected]:repository.git`).
Instead, the valid URL format is `ssh://[email protected]:22/repository.git`.

If your provider gives you a ssh URL containing an extra `:` not related to a port (gitlab.com does that) then simply replace it with a `/` like this : `ssh://[email protected]:root_group/a_group/your_repo.git` => `ssh://[email protected]/root_group/a_group/your_repo.git`

### Secret reference

`.spec.secretRef.name` is an optional field to specify a name reference to a
Expand Down Expand Up @@ -195,8 +197,10 @@ stringData:
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
#github.com usage example : base64 below the correct line (github.com ecdsa-sha2-nistp256) of this command output: ssh-keyscan github.com
#gitlab.com usage example : base64 below the correct line (gitlab.com ecdsa-sha2-nistp256) of this command output: ssh-keyscan gitlab.com
known_hosts: |
github.com ecdsa-sha2-nistp256 AAAA...
Z2l0bGFiLmNvbSBlY2Rz...
```

Alternatively, the Flux CLI can be used to automatically create the
Expand Down