From 2c1b1dd78c4da5ae6b6216e479746bfe3150cebc Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Mon, 7 Jun 2021 15:22:20 -0700 Subject: [PATCH] Mark all templated flag pieces as deprecated The underlying templated flag machinery was marked as deprecated as part of the envtest refactor (see ddfdfdff7), but a couple fields in the higher-level bits of envtest were not marked as deprecated. This fixes that. --- pkg/envtest/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/envtest/server.go b/pkg/envtest/server.go index 68d2e106c7..d53706f453 100644 --- a/pkg/envtest/server.go +++ b/pkg/envtest/server.go @@ -163,6 +163,8 @@ type Environment struct { ControlPlaneStopTimeout time.Duration // KubeAPIServerFlags is the set of flags passed while starting the api server. + // + // Deprecated: use ControlPlane.GetAPIServer().Configure() instead. KubeAPIServerFlags []string // AttachControlPlaneOutput indicates if control plane output will be attached to os.Stdout and os.Stderr. @@ -368,4 +370,6 @@ func (te *Environment) useExistingCluster() bool { // DefaultKubeAPIServerFlags exposes the default args for the APIServer so that // you can use those to append your own additional arguments. +// +// Deprecated: use APIServer.Configure() instead. var DefaultKubeAPIServerFlags = controlplane.APIServerDefaultArgs