Skip to content

Commit

Permalink
Mark all templated flag pieces as deprecated
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DirectXMan12 committed Jun 7, 2021
1 parent d4ecab6 commit 2c1b1dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/envtest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 2c1b1dd

Please sign in to comment.