Documentation ¶
Index ¶
- type Configuration
- func (c *Configuration) CreateOrUpdateResource(obj metav1.Object) error
- func (c *Configuration) CreateResource(obj metav1.Object) error
- func (c *Configuration) Exec(podName, containerName string, command []string) (stdout, stderr bytes.Buffer, err error)
- func (c *Configuration) GetJenkinsClient() (jenkinsclient.Jenkins, error)
- func (c *Configuration) GetJenkinsClientFromSecret() (jenkinsclient.Jenkins, error)
- func (c *Configuration) GetJenkinsClientFromServiceAccount() (jenkinsclient.Jenkins, error)
- func (c *Configuration) GetJenkinsDeployment() (*appsv1.Deployment, error)
- func (c *Configuration) GetJenkinsMasterContainer() *v1alpha2.Container
- func (c *Configuration) GetJenkinsMasterPod() (*corev1.Pod, 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 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 |