v1

package
v0.0.2-0...-22ffb4e Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

View Source
const (
	DbTypeTibero             = "tibero"
	ConditionKeyProjectReady = status.ConditionType("Ready")
)
View Source
const (
	DBConditionKeyDBAnalyzing = status.ConditionType("Analyzing")
	DBConditionKeyDBMigrating = status.ConditionType("Migrating")
	DBConditionKeyDBSucceed   = status.ConditionType("Succeeded")
)
View Source
const (
	TaskNameAnalyzeDB = "l2c-tup-db"
	TaskNameMigrateDB = "l2c-migration-db"
)
View Source
const (
	DBPipelineTaskNameAnalyzeDB = "analyze"
	DBPipelineTaskNameMigrateDB = "migrate"
)
View Source
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

View Source
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

View Source
const (
	WasTypeWeblogic = "weblogic"
	WasTypeJeus     = "jeus"

	WasServiceTypeClusterIP    = string(corev1.ServiceTypeClusterIP)
	WasServiceTypeNodePort     = string(corev1.ServiceTypeNodePort)
	WasServiceTypeLoadBalancer = string(corev1.ServiceTypeLoadBalancer)
	WasServiceTypeIngress      = "Ingress"
)
View Source
const (
	WasConditionKeyProjectReady     = status.ConditionType("Ready")
	WasConditionKeyProjectAnalyzing = status.ConditionType("Analyzing")
	WasConditionKeyProjectRunning   = status.ConditionType("Running")
	WasConditionKeyProjectSucceeded = status.ConditionType("Succeeded")
)
View Source
const (
	TaskNameGitClone   = "l2c-git-clone"
	TaskNameAnalyzeWas = "l2c-tup-jeus"

	TaskNameBuild  = "l2c-build"
	TaskNameDeploy = "l2c-deploy"
)

TaskName* : Actual name of Task object

View Source
const (
	WasPipelineTaskNameClone   = WasPipelineTaskName("git-clone")
	WasPipelineTaskNameAnalyze = WasPipelineTaskName("analyze")

	WasPipelineTaskNameBuild  = WasPipelineTaskName("build")
	WasPipelineTaskNameDeploy = WasPipelineTaskName("deploy")
)
View Source
const (
	WasPipelineParamNameProjectId  = "project-id"
	WasPipelineParamNameGitUrl     = "git-url"
	WasPipelineParamNameGitRev     = "git-rev"
	WasPipelineParamNameSourceType = "source-type"
	WasPipelineParamNameTargetType = "target-type"

	WasPipelineParamNameAppName   = "app-name"
	WasPipelineParamNameDeployCfg = "deploy-cfg-name"
)
View Source
const (
	TupDBSecretName = "tup-db-secret"
)
View Source
const (
	WasPipelineWorkspaceName = "git-report"
)

Variables

View Source
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

func (in *TupDB) DeepCopy() *TupDB

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

func (*TupDB) DeepCopyInto

func (in *TupDB) DeepCopyInto(out *TupDB)

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

func (*TupDB) DeepCopyObject

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

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

func (*TupDB) GenAnalyzePipelineName

func (t *TupDB) GenAnalyzePipelineName() string

func (*TupDB) GenLabels

func (t *TupDB) GenLabels() map[string]string

func (*TupDB) GenMigratePipelineName

func (t *TupDB) GenMigratePipelineName() string

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

func (in *TupDBFrom) DeepCopy() *TupDBFrom

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

func (*TupDBFrom) DeepCopyInto

func (in *TupDBFrom) DeepCopyInto(out *TupDBFrom)

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

func (in *TupDBList) DeepCopy() *TupDBList

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

func (*TupDBList) DeepCopyInto

func (in *TupDBList) DeepCopyInto(out *TupDBList)

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

func (*TupDBList) DeepCopyObject

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

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

func (in *TupDBSpec) DeepCopy() *TupDBSpec

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

func (*TupDBSpec) DeepCopyInto

func (in *TupDBSpec) DeepCopyInto(out *TupDBSpec)

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

func (in *TupDBTo) DeepCopy() *TupDBTo

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

func (*TupDBTo) DeepCopyInto

func (in *TupDBTo) DeepCopyInto(out *TupDBTo)

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

func (in *TupWAS) DeepCopy() *TupWAS

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

func (*TupWAS) DeepCopyInto

func (in *TupWAS) DeepCopyInto(out *TupWAS)

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

func (*TupWAS) DeepCopyObject

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

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

func (*TupWAS) GenAnalyzePipelineName

func (t *TupWAS) GenAnalyzePipelineName() string

func (*TupWAS) GenBuildDeployPipelineName

func (t *TupWAS) GenBuildDeployPipelineName() string

func (*TupWAS) GenBuilderImage

func (t *TupWAS) GenBuilderImage() (string, error)

func (*TupWAS) GenIngressAnnotation

func (t *TupWAS) GenIngressAnnotation() map[string]string

func (*TupWAS) GenLabels

func (t *TupWAS) GenLabels() map[string]string

func (*TupWAS) GenResourceName

func (t *TupWAS) GenResourceName() string

Supporting functions

func (*TupWAS) GenWasLabels

func (t *TupWAS) GenWasLabels() map[string]string

func (*TupWAS) GenWasPort

func (t *TupWAS) GenWasPort() (int32, error)

func (*TupWAS) GenWasResourceName

func (t *TupWAS) GenWasResourceName() string

Supporting functions for WAS resources

func (*TupWAS) GenWasServiceLabels

func (t *TupWAS) GenWasServiceLabels() map[string]string

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

func (in *TupWasGit) DeepCopy() *TupWasGit

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

func (*TupWasGit) DeepCopyInto

func (in *TupWasGit) DeepCopyInto(out *TupWasGit)

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

func (in *TupWasTo) DeepCopy() *TupWasTo

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

func (*TupWasTo) DeepCopyInto

func (in *TupWasTo) DeepCopyInto(out *TupWasTo)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL