Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ set -o nounset
set -o errexit
set -o pipefail

if test -z "${TELEMETRY_ENABLED}"
then
if [[ "${JOB_NAME}" =~ (^|[^[:digit:]]+)4.11([^[:digit:]]+|$) ]]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok having this off on 4.12 minors and multi-upgrades too?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All relevent versions of the monitoring stack understand:

telemeterClient:
  enabled: false

The issue is whether the origin suite understands that means Telemetry has been disabled. And 4.11->4.12 update jobs are controlled by a 4.12 origin suite, so they're fine with Telemetry disabled. The current JOB_NAME matching will disable it for those jobs by default, because they mention 4.11, but 🤷, we don't need to check Telemetry in those runs, and if we decide we do, we can go for a fancier regexp or explicitly set TELEMETRY_ENABLED: "true" for those jobs.

then
TELEMETRY_ENABLED=true
echo "TELEMETRY_ENABLED is empty, defaulting to '${TELEMETRY_ENABLED}' for the 4.11 ${JOB_NAME}"
else
TELEMETRY_ENABLED=false
echo "TELEMETRY_ENABLED is empty, defaulting to '${TELEMETRY_ENABLED}' for the not-4.11 ${JOB_NAME}"
fi
fi

if test true = "${TELEMETRY_ENABLED}"
then
echo "Nothing to do with TELEMETRY_ENABLED='${TELEMETRY_ENABLED}'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ ref:
memory: 100Mi
env:
- name: TELEMETRY_ENABLED
default: "true"
default: ""
documentation: |-
Enable Telemetry:
* "false" - do not enable Telemetry
* "true" (default) - enable Telemetry
* "false" (default for most jobs) - do not enable Telemetry
* "true" (default when JOB_NAME includes 4.11) - enable Telemetry
documentation: |-
The configure telemetry step generates a "${SHARED_DIR}/manifest_cluster-monitoring-config.yaml" manifest, or manipulates the manifest if it already exists, to configure telemeterClient's enabled property.