diff --git a/manifests/crds/rollout-crd.yaml b/manifests/crds/rollout-crd.yaml index 0d1fa09528..08f834ed1e 100644 --- a/manifests/crds/rollout-crd.yaml +++ b/manifests/crds/rollout-crd.yaml @@ -753,6 +753,13 @@ spec: trafficSplitName: type: string type: object + traefik: + properties: + service: + type: string + required: + - service + type: object type: object type: object type: object diff --git a/manifests/install.yaml b/manifests/install.yaml index 31af7b4ca2..1ed8ef3ff4 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -11721,6 +11721,13 @@ spec: trafficSplitName: type: string type: object + traefik: + properties: + service: + type: string + required: + - service + type: object type: object type: object type: object diff --git a/manifests/namespace-install.yaml b/manifests/namespace-install.yaml index 744aebf18b..f1b4ad00c1 100644 --- a/manifests/namespace-install.yaml +++ b/manifests/namespace-install.yaml @@ -11721,6 +11721,13 @@ spec: trafficSplitName: type: string type: object + traefik: + properties: + service: + type: string + required: + - service + type: object type: object type: object type: object diff --git a/pkg/apiclient/rollout/rollout.swagger.json b/pkg/apiclient/rollout/rollout.swagger.json index 10d5eb02d0..6dc1d40b3e 100644 --- a/pkg/apiclient/rollout/rollout.swagger.json +++ b/pkg/apiclient/rollout/rollout.swagger.json @@ -1524,6 +1524,10 @@ "appMesh": { "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.AppMeshTrafficRouting", "title": "AppMesh holds specific configuration to use AppMesh to route traffic" + }, + "traefik": { + "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.TraefikTrafficRouting", + "title": "Traefik holds specific configuration to use Traefik to route traffic" } }, "title": "RolloutTrafficRouting hosts all the different configuration for supported service meshes to enable more fine-grained traffic routing" @@ -1592,6 +1596,15 @@ }, "description": "TLSRoute holds the information on the virtual service's TLS/HTTPS routes that are desired to be matched for changing weights." }, + "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.TraefikTrafficRouting": { + "type": "object", + "properties": { + "service": { + "type": "string" + } + }, + "title": "TraefikTrafficRouting defines the configuration required to use Traefik as traffic router" + }, "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.TrafficWeights": { "type": "object", "properties": { diff --git a/pkg/apis/rollouts/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/rollouts/v1alpha1/zz_generated.deepcopy.go index 9eed7b6376..23c49d6c09 100644 --- a/pkg/apis/rollouts/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/rollouts/v1alpha1/zz_generated.deepcopy.go @@ -2193,6 +2193,11 @@ func (in *RolloutTrafficRouting) DeepCopyInto(out *RolloutTrafficRouting) { *out = new(AppMeshTrafficRouting) (*in).DeepCopyInto(*out) } + if in.Traefik != nil { + in, out := &in.Traefik, &out.Traefik + *out = new(TraefikTrafficRouting) + **out = **in + } return } @@ -2406,6 +2411,22 @@ func (in *TemplateStatus) DeepCopy() *TemplateStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TraefikTrafficRouting) DeepCopyInto(out *TraefikTrafficRouting) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraefikTrafficRouting. +func (in *TraefikTrafficRouting) DeepCopy() *TraefikTrafficRouting { + if in == nil { + return nil + } + out := new(TraefikTrafficRouting) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TrafficWeights) DeepCopyInto(out *TrafficWeights) { *out = *in