v1alpha1

package
v0.0.0-...-cb5979a Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.ibm.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.ibm.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "operator.ibm.com", Version: "v1alpha1"}

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

Functions

Types

type HealthService

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

	Spec   HealthServiceSpec   `json:"spec,omitempty"`
	Status HealthServiceStatus `json:"status,omitempty"`
}

HealthService is the Schema for the healthservices API +kubebuilder:subresource:status +kubebuilder:resource:path=healthservices,scope=Namespaced

func (*HealthService) DeepCopy

func (in *HealthService) DeepCopy() *HealthService

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

func (*HealthService) DeepCopyInto

func (in *HealthService) DeepCopyInto(out *HealthService)

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

func (*HealthService) DeepCopyObject

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

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

type HealthServiceList

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

HealthServiceList contains a list of HealthService

func (*HealthServiceList) DeepCopy

func (in *HealthServiceList) DeepCopy() *HealthServiceList

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

func (*HealthServiceList) DeepCopyInto

func (in *HealthServiceList) DeepCopyInto(out *HealthServiceList)

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

func (*HealthServiceList) DeepCopyObject

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

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

type HealthServiceSpec

type HealthServiceSpec struct {

	// Memcached defines the desired state of HealthService.Memcached
	Memcached HealthServiceSpecMemcached `json:"memcached,omitempty"`
	// HealthService defines the desired state of HealthService.HealthService
	HealthService HealthServiceSpecHealthService `json:"healthService,omitempty"`
}

HealthServiceSpec defines the desired state of HealthService

func (*HealthServiceSpec) DeepCopy

func (in *HealthServiceSpec) DeepCopy() *HealthServiceSpec

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

func (*HealthServiceSpec) DeepCopyInto

func (in *HealthServiceSpec) DeepCopyInto(out *HealthServiceSpec)

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

type HealthServiceSpecHealthService

type HealthServiceSpecHealthService struct {
	// health service deployment name
	Name string `json:"name"`
	// deprecated, define image in operator.yaml
	Image Image `json:"image,omitempty"`
	// configmap which contains health srevice configuration files, deprecated
	ConfigmapName string `json:"configmapName"`
	// set labels/annotation name to get pod's cloudpakname
	CloudpakNameSetting string `json:"cloudpakNameSetting,omitempty"`
	// set labels/annotation name to get pod's servicename
	ServiceNameSetting string `json:"serviceNameSetting,omitempty"`
	// set labels/annotation name to get pod's dependencies
	DependsSetting string `json:"dependsSetting,omitempty"`
	// health service pod replicas, default is 1
	Replicas int32 `json:"replicas,omitempty"`
	// health service deployment ServiceAccountName, default is default
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// health srevice deployment node selector, default is empty
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// health srevice deployment tolerations, default is empty
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// memcached deployment security context, default is empty
	SecurityContext corev1.SecurityContext `json:"securityContext,omitempty"`
	// health srevice deployment hostnetwork, default is false
	HostNetwork bool `json:"hostNetwork,omitempty"`
	// resources defines the desired state of Resources
	Resources Resources `json:"resources,omitempty"`
}

HealthServiceSpecHealthService defines the desired state of HealthService.HealthService

func (*HealthServiceSpecHealthService) DeepCopy

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

func (*HealthServiceSpecHealthService) DeepCopyInto

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

type HealthServiceSpecMemcached

type HealthServiceSpecMemcached struct {
	// memcached deployment name
	Name string `json:"name,"`
	// deprecated, define image in operator.yaml
	Image Image `json:"image,omitempty"`
	// memcached pod replicas, default is 1
	Replicas int32 `json:"replicas,omitempty"`
	// memcached deployment ServiceAccountName, default is default
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// memcached deployment node selector, default is empty
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// memcached deployment tolerations, default is empty
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// memcached deployment security context, default is empty
	SecurityContext corev1.SecurityContext `json:"securityContext,omitempty"`
	// memcached startup command, default value is "memcached -m 64 -o modern -v"
	Command []string `json:"command,omitempty"`
	// resources defines the desired state of Resources
	Resources Resources `json:"resources,omitempty"`
}

HealthServiceSpecMemcached defines the desired state of HealthService.Memcached

func (*HealthServiceSpecMemcached) DeepCopy

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

func (*HealthServiceSpecMemcached) DeepCopyInto

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

type HealthServiceStatus

