Documentation ¶
Index ¶
- Constants
- func IsServiceAccountToken(secret *v1.Secret, sa *v1.ServiceAccount) bool
- type SAControllerClientBuilder
- func (b SAControllerClientBuilder) Client(name string) (clientset.Interface, error)
- func (b SAControllerClientBuilder) ClientOrDie(name string) clientset.Interface
- func (b SAControllerClientBuilder) Config(name string) (*restclient.Config, error)
- func (b SAControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
- type SimpleControllerClientBuilder
- func (b SimpleControllerClientBuilder) Client(name string) (clientset.Interface, error)
- func (b SimpleControllerClientBuilder) ClientOrDie(name string) clientset.Interface
- func (b SimpleControllerClientBuilder) Config(name string) (*restclient.Config, error)
- func (b SimpleControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
Constants ¶
View Source
const (
SecretTypeField = "type"
)
Variables ¶
This section is empty.
Functions ¶
func IsServiceAccountToken ¶
func IsServiceAccountToken(secret *v1.Secret, sa *v1.ServiceAccount) bool
IsServiceAccountToken returns true if the secret is a valid api token for the service account
Types ¶
type SAControllerClientBuilder ¶
type SAControllerClientBuilder struct { // ClientConfig is a skeleton config to clone and use as the basis for each controller client ClientConfig *restclient.Config // CoreClient is used to provision service accounts if needed and watch for their associated tokens // to construct a controller client CoreClient v1core.CoreV1Interface // AuthenticationClient is used to check API tokens to make sure they are valid before // building a controller client from them AuthenticationClient v1authentication.AuthenticationV1Interface // Namespace is the namespace used to host the service accounts that will back the // controllers. It must be highly privileged namespace which normal users cannot inspect. Namespace string }
SAControllerClientBuilder is a ControllerClientBuilder that returns clients identifying as service accounts
func (SAControllerClientBuilder) Client ¶
func (b SAControllerClientBuilder) Client(name string) (clientset.Interface, error)
func (SAControllerClientBuilder) ClientOrDie ¶
func (b SAControllerClientBuilder) ClientOrDie(name string) clientset.Interface
func (SAControllerClientBuilder) Config ¶
func (b SAControllerClientBuilder) Config(name string) (*restclient.Config, error)
config returns a complete clientConfig for constructing clients. This is separate in anticipation of composition which means that not all clientsets are known here
func (SAControllerClientBuilder) ConfigOrDie ¶
func (b SAControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
type SimpleControllerClientBuilder ¶
type SimpleControllerClientBuilder struct { // ClientConfig is a skeleton config to clone and use as the basis for each controller client ClientConfig *restclient.Config }
SimpleControllerClientBuilder returns a fixed client with different user agents
func (SimpleControllerClientBuilder) Client ¶
func (b SimpleControllerClientBuilder) Client(name string) (clientset.Interface, error)
func (SimpleControllerClientBuilder) ClientOrDie ¶
func (b SimpleControllerClientBuilder) ClientOrDie(name string) clientset.Interface
func (SimpleControllerClientBuilder) Config ¶
func (b SimpleControllerClientBuilder) Config(name string) (*restclient.Config, error)
func (SimpleControllerClientBuilder) ConfigOrDie ¶
func (b SimpleControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
Click to show internal directories.
Click to hide internal directories.