Skip to content

Commit

Permalink
Disable endpoint labels when telemetry v2 is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Laci21 committed Feb 4, 2021
1 parent bfd96c4 commit 72b7d7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/resources/istiod/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ func (r *Reconciler) containerEnvs() []apiv1.EnvVar {
},
}

if !util.PointerToBool(r.Config.Spec.MixerlessTelemetry.Enabled) {
envs = append(envs, apiv1.EnvVar{
Name: "PILOT_ENDPOINT_TELEMETRY_LABEL",
Value: "false",
})
}

if util.PointerToBool(r.Config.Spec.Istiod.MultiControlPlaneSupport) {
envs = append(envs, []apiv1.EnvVar{
{
Expand Down

0 comments on commit 72b7d7d

Please sign in to comment.