type HealthServiceStatus struct {

	// +listType=set
	// MemcachedNodes are the names of the memcached pods
	MemcachedNodes []string `json:"memcachedNodes,omitempty"`
	// HealthCheckNodes are the names of the Healch Service pods
	HealthCheckNodes []string `json:"healthCheckNodes,omitempty"`
}

HealthServiceStatus defines the observed state of HealthService

func (*HealthServiceStatus) DeepCopy

func (in *HealthServiceStatus) DeepCopy() *HealthServiceStatus

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

func (*HealthServiceStatus) DeepCopyInto

func (in *HealthServiceStatus) DeepCopyInto(out *HealthServiceStatus)

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

type Image

type Image struct {
	// image repository, default is empty
	Repository string `json:"repository"`
	// image tag, default is empty
	Tag string `json:"tag"`
	// image pull policy, default is IfNotPresent
	PullPolicy string `json:"pullPolicy,omitempty"`
}

image defines the desired image repository, tag and imagepullpolicy

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

type MustGather

type MustGather struct {
	// MustGatherService deployment name
	Name string `json:"name"`
	// deprecated, define image in operator.yaml
	Image Image `json:"image,omitempty"`
	// MustGatherService deployment ServiceAccountName, default is default
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// MustGatherService pod replicas, default is 1
	Replicas int32 `json:"replicas,omitempty"`
	// MustGatherService deployment node selector, default is empty
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// MustGatherService deployment tolerations, default is empty
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// MustGatherService deployment security context, default is empty
	SecurityContext corev1.SecurityContext `json:"securityContext,omitempty"`
	// MustGatherService startup command, default value is "/bin/must-gather-service -v 1"
	Command []string `json:"command,omitempty"`
	// resources defines the desired state of Resources
	Resources Resources `json:"resources,omitempty"`
	// MustGatherService deployment hostnetwork, default is false
	HostNetwork bool `json:"hostNetwork,omitempty"`
}

MustGather defines the desired MustGather service

func (*MustGather) DeepCopy

func (in *MustGather) DeepCopy() *MustGather

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

func (*MustGather) DeepCopyInto

func (in *MustGather) DeepCopyInto(out *MustGather)

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

type MustGatherConfig

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

	Spec   MustGatherConfigSpec   `json:"spec,omitempty"`
	Status MustGatherConfigStatus `json:"status,omitempty"`
}

MustGatherConfig is the Schema for the mustgatherconfigs API +kubebuilder:subresource:status +kubebuilder:resource:path=mustgatherconfigs,scope=Namespaced

func (*MustGatherConfig) DeepCopy

func (in *MustGatherConfig) DeepCopy() *MustGatherConfig

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

func (*MustGatherConfig) DeepCopyInto

func (in *MustGatherConfig) DeepCopyInto(out *MustGatherConfig)

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

func (*MustGatherConfig) DeepCopyObject

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

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

type MustGatherConfigList

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

MustGatherConfigList contains a list of MustGatherConfig

func (*MustGatherConfigList) DeepCopy

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

func (*MustGatherConfigList) DeepCopyInto

func (in *MustGatherConfigList) DeepCopyInto(out *MustGatherConfigList)

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

func (*MustGatherConfigList) DeepCopyObject

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

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

type MustGatherConfigSpec

type MustGatherConfigSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	GatherConfig string `json:"gatherConfig,omitempty"`
}

MustGatherConfigSpec defines the desired state of MustGatherConfig

func (*MustGatherConfigSpec) DeepCopy

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

func (*MustGatherConfigSpec) DeepCopyInto

func (in *MustGatherConfigSpec) DeepCopyInto(out *MustGatherConfigSpec)

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

type MustGatherConfigStatus

type MustGatherConfigStatus struct {
}

MustGatherConfigStatus defines the observed state of MustGatherConfig

func (*MustGatherConfigStatus) DeepCopy

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

func (*MustGatherConfigStatus) DeepCopyInto

func (in *MustGatherConfigStatus) DeepCopyInto(out *MustGatherConfigStatus)

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

type MustGatherJob

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

	Spec   MustGatherJobSpec   `json:"spec,omitempty"`
	Status MustGatherJobStatus `json:"status,omitempty"`
}

MustGatherJob is the Schema for the mustgatherjobs API +kubebuilder:subresource:status +kubebuilder:resource:path=mustgatherjobs,scope=Namespaced

func (*MustGatherJob) DeepCopy

func (in *MustGatherJob) DeepCopy() *MustGatherJob

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

func (*MustGatherJob) DeepCopyInto

