mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
Fix cli description
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
4cd2973d63
commit
529e66ce51
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue