From 5e4450dbd56e22bdaa480d2bea2a618471aadacc Mon Sep 17 00:00:00 2001 From: zirain Date: Wed, 10 Jan 2024 01:27:44 +0800 Subject: [PATCH] mark extraStatTags deprecated (#3037) * mark extraStatTags deprecated * release-notes * fix gen --- annotation/annotations.gen.go | 2 +- annotation/annotations.pb.html | 4 ++-- annotation/annotations.yaml | 2 +- mesh/v1alpha1/istio.mesh.v1alpha1.pb.html | 3 ++- mesh/v1alpha1/proxy.pb.go | 1 + mesh/v1alpha1/proxy.proto | 1 + releasenotes/notes/deprecated-extrastattags.yaml | 6 ++++++ 7 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 releasenotes/notes/deprecated-extrastattags.yaml diff --git a/annotation/annotations.gen.go b/annotation/annotations.gen.go index 3d754941..3d3b4f89 100644 --- a/annotation/annotations.gen.go +++ b/annotation/annotations.gen.go @@ -462,7 +462,7 @@ var ( "present in this list.", FeatureStatus: Alpha, Hidden: false, - Deprecated: false, + Deprecated: true, Resources: []ResourceTypes{ Pod, }, diff --git a/annotation/annotations.pb.html b/annotation/annotations.pb.html index 3cf739ae..c28e9c41 100644 --- a/annotation/annotations.pb.html +++ b/annotation/annotations.pb.html @@ -146,9 +146,9 @@ Istio supports to control its behavior. [Pod] Specifies whether or not an Envoy sidecar should enable core dump. - + sidecar.istio.io/extraStatTags - Alpha + Deprecated [Pod] An additional list of tags to extract from the in-proxy Istio Wasm telemetry. Each additional tag needs to be present in this list. diff --git a/annotation/annotations.yaml b/annotation/annotations.yaml index 132bced4..e65039f1 100644 --- a/annotation/annotations.yaml +++ b/annotation/annotations.yaml @@ -476,7 +476,7 @@ annotations: - name: sidecar.istio.io/extraStatTags featureStatus: Alpha description: An additional list of tags to extract from the in-proxy Istio Wasm telemetry. Each additional tag needs to be present in this list. - deprecated: false + deprecated: true hidden: false resources: - Pod diff --git a/mesh/v1alpha1/istio.mesh.v1alpha1.pb.html b/mesh/v1alpha1/istio.mesh.v1alpha1.pb.html index 1dd9f3f4..c2af4326 100644 --- a/mesh/v1alpha1/istio.mesh.v1alpha1.pb.html +++ b/mesh/v1alpha1/istio.mesh.v1alpha1.pb.html @@ -2962,7 +2962,8 @@ No

An additional list of tags to extract from the in-proxy Istio telemetry. These extra tags can be added by configuring the telemetry extension. Each additional tag needs to be present in this list. Extra tags emitted by the telemetry extensions must be listed here so that they can be processed -and exposed as Prometheus metrics.

+and exposed as Prometheus metrics. +Deprecated: istio.stats is a native filter now, this field is no longer needed.

diff --git a/mesh/v1alpha1/proxy.pb.go b/mesh/v1alpha1/proxy.pb.go index cb252578..6d8459f7 100644 --- a/mesh/v1alpha1/proxy.pb.go +++ b/mesh/v1alpha1/proxy.pb.go @@ -944,6 +944,7 @@ type ProxyConfig struct { // added by configuring the telemetry extension. Each additional tag needs to be present in this list. // Extra tags emitted by the telemetry extensions must be listed here so that they can be processed // and exposed as Prometheus metrics. + // Deprecated: `istio.stats` is a native filter now, this field is no longer needed. ExtraStatTags []string `protobuf:"bytes,27,rep,name=extra_stat_tags,json=extraStatTags,proto3" json:"extra_stat_tags,omitempty"` // Topology encapsulates the configuration which describes where the proxy is // located i.e. behind a (or N) trusted proxy (proxies) or directly exposed diff --git a/mesh/v1alpha1/proxy.proto b/mesh/v1alpha1/proxy.proto index d93bb73d..d97f8198 100644 --- a/mesh/v1alpha1/proxy.proto +++ b/mesh/v1alpha1/proxy.proto @@ -510,6 +510,7 @@ message ProxyConfig { // added by configuring the telemetry extension. Each additional tag needs to be present in this list. // Extra tags emitted by the telemetry extensions must be listed here so that they can be processed // and exposed as Prometheus metrics. + // Deprecated: `istio.stats` is a native filter now, this field is no longer needed. repeated string extra_stat_tags = 27; // Topology encapsulates the configuration which describes where the proxy is diff --git a/releasenotes/notes/deprecated-extrastattags.yaml b/releasenotes/notes/deprecated-extrastattags.yaml new file mode 100644 index 00000000..e807ab5f --- /dev/null +++ b/releasenotes/notes/deprecated-extrastattags.yaml @@ -0,0 +1,6 @@ +apiVersion: release-notes/v2 +kind: feature +area: telemetry +releaseNotes: + - | + **Deprecated** extraStatTags in MeshConfig and annotations. This field will be removed in a future release.