Bump the CCP prometheus-collector image tag across toggle file, featureflag readers, and regenerate helm fixtures in aks-rp. Use when "update promcollector image tag", "bump prometheus-collector CCP tag", or "ccp update-prodimage".
Update the CCP prometheus-collector container image tag across all required files in aks-rp, then regenerate helm fixtures and chart snapshots.
| Input | Format | Example |
|---|---|---|
| New image tag | <version>-main-<MM-DD-YYYY>-<build-id>-ccp | 6.24.1-main-11-14-2025-15146744-ccp |
toggles/global/sigs/containerinsights/ama-metrics-ccp-promcollector-imagetag.yamlccp/control-plane-core/helmvalues/featureflag/ccp_plugins_reader.goccp/core-addon-synth/helmvalues/featureflag/ccp_plugins_reader.gooverlaymgr/server/helmvalues/featureflag/ccp_plugins_reader.goNote: Files 3 and 4 are auto-synced copies of file 2. They carry a header comment saying not to edit directly, but we update all four in one shot to keep the branch green locally. CI sync will produce a no-op diff.
grep 'defaultValue' toggles/global/sigs/containerinsights/ama-metrics-ccp-promcollector-imagetag.yaml
File: toggles/global/sigs/containerinsights/ama-metrics-ccp-promcollector-imagetag.yaml
Replace the defaultValue with the new tag:
defaultValue: "<NEW_TAG>"
Only the defaultValue line changes. Leave all rules/matchers untouched.
Update the default value in the AzureMonitorMetricsCCPPromCollectorImageTag function across all three copies of ccp_plugins_reader.go.
File: ccp/control-plane-core/helmvalues/featureflag/ccp_plugins_reader.go
In the function AzureMonitorMetricsCCPPromCollectorImageTag, replace the old tag string with the new tag in the getStringWithContext call:
return t.getStringWithContext(ctx, "ama-metrics-ccp-promcollector-imagetag", t.newEntity(e), "<NEW_TAG>")
File: ccp/core-addon-synth/helmvalues/featureflag/ccp_plugins_reader.go
Same edit as 2a.
File: overlaymgr/server/helmvalues/featureflag/ccp_plugins_reader.go
Same edit as 2a.
Run from the aks-rp root (${workspaceFolder:aks-rp}):
make generate-helm-fixtures
make render-ccp-plugin-adapter-chart-snapshots
make render-ccp-plugin-chart-snapshots
These regenerate golden files that embed the image tag. Without this step, CI snapshot tests will fail.
git diff to confirm only the expected files changed:
| What | Where |
|---|---|
| Toggle YAML | toggles/global/sigs/containerinsights/ama-metrics-ccp-promcollector-imagetag.yaml |
| Primary reader | ccp/control-plane-core/helmvalues/featureflag/ccp_plugins_reader.go |
| Synced reader (synth) | ccp/core-addon-synth/helmvalues/featureflag/ccp_plugins_reader.go |
| Synced reader (overlaymgr) | overlaymgr/server/helmvalues/featureflag/ccp_plugins_reader.go |
| Make targets | generate-helm-fixtures, render-ccp-plugin-adapter-chart-snapshots, render-ccp-plugin-chart-snapshots |