Documentation ¶
Index ¶
- func BackendNamespace(ctx context.Context, paas *v1alpha1.Paas, name string, quota string, ...) (*corev1.Namespace, error)
- func ClusterWideCapabilityName(quotaName string) (capabilityName string, err error)
- func ClusterWideQuotaName(capabilityName string) string
- func EnsureNamespace(r client.Client, ctx context.Context, ...) error
- func EnsureRoleBinding(ctx context.Context, r Reconciler, paas *v1alpha1.Paas, ...) error
- func FinalizeRoleBinding(ctx context.Context, r Reconciler, statusMessages *v1alpha1.PaasNsStatus, ...) error
- type Elements
- type Entries
- type PaasNSReconciler
- func (r *PaasNSReconciler) BackendSecrets(ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas) (secrets []*corev1.Secret)
- func (r *PaasNSReconciler) EnsureAppSetCap(ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas) error
- func (r *PaasNSReconciler) EnsureAppSetCaps(ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas) error
- func (r *PaasNSReconciler) EnsureArgoApp(ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas) error
- func (r *PaasNSReconciler) EnsureArgoCD(ctx context.Context, paasns *v1alpha1.PaasNS) error
- func (r *PaasNSReconciler) EnsureSecret(ctx context.Context, paasns *v1alpha1.PaasNS, secret *corev1.Secret) error
- func (r *PaasNSReconciler) FinalizeArgoApp(ctx context.Context, paasns *v1alpha1.PaasNS) error
- func (r *PaasNSReconciler) FinalizeClusterQuota(ctx context.Context, paasns *v1alpha1.PaasNS) error
- func (r *PaasNSReconciler) FinalizeNamespace(ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas) error
- func (r *PaasNSReconciler) GetPaas(ctx context.Context, paasns *v1alpha1.PaasNS) (paas *v1alpha1.Paas, err error)
- func (r *PaasNSReconciler) GetPaasNs(ctx context.Context, req ctrl.Request) (paasns *v1alpha1.PaasNS, err error)
- func (pr PaasNSReconciler) GetScheme() *runtime.Scheme
- func (r *PaasNSReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
- func (r *PaasNSReconciler) ReconcileExtraClusterRoleBinding(ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas) (err error)
- func (r *PaasNSReconciler) ReconcileNamespaces(ctx context.Context, paas *v1alpha1.Paas, paasns *v1alpha1.PaasNS) (err error)
- func (r *PaasNSReconciler) ReconcileRolebindings(ctx context.Context, paas *v1alpha1.Paas, paasns *v1alpha1.PaasNS, ...) error
- func (r *PaasNSReconciler) ReconcileSecrets(ctx context.Context, paas *v1alpha1.Paas, paasns *v1alpha1.PaasNS, ...) error
- func (r *PaasNSReconciler) SetupWithManager(mgr ctrl.Manager) error
- type PaasQuotas
- type PaasReconciler
- func (r *PaasReconciler) BackendAppProject(ctx context.Context, paas *v1alpha1.Paas) *argo.AppProject
- func (r *PaasReconciler) BackendEnabledQuotaStatus(paas *v1alpha1.Paas) (quotas PaasQuotas, err error)
- func (r *PaasReconciler) BackendEnabledQuotas(ctx context.Context, paas *v1alpha1.Paas) (quotas []*quotav1.ClusterResourceQuota, err error)
- func (r *PaasReconciler) BackendGroups(ctx context.Context, paas *v1alpha1.Paas) (groups []*userv1.Group)
- func (r *PaasReconciler) BackendUnneededQuotas(ctx context.Context, paas *v1alpha1.Paas) (quotas []string)
- func (r *PaasReconciler) EnsureAppProject(ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger) error
- func (r *PaasReconciler) EnsureGroup(ctx context.Context, paas *v1alpha1.Paas, group *userv1.Group) error
- func (r *PaasReconciler) EnsureLdapGroups(ctx context.Context, paas *v1alpha1.Paas) error
- func (r *PaasReconciler) EnsureQuota(ctx context.Context, paas *v1alpha1.Paas, quota *quotav1.ClusterResourceQuota) error
- func (r *PaasReconciler) FetchAllPaasCapabilityResources(ctx context.Context, quota *quotav1.ClusterResourceQuota, ...) (resources paas_quota.QuotaLists, err error)
- func (r *PaasReconciler) FinalizeAppSetCaps(ctx context.Context, paas *v1alpha1.Paas) error
- func (r *PaasReconciler) FinalizeClusterQuota(ctx context.Context, paas *v1alpha1.Paas, quotaName string) error
- func (r *PaasReconciler) FinalizeClusterQuotas(ctx context.Context, paas *v1alpha1.Paas) error
- func (r *PaasReconciler) FinalizeClusterWideQuotas(ctx context.Context, paas *v1alpha1.Paas) error
- func (r *PaasReconciler) FinalizeExtraClusterRoleBindings(ctx context.Context, paas *v1alpha1.Paas) (err error)
- func (r *PaasReconciler) FinalizeGroups(ctx context.Context, paas *v1alpha1.Paas) (cleaned []string, err error)
- func (r *PaasReconciler) FinalizeLdapGroups(ctx context.Context, paas *v1alpha1.Paas, cleanedLdapQueries []string) error
- func (r *PaasReconciler) FinalizePaasNss(ctx context.Context, paas *v1alpha1.Paas) error
- func (r *PaasReconciler) GetPaas(ctx context.Context, req ctrl.Request) (paas *v1alpha1.Paas, err error)
- func (r *PaasReconciler) GetPaasNs(ctx context.Context, paas *v1alpha1.Paas, name string, groups []string, ...) (*v1alpha1.PaasNS, error)
- func (pr PaasReconciler) GetScheme() *runtime.Scheme
- func (r *PaasReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
- func (r *PaasReconciler) ReconcileClusterWideQuota(ctx context.Context, paas *v1alpha1.Paas) error
- func (r *PaasReconciler) ReconcileGroups(ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger) error
- func (r *PaasReconciler) ReconcilePaasNss(ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger) error
- func (r *PaasReconciler) ReconcileQuotas(ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger) (err error)
- func (r *PaasReconciler) ReconcileRolebindings(ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger) error
- func (r *PaasReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *PaasReconciler) UpdateClusterWideQuotaResources(ctx context.Context, quota *quotav1.ClusterResourceQuota) (err error)
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackendNamespace ¶
func BackendNamespace( ctx context.Context, paas *v1alpha1.Paas, name string, quota string, scheme *runtime.Scheme, ) (*corev1.Namespace, error)
backendNamespace is a code for Creating Namespace
func ClusterWideQuotaName ¶
func EnsureNamespace ¶
func EnsureNamespace( r client.Client, ctx context.Context, addMessageFunc func(v1alpha1.PaasStatusLevel, v1alpha1.PaasStatusAction, client.Object, string), paas *v1alpha1.Paas, ns *corev1.Namespace, scheme *runtime.Scheme, ) error
ensureNamespace ensures Namespace presence in given namespace.
func EnsureRoleBinding ¶
func EnsureRoleBinding( ctx context.Context, r Reconciler, paas *v1alpha1.Paas, statusMessages *v1alpha1.PaasNsStatus, rb *rbac.RoleBinding, ) error
ensureRoleBinding ensures RoleBinding presence in given rolebinding.
func FinalizeRoleBinding ¶
func FinalizeRoleBinding( ctx context.Context, r Reconciler, statusMessages *v1alpha1.PaasNsStatus, rb *rbac.RoleBinding, ) error
ensureRoleBinding ensures RoleBinding presence in given rolebinding.
Types ¶
type Elements ¶
Elements represents all key, value pars for one entry in the list of the listgenerator
func ElementsFromJSON ¶
type Entries ¶
Entries represents all entries in the list of the listgenerator This is a map so that values are unique, the key is the paas entry
func EntriesFromJSON ¶
func EntriesFromJSON(data []apiextensionsv1.JSON) (Entries, error)
type PaasNSReconciler ¶
PaasNSReconciler reconciles a PaasNS object
func (*PaasNSReconciler) BackendSecrets ¶
func (*PaasNSReconciler) EnsureAppSetCap ¶
func (r *PaasNSReconciler) EnsureAppSetCap( ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas, ) error
ensureAppSetCap ensures a list entry in the AppSet voor the capability
func (*PaasNSReconciler) EnsureAppSetCaps ¶
func (r *PaasNSReconciler) EnsureAppSetCaps( ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas, ) error
ensureAppSetCap ensures a list entry in the AppSet voor the capability
func (*PaasNSReconciler) EnsureArgoApp ¶
func (r *PaasNSReconciler) EnsureArgoApp( ctx context.Context, paasns *v1alpha1.PaasNS, paas *v1alpha1.Paas, ) error
ensureArgoApp ensures ArgoApp presence in given argo application.
func (*PaasNSReconciler) EnsureArgoCD ¶
ensureLdapGroup ensures Group presence
func (*PaasNSReconciler) EnsureSecret ¶
func (r *PaasNSReconciler) EnsureSecret( ctx context.Context, paasns *v1alpha1.PaasNS, secret *corev1.Secret, ) error
ensureSecret ensures Secret presence in given secret.
func (*PaasNSReconciler) FinalizeArgoApp ¶
func (*PaasNSReconciler) FinalizeClusterQuota ¶
func (*PaasNSReconciler) FinalizeNamespace ¶
func (PaasNSReconciler) GetScheme ¶
func (pr PaasNSReconciler) GetScheme() *runtime.Scheme
func (*PaasNSReconciler) Reconcile ¶
func (r *PaasNSReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile
func (*PaasNSReconciler) ReconcileExtraClusterRoleBinding ¶
func (*PaasNSReconciler) ReconcileNamespaces ¶
func (*PaasNSReconciler) ReconcileRolebindings ¶
func (r *PaasNSReconciler) ReconcileRolebindings( ctx context.Context, paas *v1alpha1.Paas, paasns *v1alpha1.PaasNS, logger logr.Logger, ) error
ReconcileRolebindings is used by the PaasNS reconciler to reconcile RB's
func (*PaasNSReconciler) ReconcileSecrets ¶
func (*PaasNSReconciler) SetupWithManager ¶
func (r *PaasNSReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PaasQuotas ¶
type PaasQuotas map[string]paas_quota.Quotas
type PaasReconciler ¶
PaasReconciler reconciles a Paas object
func (*PaasReconciler) BackendAppProject ¶
func (r *PaasReconciler) BackendAppProject( ctx context.Context, paas *v1alpha1.Paas, ) *argo.AppProject
backendAppProject is a code for Creating AppProject
func (*PaasReconciler) BackendEnabledQuotaStatus ¶
func (r *PaasReconciler) BackendEnabledQuotaStatus( paas *v1alpha1.Paas, ) (quotas PaasQuotas, err error)
func (*PaasReconciler) BackendEnabledQuotas ¶
func (r *PaasReconciler) BackendEnabledQuotas( ctx context.Context, paas *v1alpha1.Paas, ) (quotas []*quotav1.ClusterResourceQuota, err error)
func (*PaasReconciler) BackendGroups ¶
func (*PaasReconciler) BackendUnneededQuotas ¶
func (*PaasReconciler) EnsureAppProject ¶
func (r *PaasReconciler) EnsureAppProject( ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger, ) error
ensureAppProject ensures AppProject presence in given namespace.
func (*PaasReconciler) EnsureGroup ¶
func (r *PaasReconciler) EnsureGroup( ctx context.Context, paas *v1alpha1.Paas, group *userv1.Group, ) error
ensureGroup ensures Group presence
func (*PaasReconciler) EnsureLdapGroups ¶
ensureLdapGroup ensures Group presence
func (*PaasReconciler) EnsureQuota ¶
func (r *PaasReconciler) EnsureQuota( ctx context.Context, paas *v1alpha1.Paas, quota *quotav1.ClusterResourceQuota, ) error
ensureQuota ensures Quota presence
func (*PaasReconciler) FetchAllPaasCapabilityResources ¶
func (r *PaasReconciler) FetchAllPaasCapabilityResources( ctx context.Context, quota *quotav1.ClusterResourceQuota, defaults map[string]string, ) (resources paas_quota.QuotaLists, err error)
func (*PaasReconciler) FinalizeAppSetCaps ¶
ensureAppSetCap ensures a list entry in the AppSet voor the capability
func (*PaasReconciler) FinalizeClusterQuota ¶
func (*PaasReconciler) FinalizeClusterQuotas ¶
func (*PaasReconciler) FinalizeClusterWideQuotas ¶
func (*PaasReconciler) FinalizeExtraClusterRoleBindings ¶
func (*PaasReconciler) FinalizeGroups ¶
func (*PaasReconciler) FinalizeLdapGroups ¶
func (r *PaasReconciler) FinalizeLdapGroups( ctx context.Context, paas *v1alpha1.Paas, cleanedLdapQueries []string, ) error
ensureLdapGroup ensures Group presence
func (*PaasReconciler) FinalizePaasNss ¶
func (PaasReconciler) GetScheme ¶
func (pr PaasReconciler) GetScheme() *runtime.Scheme
func (*PaasReconciler) Reconcile ¶
func (r *PaasReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile
func (*PaasReconciler) ReconcileClusterWideQuota ¶
func (*PaasReconciler) ReconcileGroups ¶
func (*PaasReconciler) ReconcilePaasNss ¶
func (*PaasReconciler) ReconcileQuotas ¶
func (*PaasReconciler) ReconcileRolebindings ¶
func (r *PaasReconciler) ReconcileRolebindings( ctx context.Context, paas *v1alpha1.Paas, logger logr.Logger, ) error
ReconcileRolebindings is used by the Paas reconciler to reconcile RB's
func (*PaasReconciler) SetupWithManager ¶
func (r *PaasReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*PaasReconciler) UpdateClusterWideQuotaResources ¶
func (r *PaasReconciler) UpdateClusterWideQuotaResources( ctx context.Context, quota *quotav1.ClusterResourceQuota, ) (err error)
type Reconciler ¶
type Reconciler interface { Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error GetScheme() *runtime.Scheme Delete(context.Context, client.Object, ...client.DeleteOption) error }