Repository navigation
Conversation
| collector.DefaultMaxBatchTime, | ||
| logger, | ||
| r.TelemetryLogger, | ||
| ) | ||
| default: | ||
| logger.Info("Unknown collector type, skipping", "type", collectorType) |
There was a problem hiding this comment.
⚠️ Bug: Re-enabling Flux/SchedulerMetrics/KEDA scaler collectors is a silent no-op
This release adds re-enable cases to handleDisabledCollectorsChange for the Argo CD and Flagger collectors only. Several other collectors added in the same release are missing: all eighteen Flux kinds (collector.FluxGitRepository, FluxKustomization, and so on), scheduler_placement_metric and keda_scaler_metrics. If one of these type strings is removed from a CollectionPolicy's disabledCollectors, the loop falls through to default: "Unknown collector type, skipping" and continues. The disable path already deregistered that collector, and nothing puts it back in pendingCollectors, so it stays off until the zxporter pod restarts.
The new buildCollectorFromSpecs helper already builds any collector type listed in resourceCollectorSpecs from the current config. Using it as the default fallback covers these types and any collector added later.
Fall back to the spec table for types without a dedicated case.:
default:
var rt collector.ResourceType
for _, t := range collector.AllResourceTypes() {
if t.String() == collectorType {
rt = t
}
}
replacedCollector = r.buildCollectorFromSpecs(logger, rt, metricsClient)
if replacedCollector == nil {
logger.Info("Unknown collector type, skipping", "type", collectorType)
continue
}
- Apply fix
Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎
CI failed: 1 lint failure in the helm chart tests caused by a line exceeding the maximum character length limit.OverviewOne error pattern was found across 1 analyzed log, indicating a linter failure in the PR code changes. FailuresGolangci-Lint Line Length Violation (confidence: high)
Summary
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
There was a problem hiding this comment.
Configure merge blocking · Maintainers can dismiss this review.
| if err == nil && pool.AppendCertsFromPEM(caData) { | ||
| tlsConfig.RootCAs = pool | ||
| } else { | ||
| tlsConfig.InsecureSkipVerify = true //nolint:gosec // see schedulerMetricsCAFileEnv doc comment. |
| tlsConfig.InsecureSkipVerify = true //nolint:gosec // see schedulerMetricsCAFileEnv doc comment. | ||
| } | ||
| } else { | ||
| tlsConfig.InsecureSkipVerify = true //nolint:gosec // see schedulerMetricsCAFileEnv doc comment. |
Release v0.1.19 of zxporter, published from the internal services monorepo.
The
v0.1.19tag has already been created and points at this branch's tip — ArgoCD and other tag consumers can use it immediately. This PR is only to advance public main to the released commit for browser convenience.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.