1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Update cli description

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2022-07-19 08:20:34 +01:00
committed by Stefan Prodan
parent 4c576bf599
commit fe4b65972a
2 changed files with 16 additions and 6 deletions

View File

@@ -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,
}