controllers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const TenantAccessTokenSecretField = "token"

Tenant's credentials secret field name for access token

View Source
const TenantAdminDomainKeySecretField = "adminURL"

Tenant's credentials secret field name for admin domain url

View Source
const TenantAdminPasswordSecretField = "admin_password"

Secret field name with Tenant's admin user password

Variables

View Source
var (
	// LastSlashRegexp matches the last slash
	LastSlashRegexp = regexp.MustCompile(`/$`)
)

Functions

This section is empty.

Types

type ActiveDocReconciler

type ActiveDocReconciler struct {
	*reconcilers.BaseReconciler
}

ActiveDocReconciler reconciles a ActiveDoc object

func (*ActiveDocReconciler) Reconcile

func (r *ActiveDocReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ActiveDocReconciler) SetupWithManager

func (r *ActiveDocReconciler) SetupWithManager(mgr ctrl.Manager) error

type ActiveDocStatusReconciler

type ActiveDocStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewActiveDocStatusReconciler

func NewActiveDocStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.ActiveDoc, providerAccountHost string, activeDoc *threescaleapi.ActiveDoc, reconcileError error) *ActiveDocStatusReconciler

func (*ActiveDocStatusReconciler) Reconcile

func (s *ActiveDocStatusReconciler) Reconcile() (reconcile.Result, error)

type ActiveDocThreescaleReconciler

type ActiveDocThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewActiveDocThreescaleReconciler

func NewActiveDocThreescaleReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.ActiveDoc, threescaleAPIClient *threescaleapi.ThreeScaleClient, providerAccountHost string, logger logr.Logger) *ActiveDocThreescaleReconciler

func (*ActiveDocThreescaleReconciler) Reconcile

type ApplicationReconciler added in v0.11.0

type ApplicationReconciler struct {
	*reconcilers.BaseReconciler
}

ApplicationReconciler reconciles a Application object

func (*ApplicationReconciler) Reconcile added in v0.11.0

func (r *ApplicationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ApplicationReconciler) SetupWithManager added in v0.11.0

func (r *ApplicationReconciler) SetupWithManager(mgr ctrl.Manager) error

type ApplicationStatusReconciler added in v0.11.0

type ApplicationStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewApplicationStatusReconciler added in v0.11.0

func NewApplicationStatusReconciler(b *reconcilers.BaseReconciler, applicationResource *capabilitiesv1beta1.Application, entity *controllerhelper.ApplicationEntity, providerAccountHost string, syncError error) *ApplicationStatusReconciler

func (*ApplicationStatusReconciler) ReadyCondition added in v0.11.0

func (s *ApplicationStatusReconciler) ReadyCondition() common.Condition

func (*ApplicationStatusReconciler) Reconcile added in v0.11.0

type ApplicationThreescaleReconciler added in v0.11.0

type ApplicationThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewApplicationReconciler added in v0.11.0

func NewApplicationReconciler(b *reconcilers.BaseReconciler, applicationResource *capabilitiesv1beta1.Application, accountResource *capabilitiesv1beta1.DeveloperAccount, productResource *capabilitiesv1beta1.Product, threescaleAPIClient *threescaleapi.ThreeScaleClient) *ApplicationThreescaleReconciler

func (*ApplicationThreescaleReconciler) Reconcile added in v0.11.0

type BackendReconciler

type BackendReconciler struct {
	*reconcilers.BaseReconciler
}

BackendReconciler reconciles a Backend object

func (*BackendReconciler) Reconcile

func (r *BackendReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*BackendReconciler) SetupWithManager

func (r *BackendReconciler) SetupWithManager(mgr ctrl.Manager) error

type BackendStatusReconciler

type BackendStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewBackendStatusReconciler

func NewBackendStatusReconciler(b *reconcilers.BaseReconciler, backendResource *capabilitiesv1beta1.Backend, backendAPIEntity *controllerhelper.BackendAPIEntity, providerAccountHost string, syncError error) *BackendStatusReconciler

func (*BackendStatusReconciler) Reconcile

func (s *BackendStatusReconciler) Reconcile() (reconcile.Result, error)

type BackendThreescaleReconciler

type BackendThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewThreescaleReconciler

func NewThreescaleReconciler(b *reconcilers.BaseReconciler,
	backendResource *capabilitiesv1beta1.Backend,
	threescaleAPIClient *threescaleapi.ThreeScaleClient,
	backendRemoteIndex *controllerhelper.BackendAPIRemoteIndex,
	providerAccount *controllerhelper.ProviderAccount,
) *BackendThreescaleReconciler

func (*BackendThreescaleReconciler) Reconcile

type CustomPolicyDefinitionReconciler

type CustomPolicyDefinitionReconciler struct {
	*reconcilers.BaseReconciler
}

CustomPolicyDefinitionReconciler reconciles a CustomPolicyDefinition object

func (*CustomPolicyDefinitionReconciler) Reconcile

func (*CustomPolicyDefinitionReconciler) SetupWithManager

func (r *CustomPolicyDefinitionReconciler) SetupWithManager(mgr ctrl.Manager) error

type CustomPolicyDefinitionStatusReconciler

type CustomPolicyDefinitionStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewCustomPolicyDefinitionStatusReconciler

func NewCustomPolicyDefinitionStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.CustomPolicyDefinition, providerAccountHost string, customPolicy *threescaleapi.APIcastPolicy, reconcileError error) *CustomPolicyDefinitionStatusReconciler

func (*CustomPolicyDefinitionStatusReconciler) Reconcile

type CustomPolicyDefinitionThreescaleReconciler

type CustomPolicyDefinitionThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewCustomPolicyDefinitionThreescaleReconciler

func NewCustomPolicyDefinitionThreescaleReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.CustomPolicyDefinition, threescaleAPIClient *threescaleapi.ThreeScaleClient, providerAccountHost string, logger logr.Logger) *CustomPolicyDefinitionThreescaleReconciler

func (*CustomPolicyDefinitionThreescaleReconciler) Reconcile

type DeveloperAccountReconciler

type DeveloperAccountReconciler struct {
	*reconcilers.BaseReconciler
}

DeveloperAccountReconciler reconciles a DeveloperAccount object

func (*DeveloperAccountReconciler) Reconcile

func (*DeveloperAccountReconciler) SetupWithManager

func (r *DeveloperAccountReconciler) SetupWithManager(mgr ctrl.Manager) error

type DeveloperAccountStatusReconciler

type DeveloperAccountStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewDeveloperAccountStatusReconciler

func NewDeveloperAccountStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.DeveloperAccount, providerAccountHost string, remoteDeveloperAccount *threescaleapi.DeveloperAccount, reconcileError error) *DeveloperAccountStatusReconciler

func (*DeveloperAccountStatusReconciler) Reconcile

type DeveloperAccountThreescaleReconciler

type DeveloperAccountThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewDeveloperAccountThreescaleReconciler

func NewDeveloperAccountThreescaleReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.DeveloperAccount, threescaleAPIClient *threescaleapi.ThreeScaleClient, providerAccountHost string, logger logr.Logger) *DeveloperAccountThreescaleReconciler

func (*DeveloperAccountThreescaleReconciler) Reconcile

type DeveloperUserReconciler

type DeveloperUserReconciler struct {
	*reconcilers.BaseReconciler
}

DeveloperUserReconciler reconciles a DeveloperUser object

func (*DeveloperUserReconciler) Reconcile

func (r *DeveloperUserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*DeveloperUserReconciler) SetupWithManager

func (r *DeveloperUserReconciler) SetupWithManager(mgr ctrl.Manager) error

type DeveloperUserStatusReconciler

type DeveloperUserStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewDeveloperUserStatusReconciler

func NewDeveloperUserStatusReconciler(b *reconcilers.BaseReconciler,
	userCR *capabilitiesv1beta1.DeveloperUser,
	parentAccountCR *capabilitiesv1beta1.DeveloperAccount,
	providerAccountHost string,
	remoteDeveloperUser *threescaleapi.DeveloperUser,
	reconcileError error,
) *DeveloperUserStatusReconciler

func (*DeveloperUserStatusReconciler) Reconcile

type DeveloperUserThreescaleReconciler

type DeveloperUserThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewDeveloperUserThreescaleReconciler

func NewDeveloperUserThreescaleReconciler(b *reconcilers.BaseReconciler,
	userCR *capabilitiesv1beta1.DeveloperUser,
	parentAccountCR *capabilitiesv1beta1.DeveloperAccount,
	threescaleAPIClient *threescaleapi.ThreeScaleClient,
	providerAccountHost string,
	logger logr.Logger,
) *DeveloperUserThreescaleReconciler

func (*DeveloperUserThreescaleReconciler) Reconcile

type OpenAPIBackendReconciler

type OpenAPIBackendReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewOpenAPIBackendReconciler

