v1alpha1

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kato v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=kato.io

Package v1alpha1 contains API Schema definitions for the kato v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=kato.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "kato.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
	// AddToScheme adds all registered types to s.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource gets an EtcdCluster GroupResource for a specified resource

Types

type ComponentDefinition

type ComponentDefinition struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ComponentDefinitionSpec   `json:"spec,omitempty"`
	Status ComponentDefinitionStatus `json:"status,omitempty"`
}

ComponentDefinition is the Schema for the componentdefinitions API +genclient +kubebuilder:resource:scope=Namespaced,categories={oam},shortName=comp +kubebuilder:subresource:status +kubebuilder:printcolumn:name="WORKLOAD-KIND",type=string,JSONPath=".spec.workload.definition.kind" +kubebuilder:printcolumn:name="DESCRIPTION",type=string,JSONPath=".metadata.annotations.definition\\.oam\\.dev/description"

func (*ComponentDefinition) DeepCopy

func (in *ComponentDefinition) DeepCopy() *ComponentDefinition

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

func (*ComponentDefinition) DeepCopyInto

func (in *ComponentDefinition) DeepCopyInto(out *ComponentDefinition)

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

func (*ComponentDefinition) DeepCopyObject

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

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

func (*ComponentDefinition) GetCondition

GetCondition gets condition from ComponentDefinition

func (*ComponentDefinition) SetConditions

func (cd *ComponentDefinition) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions set condition for ComponentDefinition

type ComponentDefinitionList

type ComponentDefinitionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ComponentDefinition `json:"items"`
}

ComponentDefinitionList contains a list of ComponentDefinition

func (*ComponentDefinitionList) DeepCopy

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

func (*ComponentDefinitionList) DeepCopyInto

func (in *ComponentDefinitionList) DeepCopyInto(out *ComponentDefinitionList)

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

func (*ComponentDefinitionList) DeepCopyObject

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

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

type ComponentDefinitionSpec

type ComponentDefinitionSpec struct {
	// Workload is a workload type descriptor
	Workload common.WorkloadTypeDescriptor `json:"workload"`

	// ChildResourceKinds are the list of GVK of the child resources this workload generates
	ChildResourceKinds []common.ChildResourceKind `json:"childResourceKinds,omitempty"`

	// RevisionLabel indicates which label for underlying resources(e.g. pods) of this workload
	// can be used by trait to create resource selectors(e.g. label selector for pods).
	// +optional
	RevisionLabel string `json:"revisionLabel,omitempty"`

	// PodSpecPath indicates where/if this workload has K8s podSpec field
	// if one workload has podSpec, trait can do lot's of assumption such as port, env, volume fields.
	// +optional
	PodSpecPath string `json:"podSpecPath,omitempty"`

	// Status defines the custom health policy and status message for workload
	// +optional
	Status *common.Status `json:"status,omitempty"`

	// Schematic defines the data format and template of the encapsulation of the workload
	// +optional
	Schematic *Schematic `json:"schematic,omitempty"`

	// Extension is used for extension needs by OAM platform builders
	// +optional
	// +kubebuilder:pruning:PreserveUnknownFields
	Extension *runtime.RawExtension `json:"extension,omitempty"`
}

ComponentDefinitionSpec defines the desired state of ComponentDefinition

func (*ComponentDefinitionSpec) DeepCopy

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

func (*ComponentDefinitionSpec) DeepCopyInto

func (in *ComponentDefinitionSpec) DeepCopyInto(out *ComponentDefinitionSpec)

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

type ComponentDefinitionStatus

type ComponentDefinitionStatus struct {
	// ConditionedStatus reflects the observed status of a resource
	runtimev1alpha1.ConditionedStatus `json:",inline"`
	// ConfigMapRef refer to a ConfigMap which contains OpenAPI V3 JSON schema of Component parameters.
	ConfigMapRef string `json:"configMapRef,omitempty"`
	// LatestRevision of the component definition
	// +optional
	LatestRevision *common.Revision `json:"latestRevision,omitempty"`
}

ComponentDefinitionStatus is the status of ComponentDefinition

func (*ComponentDefinitionStatus) DeepCopy

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

func (*ComponentDefinitionStatus) DeepCopyInto

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

type ComponentPhase

type ComponentPhase string

ComponentPhase -

const (
	// ComponentPending means the component has been accepted by the system, but one or more of the service or endpoint
	// can not create success
	ComponentPending ComponentPhase = "Pending"
	// ComponentRunning means the the service and endpoints create success.
	ComponentRunning ComponentPhase = "Running"
	// ComponentFailed means that found endpoint from source failure
	ComponentFailed ComponentPhase = "Failed"
)

These are the valid statuses of pods.

type ComponentPort

type ComponentPort struct {
	Name      string `json:"name"`
	Port      int    `json:"port"`
	OpenInner bool   `json:"openInner"`
	OpenOuter bool   `json:"openOuter"`
}

ComponentPort component port define

func (*ComponentPort) DeepCopy

func (in *ComponentPort) DeepCopy() *ComponentPort

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

func (*ComponentPort) DeepCopyInto

func (in *ComponentPort) DeepCopyInto(out *ComponentPort)

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

type EndpointAddress

type EndpointAddress string

EndpointAddress -

func NewEndpointAddress

func NewEndpointAddress(host string, port int) *EndpointAddress

NewEndpointAddress -

func (EndpointAddress) EnsureScheme

func (e EndpointAddress) EnsureScheme() string

EnsureScheme -

func (EndpointAddress) GetIP

func (e EndpointAddress) GetIP() string

GetIP -

func (EndpointAddress) GetPort

func (e EndpointAddress) GetPort() int

GetPort -

type EndpointStatus

type EndpointStatus string

EndpointStatus -

const (
	//EndpointReady If a probe is configured, it means the probe has passed.
	EndpointReady EndpointStatus = "Ready"
	//EndpointNotReady it means the probe not passed.
	EndpointNotReady EndpointStatus = "NotReady"
	// EndpointUnhealthy means that the health prober failed.
	EndpointUnhealthy EndpointStatus = "Unhealthy"
)

type HTTPGetAction

type HTTPGetAction struct {
	// Path to access on the HTTP server.
	// +optional
	Path string `json:"path,omitempty"`
	// Custom headers to set in the request. HTTP allows repeated headers.
	// +optional
	HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"`
}

HTTPGetAction enable http check

func (*HTTPGetAction) DeepCopy

func (in *HTTPGetAction) DeepCopy() *HTTPGetAction

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

func (*HTTPGetAction) DeepCopyInto

func (in *HTTPGetAction) DeepCopyInto(out *HTTPGetAction)

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

func (*HTTPGetAction) Equals

func (in *HTTPGetAction) Equals(target *HTTPGetAction) bool

Equals -

type HTTPHeader

type HTTPHeader struct {
	// The header field name
	Name string `json:"name"`
	// The header field value
	Value string `json:"value"`
}

HTTPHeader describes a custom header to be used in HTTP probes

func (*HTTPHeader) DeepCopy

func (in *HTTPHeader) DeepCopy() *HTTPHeader

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

func (*HTTPHeader) DeepCopyInto

func (in *HTTPHeader) DeepCopyInto(out *HTTPHeader)

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

type Handler

type Handler struct {
	// HTTPGet specifies the http request to perform.
	// +optional
	HTTPGet *HTTPGetAction `json:"httpGet,omitempty"`
	// TCPSocket specifies an action involving a TCP port.
	// TCP hooks not yet supported
	// TODO: implement a realistic TCP lifecycle hook
	// +optional
	TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
}

Handler defines a specific action that should be taken

func (*Handler) DeepCopy

func (in *Handler) DeepCopy() *Handler

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

func (*Handler) DeepCopyInto

func (in *Handler) DeepCopyInto(out *Handler)

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

func (*Handler) Equals

func (in *Handler) Equals(target *Handler) bool

Equals -

type HelmApp

type HelmApp struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HelmAppSpec   `json:"spec,omitempty"`
	Status HelmAppStatus `json:"status,omitempty"`
}

HelmApp - +kubebuilder:subresource:status +kubebuilder:resource:path=helmapps,scope=Namespaced

func (*HelmApp) DeepCopy

func (in *HelmApp) DeepCopy() *HelmApp

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

func (*HelmApp) DeepCopyInto

