Documentation ¶
Index ¶
- type Configuration
- func (c *Configuration) CreateOrUpdateResource(obj metav1.Object) error
- func (c *Configuration) CreateResource(obj metav1.Object) error
- func (c *Configuration) IsJenkinsTerminating(pod corev1.Pod) bool
- func (c *Configuration) RestartJenkinsMasterPod(reason reason.Reason) error
- func (c *Configuration) UpdateResource(obj metav1.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Client client.Client ClientSet kubernetes.Clientset Notifications *chan event.Event Jenkins *v1alpha2.Jenkins Scheme *runtime.Scheme }
Configuration holds required for Jenkins configuration
func (*Configuration) CreateOrUpdateResource ¶
func (c *Configuration) CreateOrUpdateResource(obj metav1.Object) error
CreateOrUpdateResource is creating or updating kubernetes resource and references it to Jenkins CR
func (*Configuration) CreateResource ¶
func (c *Configuration) CreateResource(obj metav1.Object) error
CreateResource is creating kubernetes resource and references it to Jenkins CR
func (*Configuration) IsJenkinsTerminating ¶
func (c *Configuration) IsJenkinsTerminating(pod corev1.Pod) bool
IsJenkinsTerminating returns true if the Jenkins pod is terminating
func (*Configuration) RestartJenkinsMasterPod ¶
func (c *Configuration) RestartJenkinsMasterPod(reason reason.Reason) error
RestartJenkinsMasterPod terminate Jenkins master pod and notifies about it
func (*Configuration) UpdateResource ¶
func (c *Configuration) UpdateResource(obj metav1.Object) error
UpdateResource is updating kubernetes resource and references it to Jenkins CR
Directories ¶
Path | Synopsis |
---|---|
Package backuprestore is responsible for create Jenkins master backup and restore it
|
Package backuprestore is responsible for create Jenkins master backup and restore it |
Package base is responsible for create Jenkins master pod and it's base configuration
|
Package base is responsible for create Jenkins master pod and it's base configuration |
resources
Package resources contains Kubernetes resources required by Jenkins
|
Package resources contains Kubernetes resources required by Jenkins |
Package user implements Jenkins user configuration and reconciliation
|
Package user implements Jenkins user configuration and reconciliation |
casc
Package casc configures Jenkins with help Configuration as a code plugin
|
Package casc configures Jenkins with help Configuration as a code plugin |
seedjobs
Package seedjobs implements seed jobs configuration
|
Package seedjobs implements seed jobs configuration |
Click to show internal directories.
Click to hide internal directories.