Skip to content

Commit

Permalink
chore: update docs with new param path
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Jan 19, 2024
1 parent 30a3a88 commit 642cbe1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ steps:
The plugin accepts the following files for authentication:

| Parameter | Volume Configuration |
| ---------- | ------------------------------------------------------------- |
| `password` | `/vela/parameters/npm/password`, `/vela/secrets/npm/password` |
| `username` | `/vela/parameters/npm/username`, `/vela/secrets/npm/username` |
| `registry` | `/vela/parameters/npm/registry`, `/vela/secrets/npm/registry` |
| `email` | `/vela/parameters/npm/email`, `/vela/secrets/npm/email` |
| ---------- | ---------------------------------------------------------------------------------------------------- |
| `password` | `/vela/parameters/npm/password`, `/vela/secrets/npm/password`, `/vela/secrets/managed-auth/password` |
| `username` | `/vela/parameters/npm/username`, `/vela/secrets/npm/username`, `/vela/secrets/managed-auth/username` |
| `registry` | `/vela/parameters/npm/registry`, `/vela/secrets/npm/registry` |
| `email` | `/vela/parameters/npm/email`, `/vela/secrets/npm/email` |

Users can use [Vela external secrets](https://go-vela.github.io/docs/concepts/pipeline/secrets/origin/) to substitute these sensitive values at runtime:

Expand Down
4 changes: 2 additions & 2 deletions cmd/vela-npm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ func main() {
Aliases: []string{"u"},
Usage: "name of user",
EnvVars: []string{"PARAMETER_USERNAME", "PLUGIN_USERNAME", "NPM_USERNAME"},
FilePath: string("/vela/parameters/npm/username,/vela/secrets/npm/username,/vela/secrets/auth/username"),
FilePath: string("/vela/parameters/npm/username,/vela/secrets/npm/username,/vela/secrets/managed-auth/username"),
DefaultText: "N/A",
},
&cli.StringFlag{
Name: "password",
Aliases: []string{"p"},
Usage: "password for user",
EnvVars: []string{"PARAMETER_PASSWORD", "PLUGIN_PASSWORD", "NPM_PASSWORD"},
FilePath: string("/vela/parameters/npm/password,/vela/secrets/npm/password,/vela/secrets/auth/password"),
FilePath: string("/vela/parameters/npm/password,/vela/secrets/npm/password,/vela/secrets/managed-auth/password"),
DefaultText: "N/A",
},
&cli.StringFlag{
Expand Down

0 comments on commit 642cbe1

Please sign in to comment.