func NewOpenAPIBackendReconciler(b *reconcilers.BaseReconciler,
	openapiCR *capabilitiesv1beta1.OpenAPI,
	openapiObj *openapi3.T,
	providerAccount *controllerhelper.ProviderAccount,
	logger logr.Logger,
) *OpenAPIBackendReconciler

func (*OpenAPIBackendReconciler) Logger

func (p *OpenAPIBackendReconciler) Logger() logr.Logger

func (*OpenAPIBackendReconciler) Reconcile

type OpenAPIProductReconciler

type OpenAPIProductReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewOpenAPIProductReconciler

func NewOpenAPIProductReconciler(b *reconcilers.BaseReconciler,
	openapiCR *capabilitiesv1beta1.OpenAPI,
	openapiObj *openapi3.T,
	providerAccount *controllerhelper.ProviderAccount,
	logger logr.Logger,
) *OpenAPIProductReconciler

func (*OpenAPIProductReconciler) Logger

func (p *OpenAPIProductReconciler) Logger() logr.Logger

func (*OpenAPIProductReconciler) Reconcile

type OpenAPIReconciler

type OpenAPIReconciler struct {
	*reconcilers.BaseReconciler
}

OpenAPIReconciler reconciles a OpenAPI object

func (*OpenAPIReconciler) Reconcile

func (r *OpenAPIReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*OpenAPIReconciler) SetupWithManager

func (r *OpenAPIReconciler) SetupWithManager(mgr ctrl.Manager) error

type OpenAPIStatusReconciler

type OpenAPIStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewOpenAPIStatusReconciler

func NewOpenAPIStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.OpenAPI, providerAccountHost string, reconcileError error, reconcileReady bool) *OpenAPIStatusReconciler

func (*OpenAPIStatusReconciler) Reconcile

func (s *OpenAPIStatusReconciler) Reconcile() (reconcile.Result, error)

type ProductReconciler

type ProductReconciler struct {
	*reconcilers.BaseReconciler
}

ProductReconciler reconciles a Product object

func (*ProductReconciler) Reconcile

func (r *ProductReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ProductReconciler) SetupWithManager

func (r *ProductReconciler) SetupWithManager(mgr ctrl.Manager) error

type ProductStatusReconciler

type ProductStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewProductStatusReconciler

func NewProductStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.Product, entity *controllerhelper.ProductEntity, providerAccountHost string, syncError error) *ProductStatusReconciler

func (*ProductStatusReconciler) Reconcile

func (s *ProductStatusReconciler) Reconcile() (reconcile.Result, error)

type ProductThreescaleReconciler

type ProductThreescaleReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func (*ProductThreescaleReconciler) Reconcile

type ProxyConfigPromoteReconciler added in v0.10.0

type ProxyConfigPromoteReconciler struct {
	*reconcilers.BaseReconciler
}

ProxyConfigPromoteReconciler reconciles a ProxyConfigPromote object

func (*ProxyConfigPromoteReconciler) Reconcile added in v0.10.0

func (*ProxyConfigPromoteReconciler) SetupWithManager added in v0.10.0

func (r *ProxyConfigPromoteReconciler) SetupWithManager(mgr ctrl.Manager) error

type ProxyConfigPromoteStatusReconciler added in v0.10.0

type ProxyConfigPromoteStatusReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

func NewProxyConfigPromoteStatusReconciler added in v0.10.0

func NewProxyConfigPromoteStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.ProxyConfigPromote, productID string, latestProductionVersion int, latestStagingVersion int, reconcileError error) *ProxyConfigPromoteStatusReconciler

func (*ProxyConfigPromoteStatusReconciler) Reconcile added in v0.10.0

type TenantInternalReconciler

type TenantInternalReconciler struct {
	*reconcilers.BaseReconciler
	// contains filtered or unexported fields
}

TenantInternalReconciler reconciles a Tenant object

func NewTenantInternalReconciler

func NewTenantInternalReconciler(b *reconcilers.BaseReconciler, tenantR *apiv1alpha1.Tenant,
	portaClient *porta_client_pkg.ThreeScaleClient, log logr.Logger) *TenantInternalReconciler

NewTenantInternalReconciler constructs InternalReconciler object

func (*TenantInternalReconciler) Run

Run tenant reconciliation logic Facts to reconcile: - Have 3scale Tenant Account - Have active admin user - Have secret with tenant's access_token

type TenantReconciler

type TenantReconciler struct {
	*reconcilers.BaseReconciler
}

TenantReconciler reconciles a Tenant object

func (*TenantReconciler) Reconcile

func (r *TenantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TenantReconciler) SetupWithManager

func (r *TenantReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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