v1

package
v0.0.0-...-1046db7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the yucloudnative v1 API group +kubebuilder:object:generate=true +groupName=yucloudnative.io

Index

Constants

View Source
const (
	PREFIX                                = "lazysidecar-"
	DEFAULT_HOST                          = "istio-system/*"
	Succeed                        string = "Succeeded"
	Failed                         string = "Failed"
	ROOTNS                         string = "istio-system"
	DefaultLazysidecarName         string = "lazysidecar"
	DefaultCsmEgressServiceName    string = "lazysidecar-proxy"
	DefaultCsmEgressDeploymentName string = "lazysidecar-proxy"
	DefaultCsmEgressConfigmapName  string = "lazysidecar-proxy-cm"
)

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DeliveryStatus

type DeliveryStatus string

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

type LazySidecar

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

	Spec   LazySidecarSpec   `json:"spec,omitempty"`
	Status LazySidecarStatus `json:"status,omitempty"`
}

LazySidecar is the Schema for the lazysidecars API

func (*LazySidecar) DeepCopy

func (in *LazySidecar) DeepCopy() *LazySidecar

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

func (*LazySidecar) DeepCopyInto

func (in *LazySidecar) DeepCopyInto(out *LazySidecar)

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

func (*LazySidecar) DeepCopyObject

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

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

type LazySidecarList

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

LazySidecarList contains a list of LazySidecar

func (*LazySidecarList) DeepCopy

func (in *LazySidecarList) DeepCopy() *LazySidecarList

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

func (*LazySidecarList) DeepCopyInto

func (in *LazySidecarList) DeepCopyInto(out *LazySidecarList)

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

func (*LazySidecarList) DeepCopyObject

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

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

type LazySidecarSpec

type LazySidecarSpec struct {
	// WorkloadSelector is used to select the specific set of pods/VMs on which this
	// `Sidecar` configuration should be applied. If omitted, the `Sidecar`
	// configuration will be applied to all workload instances in the same namespace.
	// +optional
	WorkloadSelector map[string]string `json:"workloadSelector,omitempty"`

	// EgressHosts is used to add host to the outbound config to the sidecar;
	// if nil, the default is "istio-system/*"
	// +optional
	EgressHosts []string `json:"egressHosts,omitempty"`

	// Middleware list are used to bind services which are registered to the system and non-automatic recognized.
	// +optional
	MiddlewareList []Middleware `json:"middlewareList,omitempty"`
}

LazySidecarSpec defines the desired state of LazySidecar

func (*LazySidecarSpec) DeepCopy

func (in *LazySidecarSpec) DeepCopy() *LazySidecarSpec

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

func (*LazySidecarSpec) DeepCopyInto

func (in *LazySidecarSpec) DeepCopyInto(out *LazySidecarSpec)

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

type LazySidecarStatus

type LazySidecarStatus struct {

	// Status defines the status of the LazySidecar,contains "Succeed" and "Failed"
	Status string `json:"status"`

	// FailedMsg when LazySidecar occurs error
	// +optional
	FailedMsg string `json:"failedMsg,omitempty"`

	// LastUpdateTime defines last update time of the LazySidecar
	LastUpdateTimestamp metav1.Time `json:"lastUpdateTimestamp,omitempty"`

	// Upstream defines the workload's upstream service
	Upstream []Upstream `json:"upstream,omitempty"`

	// SidecarName defines the Sidecar name which is derived from LaySidecar
	// +optional
	SidecarName string `json:"sidecarName,omitempty"`

	// EnvoyFilterName defines the EnvoyFilter name which is derived from LazySidecar
	// +optional
	EnvoyFilterName string `json:"envoyFilterName,omitempty"`
}

LazySidecarStatus defines the observed state of LazySidecar

func (*LazySidecarStatus) DeepCopy

func (in *LazySidecarStatus) DeepCopy() *LazySidecarStatus

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

func (*LazySidecarStatus) DeepCopyInto

func (in *LazySidecarStatus) DeepCopyInto(out *LazySidecarStatus)

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

type Middleware

type Middleware struct {
	ServiceName string `json:"serviceName"`
	Namespace   string `json:"namespace"`
	Port        int    `json:"port"`
	Type        string `json:"type"`
	Protocol    string `json:"protocol"`
}

func (*Middleware) DeepCopy

func (in *Middleware) DeepCopy() *Middleware

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

func (*Middleware) DeepCopyInto

func (in *Middleware) DeepCopyInto(out *Middleware)

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

type Upstream

type Upstream struct {
	Port     *int     `json:"port,omitempty"`
	Protocol string   `json:"protocol,omitempty"`
	Hosts    []string `json:"hosts,omitempty"`
}

func (*Upstream) DeepCopy

func (in *Upstream) DeepCopy() *Upstream

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

func (*Upstream) DeepCopyInto

func (in *Upstream) DeepCopyInto(out *Upstream)

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