Update cli description
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
committed by
Stefan Prodan
parent
4c576bf599
commit
fe4b65972a
@@ -30,13 +30,17 @@ import (
|
||||
|
||||
var createSecretOCICmd = &cobra.Command{
|
||||
Use: "oci [name]",
|
||||
Short: "Create or update a Kubernetes secret for docker authentication",
|
||||
Short: "Create or update a Kubernetes secret for OCI Registry authentication",
|
||||
Long: `The create secret oci command generates a Kubernetes secret with `,
|
||||
Example: ` # Create a secret for a OCI repository using basic authentication
|
||||
Example: ` # Create an OCI authentication secret on disk and encrypt it with Mozilla SOPS
|
||||
flux create secret oci podinfo-auth \
|
||||
--url=ghcr.io/stefanprodan/charts \
|
||||
--url=ghcr.io \
|
||||
--username=username \
|
||||
--password=password
|
||||
--password=password \
|
||||
--export > repo-auth.yaml
|
||||
|
||||
sops --encrypt --encrypted-regex '^(data|stringData)$' \
|
||||
--in-place repo-auth.yaml
|
||||
`,
|
||||
RunE: createSecretOCICmdRun,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user