Documentation
¶
Index ¶
- Constants
- Variables
- type ActiveDocReconciler
- type ActiveDocStatusReconciler
- type ActiveDocThreescaleReconciler
- type ApplicationAuthReconciler
- type ApplicationAuthStatusReconciler
- type ApplicationReconciler
- type ApplicationStatusReconciler
- type ApplicationThreescaleReconciler
- type AuthSecret
- type BackendReconciler
- type BackendStatusReconciler
- type BackendThreescaleReconciler
- type CustomPolicyDefinitionReconciler
- type CustomPolicyDefinitionStatusReconciler
- type CustomPolicyDefinitionThreescaleReconciler
- type DeveloperAccountReconciler
- type DeveloperAccountStatusReconciler
- type DeveloperAccountThreescaleReconciler
- type DeveloperUserReconciler
- type DeveloperUserStatusReconciler
- type DeveloperUserThreescaleReconciler
- type OpenAPIBackendReconciler
- type OpenAPIProductReconciler
- type OpenAPIReconciler
- type OpenAPIStatusReconciler
- type ProductReconciler
- type ProductStatusReconciler
- type ProductThreescaleReconciler
- type ProxyConfigPromoteReconciler
- type ProxyConfigPromoteStatusReconciler
- type SecretToOpenAPIEventMapper
- type TenantReconciler
- type TenantStatusReconciler
- type TenantThreescaleReconciler
Constants ¶
const ( UserKey = "UserKey" ApplicationKey = "ApplicationKey" ApplicationID = "ApplicationID" )
const ( // Secret field name with Tenant's admin user password TenantAdminPasswordSecretField = "admin_password" // Tenant's credentials secret field name for access token TenantAccessTokenSecretField = "token" // Tenant's credentials secret field name for admin domain url TenantAdminDomainKeySecretField = "adminURL" )
Variables ¶
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) 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
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 ¶
func (s *ActiveDocThreescaleReconciler) Reconcile() (*threescaleapi.ActiveDoc, error)
type ApplicationAuthReconciler ¶
type ApplicationAuthReconciler struct {
*reconcilers.BaseReconciler
}
ApplicationAuthReconciler reconciles a ApplicationAuth object
func (*ApplicationAuthReconciler) SetupWithManager ¶
func (r *ApplicationAuthReconciler) SetupWithManager(mgr ctrl.Manager) error
type ApplicationAuthStatusReconciler ¶
type ApplicationAuthStatusReconciler struct {
*reconcilers.BaseReconciler
// contains filtered or unexported fields
}
func NewApplicationAuthStatusReconciler ¶
func NewApplicationAuthStatusReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.ApplicationAuth, reconcileError error) *ApplicationAuthStatusReconciler
type ApplicationReconciler ¶ added in v0.11.0
type ApplicationReconciler struct {
*reconcilers.BaseReconciler
}
ApplicationReconciler reconciles a Application object
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
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
func (t *ApplicationThreescaleReconciler) Reconcile() (*controllerhelper.ApplicationEntity, error)
type AuthSecret ¶
type BackendReconciler ¶
type BackendReconciler struct {
*reconcilers.BaseReconciler
}
BackendReconciler reconciles a Backend object
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
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 ¶
func (t *BackendThreescaleReconciler) Reconcile() (*controllerhelper.BackendAPIEntity, error)
type CustomPolicyDefinitionReconciler ¶
type CustomPolicyDefinitionReconciler struct {
*reconcilers.BaseReconciler
}
CustomPolicyDefinitionReconciler reconciles a CustomPolicyDefinition object
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
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 ¶
func (s *CustomPolicyDefinitionThreescaleReconciler) Reconcile() (*threescaleapi.APIcastPolicy, error)
type DeveloperAccountReconciler ¶
type DeveloperAccountReconciler struct {
*reconcilers.BaseReconciler
}
DeveloperAccountReconciler reconciles a DeveloperAccount object
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
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 ¶
func (s *DeveloperAccountThreescaleReconciler) Reconcile() (*threescaleapi.DeveloperAccount, error)
type DeveloperUserReconciler ¶
type DeveloperUserReconciler struct {
*reconcilers.BaseReconciler
}
DeveloperUserReconciler reconciles a DeveloperUser object
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
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 ¶
func (s *DeveloperUserThreescaleReconciler) Reconcile() (*threescaleapi.DeveloperUser, error)
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 ¶
func (p *OpenAPIBackendReconciler) Reconcile() ([]*capabilitiesv1beta1.Backend, error)
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 ¶
func (p *OpenAPIProductReconciler) Reconcile() (*capabilitiesv1beta1.Product, error)
type OpenAPIReconciler ¶
type OpenAPIReconciler struct {
*reconcilers.BaseReconciler
}
OpenAPIReconciler reconciles a OpenAPI object
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
type ProductReconciler ¶
type ProductReconciler struct {
*reconcilers.BaseReconciler
}
ProductReconciler reconciles a Product object
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
type ProductThreescaleReconciler ¶
type ProductThreescaleReconciler struct {
*reconcilers.BaseReconciler
// contains filtered or unexported fields
}
func NewProductThreescaleReconciler ¶
func NewProductThreescaleReconciler(b *reconcilers.BaseReconciler, resource *capabilitiesv1beta1.Product, threescaleAPIClient *threescaleapi.ThreeScaleClient, backendRemoteIndex *controllerhelper.BackendAPIRemoteIndex) *ProductThreescaleReconciler
func (*ProductThreescaleReconciler) Reconcile ¶
func (t *ProductThreescaleReconciler) Reconcile() (*controllerhelper.ProductEntity, error)
type ProxyConfigPromoteReconciler ¶ added in v0.10.0
type ProxyConfigPromoteReconciler struct {
*reconcilers.BaseReconciler
}
ProxyConfigPromoteReconciler reconciles a ProxyConfigPromote object
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
type SecretToOpenAPIEventMapper ¶
type SecretToOpenAPIEventMapper struct {
Context context.Context
K8sClient client.Client
Logger logr.Logger
}
SecretToOpenAPIEventMapper is an EventHandler that maps an OAS source secret to it's corresponding OpenAPI CR
type TenantReconciler ¶
type TenantReconciler struct {
*reconcilers.BaseReconciler
}
TenantReconciler reconciles a Tenant object
func (*TenantReconciler) SetupWithManager ¶
func (r *TenantReconciler) SetupWithManager(mgr ctrl.Manager) error
type TenantStatusReconciler ¶
type TenantStatusReconciler struct {
*reconcilers.BaseReconciler
// contains filtered or unexported fields
}
func NewTenantStatusReconciler ¶
func NewTenantStatusReconciler(b *reconcilers.BaseReconciler, tenantResource *capabilitiesv1alpha1.Tenant, reconcileError error) *TenantStatusReconciler
func (*TenantStatusReconciler) Reconcile ¶
func (s *TenantStatusReconciler) Reconcile() (bool, error)
Status reconciler returns an error if there's an error updating the resource. If resource is updated, due to watchers, a new reconcile will trigger therefore no manual retrigger of reconcile is required
type TenantThreescaleReconciler ¶
type TenantThreescaleReconciler struct {
*reconcilers.BaseReconciler
// contains filtered or unexported fields
}
TenantThreescaleReconciler reconciles a Tenant object
func NewTenantThreescaleReconciler ¶
func NewTenantThreescaleReconciler(b *reconcilers.BaseReconciler, tenantR *apiv1alpha1.Tenant, portaClient *porta_client_pkg.ThreeScaleClient, log logr.Logger) *TenantThreescaleReconciler
NewTenantThreescaleReconciler constructs InternalReconciler object
func (*TenantThreescaleReconciler) Run ¶
func (r *TenantThreescaleReconciler) Run() error
Run tenant reconciliation logic Facts to reconcile: - Have 3scale Tenant Account - Have active admin user - Have secret with tenant's access_token
func (*TenantThreescaleReconciler) SetUpdateTenantInfo ¶
func (r *TenantThreescaleReconciler) SetUpdateTenantInfo(tenant *porta_client_pkg.Tenant) error
Source Files
¶
- activedoc_controller.go
- activedoc_status_reconciler.go
- activedoc_threescale_reconciler.go
- application_controller.go
- application_plan_reconciler.go
- application_plans.go
- application_status_reconciler.go
- application_threescale_reconciler.go
- applicationauth_controller.go
- applicationauth_status_reconciler.go
- applications.go
- backend_controller.go
- backend_status_reconciler.go
- backend_threescale_reconciler.go
- backend_usages.go
- custompolicydefinition_controller.go
- custompolicydefinition_status_reconciler.go
- custompolicydefinition_threescale_reconciler.go
- developeraccount_controller.go
- developeraccount_status_reconciler.go
- developeraccount_threescale_reconciler.go
- developeruser_controller.go
- developeruser_status_reconciler.go
- developeruser_threescale_reconciler.go
- mapping_rules.go
- methods.go
- metrics.go
- openapi_backend_reconciler.go
- openapi_controller.go
- openapi_product_reconciler.go
- openapi_status_reconciler.go
- product.go
- product_controller.go
- product_oidc.go
- product_policies.go
- product_status_reconciler.go
- product_threescale_reconciler.go
- proxy.go
- proxyconfigpromote_controller.go
- proxyconfigpromote_status_reconciler.go
- secret_to_openapi_event_mapper.go
- tenant_controller.go
- tenant_status_reconciler.go
- tenant_threescale_reconciler.go