func (in *HelmApp) DeepCopyInto(out *HelmApp)

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

func (*HelmApp) DeepCopyObject

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

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

func (*HelmApp) OverridesEqual

func (in *HelmApp) OverridesEqual() bool

OverridesEqual tells whether overrides in spec and status contain the same elements.

type HelmAppCondition

type HelmAppCondition struct {
	// Type is the type of the condition.
	Type HelmAppConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PodConditionType"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
	Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

HelmAppCondition contains details for the current condition of this helm application.

func NewHelmAppCondition

func NewHelmAppCondition(condType HelmAppConditionType, status corev1.ConditionStatus, reason, message string) *HelmAppCondition

NewHelmAppCondition creates a new HelmApp condition.

func (*HelmAppCondition) DeepCopy

func (in *HelmAppCondition) DeepCopy() *HelmAppCondition

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

func (*HelmAppCondition) DeepCopyInto

func (in *HelmAppCondition) DeepCopyInto(out *HelmAppCondition)

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

type HelmAppConditionType

type HelmAppConditionType string

RbdComponentConditionType is a valid value for RbdComponentCondition.Type

const (
	//  HelmAppRepoReady indicates whether the helm repository is ready.
	HelmAppRepoReady HelmAppConditionType = "RepoReady"
	//  HelmAppChartReady indicates whether the chart is ready.
	HelmAppChartReady HelmAppConditionType = "ChartReady"
	// HelmAppPreInstalled indicates whether the helm app has been pre installed.
	HelmAppPreInstalled HelmAppConditionType = "PreInstalled"
	// HelmAppInstalled indicates whether the helm app has been installed.
	HelmAppInstalled HelmAppConditionType = "HelmAppInstalled"
)

These are valid conditions of helm app.

type HelmAppList

type HelmAppList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HelmApp `json:"items"`
}

HelmAppList contains a list of HelmApp

func (*HelmAppList) DeepCopy

func (in *HelmAppList) DeepCopy() *HelmAppList

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

func (*HelmAppList) DeepCopyInto

func (in *HelmAppList) DeepCopyInto(out *HelmAppList)

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

func (*HelmAppList) DeepCopyObject

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

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

type HelmAppPreStatus

type HelmAppPreStatus string

HelmAppPreStatus is a valid value for the PreStatus of HelmApp.

const (
	HelmAppPreStatusNotConfigured HelmAppPreStatus = "NotConfigured"
	HelmAppPreStatusConfigured    HelmAppPreStatus = "Configured"
)

HelmAppPreStatus

type HelmAppSpec

type HelmAppSpec struct {
	EID string `json:"eid"`

	// The prerequisite status.
	// +kubebuilder:validation:Enum=NotConfigured;Configured
	PreStatus HelmAppPreStatus `json:"preStatus,omitempty"`

	// The application name.
	TemplateName string `json:"templateName"`

	// The application version.
	Version string `json:"version"`

	// The application revision.
	Revision int `json:"revision,omitempty"`

	// The helm app store.
	AppStore *HelmAppStore `json:"appStore"`

	// Overrides will overrides the values in the chart.
	Overrides []string `json:"overrides,omitempty"`
}

HelmAppSpec defines the desired state of HelmApp

func (*HelmAppSpec) DeepCopy

func (in *HelmAppSpec) DeepCopy() *HelmAppSpec

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

func (*HelmAppSpec) DeepCopyInto

func (in *HelmAppSpec) DeepCopyInto(out *HelmAppSpec)

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

func (*HelmAppSpec) FullName

func (in *HelmAppSpec) FullName() string

FullName returns the full name of the app store.

type HelmAppStatus

type HelmAppStatus struct {

	// The status of helm app.
	Status HelmAppStatusStatus `json:"status"`

	// The phase of the helm app.
	Phase HelmAppStatusPhase `json:"phase"`

	// Current state of helm app.
	Conditions []HelmAppCondition `json:"conditions,omitempty"`

	// The version infect.
	CurrentVersion string `json:"currentVersion,omitempty"`

	// Overrides in effect.
	Overrides []string `json:"overrides,omitempty"`
}

HelmAppStatus defines the observed state of HelmApp

func (*HelmAppStatus) DeepCopy

