Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cdap v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=cdap.io/cdap-operator/pkg/apis/cdap +k8s:defaulter-gen=TypeMeta +groupName=cdap.cdap.io
Package v1alpha1 contains API Schema definitions for the cdap v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=cdap.io/cdap-operator/pkg/apis/cdap +k8s:defaulter-gen=TypeMeta +groupName=cdap.cdap.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type AppFabricSpec
- type CDAPExternalServiceSpec
- type CDAPMaster
- type CDAPMasterList
- type CDAPMasterSpec
- type CDAPMasterStatus
- type CDAPScalableServiceSpec
- type CDAPServiceSpec
- type CDAPStatefulServiceSpec
- type LogsSpec
- type MessagingSpec
- type MetadataSpec
- type MetricsSpec
- type PreviewSpec
- type RouterSpec
- type ServiceType
- type UserInterfaceSpec
Constants ¶
const ( LocalDataDir = "/data" InstanceLabel = "cdap.instance" )
Exported constants
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "cdap.cdap.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type AppFabricSpec ¶
type AppFabricSpec struct {
CDAPServiceSpec `json:",inline"`
}
AppFabricSpec defines the specification for the AppFabric service.
func (*AppFabricSpec) DeepCopy ¶
func (in *AppFabricSpec) DeepCopy() *AppFabricSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFabricSpec.
func (*AppFabricSpec) DeepCopyInto ¶
func (in *AppFabricSpec) DeepCopyInto(out *AppFabricSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDAPExternalServiceSpec ¶
type CDAPExternalServiceSpec struct { CDAPScalableServiceSpec `json:",inline"` // ServiceType is the service type in kubernetes, default is NodePort. ServiceType *string `json:"serviceType,omitempty"` // ServicePort is the port number for the service. ServicePort *int32 `json:"servicePort,omitempty"` }
CDAPExternalServiceSpec defines the base specification for master services that expose to outside of the cluster.
func (*CDAPExternalServiceSpec) DeepCopy ¶
func (in *CDAPExternalServiceSpec) DeepCopy() *CDAPExternalServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPExternalServiceSpec.
func (*CDAPExternalServiceSpec) DeepCopyInto ¶
func (in *CDAPExternalServiceSpec) DeepCopyInto(out *CDAPExternalServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDAPMaster ¶
type CDAPMaster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CDAPMasterSpec `json:"spec,omitempty"` Status CDAPMasterStatus `json:"status,omitempty"` }
CDAPMaster is the Schema for the cdapmasters API. +k8s:openapi-gen=true
func (*CDAPMaster) ApplyDefaults ¶
func (r *CDAPMaster) ApplyDefaults()
ApplyDefaults will default missing values from the CDAPMaster
func (*CDAPMaster) DeepCopy ¶
func (in *CDAPMaster) DeepCopy() *CDAPMaster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPMaster.
func (*CDAPMaster) DeepCopyInto ¶
func (in *CDAPMaster) DeepCopyInto(out *CDAPMaster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDAPMaster) DeepCopyObject ¶
func (in *CDAPMaster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CDAPMasterList ¶
type CDAPMasterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CDAPMaster `json:"items"` }
CDAPMasterList contains a list of CDAPMaster.
func (*CDAPMasterList) DeepCopy ¶
func (in *CDAPMasterList) DeepCopy() *CDAPMasterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPMasterList.
func (*CDAPMasterList) DeepCopyInto ¶
func (in *CDAPMasterList) DeepCopyInto(out *CDAPMasterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CDAPMasterList) DeepCopyObject ¶
func (in *CDAPMasterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CDAPMasterSpec ¶
type CDAPMasterSpec struct { // Image is the docker image name for the CDAP backend. Image string `json:"image,omitempty"` // UserInterfaceImage is the docker image name for the CDAP UI. UserInterfaceImage string `json:"userInterfaceImage,omitempty"` // ImagePullPolicy is the policy for pulling docker images on Pod creation. ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // SecuritySecret is secret that contains security related configurations for CDAP. SecuritySecret string `json:"securitySecret,omitempty"` // ServiceAccountName is the service account for all the service pods. ServiceAccountName string `json:"serviceAccountName,omitempty"` // LocationURI is an URI specifying an object storage for CDAP. LocationURI string `json:"locationURI"` // Config is a set of configurations that goes into cdap-site.xml. Config map[string]string `json:"config,omitempty"` // LogLevels is a set of logger name to log level settings. LogLevels map[string]string `json:"logLevels,omitempty"` // AppFabric is specification for the CDAP app-fabric service. AppFabric AppFabricSpec `json:"appFabric,omitempty"` // Logs is specification for the CDAP logging service. Logs LogsSpec `json:"logs,omitempty"` // Messaging is specification for the CDAP messaging service. Messaging MessagingSpec `json:"messaging,omitempty"` // Metadata is specification for the CDAP metadata service. Metadata MetadataSpec `json:"metadata,omitempty"` // Metrics is specification for the CDAP metrics service. Metrics MetricsSpec `json:"metrics,omitempty"` // Preview is specification for the CDAP preview service. Preview PreviewSpec `json:"preview,omitempty"` // Router is specification for the CDAP router service. Router RouterSpec `json:"router,omitempty"` // UserInterface is specification for the CDAP UI service. UserInterface UserInterfaceSpec `json:"userInterface,omitempty"` }
CDAPMasterSpec defines the desired state of CDAPMaster.
func (*CDAPMasterSpec) DeepCopy ¶
func (in *CDAPMasterSpec) DeepCopy() *CDAPMasterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPMasterSpec.
func (*CDAPMasterSpec) DeepCopyInto ¶
func (in *CDAPMasterSpec) DeepCopyInto(out *CDAPMasterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDAPMasterStatus ¶
type CDAPMasterStatus struct { status.Meta `json:",inline"` status.ComponentMeta `json:",inline"` // ImageToUse is the Docker image of CDAP backend the operator uses to deploy. ImageToUse string `json:"imageToUse,omitempty"` // UserInterfaceImageToUse is the Docker image of CDAP UI the operator uses to deploy. UserInterfaceImageToUse string `json:"userInterfaceImageToUse,omitempty"` // UpgradeStartTimeMillis is the start time in millis of the upgrade process UpgradeStartTimeMillis int64 `json:"upgradeStartTimeMillis,omitempty"` }
CDAPMasterStatus defines the observed state of CDAPMaster.
func (*CDAPMasterStatus) DeepCopy ¶
func (in *CDAPMasterStatus) DeepCopy() *CDAPMasterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPMasterStatus.
func (*CDAPMasterStatus) DeepCopyInto ¶
func (in *CDAPMasterStatus) DeepCopyInto(out *CDAPMasterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDAPScalableServiceSpec ¶
type CDAPScalableServiceSpec struct { CDAPServiceSpec `json:",inline"` // Replicas is number of replicas for the service. Replicas *int32 `json:"replicas,omitempty"` }
CDAPScalableServiceSpec defines the base specification for master services that can have more than one instance.
func (*CDAPScalableServiceSpec) DeepCopy ¶
func (in *CDAPScalableServiceSpec) DeepCopy() *CDAPScalableServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPScalableServiceSpec.
func (*CDAPScalableServiceSpec) DeepCopyInto ¶
func (in *CDAPScalableServiceSpec) DeepCopyInto(out *CDAPScalableServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDAPServiceSpec ¶
type CDAPServiceSpec struct { // Metadata for the service. metav1.ObjectMeta `json:"metadata,omitempty"` // ServiceAccountName overrides the service account for the service pods. ServiceAccountName string `json:"serviceAccountName,omitempty"` // Resources are Compute resources required by the service. Resources *corev1.ResourceRequirements `json:"resources,omitempty"` // NodeSelector is a selector which must be true for the pod to fit on a node. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used // to run pods for this service. If no RuntimeClass resource matches the named class, pods will not be running. RuntimeClassName *string `json:"runtimeClassName,omitempty"` // PriorityClassName is to specify the priority of the pods for this service. PriorityClassName *string `json:"priorityClassName,omitempty"` // Env is a list of environment variables for the master service container. Env []corev1.EnvVar `json:"env,omitempty"` }
CDAPServiceSpec defines the base set of specifications applicable to all master services.
func (*CDAPServiceSpec) DeepCopy ¶
func (in *CDAPServiceSpec) DeepCopy() *CDAPServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPServiceSpec.
func (*CDAPServiceSpec) DeepCopyInto ¶
func (in *CDAPServiceSpec) DeepCopyInto(out *CDAPServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CDAPStatefulServiceSpec ¶
type CDAPStatefulServiceSpec struct { CDAPServiceSpec `json:",inline"` // StorageSize is specification for the persistent volume size used by the service. StorageSize string `json:"storageSize,omitempty"` // StorageClassName is the name of the StorageClass for the persistent volume used by the service. StorageClassName *string `json:"storageClassName,omitempty"` }
CDAPStatefulServiceSpec defines the base specification for stateful master services.
func (*CDAPStatefulServiceSpec) DeepCopy ¶
func (in *CDAPStatefulServiceSpec) DeepCopy() *CDAPStatefulServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDAPStatefulServiceSpec.
func (*CDAPStatefulServiceSpec) DeepCopyInto ¶
func (in *CDAPStatefulServiceSpec) DeepCopyInto(out *CDAPStatefulServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogsSpec ¶
type LogsSpec struct {
CDAPStatefulServiceSpec `json:",inline"`
}
LogsSpec defines the specification for the Logs service.
func (*LogsSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogsSpec.
func (*LogsSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MessagingSpec ¶
type MessagingSpec struct {
CDAPStatefulServiceSpec `json:",inline"`
}
MessagingSpec defines the specification for the TMS service.
func (*MessagingSpec) DeepCopy ¶
func (in *MessagingSpec) DeepCopy() *MessagingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessagingSpec.
func (*MessagingSpec) DeepCopyInto ¶
func (in *MessagingSpec) DeepCopyInto(out *MessagingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetadataSpec ¶
type MetadataSpec struct {
CDAPServiceSpec `json:",inline"`
}
MetadataSpec defines the specification for the Metadata service
func (*MetadataSpec) DeepCopy ¶
func (in *MetadataSpec) DeepCopy() *MetadataSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataSpec.
func (*MetadataSpec) DeepCopyInto ¶
func (in *MetadataSpec) DeepCopyInto(out *MetadataSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsSpec ¶
type MetricsSpec struct {
CDAPStatefulServiceSpec `json:",inline"`
}
MetricsSpec defines the specification for the Metrics service.
func (*MetricsSpec) DeepCopy ¶
func (in *MetricsSpec) DeepCopy() *MetricsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsSpec.
func (*MetricsSpec) DeepCopyInto ¶
func (in *MetricsSpec) DeepCopyInto(out *MetricsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreviewSpec ¶
type PreviewSpec struct {
CDAPStatefulServiceSpec `json:",inline"`
}
PreviewSpec defines the specification for the Preview service.
func (*PreviewSpec) DeepCopy ¶
func (in *PreviewSpec) DeepCopy() *PreviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreviewSpec.
func (*PreviewSpec) DeepCopyInto ¶
func (in *PreviewSpec) DeepCopyInto(out *PreviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouterSpec ¶
type RouterSpec struct {
CDAPExternalServiceSpec `json:",inline"`
}
RouterSpec defines the specification for the Router service.
func (*RouterSpec) DeepCopy ¶
func (in *RouterSpec) DeepCopy() *RouterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouterSpec.
func (*RouterSpec) DeepCopyInto ¶
func (in *RouterSpec) DeepCopyInto(out *RouterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceType ¶
type ServiceType string
ServiceType is the name identifying various CDAP master services
const ( // ServiceAppFabric defines the service type for app-fabric ServiceAppFabric ServiceType = "AppFabric" // ServiceLogs defines the service type for log processing and serving service ServiceLogs ServiceType = "Logs" // ServiceMessaging defines the service type for TMS ServiceMessaging ServiceType = "Messaging" // ServiceMetadata defines the service type for metadata service ServiceMetadata ServiceType = "Metadata" // ServiceMetrics defines the service type for metrics process and serving ServiceMetrics ServiceType = "Metrics" // ServicePreview defines the service type for preview service ServicePreview ServiceType = "Preview" // ServiceRouter defines the service type for the router ServiceRouter ServiceType = "Router" // ServiceUserInterface defines the service type for user interface ServiceUserInterface ServiceType = "UserInterface" )
type UserInterfaceSpec ¶
type UserInterfaceSpec struct {
CDAPExternalServiceSpec `json:",inline"`
}
UserInterfaceSpec defines the specification for the UI service.
func (*UserInterfaceSpec) DeepCopy ¶
func (in *UserInterfaceSpec) DeepCopy() *UserInterfaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInterfaceSpec.
func (*UserInterfaceSpec) DeepCopyInto ¶
func (in *UserInterfaceSpec) DeepCopyInto(out *UserInterfaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.