Documentation ¶
Index ¶
- Constants
- Variables
- type BackupReconciler
- func (r *BackupReconciler) GetJenkinsDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.Deployment, error)
- func (r *BackupReconciler) GetPodByDeployment(jenkins *v1alpha2.Jenkins) (*corev1.Pod, error)
- func (r *BackupReconciler) GetReplicaSetByDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.ReplicaSet, error)
- func (r *BackupReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *BackupReconciler) SetupWithManager(mgr ctrl.Manager) error
- type BackupVolumeReconciler
- type JenkinsImageReconciler
- type JenkinsReconciler
- type RestoreReconciler
- func (r *RestoreReconciler) GetJenkinsDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.Deployment, error)
- func (r *RestoreReconciler) GetPodByDeployment(jenkins *v1alpha2.Jenkins) (*corev1.Pod, error)
- func (r *RestoreReconciler) GetReplicaSetByDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.ReplicaSet, error)
- func (r *RestoreReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *RestoreReconciler) SetupWithManager(mgr ctrl.Manager) error
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 (*BackupReconciler) GetReplicaSetByDeployment ¶
func (r *BackupReconciler) GetReplicaSetByDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.ReplicaSet, 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) 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) 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) 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 (*RestoreReconciler) GetReplicaSetByDeployment ¶
func (r *RestoreReconciler) GetReplicaSetByDeployment(jenkins *v1alpha2.Jenkins) (*appsv1.ReplicaSet, error)
func (*RestoreReconciler) SetupWithManager ¶
func (r *RestoreReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.