Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileTenant
- func (r *ReconcileTenant) NewRole(tenant *synv1alpha1.Tenant) (*rbacv1.Role, error)
- func (r *ReconcileTenant) NewRoleBinding(tenant *synv1alpha1.Tenant) (*rbacv1.RoleBinding, error)
- func (r *ReconcileTenant) NewServiceAccount(tenant *synv1alpha1.Tenant) (*corev1.ServiceAccount, error)
- func (r *ReconcileTenant) Reconcile(request reconcile.Request) (reconcile.Result, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.