Documentation
¶
Index ¶
Constants ¶
const ( // ANNOJenkinsConfigFormula represents the formula name ANNOJenkinsConfigFormula = "devops.kubesphere.io/jenkins-config-formula" // ANNOJenkinsConfigCustomized indicates if the formula was customized ANNOJenkinsConfigCustomized = "devops.kubesphere.io/jenkins-config-customized" )
const ( // FormulaCustom is a formula name - custom FormulaCustom = "custom" // FormulaHigh is a formula name - high FormulaHigh = "high" // FormulaLow is a formula name - low FormulaLow = "low" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentLabelsReconciler ¶
type AgentLabelsReconciler struct { // TargetNamespace indicate which namespace the target ConfigMap located in TargetNamespace string JenkinsClient core.Client client.Client // contains filtered or unexported fields }
AgentLabelsReconciler responsible for the Jenkins agent labels sync
func (*AgentLabelsReconciler) GetGroupName ¶
func (r *AgentLabelsReconciler) GetGroupName() string
GetGroupName returns the group name of this reconciler
func (*AgentLabelsReconciler) GetName ¶
func (r *AgentLabelsReconciler) GetName() string
GetName returns the name of this reconciler
func (*AgentLabelsReconciler) Reconcile ¶
func (r *AgentLabelsReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile makes sure the target ConfigMap has all the Jenkins agent labels
func (*AgentLabelsReconciler) SetupWithManager ¶
func (r *AgentLabelsReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager setups the all necessary fields
type Controller ¶
Controller is used to maintain the state of the jenkins-casc-config ConfigMap.
func NewController ¶
func NewController( options *ControllerOptions, devopsOptions *jenkins.Options, ) *Controller
NewController creates a new JenkinsConfigController
type ControllerOptions ¶
type ControllerOptions struct { LimitRangeClient typed.LimitRangesGetter ResourceQuotaClient typed.ResourceQuotasGetter ConfigMapClient typed.ConfigMapsGetter ConfigMapInformer informer.ConfigMapInformer NamespaceInformer informer.NamespaceInformer InformerFactory informers.InformerFactory ConfigOperator devops.ConfigurationOperator ReloadCasCDelay time.Duration }
ControllerOptions is the option of Jenkins configuration controller
type PodTemplateReconciler ¶
type PodTemplateReconciler struct { LabelSelector string TargetConfigMapName string TargetConfigMapNamespace string TargetConfigMapKey string Interval time.Duration client.Client // contains filtered or unexported fields }
PodTemplateReconciler responsible for the Jenkins podTemplate sync
func (*PodTemplateReconciler) GetGroupName ¶
func (r *PodTemplateReconciler) GetGroupName() string
GetGroupName ret
func (*PodTemplateReconciler) GetName ¶
func (r *PodTemplateReconciler) GetName() string
GetName returns the name of this reconcile
func (*PodTemplateReconciler) Reconcile ¶
func (r *PodTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile is the entrypoint of this reconciler
func (*PodTemplateReconciler) SetupWithManager ¶
func (r *PodTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager setups the reconciler
type ResourceLimit ¶
type ResourceLimit string
ResourceLimit describes the limitation level of jenkins agent pod resource