v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.skywalking.apache.org

Index

Constants

View Source
const (
	// ServiceTypeClusterIP means a service will only be accessible inside the
	// cluster, via the cluster IP.
	FetcherTypePrometheus = "prometheus"
)

Variables

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

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Fetcher

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

	Spec   FetcherSpec   `json:"spec,omitempty"`
	Status FetcherStatus `json:"status,omitempty"`
}

Fetcher is the Schema for the fetchers API

func (*Fetcher) DeepCopy

func (in *Fetcher) DeepCopy() *Fetcher

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

func (*Fetcher) DeepCopyInto

func (in *Fetcher) DeepCopyInto(out *Fetcher)

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

func (*Fetcher) DeepCopyObject

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

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

func (*Fetcher) Default

func (r *Fetcher) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Fetcher) SetupWebhookWithManager

func (r *Fetcher) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Fetcher) ValidateCreate

func (r *Fetcher) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Fetcher) ValidateDelete

func (r *Fetcher) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Fetcher) ValidateUpdate

func (r *Fetcher) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type FetcherCondition

type FetcherCondition struct {
	// Type of deployment condition.
	Type FetcherConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}

DeploymentCondition describes the state of a deployment at a certain point.

func (*FetcherCondition) DeepCopy

func (in *FetcherCondition) DeepCopy() *FetcherCondition

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

func (*FetcherCondition) DeepCopyInto

func (in *FetcherCondition) DeepCopyInto(out *FetcherCondition)

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

type FetcherConditionType

type FetcherConditionType string
var (
	FetcherConditionTypeRead FetcherConditionType = "Ready"
)

type FetcherList

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

FetcherList contains a list of Fetcher

func (*FetcherList) DeepCopy

func (in *FetcherList) DeepCopy() *FetcherList

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

func (*FetcherList) DeepCopyInto

func (in *FetcherList) DeepCopyInto(out *FetcherList)

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

func (*FetcherList) DeepCopyObject

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

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

type FetcherSpec

type FetcherSpec struct {
	// Fetcher is the type of how to fetch metrics from target.
	// +kubebuilder:validation:Required
	Type []FetcherType `json:"type,omitempty"`
	// OAPServerAddress is the address of backend OAPServers
	// +kubebuilder:validation:Required
	OAPServerAddress string `json:"OAPServerAddress,omitempty"`
	// ClusterName
	// +kubebuilder:validation:Optional
	ClusterName string `json:"clusterName,omitempty"`
}

FetcherSpec defines the desired state of Fetcher

func (*FetcherSpec) DeepCopy

func (in *FetcherSpec) DeepCopy() *FetcherSpec

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

func (*FetcherSpec) DeepCopyInto

func (in *FetcherSpec) DeepCopyInto(out *FetcherSpec)

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

func (*FetcherSpec) GetType

func (f *FetcherSpec) GetType() []string

type FetcherStatus

type FetcherStatus struct {
	// Replicas is currently not being set and might be removed in the next version.
	// +kubebuilder:validation:Optional
	Replicas int32 `json:"replicas,omitempty"`
	// Represents the latest available observations of a fetcher's current state.
	// +kubebuilder:validation:Optional
	Conditions []FetcherCondition `json:"conditions,omitempty"`
}

FetcherStatus defines the observed state of Fetcher

func (*FetcherStatus) DeepCopy

func (in *FetcherStatus) DeepCopy() *FetcherStatus

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

func (*FetcherStatus) DeepCopyInto

func (in *FetcherStatus) DeepCopyInto(out *FetcherStatus)

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

type FetcherType

type FetcherType string

Service Type string describes ingress methods for a service

type Ingress

type Ingress struct {
	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// +kubebuilder:validation:Optional
	Annotations map[string]string `json:"annotations,omitempty"`
	// Host is the fully qualified domain name of a network host, as defined by RFC 3986.
	// Note the following deviations from the "host" part of the
	// URI as defined in RFC 3986
	// +kubebuilder:validation:Optional
	Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"`
	// IngressClassName is the name of the IngressClass cluster resource. The
	// associated IngressClass defines which controller will implement the
	// resource. This replaces the deprecated `kubernetes.io/ingress.class`
	// annotation. For backwards compatibility, when that annotation is set, it
	// must be given precedence over this field. The controller may emit a
	// warning if the field and annotation have different values.
	// Implementations of this API should ignore Ingresses without a class
	// specified. An IngressClass resource may be marked as default, which can
	// be used to set a default value for this field. For more information,
	// refer to the IngressClass documentation.
	// +kubebuilder:validation:Optional
	IngressClassName *string `json:"ingressClassName,omitempty" protobuf:"bytes,4,opt,name=ingressClassName"`
	// TLS configuration. Currently the Ingress only supports a single TLS
	// port, 443. If multiple members of this list specify different hosts, they
	// will be multiplexed on the same port according to the hostname specified
	// through the SNI TLS extension, if the ingress controller fulfilling the
	// ingress supports SNI.
	// +kubebuilder:validation:Optional
	TLS []networkingv1.IngressTLS `json:"tls,omitempty" protobuf:"bytes,2,rep,name=tls"`
}

func (*Ingress) DeepCopy

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type JavaAgent added in v0.4.0

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

	Spec   JavaAgentSpec   `json:"spec,omitempty"`
	Status JavaAgentStatus `json:"status,omitempty"`
}

JavaAgent is the Schema for the javaagents API

func (*JavaAgent) DeepCopy added in v0.4.0

func (in *JavaAgent) DeepCopy() *JavaAgent

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

func (*JavaAgent) DeepCopyInto added in v0.4.0

func (in *JavaAgent) DeepCopyInto(out *JavaAgent)

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

func (*JavaAgent) DeepCopyObject added in v0.4.0

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

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

func (*JavaAgent) Default added in v0.4.0

func (r *JavaAgent) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*JavaAgent) SetupWebhookWithManager added in v0.4.0

func (r *JavaAgent) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*JavaAgent) ValidateCreate added in v0.4.0

func (r *JavaAgent) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*JavaAgent) ValidateDelete added in v0.4.0

func (r *JavaAgent) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*JavaAgent) ValidateUpdate added in v0.4.0

func (r *JavaAgent) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type JavaAgentList added in v0.4.0

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

JavaAgentList contains a list of JavaAgent

func (*JavaAgentList) DeepCopy added in v0.4.0

func (in *JavaAgentList) DeepCopy() *JavaAgentList

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

func (*JavaAgentList) DeepCopyInto added in v0.4.0

func (in *JavaAgentList) DeepCopyInto(out *JavaAgentList)

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

func (*JavaAgentList) DeepCopyObject added in v0.4.0

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

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

type JavaAgentSpec added in v0.4.0

type JavaAgentSpec struct {
	// PodSelector is the selector label of injected Pod
	// +kubebuilder:validation:Optional
	PodSelector string `json:"podSelector,omitempty"`
	// ServiceName is the name of service in the injected agent, which need to be printed
	// +kubebuilder:validation:Required
	ServiceName string `json:"serviceName,omitempty"`
	// BackendService is the backend service in the injected agent, which need to be printed
	// +kubebuilder:validation:Required
	BackendService string `json:"backendService,omitempty"`
	// AgentConfiguration is the injected agent's final configuration
	// +kubebuilder:validation:Optional
	AgentConfiguration map[string]string `json:"agentConfiguration,omitempty"`
}

JavaAgentSpec defines the desired state of JavaAgent

func (*JavaAgentSpec) DeepCopy added in v0.4.0

func (in *JavaAgentSpec) DeepCopy() *JavaAgentSpec

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

func (*JavaAgentSpec) DeepCopyInto added in v0.4.0

func (in *JavaAgentSpec) DeepCopyInto(out *JavaAgentSpec)

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

type JavaAgentStatus added in v0.4.0

type JavaAgentStatus struct {
	// The number of pods that need to be injected
	ExpectedInjectedNum int `json:"expectedInjectiedNum,omitempty"`
	// The number of pods that injected successfully
	RealInjectedNum int `json:"realInjectedNum,omitempty"`
	// The time the JavaAgent was created.
	CreationTime metav1.Time `json:"creationTime,omitempty"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

JavaAgentStatus defines the observed state of JavaAgent

func (*JavaAgentStatus) DeepCopy added in v0.4.0

func (in *JavaAgentStatus) DeepCopy() *JavaAgentStatus

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

func (*JavaAgentStatus) DeepCopyInto added in v0.4.0

func (in *JavaAgentStatus) DeepCopyInto(out *JavaAgentStatus)

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

type JavaagentInjector added in v0.4.0

type JavaagentInjector struct {
	Client client.Client
	// contains filtered or unexported fields
}

Javaagent injects java agent into Pods

func (*JavaagentInjector) DeepCopy added in v0.4.0

func (in *JavaagentInjector) DeepCopy() *JavaagentInjector

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

func (*JavaagentInjector) DeepCopyInto added in v0.4.0

func (in *JavaagentInjector) DeepCopyInto(out *JavaagentInjector)

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

func (*JavaagentInjector) Handle added in v0.4.0

Handle will process every coming pod under the specified namespace which labeled "swck-injection=enabled"

func (*JavaagentInjector) InjectDecoder added in v0.4.0

func (r *JavaagentInjector) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type OAPServer

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

	Spec   OAPServerSpec   `json:"spec,omitempty"`
	Status OAPServerStatus `json:"status,omitempty"`
}

OAPServer is the Schema for the oapservers API

func (*OAPServer) DeepCopy

func (in *OAPServer) DeepCopy() *OAPServer

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

func (*OAPServer) DeepCopyInto

func (in *OAPServer) DeepCopyInto(out *OAPServer)

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

func (*OAPServer) DeepCopyObject

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

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

func (*OAPServer) Default

func (r *OAPServer) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*OAPServer) SetupWebhookWithManager

func (r *OAPServer) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*OAPServer) ValidateCreate

func (r *OAPServer) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*OAPServer) ValidateDelete

func (r *OAPServer) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*OAPServer) ValidateUpdate

func (r *OAPServer) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type OAPServerList

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

OAPServerList contains a list of OAPServer

func (*OAPServerList) DeepCopy

func (in *OAPServerList) DeepCopy() *OAPServerList

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

func (*OAPServerList) DeepCopyInto

func (in *OAPServerList) DeepCopyInto(out *OAPServerList)

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

func (*OAPServerList) DeepCopyObject

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

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

type OAPServerSpec

type OAPServerSpec struct {
	// Version of OAP.
	// +kubebuilder:validation:Required
	Version string `json:"version"`
	// Image is the OAP Server Docker image to deploy.
	Image string `json:"image,omitempty"`
	// Count is the number of OAP servers
	// +kubebuilder:validation:Required
	Instances int32 `json:"instances"`
	// Config holds the OAP server configuration.
	Config []corev1.EnvVar `json:"config,omitempty"`
	// Service relevant settings
	// +kubebuilder:validation:Optional
	Service Service `json:"service,omitempty"`
	// StorageConfig relevant settings
	// +kubebuilder:validation:Optional
	StorageConfig RelevantStorage `json:"storage,omitempty"`
}

OAPServerSpec defines the desired state of OAPServer

func (*OAPServerSpec) DeepCopy

func (in *OAPServerSpec) DeepCopy() *OAPServerSpec

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

func (*OAPServerSpec) DeepCopyInto

func (in *OAPServerSpec) DeepCopyInto(out *OAPServerSpec)

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

type OAPServerStatus

type OAPServerStatus struct {
	// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
	// +kubebuilder:validation:Optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty"`
	// Address indicates the entry of OAP server which ingresses data
	// +kubebuilder:validation:Optional
	Address string `json:"address,omitempty"`
	// Represents the latest available observations of the underlying deployment's current state.
	// +kubebuilder:validation:Optional
	Conditions []appsv1.DeploymentCondition `json:"conditions,omitempty"`
}

OAPServerStatus defines the observed state of OAPServer

func (*OAPServerStatus) DeepCopy

func (in *OAPServerStatus) DeepCopy() *OAPServerStatus

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

func (*OAPServerStatus) DeepCopyInto

func (in *OAPServerStatus) DeepCopyInto(out *OAPServerStatus)

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

type RelevantStorage added in v0.4.0

