add details about CLI in insecure HTTP RFC
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
This commit is contained in:
@@ -83,6 +83,20 @@ that the registry is hosted at a non-TLS endpoint.
|
||||
For such objects, we shall introduce a new boolean field `.spec.insecure`, which shall be `false` by default. Users that
|
||||
need their object to point to an HTTP endpoint, can set this to `true`.
|
||||
|
||||
### CLI
|
||||
The Flux CLI offers several commands for creating Flux specific resources. Some of these commands may involve specifying
|
||||
an endpoint such as creating an `OCIRepository`:
|
||||
|
||||
```sh
|
||||
flux create source oci podinfo \
|
||||
--url=oci://ghcr.io/stefanprodan/manifests/podinfo \
|
||||
--tag=6.1.6 \
|
||||
--interval=10m
|
||||
```
|
||||
|
||||
Since these commands essentially create object definitions, the CLI should offer a boolean flag `--insecure`
|
||||
for relevant objects, which will be used for specifying the value of `.spec.insecure` of such objects.
|
||||
|
||||
### Precedence & Validity
|
||||
Objects with `.spec.insecure` as `true ` will only be allowed if HTTP connections are allowed at the controller level.
|
||||
Similarly, an object can have `.spec.insecure` as `true` only if the Saas/Cloud provider allows HTTP connections.
|
||||
|
||||
Reference in New Issue
Block a user