Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the mesh v1alpha1 API group +kubebuilder:object:generate=true +groupName=mesh.symcn.com
Index ¶
- Variables
- type AppMeshConfig
- type AppMeshConfigList
- type AppMeshConfigSpec
- type AppMeshConfigStatus
- type ConfigPhase
- type ConfiguredService
- type ConfiguredServiceList
- type ConfiguredServiceSpec
- type ConfiguredServiceStatus
- type Destination
- type Destinations
- type Instance
- type InstanceConfig
- type IstioConfig
- type IstioConfigList
- type IstioConfigSpec
- type IstioConfigStatus
- type MeshConfig
- type MeshConfigList
- type MeshConfigSpec
- type MeshConfigStatus
- type Policy
- type Port
- type RerouteOption
- type ReroutePolicy
- type Service
- type ServiceAccessor
- type ServiceAccessorList
- type ServiceAccessorSpec
- type ServiceAccessorStatus
- type ServiceConfig
- type ServiceConfigList
- type ServiceConfigSpec
- type ServiceConfigStatus
- type Status
- type StringMatchType
- type SubStatus
- type Subset
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mesh.symcn.com", Version: "v1alpha1"} // 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 AppMeshConfig ¶
type AppMeshConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AppMeshConfigSpec `json:"spec,omitempty"`
Status AppMeshConfigStatus `json:"status,omitempty"`
}
AppMeshConfig is the Schema for the appmeshconfigs API
func (*AppMeshConfig) DeepCopy ¶
func (in *AppMeshConfig) DeepCopy() *AppMeshConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppMeshConfig.
func (*AppMeshConfig) DeepCopyInto ¶
func (in *AppMeshConfig) DeepCopyInto(out *AppMeshConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppMeshConfig) DeepCopyObject ¶
func (in *AppMeshConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppMeshConfigList ¶
type AppMeshConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AppMeshConfig `json:"items"`
}
AppMeshConfigList contains a list of AppMeshConfig
func (*AppMeshConfigList) DeepCopy ¶
func (in *AppMeshConfigList) DeepCopy() *AppMeshConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppMeshConfigList.
func (*AppMeshConfigList) DeepCopyInto ¶
func (in *AppMeshConfigList) DeepCopyInto(out *AppMeshConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppMeshConfigList) DeepCopyObject ¶
func (in *AppMeshConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppMeshConfigSpec ¶
type AppMeshConfigSpec struct {
// Service describes Dubbo services, will be registered as ServiceEntries
// in istio's internal service registry.
Services []*Service `json:"services"`
}
AppMeshConfigSpec ...
func (*AppMeshConfigSpec) DeepCopy ¶
func (in *AppMeshConfigSpec) DeepCopy() *AppMeshConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppMeshConfigSpec.
func (*AppMeshConfigSpec) DeepCopyInto ¶
func (in *AppMeshConfigSpec) DeepCopyInto(out *AppMeshConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppMeshConfigStatus ¶
type AppMeshConfigStatus struct {
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
Phase ConfigPhase `json:"phase"`
Status *Status `json:"status"`
}
AppMeshConfigStatus defines the observed state of AppMeshConfig
func (*AppMeshConfigStatus) DeepCopy ¶
func (in *AppMeshConfigStatus) DeepCopy() *AppMeshConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppMeshConfigStatus.
func (*AppMeshConfigStatus) DeepCopyInto ¶
func (in *AppMeshConfigStatus) DeepCopyInto(out *AppMeshConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigPhase ¶
type ConfigPhase string
ConfigPhase describes the phase of the configuration file destribution.
const ( ConfigStatusUndistributed ConfigPhase = "Undistributed" ConfigStatusDistributed ConfigPhase = "Distributed" ConfigStatusDistributing ConfigPhase = "Distributing" ConfigStatusUnknown ConfigPhase = "Unknown" )
ConfigStatus enumerations
type ConfiguredService ¶
type ConfiguredService struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ConfiguredServiceSpec `json:"spec,omitempty"`
Status ConfiguredServiceStatus `json:"status,omitempty"`
}
ConfiguredService is the Schema for the configuredservices API
func (*ConfiguredService) DeepCopy ¶
func (in *ConfiguredService) DeepCopy() *ConfiguredService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfiguredService.
func (*ConfiguredService) DeepCopyInto ¶
func (in *ConfiguredService) DeepCopyInto(out *ConfiguredService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfiguredService) DeepCopyObject ¶
func (in *ConfiguredService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfiguredServiceList ¶
type ConfiguredServiceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ConfiguredService `json:"items"`
}
ConfiguredServiceList contains a list of ConfiguredService
func (*ConfiguredServiceList) DeepCopy ¶
func (in *ConfiguredServiceList) DeepCopy() *ConfiguredServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfiguredServiceList.
func (*ConfiguredServiceList) DeepCopyInto ¶
func (in *ConfiguredServiceList) DeepCopyInto(out *ConfiguredServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfiguredServiceList) DeepCopyObject ¶
func (in *ConfiguredServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfiguredServiceSpec ¶
type ConfiguredServiceSpec struct {
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:MinLength=1
OriginalName string `json:"originalName"`
// A list describes all registered instances of this service.
Instances []*Instance `json:"instances,omitempty"`
// The Generation of MeshConfig, which to reconcile AppMeshConfig when MeshConfig changes.
MeshConfigGeneration int64 `json:"meshConfigGeneration,omitempty"`
}
ConfiguredServiceSpec defines the desired state of ConfiguredService
func (*ConfiguredServiceSpec) DeepCopy ¶
func (in *ConfiguredServiceSpec) DeepCopy() *ConfiguredServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfiguredServiceSpec.
func (*ConfiguredServiceSpec) DeepCopyInto ¶
func (in *ConfiguredServiceSpec) DeepCopyInto(out *ConfiguredServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfiguredServiceStatus ¶
type ConfiguredServiceStatus struct {
}
ConfiguredServiceStatus defines the observed state of ConfiguredService
func (*ConfiguredServiceStatus) DeepCopy ¶
func (in *ConfiguredServiceStatus) DeepCopy() *ConfiguredServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfiguredServiceStatus.
func (*ConfiguredServiceStatus) DeepCopyInto ¶
func (in *ConfiguredServiceStatus) DeepCopyInto(out *ConfiguredServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Destination ¶
type Destination struct {
// The name of a subset within the service. Applicable only to services
// within the mesh. The subset must be defined in a corresponding DestinationRule.
// +kubebuilder:validation:MaxLength=15
// +kubebuilder:validation:MinLength=1
Subset string `json:"subset"`
// The proportion of traffic to be forwarded to the service
// version. (0-100). Sum of weights across destinations SHOULD BE == 100.
// If there is only one destination in a rule, the weight value is assumed to be 100.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=100
Weight int32 `json:"weight,omitempty"`
}
Destination indicates the network addressable service to which the request/connection will be sent after processing a routing rule.
func (*Destination) DeepCopy ¶
func (in *Destination) DeepCopy() *Destination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination.
func (*Destination) DeepCopyInto ¶
func (in *Destination) DeepCopyInto(out *Destination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Destinations ¶
type Destinations []*Destination
Destinations ...
func (Destinations) DeepCopy ¶
func (in Destinations) DeepCopy() Destinations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destinations.
func (Destinations) DeepCopyInto ¶
func (in Destinations) DeepCopyInto(out *Destinations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Instance ¶
type Instance struct {
// Host associated with the network endpoint without the port.
// +kubebuilder:validation:MaxLength=15
// +kubebuilder:validation:MinLength=7
Host string `json:"host"`
// The parameters of Dubbo service
Labels map[string]string `json:"labels"`
// Port describes the properties of a specific port of a service.
// The Dubbo service port registered with MOSN is 20882,
// otherwize the native Dubbo service port is 20880.
Port *Port `json:"port"`
// The traffic weight of this instance.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=100
Weight uint32 `json:"weight,omitempty"`
}
Instance describes the properties of a specific instance of a service.
func (*Instance) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance.
func (*Instance) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceConfig ¶
type InstanceConfig struct {
// Host associated with the network endpoint without the port.
// +kubebuilder:validation:MaxLength=16
// +kubebuilder:validation:MinLength=8
Host string `json:"host"`
// Port describes the properties of a specific port of a service.
// The Dubbo service port registered with MOSN is 20882,
// otherwize the native Dubbo service port is 20880.
Port *Port `json:"port"`
// The traffic weight of this instance.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=100
Weight uint32 `json:"weight,omitempty"`
}
InstanceConfig describes the configs of a specific instance of a service.
func (*InstanceConfig) DeepCopy ¶
func (in *InstanceConfig) DeepCopy() *InstanceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceConfig.
func (*InstanceConfig) DeepCopyInto ¶
func (in *InstanceConfig) DeepCopyInto(out *InstanceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IstioConfig ¶
type IstioConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IstioConfigSpec `json:"spec,omitempty"`
Status IstioConfigStatus `json:"status,omitempty"`
}
IstioConfig is the Schema for the istioconfigs API
func (*IstioConfig) DeepCopy ¶
func (in *IstioConfig) DeepCopy() *IstioConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioConfig.
func (*IstioConfig) DeepCopyInto ¶
func (in *IstioConfig) DeepCopyInto(out *IstioConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IstioConfig) DeepCopyObject ¶
func (in *IstioConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IstioConfigList ¶
type IstioConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []IstioConfig `json:"items"`
}
IstioConfigList contains a list of IstioConfig
func (*IstioConfigList) DeepCopy ¶
func (in *IstioConfigList) DeepCopy() *IstioConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioConfigList.
func (*IstioConfigList) DeepCopyInto ¶
func (in *IstioConfigList) DeepCopyInto(out *IstioConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IstioConfigList) DeepCopyObject ¶
func (in *IstioConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IstioConfigSpec ¶
type IstioConfigSpec struct {
// Foo is an example field of IstioConfig. Edit IstioConfig_types.go to remove/update
Foo string `json:"foo,omitempty"`
}
IstioConfigSpec defines the desired state of IstioConfig
func (*IstioConfigSpec) DeepCopy ¶
func (in *IstioConfigSpec) DeepCopy() *IstioConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioConfigSpec.
func (*IstioConfigSpec) DeepCopyInto ¶
func (in *IstioConfigSpec) DeepCopyInto(out *IstioConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IstioConfigStatus ¶
type IstioConfigStatus struct {
}
IstioConfigStatus defines the observed state of IstioConfig
func (*IstioConfigStatus) DeepCopy ¶
func (in *IstioConfigStatus) DeepCopy() *IstioConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioConfigStatus.
func (*IstioConfigStatus) DeepCopyInto ¶
func (in *IstioConfigStatus) DeepCopyInto(out *IstioConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MeshConfig ¶
type MeshConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MeshConfigSpec `json:"spec,omitempty"`
Status MeshConfigStatus `json:"status,omitempty"`
}
MeshConfig is the Schema for the meshconfigs API
func (*MeshConfig) DeepCopy ¶
func (in *MeshConfig) DeepCopy() *MeshConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshConfig.
func (*MeshConfig) DeepCopyInto ¶
func (in *MeshConfig) DeepCopyInto(out *MeshConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MeshConfig) DeepCopyObject ¶
func (in *MeshConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MeshConfigList ¶
type MeshConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MeshConfig `json:"items"`
}
MeshConfigList contains a list of MeshConfig
func (*MeshConfigList) DeepCopy ¶
func (in *MeshConfigList) DeepCopy() *MeshConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshConfigList.
func (*MeshConfigList) DeepCopyInto ¶
func (in *MeshConfigList) DeepCopyInto(out *MeshConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MeshConfigList) DeepCopyObject ¶
func (in *MeshConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MeshConfigSpec ¶
type MeshConfigSpec struct {
MatchSourceLabelKeys []string `json:"matchSourceLabelKeys,omitempty"`
WorkloadEntryLabelKeys []string `json:"workloadEntryLabelKeys,omitempty"`
MeshLabelsRemap map[string]string `json:"meshLabelsRemap,omitempty"`
ExtractedLabels []string `json:"extractedLabels,omitempty"`
SidecarSelectLabel string `json:"sidecarSelectLabel,omitempty"`
SidecarDefaultHosts []string `json:"sidecarDefaultHosts,omitempty"`
GlobalSubsets []*Subset `json:"globalSubsets,omitempty"`
GlobalPolicy *Policy `json:"globalPolicy,omitempty"`
}
MeshConfigSpec defines the desired state of MeshConfig
func (*MeshConfigSpec) DeepCopy ¶
func (in *MeshConfigSpec) DeepCopy() *MeshConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshConfigSpec.
func (*MeshConfigSpec) DeepCopyInto ¶
func (in *MeshConfigSpec) DeepCopyInto(out *MeshConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MeshConfigStatus ¶
type MeshConfigStatus struct {
}
MeshConfigStatus defines the observed state of MeshConfig
func (*MeshConfigStatus) DeepCopy ¶
func (in *MeshConfigStatus) DeepCopy() *MeshConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshConfigStatus.
func (*MeshConfigStatus) DeepCopyInto ¶
func (in *MeshConfigStatus) DeepCopyInto(out *MeshConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Policy ¶
type Policy struct {
// Load balancing is a way of distributing traffic between multiple hosts within
// a single upstream cluster in order to effectively make use of available resources.
// There are many different ways of accomplishing this, like ROUND_ROBIN, LEAST_CONN
// RANDOM and RASSTHROUGN
LoadBalancer map[string]string `json:"loadBalancer,omitempty"`
// Maximum number of HTTP1 connections to a destination host. Default 2^32-1.
MaxConnections int32 `json:"maxConnections,omitempty"`
// Connection timeout. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
Timeout string `json:"timeout,omitempty"`
// Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
// Defaults to 2^32-1.
MaxRetries int32 `json:"maxRetries,omitempty"`
}
Policy defines load balancing, retry, and other policies for a service.
func (*Policy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (*Policy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Port ¶
type Port struct {
// Label assigned to the port.
Name string `json:"name"`
// The protocol exposed on the port.
// MUST BE HTTP TO ROUTE DUBBO SERVICE.
Protocol string `json:"protocol"`
// A valid non-negative integer port number.
Number uint32 `json:"number"`
}
Port describes the properties of a specific port of a service.
func (*Port) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RerouteOption ¶
type RerouteOption struct {
// The rerouting strategy currently includes only Unchangeable, Polling, Random, and Specific.
//
// 1. Unchangeable: Does not reroute when all instances of the originally
// specified subset are offline.
//
// 2. RoundRobin: Access the remaining available subsets when all instances
// of a sourcelabels originally specified are offline using Round-Robin.
//
// 3. Random: When all instances of the originally specified subset for a
// sourcelabels are offline, random access to the remaining available subsets.
//
// 4. Specific: Routes using the specified mapping when all instances of the
// originally specified subset are offline.
ReroutePolicy ReroutePolicy `json:"reroutePolicy"`
// This map only takes effect when 'ReroutePolicy' is specified to 'Specific',
// each sourceLabels can specify multiple accessible subsets and weight.
SpecificRoute map[string]Destinations `json:"specificRoute,omitempty"`
}
RerouteOption define the re-routing policy when all of the previously sebsets instances are available.
func (*RerouteOption) DeepCopy ¶
func (in *RerouteOption) DeepCopy() *RerouteOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RerouteOption.
func (*RerouteOption) DeepCopyInto ¶
func (in *RerouteOption) DeepCopyInto(out *RerouteOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReroutePolicy ¶
type ReroutePolicy string
ReroutePolicy ...
const ( Default ReroutePolicy = "Default" Unchangeable ReroutePolicy = "Unchangeable" Specific ReroutePolicy = "Specific" )
The enumerations of ReroutePolicy
type Service ¶
type Service struct {
// Must be formatted to conform to the DNS1123 specification.
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
OriginalName string `json:"originalName"`
// A list describes the properties of all ports of this service.
// The Dubbo service port registered with MOSN is 20882,
// otherwize the native Dubbo service port is 20880.
// +kubebuilder:validation:MinItems=1
Ports []*Port `json:"ports,omitempty"`
// A list describes all registered instances of this service.
Instances []*Instance `json:"instances,omitempty"`
// Traffic policies of service-level
Policy *Policy `json:"policy,omitempty"`
// Subsets defined all sebsets of the current service.
Subsets []*Subset `json:"subsets,omitempty"`
}
Service describes Dubbo services, will be registered as ServiceEntries in istio's internal service registry.
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceAccessor ¶
type ServiceAccessor struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceAccessorSpec `json:"spec,omitempty"`
Status ServiceAccessorStatus `json:"status,omitempty"`
}
ServiceAccessor is the Schema for the serviceaccessors API
func (*ServiceAccessor) DeepCopy ¶
func (in *ServiceAccessor) DeepCopy() *ServiceAccessor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccessor.
func (*ServiceAccessor) DeepCopyInto ¶
func (in *ServiceAccessor) DeepCopyInto(out *ServiceAccessor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceAccessor) DeepCopyObject ¶
func (in *ServiceAccessor) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceAccessorList ¶
type ServiceAccessorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceAccessor `json:"items"`
}
ServiceAccessorList contains a list of ServiceAccessor
func (*ServiceAccessorList) DeepCopy ¶
func (in *ServiceAccessorList) DeepCopy() *ServiceAccessorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccessorList.
func (*ServiceAccessorList) DeepCopyInto ¶
func (in *ServiceAccessorList) DeepCopyInto(out *ServiceAccessorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceAccessorList) DeepCopyObject ¶
func (in *ServiceAccessorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceAccessorSpec ¶
type ServiceAccessorSpec struct {
AccessHosts []string `json:"accessHosts"`
// The Generation of MeshConfig, which to reconcile AppMeshConfig when MeshConfig changes.
MeshConfigGeneration int64 `json:"meshConfigGeneration,omitempty"`
}
ServiceAccessorSpec defines the desired state of ServiceAccessor
func (*ServiceAccessorSpec) DeepCopy ¶
func (in *ServiceAccessorSpec) DeepCopy() *ServiceAccessorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccessorSpec.
func (*ServiceAccessorSpec) DeepCopyInto ¶
func (in *ServiceAccessorSpec) DeepCopyInto(out *ServiceAccessorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceAccessorStatus ¶
type ServiceAccessorStatus struct {
}
ServiceAccessorStatus defines the observed state of ServiceAccessor
func (*ServiceAccessorStatus) DeepCopy ¶
func (in *ServiceAccessorStatus) DeepCopy() *ServiceAccessorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccessorStatus.
func (*ServiceAccessorStatus) DeepCopyInto ¶
func (in *ServiceAccessorStatus) DeepCopyInto(out *ServiceAccessorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceConfig ¶
type ServiceConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceConfigSpec `json:"spec,omitempty"`
Status ServiceConfigStatus `json:"status,omitempty"`
}
ServiceConfig is the Schema for the serviceconfigs API
func (*ServiceConfig) DeepCopy ¶
func (in *ServiceConfig) DeepCopy() *ServiceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfig.
func (*ServiceConfig) DeepCopyInto ¶
func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceConfig) DeepCopyObject ¶
func (in *ServiceConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceConfigList ¶
type ServiceConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceConfig `json:"items"`
}
ServiceConfigList contains a list of ServiceConfig
func (*ServiceConfigList) DeepCopy ¶
func (in *ServiceConfigList) DeepCopy() *ServiceConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfigList.
func (*ServiceConfigList) DeepCopyInto ¶
func (in *ServiceConfigList) DeepCopyInto(out *ServiceConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceConfigList) DeepCopyObject ¶
func (in *ServiceConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceConfigSpec ¶
type ServiceConfigSpec struct {
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:MinLength=1
OriginalName string `json:"originalName"`
// Traffic policies of service-level
Policy *Policy `json:"policy,omitempty"`
// Each routing rule is associated with one or more service versions.
Route []*Destination `json:"route,omitempty"`
// A list describes all registered instances config of this service.
Instances []*InstanceConfig `json:"instances,omitempty"`
// The settings used to reroute the sourceLabels traffic when all of the previously
// subsets instances are available.
RerouteOption *RerouteOption `json:"rerouteOption,omitempty"`
// The settings used to reroute canary deployment traffic when all of the previously
// subsets instances are available.
CanaryRerouteOption *RerouteOption `json:"canaryRerouteOption,omitempty"`
// The Generation of MeshConfig, which to reconcile AppMeshConfig when MeshConfig changes.
MeshConfigGeneration int64 `json:"meshConfigGeneration,omitempty"`
}
ServiceConfigSpec defines the desired state of ServiceConfig
func (*ServiceConfigSpec) DeepCopy ¶
func (in *ServiceConfigSpec) DeepCopy() *ServiceConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfigSpec.
func (*ServiceConfigSpec) DeepCopyInto ¶
func (in *ServiceConfigSpec) DeepCopyInto(out *ServiceConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceConfigStatus ¶
type ServiceConfigStatus struct {
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
Phase ConfigPhase `json:"phase,omitempty"`
Status *Status `json:"status,omitempty"`
}
ServiceConfigStatus defines the observed state of ServiceConfig
func (*ServiceConfigStatus) DeepCopy ¶
func (in *ServiceConfigStatus) DeepCopy() *ServiceConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfigStatus.
func (*ServiceConfigStatus) DeepCopyInto ¶
func (in *ServiceConfigStatus) DeepCopyInto(out *ServiceConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Status ¶
type Status struct {
ServiceEntry *SubStatus `json:"serviceEntry,omitempty"`
WorkloadEntry *SubStatus `json:"workloadEntry,omitempty"`
VirtualService *SubStatus `json:"virtualService,omitempty"`
DestinationRule *SubStatus `json:"destinationRule,omitempty"`
}
Status is a collection of all SubStatus.
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StringMatchType ¶
type StringMatchType string
StringMatchType ...
var ( Exact StringMatchType = "exact" Prefix StringMatchType = "prefix" Regex StringMatchType = "regex" )
StringMatchType enum
type SubStatus ¶
type SubStatus struct {
// Total number of desired configuration files.
Desired int `json:"desired"`
// Total number of configuration files distributed.
Distributed *int `json:"distributed"`
// Total number of configuration files undistributed.
Undistributed *int `json:"undistributed"`
}
SubStatus describes the destribution status of the individual istio's CR.
func (*SubStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubStatus.
func (*SubStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subset ¶
type Subset struct {
// Must be formatted to conform to the DNS1123 specification.
// +kubebuilder:validation:MaxLength=15
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// One or more labels are typically required to identify the subset destination.
// e.g. {"group": "blue"}
Labels map[string]string `json:"labels"`
// Traffic policies defined at the service-level can be overridden at a subset-level.
// NOTE: Policies specified for subsets will not take effect until a route rule explicitly
// sends traffic to this subset.
Policy *Policy `json:"policy,omitempty"`
// Whether the subset is defined as a canary group
IsCanary bool `json:"isCanary,omitempty"`
}
Subset is a subset of endpoints of a service. Subset can be used for scenarios like A/B testing, or routing to a specific version of a service.
func (*Subset) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subset.
func (*Subset) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.