Fix cli description
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
committed by
Stefan Prodan
parent
fe4b65972a
commit
fcd38c9395
@@ -37,9 +37,9 @@ var createSecretOCICmd = &cobra.Command{
|
|||||||
--url=ghcr.io \
|
--url=ghcr.io \
|
||||||
--username=username \
|
--username=username \
|
||||||
--password=password \
|
--password=password \
|
||||||
--export > repo-auth.yaml
|
--export > repo-auth.yaml
|
||||||
|
|
||||||
sops --encrypt --encrypted-regex '^(data|stringData)$' \
|
sops --encrypt --encrypted-regex '^(data|stringData)$' \
|
||||||
--in-place repo-auth.yaml
|
--in-place repo-auth.yaml
|
||||||
`,
|
`,
|
||||||
RunE: createSecretOCICmdRun,
|
RunE: createSecretOCICmdRun,
|
||||||
@@ -56,7 +56,7 @@ var secretOCIArgs = secretOCIFlags{}
|
|||||||
func init() {
|
func init() {
|
||||||
createSecretOCICmd.Flags().StringVar(&secretOCIArgs.url, "url", "", "oci repository address e.g ghcr.io/stefanprodan/charts")
|
createSecretOCICmd.Flags().StringVar(&secretOCIArgs.url, "url", "", "oci repository address e.g ghcr.io/stefanprodan/charts")
|
||||||
createSecretOCICmd.Flags().StringVarP(&secretOCIArgs.username, "username", "u", "", "basic authentication username")
|
createSecretOCICmd.Flags().StringVarP(&secretOCIArgs.username, "username", "u", "", "basic authentication username")
|
||||||
createSecretOCICmd.Flags().StringVarP(&secretOCIArgs.password, "password", "p", "", "basic authentication")
|
createSecretOCICmd.Flags().StringVarP(&secretOCIArgs.password, "password", "p", "", "basic authentication password")
|
||||||
|
|
||||||
createSecretCmd.AddCommand(createSecretOCICmd)
|
createSecretCmd.AddCommand(createSecretOCICmd)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user