Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the tmax v1 API group +k8s:deepcopy-gen=package,register +groupName=tmax.io
Package v1 contains API Schema definitions for the tmax v1 API group +k8s:deepcopy-gen=package,register +groupName=tmax.io
Index ¶
- Constants
- Variables
- type EditorStatus
- type TupDB
- type TupDBFrom
- type TupDBList
- type TupDBSpec
- type TupDBStatus
- func (in *TupDBStatus) DeepCopy() *TupDBStatus
- func (in *TupDBStatus) DeepCopyInto(out *TupDBStatus)
- func (s *TupDBStatus) GetCondition(key status.ConditionType) (*status.Condition, bool)
- func (s *TupDBStatus) SetCondition(key status.ConditionType, stat corev1.ConditionStatus, reason, message string) []status.Condition
- func (s *TupDBStatus) SetDefaultConditions()
- func (s *TupDBStatus) SetDefaults()
- type TupDBTo
- type TupWAS
- func (in *TupWAS) DeepCopy() *TupWAS
- func (in *TupWAS) DeepCopyInto(out *TupWAS)
- func (in *TupWAS) DeepCopyObject() runtime.Object
- func (t *TupWAS) GenAnalyzePipelineName() string
- func (t *TupWAS) GenBuildDeployPipelineName() string
- func (t *TupWAS) GenBuilderImage() (string, error)
- func (t *TupWAS) GenIngressAnnotation() map[string]string
- func (t *TupWAS) GenLabels() map[string]string
- func (t *TupWAS) GenResourceName() string
- func (t *TupWAS) GenWasLabels() map[string]string
- func (t *TupWAS) GenWasPort() (int32, error)
- func (t *TupWAS) GenWasResourceName() string
- func (t *TupWAS) GenWasServiceLabels() map[string]string
- type TupWASList
- type TupWASSpec
- type TupWASStatus
- func (in *TupWASStatus) DeepCopy() *TupWASStatus
- func (in *TupWASStatus) DeepCopyInto(out *TupWASStatus)
- func (s *TupWASStatus) GetCondition(key status.ConditionType) (*status.Condition, bool)
- func (s *TupWASStatus) SetCondition(key status.ConditionType, stat corev1.ConditionStatus, reason, message string) []status.Condition
- func (s *TupWASStatus) SetDefaultConditions()
- func (s *TupWASStatus) SetDefaults()
- type TupWasFrom
- type TupWasGit
- type TupWasImage
- type TupWasTo
- type WasPipelineTaskName
Constants ¶
const ( DbTypeTibero = "tibero" ConditionKeyProjectReady = status.ConditionType("Ready") )
const ( DBConditionKeyDBAnalyzing = status.ConditionType("Analyzing") DBConditionKeyDBMigrating = status.ConditionType("Migrating") DBConditionKeyDBSucceed = status.ConditionType("Succeeded") )
const ( TaskNameAnalyzeDB = "l2c-tup-db" TaskNameMigrateDB = "l2c-migration-db" )
const ( DBPipelineTaskNameAnalyzeDB = "analyze" DBPipelineTaskNameMigrateDB = "migrate" )
const ( DBPipelineParamNameSourceUserName = "source-username" DBPipelineParamNameSourcePassword = "source-password" DBPipelineParamNameSourceType = "source-type" DBPipelineParamNameSourceSID = "source-sid" DBPipelineParamNameSourceAs = "source-as" DBPipelineParamNameSourcePort = "source-port" DBPipelineParamNameSourceIP = "source-ip" DBPipelineParamNameTargetIP = "target-ip" DBPipelineParamNameTargetPort = "target-port" DBPipelineParamNameTargetUserName = "target-username" DBPipelineParamNameTargetUser = "target-user" //[TODO] Figure out what it is DBPipelineParamNameTargetSID = "target-sid" DBPipelineParamNameTargetType = "target-type" DBPipelineParamNameTargetPassword = "target-password" DBPipelineParamNameFull = "full" )
Params for migrate
const ( DBAnalyzePipelineParamTarget = "analyze-target" DBAnalyzePipelineParamFileType = "analyze-file-type" DBAnalyzePipelineParamFileSyntax = "analyze-file-syntax" DBAnalyzePipelineParamFileExtension = "analyze-file-extension" DBAnalyzePipelineParamFileSearch = "analyze-file-search" DBAnalyzePipelineParamFileLocation = "analyze-file-location" DBAnalyzePipelineParamFileCharset = "analyze-file-charset" DBAnalyzePipelineParamReportOptions = "analyze-report-options" )
Params for analyze
const ( WasTypeWeblogic = "weblogic" WasTypeJeus = "jeus" WasServiceTypeClusterIP = string(corev1.ServiceTypeClusterIP) WasServiceTypeNodePort = string(corev1.ServiceTypeNodePort) WasServiceTypeLoadBalancer = string(corev1.ServiceTypeLoadBalancer) WasServiceTypeIngress = "Ingress" )
const ( WasConditionKeyProjectReady = status.ConditionType("Ready") WasConditionKeyProjectAnalyzing = status.ConditionType("Analyzing") WasConditionKeyProjectRunning = status.ConditionType("Running") WasConditionKeyProjectSucceeded = status.ConditionType("Succeeded") )
const ( TaskNameGitClone = "l2c-git-clone" TaskNameAnalyzeWas = "l2c-tup-jeus" TaskNameBuild = "l2c-build" TaskNameDeploy = "l2c-deploy" )
TaskName* : Actual name of Task object
const ( WasPipelineTaskNameClone = WasPipelineTaskName("git-clone") WasPipelineTaskNameAnalyze = WasPipelineTaskName("analyze") WasPipelineTaskNameBuild = WasPipelineTaskName("build") WasPipelineTaskNameDeploy = WasPipelineTaskName("deploy") )
const ( WasPipelineParamNameProjectId = "project-id" WasPipelineParamNameGitUrl = "git-url" WasPipelineParamNameGitRev = "git-rev" WasPipelineParamNameSourceType = "source-type" WasPipelineParamNameTargetType = "target-type" WasPipelineParamNameAppName = "app-name" WasPipelineParamNameDeployCfg = "deploy-cfg-name" )
const (
TupDBSecretName = "tup-db-secret"
)
const (
WasPipelineWorkspaceName = "git-report"
)
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "tmax.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type EditorStatus ¶
type EditorStatus struct { // VSCode URL Url string `json:"url,omitempty"` // VSCode access code Password string `json:"password,omitempty"` }
func (*EditorStatus) DeepCopy ¶
func (in *EditorStatus) DeepCopy() *EditorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EditorStatus.
func (*EditorStatus) DeepCopyInto ¶
func (in *EditorStatus) DeepCopyInto(out *EditorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupDB ¶
type TupDB struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TupDBSpec `json:"spec,omitempty"` Status TupDBStatus `json:"status,omitempty"` }
TupDB is the Schema for the tupdbs API +kubebuilder:subresource:status +kubebuilder:resource:path=tupdbs,scope=Namespaced
func (*TupDB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupDB.
func (*TupDB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TupDB) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TupDB) GenAnalyzePipelineName ¶
func (*TupDB) GenMigratePipelineName ¶
type TupDBFrom ¶
type TupDBFrom struct { // Current DB Type // +kubebuilder:validation:Enum=oracle Type string `json:"type,omitempty"` // Current DB host // +kubebuilder:validation:Pattern=(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]) Host string `json:"host,omitempty"` // Current DB port Port int32 `json:"port,omitempty"` // Current DB user User string `json:"user,omitempty"` // Current DB password Password string `json:"password,omitempty"` // Current DB SID Sid string `json:"sid,omitempty"` }
func (*TupDBFrom) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupDBFrom.
func (*TupDBFrom) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupDBList ¶
type TupDBList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TupDB `json:"items"` }
TupDBList contains a list of TupDB
func (*TupDBList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupDBList.
func (*TupDBList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TupDBList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TupDBSpec ¶
type TupDBSpec struct { // DB Source configuration From TupDBFrom `json:"from"` // DB destination configuration To TupDBTo `json:"to"` }
TupDBSpec defines the desired state of TupDB
func (*TupDBSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupDBSpec.
func (*TupDBSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupDBStatus ¶
type TupDBStatus 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 Conditions []status.Condition `json:"conditions,omitempty"` LastAnalyzeResult string `json:"lastAnalyzeResult,omitempty"` // Target DB host // +kubebuilder:validation:Pattern=(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]) TargetHost string `json:"targetHost,omitempty"` // Target DB port TargetPort int32 `json:"targetPort,omitempty"` }
TupDBStatus defines the observed state of TupDB
func (*TupDBStatus) DeepCopy ¶
func (in *TupDBStatus) DeepCopy() *TupDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupDBStatus.
func (*TupDBStatus) DeepCopyInto ¶
func (in *TupDBStatus) DeepCopyInto(out *TupDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TupDBStatus) GetCondition ¶
func (s *TupDBStatus) GetCondition(key status.ConditionType) (*status.Condition, bool)
func (*TupDBStatus) SetCondition ¶
func (s *TupDBStatus) SetCondition(key status.ConditionType, stat corev1.ConditionStatus, reason, message string) []status.Condition
func (*TupDBStatus) SetDefaultConditions ¶
func (s *TupDBStatus) SetDefaultConditions()
func (*TupDBStatus) SetDefaults ¶
func (s *TupDBStatus) SetDefaults()
type TupDBTo ¶
type TupDBTo struct { // Target DB type, to be migrated // +kubebuilder:validation:Enum=tibero Type string `json:"type,omitempty"` // Storage size of target DB StorageSize string `json:"storageSize,omitempty"` // User for target DB User string `json:"user,omitempty"` // Password for target DB Password string `json:"password,omitempty"` // Current DB SID Sid string `json:"sid,omitempty"` }
func (*TupDBTo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupDBTo.
func (*TupDBTo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupWAS ¶
type TupWAS struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TupWASSpec `json:"spec,omitempty"` Status TupWASStatus `json:"status,omitempty"` }
TupWAS is the Schema for the tupwas API +kubebuilder:subresource:status +kubebuilder:resource:path=tupwas,scope=Namespaced
func (*TupWAS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWAS.
func (*TupWAS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TupWAS) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TupWAS) GenAnalyzePipelineName ¶
func (*TupWAS) GenBuildDeployPipelineName ¶
func (*TupWAS) GenBuilderImage ¶
func (*TupWAS) GenIngressAnnotation ¶
func (*TupWAS) GenWasLabels ¶
func (*TupWAS) GenWasPort ¶
func (*TupWAS) GenWasResourceName ¶
Supporting functions for WAS resources
func (*TupWAS) GenWasServiceLabels ¶
type TupWASList ¶
type TupWASList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TupWAS `json:"items"` }
TupWASList contains a list of TupWAS
func (*TupWASList) DeepCopy ¶
func (in *TupWASList) DeepCopy() *TupWASList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWASList.
func (*TupWASList) DeepCopyInto ¶
func (in *TupWASList) DeepCopyInto(out *TupWASList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TupWASList) DeepCopyObject ¶
func (in *TupWASList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TupWASSpec ¶
type TupWASSpec struct { // WAS source configuration From TupWasFrom `json:"from"` // WAS destination configuration To TupWasTo `json:"to"` }
TupWASSpec defines the desired state of TupWAS
func (*TupWASSpec) DeepCopy ¶
func (in *TupWASSpec) DeepCopy() *TupWASSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWASSpec.
func (*TupWASSpec) DeepCopyInto ¶
func (in *TupWASSpec) DeepCopyInto(out *TupWASSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupWASStatus ¶
type TupWASStatus struct { // Start time of last analysis LastAnalyzeStartTime *metav1.Time `json:"lastAnalyzeStartTime,omitempty"` // Completion time of last analysis LastAnalyzeCompletionTime *metav1.Time `json:"lastAnalyzeCompletionTime,omitempty"` // Result of last analysis LastAnalyzeResult string `json:"lastAnalyzeResult,omitempty"` // Start time of last build LastBuildStartTime *metav1.Time `json:"lastBuildStartTime,omitempty"` // Completion time of last build LastBuildCompletionTime *metav1.Time `json:"lastBuildCompletionTime,omitempty"` // Result of last build LastBuildResult string `json:"lastBuildResult,omitempty"` // PipelineRun name for Analyze AnalyzePipelineRunName string `json:"analyzePipelineRunName,omitempty"` // PipelineRun name for Build/Deploy BuildPipelineRunName string `json:"buildPipelineRunName,omitempty"` // TupWAS project conditions Conditions []status.Condition `json:"conditions,omitempty"` // Editor (VSCode) status Editor *EditorStatus `json:"editor,omitempty"` // T-up Jeus URL ReportUrl string `json:"reportUrl,omitempty"` // Migrated Was URL WasUrl string `json:"wasUrl,omitempty"` }
TupWASStatus defines the observed state of TupWAS
func (*TupWASStatus) DeepCopy ¶
func (in *TupWASStatus) DeepCopy() *TupWASStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWASStatus.
func (*TupWASStatus) DeepCopyInto ¶
func (in *TupWASStatus) DeepCopyInto(out *TupWASStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TupWASStatus) GetCondition ¶
func (s *TupWASStatus) GetCondition(key status.ConditionType) (*status.Condition, bool)
func (*TupWASStatus) SetCondition ¶
func (s *TupWASStatus) SetCondition(key status.ConditionType, stat corev1.ConditionStatus, reason, message string) []status.Condition
func (*TupWASStatus) SetDefaultConditions ¶
func (s *TupWASStatus) SetDefaultConditions()
func (*TupWASStatus) SetDefaults ¶
func (s *TupWASStatus) SetDefaults()
type TupWasFrom ¶
type TupWasFrom struct { // Current WAS type // +kubebuilder:validation:Enum=weblogic Type string `json:"type"` // Git information for WAS source code Git TupWasGit `json:"git"` // Package server URL that would be used while building the application PackageServer string `json:"packageServerUrl,omitempty"` }
func (*TupWasFrom) DeepCopy ¶
func (in *TupWasFrom) DeepCopy() *TupWasFrom
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWasFrom.
func (*TupWasFrom) DeepCopyInto ¶
func (in *TupWasFrom) DeepCopyInto(out *TupWasFrom)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupWasGit ¶
type TupWasGit struct { // URL of git repository Url string `json:"url"` // Revision to be used as a source Revision string `json:"revision,omitempty"` }
func (*TupWasGit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWasGit.
func (*TupWasGit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupWasImage ¶
type TupWasImage struct { // Image URL where the built application image is stored Url string `json:"url"` // Secret name that contains a credential to access registry, if the image registry needs credentials to push or pull an image RegSecret string `json:"regSecret,omitempty"` }
func (*TupWasImage) DeepCopy ¶
func (in *TupWasImage) DeepCopy() *TupWasImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWasImage.
func (*TupWasImage) DeepCopyInto ¶
func (in *TupWasImage) DeepCopyInto(out *TupWasImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TupWasTo ¶
type TupWasTo struct { // Target WAS type, to be migrated // +kubebuilder:validation:Enum="jeus:7";"jeus:8" Type string `json:"type"` // Image, in which the built application image would be saved Image TupWasImage `json:"image"` // ServiceType // Default value is Ingress // +kubebuilder:validation:Enum=Ingress;ClusterIP;NodePort;LoadBalancer ServiceType string `json:"serviceType,omitempty"` }
func (*TupWasTo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TupWasTo.
func (*TupWasTo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WasPipelineTaskName ¶
type WasPipelineTaskName string
PipelineTaskName* : Task name written in Pipeline.spec.tasks