func (in *HelmAppStatus) DeepCopy() *HelmAppStatus

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

func (*HelmAppStatus) DeepCopyInto

func (in *HelmAppStatus) DeepCopyInto(out *HelmAppStatus)

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

func (*HelmAppStatus) GetCondition

func (in *HelmAppStatus) GetCondition(t HelmAppConditionType) (int, *HelmAppCondition)

GetCondition returns a HelmApp condition based on the given type.

func (*HelmAppStatus) IsConditionTrue

func (in *HelmAppStatus) IsConditionTrue(t HelmAppConditionType) bool

IsConditionTrue checks if the condition is ready or not based on the given condition type.

func (*HelmAppStatus) SetCondition

func (in *HelmAppStatus) SetCondition(c HelmAppCondition)

SetCondition setups the given HelmApp condition.

func (*HelmAppStatus) UpdateCondition

func (in *HelmAppStatus) UpdateCondition(condition *HelmAppCondition) bool

UpdateCondition updates existing HelmApp condition or creates a new one. Sets LastTransitionTime to now if the status has changed. Returns true if HelmApp condition has changed or has been added.

func (*HelmAppStatus) UpdateConditionStatus

func (in *HelmAppStatus) UpdateConditionStatus(conditionType HelmAppConditionType, conditionStatus corev1.ConditionStatus)

type HelmAppStatusPhase

type HelmAppStatusPhase string

The phase of helm app

const (
	HelmAppStatusPhaseInitialing  HelmAppStatusPhase = "initialing"
	HelmAppStatusPhaseDetecting   HelmAppStatusPhase = "detecting"
	HelmAppStatusPhaseConfiguring HelmAppStatusPhase = "configuring"
	HelmAppStatusPhaseInstalling  HelmAppStatusPhase = "installing"
	HelmAppStatusPhaseInstalled   HelmAppStatusPhase = "installed"
)

The phase of helm app

type HelmAppStatusStatus

type HelmAppStatusStatus string

The status of helm app Except for `not-configured`, the other statues are the native statues of helm.

const (
	HelmAppStatusNotConfigured HelmAppStatusStatus = "not-configured"

	// HelmAppStatusunknown indicates that a release is in an uncertain state.
	HelmAppStatusunknown HelmAppStatusStatus = "unknown"

	// HelmAppStatusDeployed indicates that the release has been pushed to Kubernetes.
	HelmAppStatusDeployed HelmAppStatusStatus = "deployed"

	// HelmAppStatusUninstalled indicates that a release has been uninstalled from Kubernetes.
	HelmAppStatusUninstalled HelmAppStatusStatus = "uninstalled"

	// HelmAppStatusSuperseded indicates that this release object is outdated and a newer one exists.
	HelmAppStatusSuperseded HelmAppStatusStatus = "superseded"

	// HelmAppStatusFailed indicates that the release was not successfully deployed.
	HelmAppStatusFailed HelmAppStatusStatus = "failed"

	// HelmAppStatusUninstalling indicates that a uninstall operation is underway.
	HelmAppStatusUninstalling HelmAppStatusStatus = "uninstalling"

	// HelmAppStatusPendingInstall indicates that an install operation is underway.
	HelmAppStatusPendingInstall HelmAppStatusStatus = "pending-install"

	// HelmAppStatusPendingUpgrade indicates that an upgrade operation is underway.
	HelmAppStatusPendingUpgrade HelmAppStatusStatus = "pending-upgrade"

	// HelmAppStatusPendingRollback indicates that an rollback operation is underway.
	HelmAppStatusPendingRollback HelmAppStatusStatus = "pending-rollback"
)

The status of helm app

type HelmAppStore

type HelmAppStore struct {
	// The verision of the helm app store.
	Version string `json:"version"`

	// The name of app store.
	Name string `json:"name"`

	// The url of helm repo, sholud be a helm native repo url or a git url.
	URL string `json:"url"`

	// The branch of a git repo.
	Branch string `json:"branch,omitempty"`

	// The chart repository username where to locate the requested chart
	Username string `json:"username,omitempty"`

	// The chart repository password where to locate the requested chart
	Password string `json:"password,omitempty"`
}

HelmAppStore represents a helm repo.