type RelevantStorage struct {
	// Name relevant settings
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`
	// Storage relevant settings
	Storage Storage `json:"injectstorage,omitempty"`
}

type Resource added in v0.4.0

type Resource struct {
	Limit    string `json:"limit,omitempty"`
	Requests string `json:"requests,omitempty"`
}

type SecuritySpec added in v0.4.0

type SecuritySpec struct {
	// SSLConfig of  storage .
	// +kubebuilder:validation:Optional
	TLS bool `json:"tls,omitempty"`
	// UserConfig of storage .
	// +kubebuilder:validation:Optional
	User UserSpec `json:"user,omitempty"`
}

SecuritySpec defines the security setting of Storage

func (*SecuritySpec) DeepCopy added in v0.4.0

func (in *SecuritySpec) DeepCopy() *SecuritySpec

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

func (*SecuritySpec) DeepCopyInto added in v0.4.0

func (in *SecuritySpec) DeepCopyInto(out *SecuritySpec)

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

type Service

type Service struct {
	// ServiceTemplate defines the behavior of a service.
	// +kubebuilder:validation:Optional
	Template ServiceTemplate `json:"template,omitempty"`
	// Ingress defines the behavior of an ingress
	// +kubebuilder:validation:Optional
	Ingress Ingress `json:"ingress,omitempty"`
}

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

type ServiceTemplate

type ServiceTemplate struct {

	// clusterIP is the IP address of the service and is usually assigned
	// randomly.
	// +kubebuilder:validation:Optional
	ClusterIP string `json:"clusterIP,omitempty"`
	// type determines how the Service is exposed.
	// +kubebuilder:validation:Optional
	Type ServiceType `json:"type,omitempty"`
	// externalIPs is a list of IP addresses for which nodes in the cluster
	// will also accept traffic for this service.
	// +kubebuilder:validation:Optional
	ExternalIPs []string `json:"externalIPs,omitempty"`
	// Only applies to Service Type: LoadBalancer
	// LoadBalancer will get created with the IP specified in this field.
	// +kubebuilder:validation:Optional
	LoadBalancerIP string `json:"loadBalancerIP,omitempty"`
	// If specified and supported by the platform, this will restrict traffic through the cloud-provider
	// load-balancer will be restricted to the specified client IPs.
	// +kubebuilder:validation:Optional
	LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"`
}

func (*ServiceTemplate) DeepCopy

func (in *ServiceTemplate) DeepCopy() *ServiceTemplate

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

func (*ServiceTemplate) DeepCopyInto

func (in *ServiceTemplate) DeepCopyInto(out *ServiceTemplate)

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

func (*ServiceTemplate) Default

func (s *ServiceTemplate) Default()

func (*ServiceTemplate) Validate

func (s *ServiceTemplate) Validate() error

type ServiceType

type ServiceType string

Service Type string describes ingress methods for a service

const (
	// ServiceTypeClusterIP means a service will only be accessible inside the
	// cluster, via the cluster IP.
	ServiceTypeClusterIP ServiceType = "ClusterIP"

	// ServiceTypeNodePort means a service will be exposed on one port of
	// every node, in addition to 'ClusterIP' type.
	ServiceTypeNodePort ServiceType = "NodePort"

	// ServiceTypeLoadBalancer means a service will be exposed via an
	// external load balancer (if the cloud provider supports it), in addition
	// to 'NodePort' type.
	ServiceTypeLoadBalancer ServiceType = "LoadBalancer"
)

type Storage added in v0.4.0

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

	Spec   StorageSpec   `json:"spec,omitempty"`
	Status StorageStatus `json:"status,omitempty"`
}

Storage is the Schema for the storages API

func (*Storage) DeepCopy added in v0.4.0

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto added in v0.4.0

func (in *Storage) DeepCopyInto(out *Storage)

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

func (*Storage) DeepCopyObject added in v0.4.0

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

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

func (*Storage) Default added in v0.4.0

func (r *Storage) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Storage) SetupWebhookWithManager added in v0.4.0

func (r *Storage) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Storage) ValidateCreate added in v0.4.0

func (r *Storage) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Storage) ValidateDelete added in v0.4.0

func (r *Storage) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Storage) ValidateUpdate added in v0.4.0

func (r *Storage) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type StorageList added in v0.4.0

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

StorageList contains a list of Storage

func (*StorageList) DeepCopy added in v0.4.0

func (in *StorageList) DeepCopy() *StorageList

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

func (*StorageList) DeepCopyInto added in v0.4.0

func (in *StorageList) DeepCopyInto(out *StorageList)

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

func (*StorageList) DeepCopyObject added in v0.4.0

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

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

type StorageSpec added in v0.4.0

type StorageSpec struct {
	// Type of storage.
	// +kubebuilder:validation:Required
	Type string `json:"type,omitempty"`
	// ConnectType is the way to connect storage(e.g. external,internal).
	// +kubebuilder:validation:Required
	ConnectType string `json:"connectType,omitempty"`
	// Address of external storage address.
	// +kubebuilder:validation:Optional
	ConnectAddress string `json:"address,omitempty"`
	// Version of storage.
	// +kubebuilder:validation:Required
	Version string `json:"version,omitempty"`
	// Image is the storage Docker image to deploy.
	// +kubebuilder:validation:Optional
	Image string `json:"image,omitempty"`
	// Instance is the number of storage.
	// +kubebuilder:validation:Optional
	Instances int32 `json:"instances,omitempty"`
	// Security relevant settings
	// +kubebuilder:validation:Optional
	Security SecuritySpec `json:"security,omitempty"`
	// ServiceName relevant settings
	ServiceName string `json:"servicename,omitempty"`
	// Config holds the Storage configuration.
	Config []corev1.EnvVar `json:"config,omitempty"`
	//ResourceCnfig relevant settings
	ResourceCnfig Resource `json:"resource,omitempty"`
}

