controllers

package
v0.0.0-...-32da333 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: 55 Imported by: 0

Documentation

Overview

Copyright 2021 CERN.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 CERN.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 CERN.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SiteBuilderImage refers to the sitebuilder image name
	SiteBuilderImage string
	// PhpFpmExporterImage refers to the php-fpm-exporter image name
	PhpFpmExporterImage string
	// WebDAVImage refers to the webdav image name
	WebDAVImage string
	// SSOProxyImage refers to the sso proxy image link
	SSOProxyImage string
	// SMTPHost used by Drupal server pods to send emails
	SMTPHost string
	// VeleroNamespace refers to the namespace of the velero server to create backups
	VeleroNamespace string
	// ParallelThreadCount refers to the number of parallel reconciliations done by the Operator
	ParallelThreadCount int
	// EnableTopologySpread refers to enabling avaliability zone scheduling for critical site deployments
	EnableTopologySpread bool
	// ClusterName refers to the name of the cluster the operator is running on
	ClusterName string
	// EasystartBackupName refers to the name of the easystart backup
	EasystartBackupName string
	// SupportedDrupalVersion Name
	SupportedDrupalVersionName string
	// VeleroBackupStorageLocation refers to the name of the Velero backupStorageLocation to be used
	VeleroBackupStorageLocation string
)
View Source
var (
	// Generic temporary error
	ErrTemporary   = errors.New("GenericTemporaryError")
	ErrPermanent   = errors.New("GenericPermanentError")
	ErrInvalidSpec = errors.New("InvalidSpec")
	// ErrFunctionDomain can be returned by a function that was passed invalid arguments, such as the default case of a switch.
	// Consider constraining the arg type.
	ErrFunctionDomain              = errors.New("FunctionDomainError")
	ErrClientK8s                   = errors.New("k8sAPIClientError")
	ErrPodExec                     = errors.New("ExecInPodError")
	ErrFilesystemIO                = errors.New("FilesystemIOError")
	ErrDBOD                        = errors.New("DBODError")
	ErrBuildFailed                 = errors.New("BuildError")
	ErrDeploymentUpdateFailed      = errors.New("DeploymentUpdateError")
	ErrDBUpdateFailed              = errors.New("DBUpdateError")
	ErrRollBack                    = errors.New("RollbackError")
	ErrPodNotRunning               = errors.New("PodNotRunning")
	ErrSupportedDrupalVersionsNone = errors.New("SupportedDrupalVersionsNoneError")
)

ErrorConditions

View Source
var (
	// BuildResources are the resource requests/limits for the image builds. Set during initEnv()
	BuildResources corev1.ResourceRequirements
)

Functions

func ResourceRequestLimit

func ResourceRequestLimit(memReq, cpuReq, memLim, cpuLim string) (corev1.ResourceRequirements, error)

resourceRequestLimit is a k8s API object representing the resource requests and limits given as strings

Types

type DeploymentConfig

type DeploymentConfig struct {
	// contains filtered or unexported fields
}

type DrupalSiteDBUpdateReconciler

type DrupalSiteDBUpdateReconciler struct {
	Reconciler
}

DrupalSiteDBUpdateReconciler reconciles a DrupalSite object

func (*DrupalSiteDBUpdateReconciler) Reconcile

func (*DrupalSiteDBUpdateReconciler) SetupWithManager

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

SetupWithManager adds a manager which watches the resources

type DrupalSiteReconciler

type DrupalSiteReconciler struct {
	Reconciler
}

DrupalSiteReconciler reconciles a DrupalSite object

func (*DrupalSiteReconciler) Reconcile

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

func (*DrupalSiteReconciler) SetupWithManager

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

SetupWithManager adds a manager which watches the resources

type Reconciler

type Reconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

Reconciler reconciles a DrupalSite object

type SupportedDrupalVersionsReconciler

type SupportedDrupalVersionsReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

SupportedDrupalVersionsReconciler reconciles a SupportedDrupalVersions object

func (*SupportedDrupalVersionsReconciler) Reconcile

SetupWithManager sets up the controller with the Manager.

func (*SupportedDrupalVersionsReconciler) SetupWithManager

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

SetupWithManager adds a manager which watches the resources

Jump to

Keyboard shortcuts

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