Skip to content

Commit

Permalink
Merge pull request #904 from josh-ferrell/auth_from_envvars
Browse files Browse the repository at this point in the history
Add CRICTL_AUTH/CRICTL_CREDS env var option to crictl pull
  • Loading branch information
k8s-ci-robot authored Mar 17, 2022
2 parents a3f66d4 + 511767e commit a567ea8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cmd/crictl/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ var pullImageCommand = &cli.Command{
UseShortOptionHandling: true,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "creds",
Value: "",
Usage: "Use `USERNAME[:PASSWORD]` for accessing the registry",
Name: "creds",
Value: "",
Usage: "Use `USERNAME[:PASSWORD]` for accessing the registry",
EnvVars: []string{"CRICTL_CREDS"},
},
&cli.StringFlag{
Name: "auth",
Value: "",
Usage: "Use `AUTH_STRING` for accessing the registry. AUTH_STRING is a base64 encoded 'USERNAME[:PASSWORD]'",
Name: "auth",
Value: "",
Usage: "Use `AUTH_STRING` for accessing the registry. AUTH_STRING is a base64 encoded 'USERNAME[:PASSWORD]'",
EnvVars: []string{"CRICTL_AUTH"},
},
&cli.StringFlag{
Name: "pod-config",
Expand Down

0 comments on commit a567ea8

Please sign in to comment.