mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
Markdown
45 lines
1.0 KiB
Markdown
4 years ago
|
## flux export source git
|
||
5 years ago
|
|
||
5 years ago
|
Export GitRepository sources in YAML format
|
||
5 years ago
|
|
||
|
### Synopsis
|
||
|
|
||
5 years ago
|
The export source git command exports on or all GitRepository sources in YAML format.
|
||
5 years ago
|
|
||
|
```
|
||
4 years ago
|
flux export source git [name] [flags]
|
||
5 years ago
|
```
|
||
|
|
||
|
### Examples
|
||
|
|
||
|
```
|
||
5 years ago
|
# Export all GitRepository sources
|
||
4 years ago
|
flux export source git --all > sources.yaml
|
||
5 years ago
|
|
||
5 years ago
|
# Export a GitRepository source including the SSH key pair or basic auth credentials
|
||
4 years ago
|
flux export source git my-private-repo --with-credentials > source.yaml
|
||
5 years ago
|
|
||
|
```
|
||
|
|
||
|
### Options
|
||
|
|
||
|
```
|
||
|
-h, --help help for git
|
||
|
```
|
||
|
|
||
|
### Options inherited from parent commands
|
||
|
|
||
|
```
|
||
5 years ago
|
--all select all resources
|
||
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||
4 years ago
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||
5 years ago
|
--timeout duration timeout for this operation (default 5m0s)
|
||
|
--verbose print generated objects
|
||
|
--with-credentials include credential secrets
|
||
5 years ago
|
```
|
||
|
|
||
|
### SEE ALSO
|
||
|
|
||
4 years ago
|
* [flux export source](flux_export_source.md) - Export sources
|
||
5 years ago
|
|