Documentation ¶
Index ¶
- func DefaultConfiguration() *dashboardv1alpha1.ControllerManagerConfiguration
- func StringWithCharset(length int, charset string) string
- type Environment
- func (e Environment) AddClusterAdminServiceAccount(ctx context.Context, name string, namespace string, timeout time.Duration, ...)
- func (e Environment) AddServiceAccount(ctx context.Context, sa ServiceAccount, timeout time.Duration, ...)
- func (e Environment) CreateObject(ctx context.Context, obj client.Object, key types.NamespacedName, ...)
- func (e Environment) Start(ctx context.Context)
- type ServiceAccount
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfiguration ¶
func DefaultConfiguration() *dashboardv1alpha1.ControllerManagerConfiguration
func StringWithCharset ¶
Types ¶
type Environment ¶
type Environment struct { GardenEnv *gardenenvtest.GardenerTestEnvironment K8sManager ctrl.Manager Config *rest.Config K8sClient client.Client }
func (Environment) AddClusterAdminServiceAccount ¶ added in v0.31.0
func (e Environment) AddClusterAdminServiceAccount(ctx context.Context, name string, namespace string, timeout time.Duration, interval time.Duration)
AddClusterAdminServiceAccount adds a service account and creates a ClusterRoleBinding for this service account and cluster-admin ClusterRole.
func (Environment) AddServiceAccount ¶ added in v0.31.0
func (e Environment) AddServiceAccount(ctx context.Context, sa ServiceAccount, timeout time.Duration, interval time.Duration)
AddServiceAccount adds a service account and optionally also creates a ClusterRoleBinding for this service account for the given RoleRef of the passed ServiceAccount.
func (Environment) CreateObject ¶ added in v0.31.0
func (Environment) Start ¶
func (e Environment) Start(ctx context.Context)
type ServiceAccount ¶ added in v0.31.0
type ServiceAccount struct { // Name is the service acocunt's Name. Name string // Namespace is the service acocunt's Namespace. Namespace string // RoleRef is the desired roleRef for the ClusterRoleBinding. The service account will receive this role // +optional RoleRef *rbacv1.RoleRef }
ServiceAccount represents a Kubernetes service account.
Click to show internal directories.
Click to hide internal directories.