configuration

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0, CC-BY-4.0 Imports: 21 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
	Config                       *rest.Config
	JenkinsAPIConnectionSettings jenkinsclient.JenkinsAPIConnectionSettings
	KubernetesClusterDomain      string
}

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) Exec

func (c *Configuration) Exec(podName, containerName string, command []string) (stdout, stderr bytes.Buffer, err error)

Exec executes command in the given pod and it's container.

func (*Configuration) GetJenkinsClient

func (c *Configuration) GetJenkinsClient() (jenkinsclient.Jenkins, error)

GetJenkinsClient gets jenkins client from a configuration.

func (*Configuration) GetJenkinsClientFromSecret

func (c *Configuration) GetJenkinsClientFromSecret() (jenkinsclient.Jenkins, error)

GetJenkinsClientFromSecret gets jenkins client from a secret.

func (*Configuration) GetJenkinsClientFromServiceAccount

func (c *Configuration) GetJenkinsClientFromServiceAccount() (jenkinsclient.Jenkins, error)

GetJenkinsClientFromServiceAccount gets jenkins client from a serviceAccount.

func (*Configuration) GetJenkinsDeployment

func (c *Configuration) GetJenkinsDeployment() (*appsv1.Deployment, error)

GetJenkinsMasterPod gets the jenkins master pod.

func (*Configuration) GetJenkinsMasterContainer

func (c *Configuration) GetJenkinsMasterContainer() *v1alpha2.Container

GetJenkinsMasterContainer returns the Jenkins master container from the CR.

func (*Configuration) GetJenkinsMasterPod

func (c *Configuration) GetJenkinsMasterPod() (*corev1.Pod, error)

GetJenkinsMasterPod gets the jenkins master pod.

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