func (*HelmAppStore) DeepCopy

func (in *HelmAppStore) DeepCopy() *HelmAppStore

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

func (*HelmAppStore) DeepCopyInto

func (in *HelmAppStore) DeepCopyInto(out *HelmAppStore)

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

type KubernetesServiceSource

type KubernetesServiceSource struct {
	// If not specified, the namespace is the namespace of the current resource
	// +optional
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name"`
}

KubernetesServiceSource -

func (*KubernetesServiceSource) DeepCopy

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

func (*KubernetesServiceSource) DeepCopyInto

func (in *KubernetesServiceSource) DeepCopyInto(out *KubernetesServiceSource)

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

type Probe

type Probe struct {
	// The action taken to determine the health of a container
	Handler `json:",inline" protobuf:"bytes,1,opt,name=handler"`
	// Number of seconds after which the probe times out.
	// Defaults to 1 second. Minimum value is 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,3,opt,name=timeoutSeconds"`
	// How often (in seconds) to perform the probe.
	// Default to 10 seconds. Minimum value is 1.
	// +optional
	PeriodSeconds int32 `json:"periodSeconds,omitempty" protobuf:"varint,4,opt,name=periodSeconds"`
	// Minimum consecutive successes for the probe to be considered successful after having failed.
	// +optional
	SuccessThreshold int32 `json:"successThreshold,omitempty" protobuf:"varint,5,opt,name=successThreshold"`
	// Minimum consecutive failures for the probe to be considered failed after having succeeded.
	// Defaults to 3. Minimum value is 1.
	// +optional
	FailureThreshold int32 `json:"failureThreshold,omitempty" protobuf:"varint,6,opt,name=failureThreshold"`
}

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

func (*Probe) DeepCopy

func (in *Probe) DeepCopy() *Probe

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

func (*Probe) DeepCopyInto

func (in *Probe) DeepCopyInto(out *Probe)

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

func (*Probe) Equals

func (in *Probe) Equals(target *Probe) bool

Equals -

type Schematic

type Schematic struct {
	CUE *common.CUE `json:"cue,omitempty"`
}

Schematic defines the encapsulation of this capability(workload/trait/scope), the encapsulation can be defined in different ways, e.g. CUE/HCL(terraform)/KUBE(K8s Object)/HELM, etc...

func (*Schematic) DeepCopy

func (in *Schematic) DeepCopy() *Schematic

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

func (*Schematic) DeepCopyInto

func (in *Schematic) DeepCopyInto(out *Schematic)

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

type TCPSocketAction

type TCPSocketAction struct {
}

TCPSocketAction enable tcp check

func (*TCPSocketAction) DeepCopy

func (in *TCPSocketAction) DeepCopy() *TCPSocketAction

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

func (*TCPSocketAction) DeepCopyInto

func (in *TCPSocketAction) DeepCopyInto(out *TCPSocketAction)

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

func (*TCPSocketAction) Equals

func (in *TCPSocketAction) Equals(target *TCPSocketAction) bool

Equals -

type ThirdComponent

type ThirdComponent struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ThirdComponentSpec   `json:"spec,omitempty"`
	Status ThirdComponentStatus `json:"status,omitempty"`
}

ThirdComponent - +kubebuilder:subresource:status +kubebuilder:resource:path=thirdcomponents,scope=Namespaced

func (*ThirdComponent) DeepCopy

func (in *ThirdComponent) DeepCopy() *ThirdComponent

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

func (*ThirdComponent) DeepCopyInto

func (in *ThirdComponent) DeepCopyInto(out *ThirdComponent)

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

func (*ThirdComponent) DeepCopyObject

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

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

func (*ThirdComponent) GetComponentID

func (in *ThirdComponent) GetComponentID() string

GetComponentID -

func (*ThirdComponent) GetEndpointID

func (in *ThirdComponent) GetEndpointID(endpoint *ThirdComponentEndpointStatus) string

GetEndpointID -

func (*ThirdComponent) GetNamespaceName

func (in *ThirdComponent) GetNamespaceName() string

GetNamespaceName -

type ThirdComponentEndpoint

