DS
Size: a a a
DS
i
DS
A RoleBinding can also reference a ClusterRole to grant the permissions defined in that ClusterRole to resources inside the RoleBinding's namespace. This kind of reference lets you define a set of common roles across your cluster, then reuse them within multiple namespaces.
For instance, even though the following RoleBinding refers to a ClusterRole, "dave" (the subject, case sensitive) will only be able to read Secrets in the "development" namespace, because the RoleBinding's namespace (in its metadata) is "development".
DS
DS
AD
EP
i
EP
EP
EP
EP
i
i
i
TO
VR
A
clientset, err := kubernetes.NewForConfig(&rest.Config{
Host: "URL",
BearerToken: "SA token",
})
if err != nil {
panic(err.Error())
}
~PATH/go/pkg/mod/k8s.io/client-go@v11.0.0+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher
have (*versioned.Decoder)
want (watch.Decoder, watch.Reporter)
PK