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 image policy
|
||
4 years ago
|
|
||
|
Export ImagePolicy resources in YAML format
|
||
|
|
||
|
### Synopsis
|
||
|
|
||
4 years ago
|
The export image policy command exports one or all ImagePolicy resources in YAML format.
|
||
4 years ago
|
|
||
|
```
|
||
4 years ago
|
flux export image policy [name] [flags]
|
||
4 years ago
|
```
|
||
|
|
||
|
### Examples
|
||
|
|
||
|
```
|
||
|
# Export all ImagePolicy resources
|
||
4 years ago
|
flux export image policy --all > image-policies.yaml
|
||
4 years ago
|
|
||
4 years ago
|
# Export a specific policy
|
||
4 years ago
|
flux export image policy alpine1x > alpine1x.yaml
|
||
4 years ago
|
|
||
|
```
|
||
|
|
||
|
### Options
|
||
|
|
||
|
```
|
||
4 years ago
|
-h, --help help for policy
|
||
4 years ago
|
```
|
||
|
|
||
|
### Options inherited from parent commands
|
||
|
|
||
|
```
|
||
|
--all select all resources
|
||
|
--context string kubernetes context to use
|
||
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||
|
--timeout duration timeout for this operation (default 5m0s)
|
||
|
--verbose print generated objects
|
||
|
```
|
||
|
|
||
|
### SEE ALSO
|
||
|
|
||
4 years ago
|
* [flux export image](flux_export_image.md) - Export image automation objects
|
||
4 years ago
|
|