Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=apisix.apache.org
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ActiveHealthCheck
- type ActiveHealthCheckHealthy
- type ActiveHealthCheckUnhealthy
- type ApisixClusterAdminConfig
- type ApisixClusterConfig
- type ApisixClusterConfigList
- type ApisixClusterConfigSpec
- type ApisixClusterMonitoringConfig
- type ApisixClusterPrometheusConfig
- type ApisixClusterSkywalkingConfig
- type ApisixConsumer
- type ApisixConsumerAuthParameter
- type ApisixConsumerBasicAuth
- type ApisixConsumerBasicAuthValue
- type ApisixConsumerKeyAuth
- type ApisixConsumerKeyAuthValue
- type ApisixConsumerList
- type ApisixConsumerSpec
- type ApisixMutualTlsClientConfig
- type ApisixPluginConfig
- type ApisixPluginConfigList
- type ApisixPluginConfigSpec
- type ApisixRoute
- type ApisixRouteAuthentication
- type ApisixRouteAuthenticationKeyAuth
- type ApisixRouteHTTP
- type ApisixRouteHTTPBackend
- type ApisixRouteHTTPMatch
- type ApisixRouteHTTPMatchExpr
- type ApisixRouteHTTPMatchExprSubject
- type ApisixRouteHTTPPlugin
- type ApisixRouteHTTPPluginConfig
- type ApisixRouteList
- type ApisixRouteSpec
- type ApisixRouteStream
- type ApisixRouteStreamBackend
- type ApisixRouteStreamMatch
- type ApisixSecret
- type ApisixStatus
- type ApisixTls
- type ApisixTlsList
- type ApisixTlsSpec
- type ApisixUpstream
- type ApisixUpstreamConfig
- type ApisixUpstreamList
- type ApisixUpstreamSpec
- type ApisixUpstreamSubset
- type Config
- type ConfigSet
- type HealthCheck
- type HostType
- type LoadBalancer
- type PassiveHealthCheck
- type PassiveHealthCheckHealthy
- type PassiveHealthCheckUnhealthy
- type Plugin
- type PortLevelSettings
- type UpstreamTimeout
Constants ¶
const GroupName = "apisix.apache.org"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v2beta3"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2beta3"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ActiveHealthCheck ¶
type ActiveHealthCheck struct { Type string `json:"type,omitempty" yaml:"type,omitempty"` Timeout time.Duration `json:"timeout,omitempty" yaml:"timeout,omitempty"` Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"` Host string `json:"host,omitempty" yaml:"host,omitempty"` Port int32 `json:"port,omitempty" yaml:"port,omitempty"` HTTPPath string `json:"httpPath,omitempty" yaml:"httpPath,omitempty"` StrictTLS *bool `json:"strictTLS,omitempty" yaml:"strictTLS,omitempty"` RequestHeaders []string `json:"requestHeaders,omitempty" yaml:"requestHeaders,omitempty"` Healthy *ActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"` Unhealthy *ActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"` }
ActiveHealthCheck defines the active kind of upstream health check.
func (*ActiveHealthCheck) DeepCopy ¶
func (in *ActiveHealthCheck) DeepCopy() *ActiveHealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActiveHealthCheck.
func (*ActiveHealthCheck) DeepCopyInto ¶
func (in *ActiveHealthCheck) DeepCopyInto(out *ActiveHealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ActiveHealthCheckHealthy ¶
type ActiveHealthCheckHealthy struct { PassiveHealthCheckHealthy `json:",inline" yaml:",inline"` Interval metav1.Duration `json:"interval,omitempty" yaml:"interval,omitempty"` }
ActiveHealthCheckHealthy defines the conditions to judge whether an upstream node is healthy with the active manner.
func (*ActiveHealthCheckHealthy) DeepCopy ¶
func (in *ActiveHealthCheckHealthy) DeepCopy() *ActiveHealthCheckHealthy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActiveHealthCheckHealthy.
func (*ActiveHealthCheckHealthy) DeepCopyInto ¶
func (in *ActiveHealthCheckHealthy) DeepCopyInto(out *ActiveHealthCheckHealthy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ActiveHealthCheckUnhealthy ¶
type ActiveHealthCheckUnhealthy struct { PassiveHealthCheckUnhealthy `json:",inline" yaml:",inline"` Interval metav1.Duration `json:"interval,omitempty" yaml:"interval,omitempty"` }
ActiveHealthCheckUnhealthy defines the conditions to judge whether an upstream node is unhealthy with the active manager.
func (*ActiveHealthCheckUnhealthy) DeepCopy ¶
func (in *ActiveHealthCheckUnhealthy) DeepCopy() *ActiveHealthCheckUnhealthy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActiveHealthCheckUnhealthy.
func (*ActiveHealthCheckUnhealthy) DeepCopyInto ¶
func (in *ActiveHealthCheckUnhealthy) DeepCopyInto(out *ActiveHealthCheckUnhealthy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixClusterAdminConfig ¶
type ApisixClusterAdminConfig struct { // BaseURL is the base URL for the APISIX Admin API. // It looks like "http://apisix-admin.default.svc.cluster.local:9080/apisix/admin" BaseURL string `json:"baseURL" yaml:"baseURL"` // AdminKey is used to verify the admin API user. AdminKey string `json:"adminKey" yaml:"adminKey"` // ClientTimeout is request timeout for the APISIX Admin API client ClientTimeout types.TimeDuration `json:"clientTimeout" yaml:"clientTimeout"` }
ApisixClusterAdminConfig is the admin config for the corresponding APISIX Cluster.
func (*ApisixClusterAdminConfig) DeepCopy ¶
func (in *ApisixClusterAdminConfig) DeepCopy() *ApisixClusterAdminConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterAdminConfig.
func (*ApisixClusterAdminConfig) DeepCopyInto ¶
func (in *ApisixClusterAdminConfig) DeepCopyInto(out *ApisixClusterAdminConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixClusterConfig ¶
type ApisixClusterConfig struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata" yaml:"metadata"` // Spec defines the desired state of ApisixClusterConfigSpec. Spec ApisixClusterConfigSpec `json:"spec" yaml:"spec"` Status ApisixStatus `json:"status,omitempty" yaml:"status,omitempty"` }
ApisixClusterConfig is the Schema for the ApisixClusterConfig resource. An ApisixClusterConfig is used to identify an APISIX cluster, it's a ClusterScoped resource so the name is unique. It also contains some cluster-level configurations like monitoring.
func (*ApisixClusterConfig) DeepCopy ¶
func (in *ApisixClusterConfig) DeepCopy() *ApisixClusterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterConfig.
func (*ApisixClusterConfig) DeepCopyInto ¶
func (in *ApisixClusterConfig) DeepCopyInto(out *ApisixClusterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixClusterConfig) DeepCopyObject ¶
func (in *ApisixClusterConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixClusterConfigList ¶
type ApisixClusterConfigList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata" yaml:"metadata"` Items []ApisixClusterConfig `json:"items" yaml:"items"` }
ApisixClusterConfigList contains a list of ApisixClusterConfig.
func (*ApisixClusterConfigList) DeepCopy ¶
func (in *ApisixClusterConfigList) DeepCopy() *ApisixClusterConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterConfigList.
func (*ApisixClusterConfigList) DeepCopyInto ¶
func (in *ApisixClusterConfigList) DeepCopyInto(out *ApisixClusterConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixClusterConfigList) DeepCopyObject ¶
func (in *ApisixClusterConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixClusterConfigSpec ¶
type ApisixClusterConfigSpec struct { // Monitoring categories all monitoring related features. // +optional Monitoring *ApisixClusterMonitoringConfig `json:"monitoring" yaml:"monitoring"` // Admin contains the Admin API information about APISIX cluster. // +optional Admin *ApisixClusterAdminConfig `json:"admin" yaml:"admin"` }
ApisixClusterConfigSpec defines the desired state of ApisixClusterConfigSpec.
func (*ApisixClusterConfigSpec) DeepCopy ¶
func (in *ApisixClusterConfigSpec) DeepCopy() *ApisixClusterConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterConfigSpec.
func (*ApisixClusterConfigSpec) DeepCopyInto ¶
func (in *ApisixClusterConfigSpec) DeepCopyInto(out *ApisixClusterConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixClusterMonitoringConfig ¶
type ApisixClusterMonitoringConfig struct { // Prometheus is the config for using Prometheus in APISIX Cluster. // +optional Prometheus ApisixClusterPrometheusConfig `json:"prometheus" yaml:"prometheus"` // Skywalking is the config for using Skywalking in APISIX Cluster. // +optional Skywalking ApisixClusterSkywalkingConfig `json:"skywalking" yaml:"skywalking"` }
ApisixClusterMonitoringConfig categories all monitoring related features.
func (*ApisixClusterMonitoringConfig) DeepCopy ¶
func (in *ApisixClusterMonitoringConfig) DeepCopy() *ApisixClusterMonitoringConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterMonitoringConfig.
func (*ApisixClusterMonitoringConfig) DeepCopyInto ¶
func (in *ApisixClusterMonitoringConfig) DeepCopyInto(out *ApisixClusterMonitoringConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixClusterPrometheusConfig ¶
type ApisixClusterPrometheusConfig struct { // Enable means whether enable Prometheus or not. Enable bool `json:"enable" yaml:"enable"` }
ApisixClusterPrometheusConfig is the config for using Prometheus in APISIX Cluster.
func (*ApisixClusterPrometheusConfig) DeepCopy ¶
func (in *ApisixClusterPrometheusConfig) DeepCopy() *ApisixClusterPrometheusConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterPrometheusConfig.
func (*ApisixClusterPrometheusConfig) DeepCopyInto ¶
func (in *ApisixClusterPrometheusConfig) DeepCopyInto(out *ApisixClusterPrometheusConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixClusterSkywalkingConfig ¶
type ApisixClusterSkywalkingConfig struct { // Enable means whether enable Skywalking or not. Enable bool `json:"enable" yaml:"enable"` // SampleRatio means the ratio to collect SampleRatio float64 `json:"sampleRatio" yaml:"sampleRatio"` }
ApisixClusterSkywalkingConfig is the config for using Skywalking in APISIX Cluster.
func (*ApisixClusterSkywalkingConfig) DeepCopy ¶
func (in *ApisixClusterSkywalkingConfig) DeepCopy() *ApisixClusterSkywalkingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixClusterSkywalkingConfig.
func (*ApisixClusterSkywalkingConfig) DeepCopyInto ¶
func (in *ApisixClusterSkywalkingConfig) DeepCopyInto(out *ApisixClusterSkywalkingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixConsumer ¶
type ApisixConsumer struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Spec ApisixConsumerSpec `json:"spec,omitempty" yaml:"spec,omitempty"` Status ApisixStatus `json:"status,omitempty" yaml:"status,omitempty"` }
ApisixConsumer is the Schema for the ApisixConsumer resource. An ApisixConsumer is used to identify a consumer.
func (*ApisixConsumer) DeepCopy ¶
func (in *ApisixConsumer) DeepCopy() *ApisixConsumer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumer.
func (*ApisixConsumer) DeepCopyInto ¶
func (in *ApisixConsumer) DeepCopyInto(out *ApisixConsumer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixConsumer) DeepCopyObject ¶
func (in *ApisixConsumer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixConsumerAuthParameter ¶
type ApisixConsumerAuthParameter struct { BasicAuth *ApisixConsumerBasicAuth `json:"basicAuth,omitempty" yaml:"basicAuth"` KeyAuth *ApisixConsumerKeyAuth `json:"keyAuth,omitempty" yaml:"keyAuth"` }
func (*ApisixConsumerAuthParameter) DeepCopy ¶
func (in *ApisixConsumerAuthParameter) DeepCopy() *ApisixConsumerAuthParameter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerAuthParameter.
func (*ApisixConsumerAuthParameter) DeepCopyInto ¶
func (in *ApisixConsumerAuthParameter) DeepCopyInto(out *ApisixConsumerAuthParameter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixConsumerBasicAuth ¶
type ApisixConsumerBasicAuth struct { SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"` Value *ApisixConsumerBasicAuthValue `json:"value,omitempty" yaml:"value,omitempty"` }
ApisixConsumerBasicAuth defines the configuration for basic auth.
func (*ApisixConsumerBasicAuth) DeepCopy ¶
func (in *ApisixConsumerBasicAuth) DeepCopy() *ApisixConsumerBasicAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerBasicAuth.
func (*ApisixConsumerBasicAuth) DeepCopyInto ¶
func (in *ApisixConsumerBasicAuth) DeepCopyInto(out *ApisixConsumerBasicAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixConsumerBasicAuthValue ¶
type ApisixConsumerBasicAuthValue struct { Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` }
ApisixConsumerBasicAuthValue defines the in-place username and password configuration for basic auth.
func (*ApisixConsumerBasicAuthValue) DeepCopy ¶
func (in *ApisixConsumerBasicAuthValue) DeepCopy() *ApisixConsumerBasicAuthValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerBasicAuthValue.
func (*ApisixConsumerBasicAuthValue) DeepCopyInto ¶
func (in *ApisixConsumerBasicAuthValue) DeepCopyInto(out *ApisixConsumerBasicAuthValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixConsumerKeyAuth ¶
type ApisixConsumerKeyAuth struct { SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"` Value *ApisixConsumerKeyAuthValue `json:"value,omitempty" yaml:"value,omitempty"` }
ApisixConsumerKeyAuth defines the configuration for the key auth.
func (*ApisixConsumerKeyAuth) DeepCopy ¶
func (in *ApisixConsumerKeyAuth) DeepCopy() *ApisixConsumerKeyAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerKeyAuth.
func (*ApisixConsumerKeyAuth) DeepCopyInto ¶
func (in *ApisixConsumerKeyAuth) DeepCopyInto(out *ApisixConsumerKeyAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixConsumerKeyAuthValue ¶
type ApisixConsumerKeyAuthValue struct {
Key string `json:"key" yaml:"key"`
}
ApisixConsumerKeyAuthValue defines the in-place configuration for basic auth.
func (*ApisixConsumerKeyAuthValue) DeepCopy ¶
func (in *ApisixConsumerKeyAuthValue) DeepCopy() *ApisixConsumerKeyAuthValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerKeyAuthValue.
func (*ApisixConsumerKeyAuthValue) DeepCopyInto ¶
func (in *ApisixConsumerKeyAuthValue) DeepCopyInto(out *ApisixConsumerKeyAuthValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixConsumerList ¶
type ApisixConsumerList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata" yaml:"metadata"` Items []ApisixConsumer `json:"items,omitempty" yaml:"items,omitempty"` }
ApisixConsumerList contains a list of ApisixConsumer.
func (*ApisixConsumerList) DeepCopy ¶
func (in *ApisixConsumerList) DeepCopy() *ApisixConsumerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerList.
func (*ApisixConsumerList) DeepCopyInto ¶
func (in *ApisixConsumerList) DeepCopyInto(out *ApisixConsumerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixConsumerList) DeepCopyObject ¶
func (in *ApisixConsumerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixConsumerSpec ¶
type ApisixConsumerSpec struct {
AuthParameter ApisixConsumerAuthParameter `json:"authParameter" yaml:"authParameter"`
}
ApisixConsumerSpec defines the desired state of ApisixConsumer.
func (*ApisixConsumerSpec) DeepCopy ¶
func (in *ApisixConsumerSpec) DeepCopy() *ApisixConsumerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixConsumerSpec.
func (*ApisixConsumerSpec) DeepCopyInto ¶
func (in *ApisixConsumerSpec) DeepCopyInto(out *ApisixConsumerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixMutualTlsClientConfig ¶
type ApisixMutualTlsClientConfig struct { CASecret ApisixSecret `json:"caSecret,omitempty" yaml:"caSecret,omitempty"` Depth int `json:"depth,omitempty" yaml:"depth,omitempty"` }
ApisixMutualTlsClientConfig describes the mutual TLS CA and verify depth
func (*ApisixMutualTlsClientConfig) DeepCopy ¶
func (in *ApisixMutualTlsClientConfig) DeepCopy() *ApisixMutualTlsClientConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixMutualTlsClientConfig.
func (*ApisixMutualTlsClientConfig) DeepCopyInto ¶
func (in *ApisixMutualTlsClientConfig) DeepCopyInto(out *ApisixMutualTlsClientConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixPluginConfig ¶
type ApisixPluginConfig struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata" yaml:"metadata"` // Spec defines the desired state of ApisixPluginConfigSpec. Spec ApisixPluginConfigSpec `json:"spec" yaml:"spec"` Status ApisixStatus `json:"status,omitempty" yaml:"status,omitempty"` }
ApisixPluginConfig is the Schema for the ApisixPluginConfig resource. An ApisixPluginConfig is used to support a group of plugin configs
func (*ApisixPluginConfig) DeepCopy ¶
func (in *ApisixPluginConfig) DeepCopy() *ApisixPluginConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixPluginConfig.
func (*ApisixPluginConfig) DeepCopyInto ¶
func (in *ApisixPluginConfig) DeepCopyInto(out *ApisixPluginConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixPluginConfig) DeepCopyObject ¶
func (in *ApisixPluginConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixPluginConfigList ¶
type ApisixPluginConfigList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata" yaml:"metadata"` Items []ApisixPluginConfig `json:"items,omitempty" yaml:"items,omitempty"` }
ApisixPluginConfigList contains a list of ApisixPluginConfig.
func (*ApisixPluginConfigList) DeepCopy ¶
func (in *ApisixPluginConfigList) DeepCopy() *ApisixPluginConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixPluginConfigList.
func (*ApisixPluginConfigList) DeepCopyInto ¶
func (in *ApisixPluginConfigList) DeepCopyInto(out *ApisixPluginConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixPluginConfigList) DeepCopyObject ¶
func (in *ApisixPluginConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixPluginConfigSpec ¶
type ApisixPluginConfigSpec struct { // Plugins contains a list of ApisixRouteHTTPPlugin // +required Plugins []ApisixRouteHTTPPlugin `json:"plugins" yaml:"plugins"` }
ApisixPluginConfigSpec defines the desired state of ApisixPluginConfigSpec.
func (*ApisixPluginConfigSpec) DeepCopy ¶
func (in *ApisixPluginConfigSpec) DeepCopy() *ApisixPluginConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixPluginConfigSpec.
func (*ApisixPluginConfigSpec) DeepCopyInto ¶
func (in *ApisixPluginConfigSpec) DeepCopyInto(out *ApisixPluginConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRoute ¶
type ApisixRoute struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Spec ApisixRouteSpec `json:"spec,omitempty" yaml:"spec,omitempty"` Status ApisixStatus `json:"status,omitempty" yaml:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status ApisixRoute is used to define the route rules and upstreams for Apache APISIX.
func (*ApisixRoute) DeepCopy ¶
func (in *ApisixRoute) DeepCopy() *ApisixRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRoute.
func (*ApisixRoute) DeepCopyInto ¶
func (in *ApisixRoute) DeepCopyInto(out *ApisixRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixRoute) DeepCopyObject ¶
func (in *ApisixRoute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixRouteAuthentication ¶
type ApisixRouteAuthentication struct { Enable bool `json:"enable" yaml:"enable"` Type string `json:"type" yaml:"type"` KeyAuth ApisixRouteAuthenticationKeyAuth `json:"keyauth,omitempty" yaml:"keyauth,omitempty"` }
ApisixRouteAuthentication is the authentication-related configuration in ApisixRoute.
func (*ApisixRouteAuthentication) DeepCopy ¶
func (in *ApisixRouteAuthentication) DeepCopy() *ApisixRouteAuthentication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteAuthentication.
func (*ApisixRouteAuthentication) DeepCopyInto ¶
func (in *ApisixRouteAuthentication) DeepCopyInto(out *ApisixRouteAuthentication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteAuthenticationKeyAuth ¶
type ApisixRouteAuthenticationKeyAuth struct {
Header string `json:"header,omitempty" yaml:"header,omitempty"`
}
ApisixRouteAuthenticationKeyAuth is the keyAuth-related configuration in ApisixRouteAuthentication.
func (*ApisixRouteAuthenticationKeyAuth) DeepCopy ¶
func (in *ApisixRouteAuthenticationKeyAuth) DeepCopy() *ApisixRouteAuthenticationKeyAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteAuthenticationKeyAuth.
func (*ApisixRouteAuthenticationKeyAuth) DeepCopyInto ¶
func (in *ApisixRouteAuthenticationKeyAuth) DeepCopyInto(out *ApisixRouteAuthenticationKeyAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTP ¶
type ApisixRouteHTTP struct { // The rule name, cannot be empty. Name string `json:"name" yaml:"name"` // Route priority, when multiple routes contains // same URI path (for path matching), route with // higher priority will take effect. Priority int `json:"priority,omitempty" yaml:"priority,omitempty"` Timeout *UpstreamTimeout `json:"timeout,omitempty" yaml:"timeout,omitempty"` Match ApisixRouteHTTPMatch `json:"match,omitempty" yaml:"match,omitempty"` // Backends represents potential backends to proxy after the route // rule matched. When number of backends are more than one, traffic-split // plugin in APISIX will be used to split traffic based on the backend weight. Backends []ApisixRouteHTTPBackend `json:"backends,omitempty" yaml:"backends,omitempty"` Websocket bool `json:"websocket" yaml:"websocket"` PluginConfigName string `json:"plugin_config_name,omitempty" yaml:"plugin_config_name,omitempty"` Plugins []ApisixRouteHTTPPlugin `json:"plugins,omitempty" yaml:"plugins,omitempty"` Authentication ApisixRouteAuthentication `json:"authentication,omitempty" yaml:"authentication,omitempty"` }
ApisixRouteHTTP represents a single route in for HTTP traffic.
func (*ApisixRouteHTTP) DeepCopy ¶
func (in *ApisixRouteHTTP) DeepCopy() *ApisixRouteHTTP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteHTTP.
func (*ApisixRouteHTTP) DeepCopyInto ¶
func (in *ApisixRouteHTTP) DeepCopyInto(out *ApisixRouteHTTP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTPBackend ¶
type ApisixRouteHTTPBackend struct { // The name (short) of the service, note cross namespace is forbidden, // so be sure the ApisixRoute and Service are in the same namespace. ServiceName string `json:"serviceName" yaml:"serviceName"` // The service port, could be the name or the port number. ServicePort intstr.IntOrString `json:"servicePort" yaml:"servicePort"` // The resolve granularity, can be "endpoints" or "service", // when set to "endpoints", the pod ips will be used; other // wise, the service ClusterIP or ExternalIP will be used, // default is endpoints. ResolveGranularity string `json:"resolveGranularity,omitempty" yaml:"resolveGranularity,omitempty"` // Weight of this backend. Weight *int `json:"weight" yaml:"weight"` // Subset specifies a subset for the target Service. The subset should be pre-defined // in ApisixUpstream about this service. Subset string `json:"subset,omitempty" yaml:"subset,omitempty"` }
ApisixRouteHTTPBackend represents a HTTP backend (a Kuberentes Service).
func (*ApisixRouteHTTPBackend) DeepCopy ¶
func (in *ApisixRouteHTTPBackend) DeepCopy() *ApisixRouteHTTPBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteHTTPBackend.
func (*ApisixRouteHTTPBackend) DeepCopyInto ¶
func (in *ApisixRouteHTTPBackend) DeepCopyInto(out *ApisixRouteHTTPBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTPMatch ¶
type ApisixRouteHTTPMatch struct { // URI path predicates, at least one path should be // configured, path could be exact or prefix, for prefix path, // append "*" after it, for instance, "/foo*". Paths []string `json:"paths" yaml:"paths"` // HTTP request method predicates. Methods []string `json:"methods,omitempty" yaml:"methods,omitempty"` // HTTP Host predicates, host can be a wildcard domain or // an exact domain. For wildcard domain, only one generic // level is allowed, for instance, "*.foo.com" is valid but // "*.*.foo.com" is not. Hosts []string `json:"hosts,omitempty" yaml:"hosts,omitempty"` // Remote address predicates, items can be valid IPv4 address // or IPv6 address or CIDR. RemoteAddrs []string `json:"remoteAddrs,omitempty" yaml:"remoteAddrs,omitempty"` // NginxVars represents generic match predicates, // it uses Nginx variable systems, so any predicate // like headers, querystring and etc can be leveraged // here to match the route. // For instance, it can be: // nginxVars: // - subject: "$remote_addr" // op: in // value: // - "127.0.0.1" // - "10.0.5.11" NginxVars []ApisixRouteHTTPMatchExpr `json:"exprs,omitempty" yaml:"exprs,omitempty"` }
ApisixRouteHTTPMatch represents the match condition for hitting this route.
func (*ApisixRouteHTTPMatch) DeepCopy ¶
func (in *ApisixRouteHTTPMatch) DeepCopy() *ApisixRouteHTTPMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteHTTPMatch.
func (*ApisixRouteHTTPMatch) DeepCopyInto ¶
func (in *ApisixRouteHTTPMatch) DeepCopyInto(out *ApisixRouteHTTPMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTPMatchExpr ¶
type ApisixRouteHTTPMatchExpr struct { // Subject is the expression subject, it can // be any string composed by literals and nginx // vars. Subject ApisixRouteHTTPMatchExprSubject `json:"subject" yaml:"subject"` // Op is the operator. Op string `json:"op" yaml:"op"` // Set is an array type object of the expression. // It should be used when the Op is "in" or "not_in"; Set []string `json:"set" yaml:"set"` // Value is the normal type object for the expression, // it should be used when the Op is not "in" and "not_in". // Set and Value are exclusive so only of them can be set // in the same time. Value *string `json:"value" yaml:"value"` }
ApisixRouteHTTPMatchExpr represents a binary route match expression .
func (*ApisixRouteHTTPMatchExpr) DeepCopy ¶
func (in *ApisixRouteHTTPMatchExpr) DeepCopy() *ApisixRouteHTTPMatchExpr
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteHTTPMatchExpr.
func (*ApisixRouteHTTPMatchExpr) DeepCopyInto ¶
func (in *ApisixRouteHTTPMatchExpr) DeepCopyInto(out *ApisixRouteHTTPMatchExpr)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTPMatchExprSubject ¶
type ApisixRouteHTTPMatchExprSubject struct { // The subject scope, can be: // ScopeQuery, ScopeHeader, ScopePath // when subject is ScopePath, Name field // will be ignored. Scope string `json:"scope" yaml:"scope"` // The name of subject. Name string `json:"name" yaml:"name"` }
ApisixRouteHTTPMatchExprSubject describes the route match expression subject.
func (*ApisixRouteHTTPMatchExprSubject) DeepCopy ¶
func (in *ApisixRouteHTTPMatchExprSubject) DeepCopy() *ApisixRouteHTTPMatchExprSubject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteHTTPMatchExprSubject.
func (*ApisixRouteHTTPMatchExprSubject) DeepCopyInto ¶
func (in *ApisixRouteHTTPMatchExprSubject) DeepCopyInto(out *ApisixRouteHTTPMatchExprSubject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTPPlugin ¶
type ApisixRouteHTTPPlugin struct { // The plugin name. Name string `json:"name" yaml:"name"` // Whether this plugin is in use, default is true. Enable bool `json:"enable" yaml:"enable"` // Plugin configuration. Config ApisixRouteHTTPPluginConfig `json:"config" yaml:"config"` }
ApisixRouteHTTPPlugin represents an APISIX plugin.
func (*ApisixRouteHTTPPlugin) DeepCopy ¶
func (in *ApisixRouteHTTPPlugin) DeepCopy() *ApisixRouteHTTPPlugin
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteHTTPPlugin.
func (*ApisixRouteHTTPPlugin) DeepCopyInto ¶
func (in *ApisixRouteHTTPPlugin) DeepCopyInto(out *ApisixRouteHTTPPlugin)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteHTTPPluginConfig ¶
type ApisixRouteHTTPPluginConfig map[string]interface{}
ApisixRouteHTTPPluginConfig is the configuration for any plugins.
func (*ApisixRouteHTTPPluginConfig) DeepCopy ¶
func (p *ApisixRouteHTTPPluginConfig) DeepCopy() *ApisixRouteHTTPPluginConfig
func (ApisixRouteHTTPPluginConfig) DeepCopyInto ¶
func (p ApisixRouteHTTPPluginConfig) DeepCopyInto(out *ApisixRouteHTTPPluginConfig)
type ApisixRouteList ¶
type ApisixRouteList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata" yaml:"metadata"` Items []ApisixRoute `json:"items,omitempty" yaml:"items,omitempty"` }
ApisixRouteList contains a list of ApisixRoute.
func (*ApisixRouteList) DeepCopy ¶
func (in *ApisixRouteList) DeepCopy() *ApisixRouteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteList.
func (*ApisixRouteList) DeepCopyInto ¶
func (in *ApisixRouteList) DeepCopyInto(out *ApisixRouteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixRouteList) DeepCopyObject ¶
func (in *ApisixRouteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixRouteSpec ¶
type ApisixRouteSpec struct { HTTP []ApisixRouteHTTP `json:"http,omitempty" yaml:"http,omitempty"` Stream []ApisixRouteStream `json:"stream,omitempty" yaml:"stream,omitempty"` }
ApisixRouteSpec is the spec definition for ApisixRouteSpec.
func (*ApisixRouteSpec) DeepCopy ¶
func (in *ApisixRouteSpec) DeepCopy() *ApisixRouteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteSpec.
func (*ApisixRouteSpec) DeepCopyInto ¶
func (in *ApisixRouteSpec) DeepCopyInto(out *ApisixRouteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteStream ¶
type ApisixRouteStream struct { // The rule name, cannot be empty. Name string `json:"name" yaml:"name"` Protocol string `json:"protocol" yaml:"protocol"` Match ApisixRouteStreamMatch `json:"match" yaml:"match"` Backend ApisixRouteStreamBackend `json:"backend" yaml:"backend"` }
ApisixRouteStream is the configuration for level 4 route
func (*ApisixRouteStream) DeepCopy ¶
func (in *ApisixRouteStream) DeepCopy() *ApisixRouteStream
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteStream.
func (*ApisixRouteStream) DeepCopyInto ¶
func (in *ApisixRouteStream) DeepCopyInto(out *ApisixRouteStream)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteStreamBackend ¶
type ApisixRouteStreamBackend struct { // The name (short) of the service, note cross namespace is forbidden, // so be sure the ApisixRoute and Service are in the same namespace. ServiceName string `json:"serviceName" yaml:"serviceName"` // The service port, could be the name or the port number. ServicePort intstr.IntOrString `json:"servicePort" yaml:"servicePort"` // The resolve granularity, can be "endpoints" or "service", // when set to "endpoints", the pod ips will be used; other // wise, the service ClusterIP or ExternalIP will be used, // default is endpoints. ResolveGranularity string `json:"resolveGranularity,omitempty" yaml:"resolveGranularity,omitempty"` // Subset specifies a subset for the target Service. The subset should be pre-defined // in ApisixUpstream about this service. Subset string `json:"subset,omitempty" yaml:"subset,omitempty"` }
ApisixRouteStreamBackend represents a TCP backend (a Kubernetes Service).
func (*ApisixRouteStreamBackend) DeepCopy ¶
func (in *ApisixRouteStreamBackend) DeepCopy() *ApisixRouteStreamBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteStreamBackend.
func (*ApisixRouteStreamBackend) DeepCopyInto ¶
func (in *ApisixRouteStreamBackend) DeepCopyInto(out *ApisixRouteStreamBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixRouteStreamMatch ¶
type ApisixRouteStreamMatch struct { // IngressPort represents the port listening on the Ingress proxy server. // It should be pre-defined as APISIX doesn't support dynamic listening. IngressPort int32 `json:"ingressPort" yaml:"ingressPort"` }
ApisixRouteStreamMatch represents the match conditions of stream route.
func (*ApisixRouteStreamMatch) DeepCopy ¶
func (in *ApisixRouteStreamMatch) DeepCopy() *ApisixRouteStreamMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixRouteStreamMatch.
func (*ApisixRouteStreamMatch) DeepCopyInto ¶
func (in *ApisixRouteStreamMatch) DeepCopyInto(out *ApisixRouteStreamMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixSecret ¶
type ApisixSecret struct { // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:Required Name string `json:"name" yaml:"name"` // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:Required Namespace string `json:"namespace" yaml:"namespace"` }
ApisixSecret describes the Kubernetes Secret name and namespace.
func (*ApisixSecret) DeepCopy ¶
func (in *ApisixSecret) DeepCopy() *ApisixSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixSecret.
func (*ApisixSecret) DeepCopyInto ¶
func (in *ApisixSecret) DeepCopyInto(out *ApisixSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixStatus ¶
type ApisixStatus struct {
Conditions []metav1.Condition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
}
ApisixStatus is the status report for Apisix ingress Resources
func (*ApisixStatus) DeepCopy ¶
func (in *ApisixStatus) DeepCopy() *ApisixStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixStatus.
func (*ApisixStatus) DeepCopyInto ¶
func (in *ApisixStatus) DeepCopyInto(out *ApisixStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixTls ¶
type ApisixTls struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Spec *ApisixTlsSpec `json:"spec,omitempty" yaml:"spec,omitempty"` // +optional Status ApisixStatus `json:"status,omitempty" yaml:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:shortName=atls +kubebuilder:subresource:status ApisixTls defines SSL resource in APISIX.
func (*ApisixTls) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixTls.
func (*ApisixTls) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixTls) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixTlsList ¶
type ApisixTlsList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata" yaml:"metadata"` Items []ApisixTls `json:"items,omitempty" yaml:"items,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:printcolumn:name="SNIs",type=string,JSONPath=`.spec.hosts` +kubebuilder:printcolumn:name="Secret Name",type=string,JSONPath=`.spec.secret.name` +kubebuilder:printcolumn:name="Secret Namespace",type=string,JSONPath=`.spec.secret.namespace` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +kubebuilder:printcolumn:name="Client CA Secret Name",type=string,JSONPath=`.spec.client.ca.name` +kubebuilder:printcolumn:name="Client CA Secret Namespace",type=string,JSONPath=`.spec.client.ca.namespace`
func (*ApisixTlsList) DeepCopy ¶
func (in *ApisixTlsList) DeepCopy() *ApisixTlsList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixTlsList.
func (*ApisixTlsList) DeepCopyInto ¶
func (in *ApisixTlsList) DeepCopyInto(out *ApisixTlsList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixTlsList) DeepCopyObject ¶
func (in *ApisixTlsList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixTlsSpec ¶
type ApisixTlsSpec struct { // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Hosts []HostType `json:"hosts" yaml:"hosts,omitempty"` // +required // +kubebuilder:validation:Required Secret ApisixSecret `json:"secret" yaml:"secret"` // +optional Client *ApisixMutualTlsClientConfig `json:"client,omitempty" yaml:"client,omitempty"` }
ApisixTlsSpec is the specification of ApisixSSL.
func (*ApisixTlsSpec) DeepCopy ¶
func (in *ApisixTlsSpec) DeepCopy() *ApisixTlsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixTlsSpec.
func (*ApisixTlsSpec) DeepCopyInto ¶
func (in *ApisixTlsSpec) DeepCopyInto(out *ApisixTlsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixUpstream ¶
type ApisixUpstream struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Spec *ApisixUpstreamSpec `json:"spec,omitempty" yaml:"spec,omitempty"` Status ApisixStatus `json:"status,omitempty" yaml:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status ApisixUpstream is a decorator for Kubernetes Service, it arms the Service with rich features like health check, retry policies, load balancer and others. It's designed to have same name with the Kubernetes Service and can be customized for individual port.
func (*ApisixUpstream) DeepCopy ¶
func (in *ApisixUpstream) DeepCopy() *ApisixUpstream
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixUpstream.
func (*ApisixUpstream) DeepCopyInto ¶
func (in *ApisixUpstream) DeepCopyInto(out *ApisixUpstream)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixUpstream) DeepCopyObject ¶
func (in *ApisixUpstream) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixUpstreamConfig ¶
type ApisixUpstreamConfig struct { // LoadBalancer represents the load balancer configuration for Kubernetes Service. // The default strategy is round robin. // +optional LoadBalancer *LoadBalancer `json:"loadbalancer,omitempty" yaml:"loadbalancer,omitempty"` // The scheme used to talk with the upstream. // Now value can be http, grpc. // +optional Scheme string `json:"scheme,omitempty" yaml:"scheme,omitempty"` // How many times that the proxy (Apache APISIX) should do when // errors occur (error, timeout or bad http status codes like 500, 502). // +optional Retries *int `json:"retries,omitempty" yaml:"retries,omitempty"` // Timeout settings for the read, send and connect to the upstream. // +optional Timeout *UpstreamTimeout `json:"timeout,omitempty" yaml:"timeout,omitempty"` // The health check configurations for the upstream. // +optional HealthCheck *HealthCheck `json:"healthCheck,omitempty" yaml:"healthCheck,omitempty"` // Set the client certificate when connecting to TLS upstream. // +optional TLSSecret *ApisixSecret `json:"tlsSecret,omitempty" yaml:"tlsSecret,omitempty"` // Subsets groups the service endpoints by their labels. Usually used to differentiate // service versions. // +optional Subsets []ApisixUpstreamSubset `json:"subsets,omitempty" yaml:"subsets,omitempty"` }
ApisixUpstreamConfig contains rich features on APISIX Upstream, for instance load balancer, health check and etc.
func (*ApisixUpstreamConfig) DeepCopy ¶
func (in *ApisixUpstreamConfig) DeepCopy() *ApisixUpstreamConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixUpstreamConfig.
func (*ApisixUpstreamConfig) DeepCopyInto ¶
func (in *ApisixUpstreamConfig) DeepCopyInto(out *ApisixUpstreamConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixUpstreamList ¶
type ApisixUpstreamList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata" yaml:"metadata"` Items []ApisixUpstream `json:"items,omitempty" yaml:"items,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ApisixUpstreamList) DeepCopy ¶
func (in *ApisixUpstreamList) DeepCopy() *ApisixUpstreamList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixUpstreamList.
func (*ApisixUpstreamList) DeepCopyInto ¶
func (in *ApisixUpstreamList) DeepCopyInto(out *ApisixUpstreamList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApisixUpstreamList) DeepCopyObject ¶
func (in *ApisixUpstreamList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApisixUpstreamSpec ¶
type ApisixUpstreamSpec struct { ApisixUpstreamConfig `json:",inline" yaml:",inline"` PortLevelSettings []PortLevelSettings `json:"portLevelSettings,omitempty" yaml:"portLevelSettings,omitempty"` }
ApisixUpstreamSpec describes the specification of ApisixUpstream.
func (*ApisixUpstreamSpec) DeepCopy ¶
func (in *ApisixUpstreamSpec) DeepCopy() *ApisixUpstreamSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixUpstreamSpec.
func (*ApisixUpstreamSpec) DeepCopyInto ¶
func (in *ApisixUpstreamSpec) DeepCopyInto(out *ApisixUpstreamSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApisixUpstreamSubset ¶
type ApisixUpstreamSubset struct { // Name is the name of subset. Name string `json:"name" yaml:"name"` // Labels is the label set of this subset. Labels map[string]string `json:"labels" yaml:"labels"` }
ApisixUpstreamSubset defines a single endpoints group of one Service.
func (*ApisixUpstreamSubset) DeepCopy ¶
func (in *ApisixUpstreamSubset) DeepCopy() *ApisixUpstreamSubset
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApisixUpstreamSubset.
func (*ApisixUpstreamSubset) DeepCopyInto ¶
func (in *ApisixUpstreamSubset) DeepCopyInto(out *ApisixUpstreamSubset)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheck ¶
type HealthCheck struct { Active *ActiveHealthCheck `json:"active" yaml:"active"` Passive *PassiveHealthCheck `json:"passive,omitempty" yaml:"passive,omitempty"` }
HealthCheck describes the upstream health check parameters.
func (*HealthCheck) DeepCopy ¶
func (in *HealthCheck) DeepCopy() *HealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck.
func (*HealthCheck) DeepCopyInto ¶
func (in *HealthCheck) DeepCopyInto(out *HealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancer ¶
type LoadBalancer struct { Type string `json:"type" yaml:"type"` // The HashOn and Key fields are required when Type is "chash". // HashOn represents the key fetching scope. HashOn string `json:"hashOn,omitempty" yaml:"hashOn,omitempty"` // Key represents the hash key. Key string `json:"key,omitempty" yaml:"key,omitempty"` }
LoadBalancer describes the load balancing parameters.
func (*LoadBalancer) DeepCopy ¶
func (in *LoadBalancer) DeepCopy() *LoadBalancer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer.
func (*LoadBalancer) DeepCopyInto ¶
func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PassiveHealthCheck ¶
type PassiveHealthCheck struct { Type string `json:"type,omitempty" yaml:"type,omitempty"` Healthy *PassiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"` Unhealthy *PassiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"` }
PassiveHealthCheck defines the conditions to judge whether an upstream node is healthy with the passive manager.
func (*PassiveHealthCheck) DeepCopy ¶
func (in *PassiveHealthCheck) DeepCopy() *PassiveHealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PassiveHealthCheck.
func (*PassiveHealthCheck) DeepCopyInto ¶
func (in *PassiveHealthCheck) DeepCopyInto(out *PassiveHealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PassiveHealthCheckHealthy ¶
type PassiveHealthCheckHealthy struct { HTTPCodes []int `json:"httpCodes,omitempty" yaml:"httpCodes,omitempty"` Successes int `json:"successes,omitempty" yaml:"successes,omitempty"` }
PassiveHealthCheckHealthy defines the conditions to judge whether an upstream node is healthy with the passive manner.
func (*PassiveHealthCheckHealthy) DeepCopy ¶
func (in *PassiveHealthCheckHealthy) DeepCopy() *PassiveHealthCheckHealthy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PassiveHealthCheckHealthy.
func (*PassiveHealthCheckHealthy) DeepCopyInto ¶
func (in *PassiveHealthCheckHealthy) DeepCopyInto(out *PassiveHealthCheckHealthy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PassiveHealthCheckUnhealthy ¶
type PassiveHealthCheckUnhealthy struct { HTTPCodes []int `json:"httpCodes,omitempty" yaml:"httpCodes,omitempty"` HTTPFailures int `json:"httpFailures,omitempty" yaml:"http_failures,omitempty"` TCPFailures int `json:"tcpFailures,omitempty" yaml:"tcpFailures,omitempty"` Timeouts int `json:"timeout,omitempty" yaml:"timeout,omitempty"` }
PassiveHealthCheckUnhealthy defines the conditions to judge whether an upstream node is unhealthy with the passive manager.
func (*PassiveHealthCheckUnhealthy) DeepCopy ¶
func (in *PassiveHealthCheckUnhealthy) DeepCopy() *PassiveHealthCheckUnhealthy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PassiveHealthCheckUnhealthy.
func (*PassiveHealthCheckUnhealthy) DeepCopyInto ¶
func (in *PassiveHealthCheckUnhealthy) DeepCopyInto(out *PassiveHealthCheckUnhealthy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Plugin ¶
type Plugin struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Enable bool `json:"enable,omitempty" yaml:"enable,omitempty"` Config Config `json:"config,omitempty" yaml:"config,omitempty"` ConfigSet ConfigSet `json:"config_set,omitempty" yaml:"config_set,omitempty"` }
func (*Plugin) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plugin.
func (*Plugin) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortLevelSettings ¶
type PortLevelSettings struct { ApisixUpstreamConfig `json:",inline" yaml:",inline"` // Port is a Kubernetes Service port, it should be already defined. Port int32 `json:"port" yaml:"port"` }
PortLevelSettings configures the ApisixUpstreamConfig for each individual port. It inherits configurations from the outer level (the whole Kubernetes Service) and overrides some of them if they are set on the port level.
func (*PortLevelSettings) DeepCopy ¶
func (in *PortLevelSettings) DeepCopy() *PortLevelSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortLevelSettings.
func (*PortLevelSettings) DeepCopyInto ¶
func (in *PortLevelSettings) DeepCopyInto(out *PortLevelSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpstreamTimeout ¶
type UpstreamTimeout struct { Connect metav1.Duration `json:"connect,omitempty" yaml:"connect,omitempty"` Send metav1.Duration `json:"send,omitempty" yaml:"send,omitempty"` Read metav1.Duration `json:"read,omitempty" yaml:"read,omitempty"` }
UpstreamTimeout is settings for the read, send and connect to the upstream.
func (*UpstreamTimeout) DeepCopy ¶
func (in *UpstreamTimeout) DeepCopy() *UpstreamTimeout
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpstreamTimeout.
func (*UpstreamTimeout) DeepCopyInto ¶
func (in *UpstreamTimeout) DeepCopyInto(out *UpstreamTimeout)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.