type ThirdComponentEndpoint struct {
	// The address including the port number.
	Address string `json:"address"`
	// Then Name of the Endpoint.
	// +optional
	Name string `json:"name"`
	// Address protocols, including: HTTP, TCP, UDP, HTTPS
	// +optional
	Protocol string `json:"protocol,omitempty"`
	// Specify a private certificate when the protocol is HTTPS
	// +optional
	ClientSecret string `json:"clientSecret,omitempty"`
}

ThirdComponentEndpoint -

func (*ThirdComponentEndpoint) DeepCopy

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

func (*ThirdComponentEndpoint) DeepCopyInto

func (in *ThirdComponentEndpoint) DeepCopyInto(out *ThirdComponentEndpoint)

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

func (*ThirdComponentEndpoint) GetIP

func (in *ThirdComponentEndpoint) GetIP() string

GetIP -

func (*ThirdComponentEndpoint) GetPort

func (in *ThirdComponentEndpoint) GetPort() int

GetPort -

type ThirdComponentEndpointSource

type ThirdComponentEndpointSource struct {
	StaticEndpoints   []*ThirdComponentEndpoint `json:"endpoints,omitempty"`
	KubernetesService *KubernetesServiceSource  `json:"kubernetesService,omitempty"`
}

ThirdComponentEndpointSource -

func (*ThirdComponentEndpointSource) DeepCopy

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

func (*ThirdComponentEndpointSource) DeepCopyInto

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

type ThirdComponentEndpointStatus

type ThirdComponentEndpointStatus struct {
	// The address including the port number.
	Address EndpointAddress `json:"address"`
	// Then Name of the Endpoint.
	// +optional
	Name string `json:"name"`
	// Reference to object providing the endpoint.
	// +optional
	TargetRef *v1.ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,2,opt,name=targetRef"`
	// ServicePort if address build from kubernetes endpoint, The corresponding service port
	ServicePort int `json:"servicePort,omitempty"`
	//Status endpoint status
	Status EndpointStatus `json:"status"`
	//Reason probe not passed reason
	Reason string `json:"reason,omitempty"`
}

ThirdComponentEndpointStatus endpoint status

func (*ThirdComponentEndpointStatus) DeepCopy

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

func (*ThirdComponentEndpointStatus) DeepCopyInto

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

type ThirdComponentList

type ThirdComponentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ThirdComponent `json:"items"`
}

ThirdComponentList contains a list of ThirdComponent

func (*ThirdComponentList) DeepCopy

func (in *ThirdComponentList) DeepCopy() *ThirdComponentList

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

func (*ThirdComponentList) DeepCopyInto

func (in *ThirdComponentList) DeepCopyInto(out *ThirdComponentList)

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

func (*ThirdComponentList) DeepCopyObject

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

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

type ThirdComponentSpec

type ThirdComponentSpec struct {
	// health check probe
	// +optional
	Probe *Probe `json:"probe,omitempty"`
	// component regist ports
	Ports []*ComponentPort `json:"ports"`
	// endpoint source config
	EndpointSource ThirdComponentEndpointSource `json:"endpointSource"`
}

ThirdComponentSpec -

func (*ThirdComponentSpec) DeepCopy

func (in *ThirdComponentSpec) DeepCopy() *ThirdComponentSpec

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

func (*ThirdComponentSpec) DeepCopyInto

func (in *ThirdComponentSpec) DeepCopyInto(out *ThirdComponentSpec)

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

func (ThirdComponentSpec) IsStaticEndpoints

func (in ThirdComponentSpec) IsStaticEndpoints() bool

IsStaticEndpoints -

func (ThirdComponentSpec) NeedProbe

func (in ThirdComponentSpec) NeedProbe() bool

NeedProbe -

type ThirdComponentStatus

type ThirdComponentStatus struct {
	Phase     ComponentPhase                  `json:"phase"`
	Reason    string                          `json:"reason,omitempty"`
	Endpoints []*ThirdComponentEndpointStatus `json:"endpoints"`
}

ThirdComponentStatus -

func (*ThirdComponentStatus) DeepCopy

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

func (*ThirdComponentStatus) DeepCopyInto

func (in *ThirdComponentStatus) DeepCopyInto(out *ThirdComponentStatus)

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

Jump to

Keyboard shortcuts

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