mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
[apisix] Implement router interface and observer interface
Signed-off-by: Gallardot <tttick@163.com>
This commit is contained in:
committed by
Sanskar Jaiswal
parent
ec7066b31b
commit
3e9fe97ba3
@@ -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,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)
|
||||
|
||||
Reference in New Issue
Block a user