func (in *MustGatherJob) DeepCopyInto(out *MustGatherJob)

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

func (*MustGatherJob) DeepCopyObject

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

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

type MustGatherJobList

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

MustGatherJobList contains a list of MustGatherJob

func (*MustGatherJobList) DeepCopy

func (in *MustGatherJobList) DeepCopy() *MustGatherJobList

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

func (*MustGatherJobList) DeepCopyInto

func (in *MustGatherJobList) DeepCopyInto(out *MustGatherJobList)

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

func (*MustGatherJobList) DeepCopyObject

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

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

type MustGatherJobSpec

type MustGatherJobSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	// must gather image
	Image Image `json:"image,omitempty"`
	// must gather job ServiceAccountName, default is default
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// must gather config name, default is default
	MustGatherConfigName string `json:"mustgatherConfigName,omitempty"`
	// must gather command, default is gather
	MustGatherCommand string `json:"mustgatherCommand,omitempty"`
}

MustGatherJobSpec defines the desired state of MustGatherJob

func (*MustGatherJobSpec) DeepCopy

func (in *MustGatherJobSpec) DeepCopy() *MustGatherJobSpec

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

func (*MustGatherJobSpec) DeepCopyInto

func (in *MustGatherJobSpec) DeepCopyInto(out *MustGatherJobSpec)

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

type MustGatherJobStatus

type MustGatherJobStatus struct {
}

MustGatherJobStatus defines the observed state of MustGatherJob

func (*MustGatherJobStatus) DeepCopy

func (in *MustGatherJobStatus) DeepCopy() *MustGatherJobStatus

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

func (*MustGatherJobStatus) DeepCopyInto

func (in *MustGatherJobStatus) DeepCopyInto(out *MustGatherJobStatus)

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

type MustGatherService

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

	Spec   MustGatherServiceSpec   `json:"spec,omitempty"`
	Status MustGatherServiceStatus `json:"status,omitempty"`
}

MustGatherService is the Schema for the mustgatherservices API +kubebuilder:subresource:status +kubebuilder:resource:path=mustgatherservices,scope=Namespaced

func (*MustGatherService) DeepCopy

func (in *MustGatherService) DeepCopy() *MustGatherService

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

func (*MustGatherService) DeepCopyInto

func (in *MustGatherService) DeepCopyInto(out *MustGatherService)

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

func (*MustGatherService) DeepCopyObject

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

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

type MustGatherServiceList

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

MustGatherServiceList contains a list of MustGatherService

func (*MustGatherServiceList) DeepCopy

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

func (*MustGatherServiceList) DeepCopyInto

func (in *MustGatherServiceList) DeepCopyInto(out *MustGatherServiceList)

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

func (*MustGatherServiceList) DeepCopyObject

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

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

type MustGatherServiceSpec

type MustGatherServiceSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	MustGather MustGather `json:"mustGather,omitempty"`
	// persistentVolumeClaim defines the desired persistent volume claim
	PersistentVolumeClaim PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"`
}

MustGatherServiceSpec defines the desired state of MustGatherService

func (*MustGatherServiceSpec) DeepCopy

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

func (*MustGatherServiceSpec) DeepCopyInto

func (in *MustGatherServiceSpec) DeepCopyInto(out *MustGatherServiceSpec)

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

type MustGatherServiceStatus

type MustGatherServiceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	// MustGatherServiceNodes are the names of the MustGatherService pods
	MustGatherServiceNodes []string `json:"mustGatherServiceNodes,omitempty"`
}

MustGatherServiceStatus defines the observed state of MustGatherService

func (*MustGatherServiceStatus) DeepCopy

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

func (*MustGatherServiceStatus) DeepCopyInto

func (in *MustGatherServiceStatus) DeepCopyInto(out *MustGatherServiceStatus)

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

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	// MustGatherService pvc name
	Name string `json:"name"`
	// resources defines the request storage size
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
	// storageClassName defines the storageclass name, default is default storageclass in cluster
	StorageClassName string `json:"storageClassName,omitempty"`
}

PersistentVolumeClaim defines the desired persistent volume claim

func (*PersistentVolumeClaim) DeepCopy

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

func (*PersistentVolumeClaim) DeepCopyInto

func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim)

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

type Resource

type Resource struct {
	Memory string `json:"memory,omitempty"`
	CPU    string `json:"cpu,omitempty"`
}

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

type Resources

type Resources struct {
	Requests Resource `json:"requests,omitempty"`
	Limits   Resource `json:"limits,omitempty"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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