[apisix] Implement router interface and observer interface

Signed-off-by: Gallardot <tttick@163.com>
This commit is contained in:
Gallardot
2022-12-06 14:46:42 +05:30
committed by Sanskar Jaiswal
parent ec7066b31b
commit 3e9fe97ba3
39 changed files with 2170 additions and 2 deletions
+4
View File
@@ -80,6 +80,10 @@ type CanarySpec struct {
// +optional
IngressRef *LocalObjectReference `json:"ingressRef,omitempty"`
// Reference to APISIX route resource
// +optional
RouteRef *LocalObjectReference `json:"routeRef,omitempty"`
// Reference to Gloo Upstream resource. Upstream config is copied from
// the referenced upstream to the upstreams generated by flagger.
// +optional
+1
View File
@@ -1,6 +1,7 @@
package v1beta1
const (
ApisixProvider string = "apisix"
AppMeshProvider string = "appmesh"
LinkerdProvider string = "linkerd"
IstioProvider string = "istio"
@@ -458,6 +458,11 @@ func (in *CanarySpec) DeepCopyInto(out *CanarySpec) {
*out = new(LocalObjectReference)
**out = **in
}
if in.RouteRef != nil {
in, out := &in.RouteRef, &out.RouteRef
*out = new(LocalObjectReference)
**out = **in
}
if in.UpstreamRef != nil {
in, out := &in.UpstreamRef, &out.UpstreamRef
*out = new(CrossNamespaceObjectReference)