Documentation ¶
Index ¶
Constants ¶
const TenantAdminDomainKeySecretField = "adminURL"
Tenant's credentials secret field name for admin domain url
const TenantAdminPasswordSecretField = "admin_password"
Secret field name with Tenant's admin user password
const TenantProviderKeySecretField = "token"
Tenant's credentials secret field name for access token
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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.
func FetchMasterCredentials ¶
FetchMasterCredentials get secret using k8s client
Types ¶
type InternalReconciler ¶
type InternalReconciler struct {
// contains filtered or unexported fields
}
InternalReconciler reconciles a Tenant object
func NewInternalReconciler ¶
func NewInternalReconciler(k8sClient client.Client, tenantR *apiv1alpha1.Tenant, portaClient *porta_client_pkg.ThreeScaleClient, log logr.Logger) *InternalReconciler
NewInternalReconciler constructs InternalReconciler object
func (*InternalReconciler) Run ¶
func (r *InternalReconciler) Run() error
Run tenant reconciliation logic Facts to reconcile: - Have 3scale Tenant Account - Have active admin user - Have secret with tenant's access_token
type ReconcileTenant ¶
type ReconcileTenant struct {
// contains filtered or unexported fields
}
ReconcileTenant reconciles a Tenant object
func (*ReconcileTenant) Reconcile ¶
Reconcile reads that state of the cluster for a Tenant object and makes changes based on the state read and what is in the Tenant.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: 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.