StorageSpec defines the desired state of Storage

func (*StorageSpec) DeepCopy added in v0.4.0

func (in *StorageSpec) DeepCopy() *StorageSpec

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

func (*StorageSpec) DeepCopyInto added in v0.4.0

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

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

type StorageStatus added in v0.4.0

type StorageStatus struct {
	// Represents the latest available observations of the underlying statefulset's current state.
	// +kubebuilder:validation:Optional
	Conditions []appsv1.StatefulSetCondition `json:"conditions,omitempty"`
}

StorageStatus defines the observed state of Storage

func (*StorageStatus) DeepCopy added in v0.4.0

func (in *StorageStatus) DeepCopy() *StorageStatus

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

func (*StorageStatus) DeepCopyInto added in v0.4.0

func (in *StorageStatus) DeepCopyInto(out *StorageStatus)

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

type UI

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

	Spec   UISpec   `json:"spec,omitempty"`
	Status UIStatus `json:"status,omitempty"`
}

UI is the Schema for the uis API

func (*UI) DeepCopy

func (in *UI) DeepCopy() *UI

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

func (*UI) DeepCopyInto

func (in *UI) DeepCopyInto(out *UI)

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

func (*UI) DeepCopyObject

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

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

func (*UI) Default

func (r *UI) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*UI) SetupWebhookWithManager

func (r *UI) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*UI) ValidateCreate

func (r *UI) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*UI) ValidateDelete

func (r *UI) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*UI) ValidateUpdate

func (r *UI) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type UIList

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

UIList contains a list of UI

func (*UIList) DeepCopy

func (in *UIList) DeepCopy() *UIList

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

func (*UIList) DeepCopyInto

func (in *UIList) DeepCopyInto(out *UIList)

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

func (*UIList) DeepCopyObject

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

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

type UISpec

type UISpec struct {
	// Version of UI.
	// +kubebuilder:validation:Required
	Version string `json:"version"`
	// Image is the UI Docker image to deploy.
	Image string `json:"image,omitempty"`
	// Count is the number of UI pods
	// +kubebuilder:validation:Required
	Instances int32 `json:"instances"`
	// Backend OAP server address
	// +kubebuilder:validation:Optional
	OAPServerAddress string `json:"OAPServerAddress,omitempty"`
	// Service relevant settings
	// +kubebuilder:validation:Optional
	Service Service `json:"service,omitempty"`
}

UISpec defines the desired state of UI

func (*UISpec) DeepCopy

func (in *UISpec) DeepCopy() *UISpec

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

func (*UISpec) DeepCopyInto

func (in *UISpec) DeepCopyInto(out *UISpec)

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

type UIStatus

type UIStatus struct {
	// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
	// +kubebuilder:validation:Optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty"`
	// externalIPs is a list of IP addresses for which nodes in the cluster
	// will also accept traffic for this service.
	// +kubebuilder:validation:Optional
	ExternalIPs []string `json:"externalIPs,omitempty"`
	// Ports that will be exposed by this service.
	// +kubebuilder:validation:Optional
	Ports []int32 `json:"ports"`
	// +kubebuilder:validation:Optional
	InternalAddress string `json:"internalAddress,omitempty"`
	// Represents the latest available observations of the underlying deployment's current state.
	// +kubebuilder:validation:Optional
	Conditions []appsv1.DeploymentCondition `json:"conditions,omitempty"`
}

UIStatus defines the observed state of UI

func (*UIStatus) DeepCopy

func (in *UIStatus) DeepCopy() *UIStatus

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

func (*UIStatus) DeepCopyInto

func (in *UIStatus) DeepCopyInto(out *UIStatus)

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

type UserSpec added in v0.4.0

type UserSpec struct {
	// SecretName of storage user .
	// +kubebuilder:validation:Optional
	SecretName string `json:"secretName,omitempty"`
}

UserSpec defines the user security setting of Storage

func (*UserSpec) DeepCopy added in v0.4.0

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto added in v0.4.0

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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