From 50f707accd90f4fdae5d405e2072e343c99a7b16 Mon Sep 17 00:00:00 2001 From: Hector Fernandez Date: Tue, 6 Sep 2022 12:51:25 +0200 Subject: [PATCH] chore: add deprecation message Signed-off-by: Hector Fernandez --- cmd/webhook/main.go | 3 ++- config/webhook.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/webhook/main.go b/cmd/webhook/main.go index 9ce231d23..a1b581c40 100644 --- a/cmd/webhook/main.go +++ b/cmd/webhook/main.go @@ -47,7 +47,8 @@ import ( cwebhook "github.com/sigstore/policy-controller/pkg/webhook" ) -var secretName = flag.String("secret-name", "", "The name of the secret in the webhook's namespace that holds the public key for verification.") +// Deprecated: this flag will be removed in the future +var secretName = flag.String("secret-name", "", "Flag -secret-name has been deprecated and will be removed in the future. The name of the secret in the webhook's namespace that holds the public key for verification.") // webhookName holds the name of the validating and mutating webhook // configuration resources dispatching admission requests to policy-controller. diff --git a/config/webhook.yaml b/config/webhook.yaml index 7ef867f00..fec7f299a 100644 --- a/config/webhook.yaml +++ b/config/webhook.yaml @@ -45,6 +45,7 @@ spec: # and substituted here. image: ko://github.com/sigstore/policy-controller/cmd/webhook args: [ + # DEPRECATED: -secret-name will be removed in the future. "-secret-name=verification-key", # Uncomment these to initialize with a custom TUF root. # TODO: How to specify the entire TUF directory for multiple