controllers

package
v0.0.0-...-6241ad3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultJenkinsImageEnvVar = "JENKINS_SERVER_IMAGE"

	ConditionReconcileComplete conditionsv1.ConditionType = "ReconciliationComplete"

	DefaultBackupStrategyName = "default"
	DefaultStorageClassLabel  = "storageclass.kubernetes.io/is-default-class"
)
View Source
const YamlMultilineDataFieldCutSet = "|\n "

Variables

View Source
var (

	// BackupInitialized and other Condition Types
	BackupInitialized  status.ConditionType = "BackupInitialized"
	QuietDownStarted   status.ConditionType = "QuietDownStarted"
	BackupCompleted    status.ConditionType = "BackupCompleted"
	QuietDownCancelled status.ConditionType = "QuietDownCancelled"
)
View Source
var (

	// RestoreInitialized and other Condition Types
	RestoreInitialized status.ConditionType = "RestoreInitialized"
	RestoreCompleted   status.ConditionType = "RestoreCompleted"
	RestartStarted     status.ConditionType = "RestartStarted"
	SafeRestartStarted status.ConditionType = "SafeRestartStarted"
)
View Source
var (
	BackupVolumePresent status.ConditionType = "BackupVolumePresent"
)

Functions

This section is empty.

Types

type BackupReconciler

type BackupReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	NotificationEvents chan event.Event
}

BackupReconciler reconciles a Backup object

func (*BackupReconciler) GetJenkinsDeployment

func (r *BackupReconciler) GetJenkinsDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.Deployment, error)

GetJenkinsDeployment gets the jenkins master deployment.

func (*BackupReconciler) GetPodByDeployment

func (r *BackupReconciler) GetPodByDeployment(jenkins *v1alpha2.Jenkins) (*corev1.Pod, error)

func (*BackupReconciler) GetReplicaSetByDeployment

func (r *BackupReconciler) GetReplicaSetByDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.ReplicaSet, error)

func (*BackupReconciler) Reconcile

func (r *BackupReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*BackupReconciler) SetupWithManager

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

type BackupVolumeReconciler

type BackupVolumeReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	NotificationEvents chan event.Event
}

BackupVolumeReconciler reconciles a BackupVolume object

func (*BackupVolumeReconciler) Reconcile

func (r *BackupVolumeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*BackupVolumeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type JenkinsImageReconciler

type JenkinsImageReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	NotificationEvents chan event.Event
}

JenkinsImageReconciler reconciles a JenkinsImage object

func (*JenkinsImageReconciler) Reconcile

func (r *JenkinsImageReconciler) Reconcile(request ctrl.Request) (ctrl.Result, error)

func (*JenkinsImageReconciler) SetupWithManager

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

type JenkinsReconciler

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

	NotificationEvents chan event.Event
	// contains filtered or unexported fields
}

JenkinsReconciler reconciles a Jenkins object

func (*JenkinsReconciler) GetDefaultRoleBinding

func (r *JenkinsReconciler) GetDefaultRoleBinding(jenkins *v1alpha2.Jenkins) *v1.RoleBinding

func (*JenkinsReconciler) Reconcile

func (r *JenkinsReconciler) Reconcile(request ctrl.Request) (ctrl.Result, error)

func (*JenkinsReconciler) SetupWithManager

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

type RestoreReconciler

type RestoreReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	NotificationEvents chan event.Event
}

RestoreReconciler reconciles a Restore object

func (*RestoreReconciler) GetJenkinsDeployment

func (r *RestoreReconciler) GetJenkinsDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.Deployment, error)

GetJenkinsDeployment gets the jenkins master deployment.

func (*RestoreReconciler) GetPodByDeployment

func (r *RestoreReconciler) GetPodByDeployment(jenkins *v1alpha2.Jenkins) (*corev1.Pod, error)

func (*RestoreReconciler) GetReplicaSetByDeployment

func (r *RestoreReconciler) GetReplicaSetByDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.ReplicaSet, error)

func (*RestoreReconciler) Reconcile

func (r *RestoreReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*RestoreReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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