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
- Variables
- type Fetcher
- func (in *Fetcher) DeepCopy() *Fetcher
- func (in *Fetcher) DeepCopyInto(out *Fetcher)
- func (in *Fetcher) DeepCopyObject() runtime.Object
- func (r *Fetcher) Default()
- func (r *Fetcher) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Fetcher) ValidateCreate() error
- func (r *Fetcher) ValidateDelete() error
- func (r *Fetcher) ValidateUpdate(old runtime.Object) error
- type FetcherCondition
- type FetcherConditionType
- type FetcherList
- type FetcherSpec
- type FetcherStatus
- type FetcherType
- type Ingress
- type OAPServer
- func (in *OAPServer) DeepCopy() *OAPServer
- func (in *OAPServer) DeepCopyInto(out *OAPServer)
- func (in *OAPServer) DeepCopyObject() runtime.Object
- func (r *OAPServer) Default()
- func (r *OAPServer) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *OAPServer) ValidateCreate() error
- func (r *OAPServer) ValidateDelete() error
- func (r *OAPServer) ValidateUpdate(old runtime.Object) error
- type OAPServerList
- type OAPServerSpec
- type OAPServerStatus
- type Service
- type ServiceTemplate
- type ServiceType
- type UI
- func (in *UI) DeepCopy() *UI
- func (in *UI) DeepCopyInto(out *UI)
- func (in *UI) DeepCopyObject() runtime.Object
- func (r *UI) Default()
- func (r *UI) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *UI) ValidateCreate() error
- func (r *UI) ValidateDelete() error
- func (r *UI) ValidateUpdate(old runtime.Object) error
- type UIList
- type UISpec
- type UIStatus
Constants ¶
const ( // ServiceTypeClusterIP means a service will only be accessible inside the // cluster, via the cluster IP. FetcherTypePrometheus = "prometheus" )
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fetcher.
func (*Fetcher) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Fetcher) DeepCopyObject ¶
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 (*Fetcher) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Fetcher) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
func (*Ingress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAPServer.
func (*OAPServer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OAPServer) DeepCopyObject ¶
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 (*OAPServer) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*OAPServer) ValidateDelete ¶
ValidateDelete 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"`
}
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UI.
func (*UI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UI) DeepCopyObject ¶
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) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*UI) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UIList.
func (*UIList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UIList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UISpec.
func (*UISpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UIStatus.
func (*UIStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.