configuration

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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