v1alpha2

package
v0.0.0-...-379f027 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the jenkins v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/samsung-cnct/jenkins-operator/pkg/apis/jenkins +k8s:defaulter-gen=TypeMeta +groupName=jenkins.jenkinsoperator.samsung-cnct.github.com

Package v1alpha2 contains API Schema definitions for the jenkins v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/samsung-cnct/jenkins-operator/pkg/apis/jenkins +k8s:defaulter-gen=TypeMeta +groupName=jenkins.jenkinsoperator.samsung-cnct.github.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "jenkins.jenkinsoperator.samsung-cnct.github.com", Version: "v1alpha2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type CascConfigSpec

type CascConfigSpec struct {
	// casc config as multi-line yaml string
	ConfigString string `json:"configstring,omitempty"`

	// or casc config(s) mounted from a named config map
	ConfigMap string `json:"configmap,omitempty"`
}

func (*CascConfigSpec) DeepCopy

func (in *CascConfigSpec) DeepCopy() *CascConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CascConfigSpec.

func (*CascConfigSpec) DeepCopyInto

func (in *CascConfigSpec) DeepCopyInto(out *CascConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type JenkinsInstance

type JenkinsInstance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   JenkinsInstanceSpec   `json:"spec,omitempty"`
	Status JenkinsInstanceStatus `json:"status,omitempty"`
}

JenkinsInstance +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*JenkinsInstance) DeepCopy

func (in *JenkinsInstance) DeepCopy() *JenkinsInstance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsInstance.

func (*JenkinsInstance) DeepCopyInto

func (in *JenkinsInstance) DeepCopyInto(out *JenkinsInstance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*JenkinsInstance) DeepCopyObject

func (in *JenkinsInstance) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type JenkinsInstanceList

type JenkinsInstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []JenkinsInstance `json:"items"`
}

JenkinsInstanceList contains a list of JenkinsInstance

func (*JenkinsInstanceList) DeepCopy

func (in *JenkinsInstanceList) DeepCopy() *JenkinsInstanceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsInstanceList.

func (*JenkinsInstanceList) DeepCopyInto

func (in *JenkinsInstanceList) DeepCopyInto(out *JenkinsInstanceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*JenkinsInstanceList) DeepCopyObject

func (in *JenkinsInstanceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type JenkinsInstanceSpec

type JenkinsInstanceSpec struct {

	// What container image to use for a new jenkins instance
	// +kubebuilder:validation:Pattern=.+:.+
	Image string `json:"image,omitempty"`

	// image pull policy
	ImagePullPolicy corev1.PullPolicy `json:"imagepullpolicy,omitempty"`

	// Dictionary of environment variable values
	Env map[string]string `json:"env,omitempty"`

	// Array of plugins to be installed
	Plugins []PluginSpec `json:"plugins,omitempty"`

	// configuration-as-code spec
	CascConfig *CascConfigSpec `json:"cascconfig,omitempty"`

	// configuration-as-code secret name
	CascSecret string `json:"cascsecret,omitempty"`

	// groovy configuration secret name
	GroovySecret string `json:"groovysecret,omitempty"`

	// Jenkins deployment annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	AdminSecret string `json:"adminsecret,omitempty"`

	// Jenkins service options
	Service *ServiceSpec `json:"service,omitempty"`

	// Service account name for jenkins to run under
	ServiceAccount string `json:"serviceaccount,omitempty"`

	// Jenkins storage options
	Storage *StorageSpec `json:"storage,omitempty"`

	// Affinity settings
	Affinity corev1.Affinity `json:"affinity,omitempty"`

	// dns policy
	DNSPolicy corev1.DNSPolicy `json:"dnspolicy,omitempty"`

	// node selector
	NodeSelector map[string]string `json:"nodeselector,omitempty"`

	// specific node name
	NodeName string `json:"nodename,omitempty"`

	// image pull secrets
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagepullsecrets,omitempty"`

	// tolerations
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// container resource requests
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

JenkinsInstanceSpec defines the desired state of JenkinsInstance

func (*JenkinsInstanceSpec) DeepCopy

func (in *JenkinsInstanceSpec) DeepCopy() *JenkinsInstanceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsInstanceSpec.

func (*JenkinsInstanceSpec) DeepCopyInto

func (in *JenkinsInstanceSpec) DeepCopyInto(out *JenkinsInstanceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type JenkinsInstanceStatus

type JenkinsInstanceStatus struct {
	// setup secret
	SetupSecret string `json:"adminsecret,omitempty"`

	// state if jenkins server instance
	Phase string `json:"phase"`
}

JenkinsInstanceStatus defines the observed state of JenkinsInstance

func (*JenkinsInstanceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsInstanceStatus.

func (*JenkinsInstanceStatus) DeepCopyInto

func (in *JenkinsInstanceStatus) DeepCopyInto(out *JenkinsInstanceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PluginSpec

type PluginSpec struct {
	// plugin id
	Id string `json:"id"`

	// plugin version string, follows the format at https://github.com/jenkinsci/docker#plugin-version-format
	Version json.Number `json:"version"`
}

func (*PluginSpec) DeepCopy

func (in *PluginSpec) DeepCopy() *PluginSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginSpec.

func (*PluginSpec) DeepCopyInto

func (in *PluginSpec) DeepCopyInto(out *PluginSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceSpec

type ServiceSpec struct {
	// Jenkins service name
	Name string `json:"name,omitempty"`

	// Jenkins instance service type
	ServiceType corev1.ServiceType `json:"servicetype,omitempty"`

	// If type is node port, use this node port value
	NodePort int32 `json:"nodeport,omitempty"`

	// Jenkins service annotations
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageSpec

type StorageSpec struct {
	// Name of pre-existing (or not) PVC for jobs
	JobsPvc string `json:"jobspvc,omitempty"`

	// If PVC is to be created, what is its spec
	JobsPvcSpec *corev1.PersistentVolumeClaimSpec `json:"jobspvcspec,omitempty"`
}

func (*StorageSpec) DeepCopy

func (in *StorageSpec) DeepCopy() *StorageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.

func (*StorageSpec) DeepCopyInto

func (in *StorageSpec) DeepCopyInto(out *StorageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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