Skip to content

Commit 2c1b1dd

Browse files
committed
Mark all templated flag pieces as deprecated
The underlying templated flag machinery was marked as deprecated as part of the envtest refactor (see ddfdfdf), but a couple fields in the higher-level bits of envtest were not marked as deprecated. This fixes that.
1 parent d4ecab6 commit 2c1b1dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/envtest/server.go

+4
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ type Environment struct {
163163
ControlPlaneStopTimeout time.Duration
164164

165165
// KubeAPIServerFlags is the set of flags passed while starting the api server.
166+
//
167+
// Deprecated: use ControlPlane.GetAPIServer().Configure() instead.
166168
KubeAPIServerFlags []string
167169

168170
// AttachControlPlaneOutput indicates if control plane output will be attached to os.Stdout and os.Stderr.
@@ -368,4 +370,6 @@ func (te *Environment) useExistingCluster() bool {
368370

369371
// DefaultKubeAPIServerFlags exposes the default args for the APIServer so that
370372
// you can use those to append your own additional arguments.
373+
//
374+
// Deprecated: use APIServer.Configure() instead.
371375
var DefaultKubeAPIServerFlags = controlplane.APIServerDefaultArgs

0 commit comments

Comments
 (0)