You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This introduces secure serving by default, transparently switching
configs to connect to secure endpoints. Similarly, the insecure
endpoints are now disabled by default -- they must be explicitly
disabled if you want to use them (note that this will only work on API
servers <=1.19).
This also turns on flags around the tokenrequest endpoint which are
required to be on in 1.20, and have been available for all the versions
that we currently support (back to 1.16).
There's a whole new set of control plane APIs for provisioning users,
and the old "just get a single account" APIs of the internal package are
mostly deprecated.
The default `Environment.Config` is *NOT* deprecated however -- this is
intended to continue working as normal in order to avoid breaking
everyone and to keep things in envtest working easily -- most tests will
be fine with an admin user.
For users that want RBAC, individual users may be provisioned with the
ControlPlane.AddUser method.
Copy file name to clipboardExpand all lines: examples/scratch-env/main.go
+24-36Lines changed: 24 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,11 @@ package main
2
2
3
3
import (
4
4
goflag "flag"
5
-
"fmt"
6
-
"io"
7
5
"io/ioutil"
8
6
"os"
9
7
10
8
flag "github.com/spf13/pflag"
11
9
12
-
"k8s.io/client-go/tools/clientcmd"
13
-
kcapi "k8s.io/client-go/tools/clientcmd/api"
14
10
ctrl "sigs.k8s.io/controller-runtime"
15
11
"sigs.k8s.io/controller-runtime/pkg/envtest"
16
12
"sigs.k8s.io/controller-runtime/pkg/log/zap"
@@ -22,25 +18,6 @@ var (
22
18
attachControlPlaneOut=flag.Bool("debug-env", false, "attach to test env (apiserver & etcd) output -- just a convinience flag to force KUBEBUILDER_ATTACH_CONTROL_PLANE_OUTPUT=true")
0 commit comments