-
Notifications
You must be signed in to change notification settings - Fork 4
[backport]: manifest servicemonitor cleanup + label selector for controller #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,8 +9,9 @@ spec: | |||||||||||||||||||||||||||
| selector: | ||||||||||||||||||||||||||||
| matchLabels: | ||||||||||||||||||||||||||||
| control-plane: controller-manager | ||||||||||||||||||||||||||||
| app.kubernetes.io/name: workload-variant-autoscaler | ||||||||||||||||||||||||||||
| endpoints: | ||||||||||||||||||||||||||||
| - port: http | ||||||||||||||||||||||||||||
| scheme: http | ||||||||||||||||||||||||||||
| interval: 30s | ||||||||||||||||||||||||||||
| path: /metrics | ||||||||||||||||||||||||||||
| path: /metrics | ||||||||||||||||||||||||||||
|
Comment on lines
14
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Major security/correctness gap: plaintext endpoint config (CWE-319) and likely port mismatch Severity: Major. Using Suggested fix endpoints:
- - port: http
- scheme: http
+ - port: https
+ scheme: https
interval: 30s
- path: /metrics
+ path: /metrics
+ tlsConfig:
+ insecureSkipVerify: true
+ bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/tokenAs per coding guidelines, 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore cross-namespace target selection (
namespaceSelector)metadata.namespaceisworkload-variant-autoscaler-monitoring(Line 5), while the metrics Service is inworkload-variant-autoscaler-system(config/default/metrics_service.yaml:1-18). Withoutspec.namespaceSelector.matchNames, this ServiceMonitor won’t discover any targets.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents