Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the vdb v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=teiid.io
Package v1alpha1 contains API Schema definitions for the vdb v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=teiid.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterDefaults(scheme *runtime.Scheme) error
- type DataSourceObject
- type ExposeType
- type OpenShiftObject
- type ReconcilerPhase
- type Source
- type ValueSource
- type VirtualDatabase
- type VirtualDatabaseBuildObject
- type VirtualDatabaseList
- type VirtualDatabaseSpec
- type VirtualDatabaseStatus
Constants ¶
const ( // VirtualDatabaseKind -- VirtualDatabaseKind string = "VirtualDatabase" // ReconcilerPhaseInitial -- ReconcilerPhaseInitial ReconcilerPhase = "" // ReconcilerPhaseCreateCacheStore -- ReconcilerPhaseCreateCacheStore ReconcilerPhase = "Creating Cache Store" // ReconcilerPhaseS2IReady -- ReconcilerPhaseS2IReady ReconcilerPhase = "Ready For S2I" // ReconcilerPhaseBuilderImage -- ReconcilerPhaseBuilderImage ReconcilerPhase = "Building Base Builder Image" // ReconcilerPhaseBuilderImageFinished -- ReconcilerPhaseBuilderImageFinished ReconcilerPhase = "Builder Image Finished" // ReconcilerPhaseBuilderImageFailed -- ReconcilerPhaseBuilderImageFailed ReconcilerPhase = "Builder Image Failed" // ReconcilerPhaseServiceImage -- ReconcilerPhaseServiceImage ReconcilerPhase = "Building Service Image" // ReconcilerPhaseServiceImageFinished -- ReconcilerPhaseServiceImageFinished ReconcilerPhase = "Service Image Finished" // ReconcilerPhaseServiceImageFailed -- ReconcilerPhaseServiceImageFailed ReconcilerPhase = "Service Image Failed" //ReconcilerPhaseServiceCreated -- ReconcilerPhaseServiceCreated ReconcilerPhase = "Service Created" //ReconcilerPhaseKeystoreCreated -- ReconcilerPhaseKeystoreCreated ReconcilerPhase = "Keystore Created" // ReconcilerPhaseDeploying -- ReconcilerPhaseDeploying ReconcilerPhase = "Deploying" // ReconcilerPhaseRunning -- ReconcilerPhaseRunning ReconcilerPhase = "Running" // ReconcilerPhaseError -- ReconcilerPhaseError ReconcilerPhase = "Error" // ReconcilerPhaseDeleting -- ReconcilerPhaseDeleting ReconcilerPhase = "Deleting" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "teiid.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type DataSourceObject ¶
type DataSourceObject struct { // Name of the Data Source // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Properties" Name string `json:"name,omitempty"` // Type of Data Source. ex: Oracle, PostgreSQL, MySQL, Salesforce etc. // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Properties" Type string `json:"type,omitempty"` // Properties required for Data Source connection // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Properties" Properties []corev1.EnvVar `json:"properties,omitempty"` }
DataSourceObject - define the datasources that this Virtual Database integrates +k8s:openapi-gen=true
func (*DataSourceObject) DeepCopy ¶
func (in *DataSourceObject) DeepCopy() *DataSourceObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSourceObject.
func (*DataSourceObject) DeepCopyInto ¶
func (in *DataSourceObject) DeepCopyInto(out *DataSourceObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExposeType ¶
type ExposeType string
ExposeType - type of service to be exposed
const ( // LoadBalancer type service to expose LoadBalancer ExposeType = "LoadBalancer" // NodePort type service to expose NodePort ExposeType = "NodePort" // Route Openshift Route to expose Route ExposeType = "Route" // ExposeVia3scale just service, not route ExposeVia3scale ExposeType = "ExposeVia3scale" )
type OpenShiftObject ¶
OpenShiftObject ...
type Source ¶
type Source struct { // Deployed vdb version. For embedded DDL version this will be implicitly provided when ignored, for maven based vdb the maven version is always // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Version Of the VDB" Version string `json:"version,omitempty"` // DDL based VDB // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="DDL Of the VDB" DDL string `json:"ddl,omitempty"` // A VDB defined in GAV format // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Maven Coordinates for VDB" Maven string `json:"maven,omitempty"` // Open API contract that is exposed by the VDB // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="OpenAPI of exposed" OpenAPI string `json:"openapi,omitempty"` // List of maven dependencies for the build in GAV format // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Maven Dependencies for VDB" Dependencies []string `json:"dependencies,omitempty"` // Custom maven repositories that need to be used for the S2I build // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Custom Maven Repositories" MavenRepositories map[string]string `json:"mavenRepositories,omitempty"` }
Source VDB coordinates to locate the source code to build +k8s:openapi-gen=true
func (*Source) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueSource ¶
type ValueSource struct { // Selects a key of a ConfigMap. ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` // Selects a key of a secret. SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"` }
ValueSource -- +k8s:openapi-gen=true
func (*ValueSource) DeepCopy ¶
func (in *ValueSource) DeepCopy() *ValueSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueSource.
func (*ValueSource) DeepCopyInto ¶
func (in *ValueSource) DeepCopyInto(out *ValueSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDatabase ¶
type VirtualDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Virtual Database specification Spec VirtualDatabaseSpec `json:"spec,omitempty"` // Virtual Database Status Status VirtualDatabaseStatus `json:"status,omitempty"` }
VirtualDatabase is the Schema for the virtualdatabases API +k8s:openapi-gen=true +operator-sdk:gen-csv:customresourcedefinitions.displayName="Virtual Database Application" +kubebuilder:resource:path=virtualdatabases,shortName=vdb;vdbs +kubebuilder:singular=virtualdatabase
func (*VirtualDatabase) DeepCopy ¶
func (in *VirtualDatabase) DeepCopy() *VirtualDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabase.
func (*VirtualDatabase) DeepCopyInto ¶
func (in *VirtualDatabase) DeepCopyInto(out *VirtualDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualDatabase) DeepCopyObject ¶
func (in *VirtualDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualDatabaseBuildObject ¶
type VirtualDatabaseBuildObject struct { // Environment properties set build purpose // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Environment properties for s2i" Env []corev1.EnvVar `json:"env,omitempty"` // VDB Source details // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="S2I based Source information" Source Source `json:"source,omitempty"` }
VirtualDatabaseBuildObject Data to define how to build an application from source +k8s:openapi-gen=true
func (*VirtualDatabaseBuildObject) DeepCopy ¶
func (in *VirtualDatabaseBuildObject) DeepCopy() *VirtualDatabaseBuildObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseBuildObject.
func (*VirtualDatabaseBuildObject) DeepCopyInto ¶
func (in *VirtualDatabaseBuildObject) DeepCopyInto(out *VirtualDatabaseBuildObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDatabaseList ¶
type VirtualDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualDatabase `json:"items"` }
VirtualDatabaseList contains a list of VirtualDatabase
func (*VirtualDatabaseList) DeepCopy ¶
func (in *VirtualDatabaseList) DeepCopy() *VirtualDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseList.
func (*VirtualDatabaseList) DeepCopyInto ¶
func (in *VirtualDatabaseList) DeepCopyInto(out *VirtualDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualDatabaseList) DeepCopyObject ¶
func (in *VirtualDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualDatabaseSpec ¶
type VirtualDatabaseSpec struct { // Number Of deployment units required // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Replicas" Replicas *int32 `json:"replicas,omitempty"` // Environment properties required for deployment // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Properties" Env []corev1.EnvVar `json:"env,omitempty"` // memory, disk cpu requirements // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Resources" Resources corev1.ResourceRequirements `json:"resources,omitempty"` // S2I Build configuration // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="VDB Build" Build VirtualDatabaseBuildObject `json:"build"` // Jaeger instance to use to push the tracing information // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Jaeger Name" Jaeger string `json:"jaeger,omitempty"` // DataSources configuration for this Virtual Database // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Datasources Configuration" DataSources []DataSourceObject `json:"datasources,omitempty"` // Defines the services (LoadBalancer, NodePort, 3scale) to expose // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Services Created" Expose []ExposeType `json:"expose,omitempty"` }
VirtualDatabaseSpec defines the desired state of VirtualDatabase +k8s:openapi-gen=true
func (*VirtualDatabaseSpec) DeepCopy ¶
func (in *VirtualDatabaseSpec) DeepCopy() *VirtualDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseSpec.
func (*VirtualDatabaseSpec) DeepCopyInto ¶
func (in *VirtualDatabaseSpec) DeepCopyInto(out *VirtualDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDatabaseStatus ¶
type VirtualDatabaseStatus struct { // The current phase of the build the operator deployment is running // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="Phase" Phase ReconcilerPhase `json:"phase,omitempty"` // Digest value of the vdb // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="SHA Of the VDB" Digest string `json:"digest,omitempty"` // ConfigDigest value of the vdb // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="SHA Of the Configuration" ConfigDigest string `json:"configdigest,omitempty"` // Failure message if deployment ended in failure // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="Failure Message" Failure string `json:"failure,omitempty"` // Route information that is exposed for clients // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="Route Exposed for OData" Route string `json:"route,omitempty"` // Deployed vdb version. // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="Version Of the VDB deployed" Version string `json:"version,omitempty"` // Deployed vdb version. // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.statusDescriptors.displayName="CacheStore In use" CacheStore string `json:"cachestore,omitempty"` }
VirtualDatabaseStatus defines the observed state of VirtualDatabase +k8s:openapi-gen=true
func (*VirtualDatabaseStatus) DeepCopy ¶
func (in *VirtualDatabaseStatus) DeepCopy() *VirtualDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseStatus.
func (*VirtualDatabaseStatus) DeepCopyInto ¶
func (in *VirtualDatabaseStatus) DeepCopyInto(out *VirtualDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.