From e00fbaf150a4837a1b0b10da5fc767bc1a84c704 Mon Sep 17 00:00:00 2001 From: davidvader Date: Fri, 19 Jan 2024 11:06:23 -0600 Subject: [PATCH] chore: update docs with new param path --- DOCS.md | 6 +++--- cmd/vela-kaniko/main.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DOCS.md b/DOCS.md index 00128f9..d9e3784 100644 --- a/DOCS.md +++ b/DOCS.md @@ -208,9 +208,9 @@ steps: The plugin accepts the following files for authentication: | Parameter | Volume Configuration | -| ---------- | ------------------------------------------------------------------- | -| `password` | `/vela/parameters/kaniko/password`, `/vela/secrets/kaniko/password` | -| `username` | `/vela/parameters/kaniko/username`, `/vela/secrets/kaniko/username` | +| ---------- | ---------------------------------------------------------------------------------------------------------- | +| `password` | `/vela/parameters/kaniko/password`, `/vela/secrets/kaniko/password`, `/vela/secrets/managed-auth/password` | +| `username` | `/vela/parameters/kaniko/username`, `/vela/secrets/kaniko/username`, `/vela/secrets/managed-auth/username` | Users can use [Vela external secrets](https://go-vela.github.io/docs/concepts/pipeline/secrets/origin/) to substitute these sensitive values at runtime: diff --git a/cmd/vela-kaniko/main.go b/cmd/vela-kaniko/main.go index ca2b8fc..a783598 100644 --- a/cmd/vela-kaniko/main.go +++ b/cmd/vela-kaniko/main.go @@ -173,13 +173,13 @@ func main() { }, &cli.StringFlag{ EnvVars: []string{"PARAMETER_USERNAME", "KANIKO_USERNAME", "DOCKER_USERNAME"}, - FilePath: "/vela/parameters/kaniko/username,/vela/secrets/kaniko/username", + FilePath: "/vela/parameters/kaniko/username,/vela/secrets/kaniko/username,/vela/secrets/managed-auth/username", Name: "registry.username", Usage: "user name for communication with the registry", }, &cli.StringFlag{ EnvVars: []string{"PARAMETER_PASSWORD", "KANIKO_PASSWORD", "DOCKER_PASSWORD"}, - FilePath: "/vela/parameters/kaniko/password,/vela/secrets/kaniko/password", + FilePath: "/vela/parameters/kaniko/password,/vela/secrets/kaniko/password,/vela/secrets/managed-auth/password", Name: "registry.password", Usage: "password for communication with the registry", },