From 525b9c7f16decfa2c9676f676b3733900b05f586 Mon Sep 17 00:00:00 2001 From: Julie Dion <65612019+ocatarinetabellatchitchix@users.noreply.github.com> Date: Thu, 27 Jul 2023 08:58:18 -0400 Subject: [PATCH] feat(istio-ingress-gateway): Sync with recent changes Enable accessLogging (#440) --- stable/istio-ingress-gateway/Chart.yaml | 2 +- .../templates/telemetry.yaml | 16 ++++++++++++++++ stable/istio-ingress-gateway/values.yaml | 6 ++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 stable/istio-ingress-gateway/templates/telemetry.yaml diff --git a/stable/istio-ingress-gateway/Chart.yaml b/stable/istio-ingress-gateway/Chart.yaml index dbb2e261..6311d405 100644 --- a/stable/istio-ingress-gateway/Chart.yaml +++ b/stable/istio-ingress-gateway/Chart.yaml @@ -18,7 +18,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.0.3 +version: 3.1.0 dependencies: - name: gateway diff --git a/stable/istio-ingress-gateway/templates/telemetry.yaml b/stable/istio-ingress-gateway/templates/telemetry.yaml new file mode 100644 index 00000000..a5b44641 --- /dev/null +++ b/stable/istio-ingress-gateway/templates/telemetry.yaml @@ -0,0 +1,16 @@ +{{- if .Values.telemetry.accessLogging.enabled }} +apiVersion: telemetry.istio.io/v1alpha1 +kind: Telemetry +metadata: + name: {{ include "istio-ingress-gateway.fullname" . }}-access-logging + namespace: {{ .Release.Namespace }} + labels: + {{- include "istio-ingress-gateway.labels" . | nindent 4 }} +spec: + selector: + matchLabels: + {{- include "istio-ingress-gateway.selectorLabels" . | nindent 6 }} + accessLogging: + - providers: + - name: envoy +{{- end }} diff --git a/stable/istio-ingress-gateway/values.yaml b/stable/istio-ingress-gateway/values.yaml index 2a510b18..15cebbeb 100644 --- a/stable/istio-ingress-gateway/values.yaml +++ b/stable/istio-ingress-gateway/values.yaml @@ -73,3 +73,9 @@ https: # Extra labels to add to the ClusterRole # Can be used for ClusterRole Aggregation labels: {} + +# Configures Telemetry on the ingress gateway. +telemetry: + # Enable access logging for the entire mesh + accessLogging: + enabled: true