From 8fe00a7e484cc3980aa4c9a237ac0320f5883e76 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Tue, 15 Jun 2021 10:13:28 +0200 Subject: [PATCH] Start deprecation of --record flag --- .../src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go | 1 + 1 file changed, 1 insertion(+) diff --git a/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go b/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go index 095a7b519e3..a5f307de56c 100644 --- a/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go +++ b/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go @@ -93,6 +93,7 @@ func (f *RecordFlags) AddFlags(cmd *cobra.Command) { if f.Record != nil { cmd.Flags().BoolVar(f.Record, "record", *f.Record, "Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.") + cmd.Flags().MarkDeprecated("record", "--record will be removed in the future") } }