tenant

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2021 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CommonClassName is the name of the tenant's common class
	CommonClassName         = "common"
	DefaultGlobalGitRepoURL = "DEFAULT_GLOBAL_GIT_REPO_URL"
	ClusterClassContent     = `classes:
- %s.%s
`
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Tenant Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileTenant

type ReconcileTenant struct {
	// contains filtered or unexported fields
}

ReconcileTenant reconciles a Tenant object

func (*ReconcileTenant) NewRole added in v0.5.0

func (r *ReconcileTenant) NewRole(tenant *synv1alpha1.Tenant) (*rbacv1.Role, error)

NewRole returns a new Role object. The Role controls access to the tenant and its related clusters.

func (*ReconcileTenant) NewRoleBinding added in v0.5.0

func (r *ReconcileTenant) NewRoleBinding(tenant *synv1alpha1.Tenant) (*rbacv1.RoleBinding, error)

NewRoleBinding returns a new RoleBinding object. Its intention is to link subjects to the role created with `Tenant.NewRole()`.

func (*ReconcileTenant) NewServiceAccount added in v0.5.0

func (r *ReconcileTenant) NewServiceAccount(tenant *synv1alpha1.Tenant) (*corev1.ServiceAccount, error)

NewServiceAccount returns a new ServiceAccount object. The ServiceAccount has its metadata set in a way, that it is clear this ServiceAccount is related to the tenant.

func (*ReconcileTenant) Reconcile

func (r *ReconcileTenant) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL