Open sdickhoven opened 1 year ago
Hello! Thank you for filing an issue.
The maintainers will triage your issue shortly.
In the meantime, please take a look at the troubleshooting guide for bug reports.
If this is a feature request, please review our contribution guidelines.
Checks
Controller Version
0.26.0
Helm Chart Version
0.21.1
CertManager Version
1.8.0
Deployment Method
Helm
cert-manager installation
n/a. this has nothing to do with the controller. this is a helm chart bug.
Checks
Resource Definitions
To Reproduce
Describe the bug
the
Service
by the name oftest-actions-runner-controller-github-webhook-server
has the following labels:the
ServiceMonitor
by the name oftest-actions-runner-controller-github-webhook-s-service-monitor
(which should be selecting the aboveService
) has the label selectors:i.e. this
ServiceMonitor
does not select anyService
s (and certainly not theService
of the github-webhook-server).furthermore, the
ServiceMonitor
for the main controller component (test-actions-runner-controller-service-monitor
) now selects a mixed set of controller- and github-webhook-server pods (because bothService
s have the same name & instance labels)... which means that the metrics for the main controller component will be somewhat "confused" when the github-webhook-server component is enabled.Describe the expected behavior
there's an error in the labeling logic for the github-webhook-server
Service
.this:
https://github.com/actions/actions-runner-controller/blob/actions-runner-controller-0.21.1/charts/actions-runner-controller/templates/githubwebhook.service.yaml#L7-L8
should be
by the same token, it would probably be more correct to add the same labels to the
ServiceMonitor
itself as well... though that would be a cosmetic fix only:https://github.com/actions/actions-runner-controller/blob/actions-runner-controller-0.21.1/charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml#L5-L6
alternatively, you could turn the
ServiceMonitor
for the github-webhook-server component into aPodMonitor
since the pod labels are already correct.if you did that, you would no longer need:
https://github.com/actions/actions-runner-controller/blob/actions-runner-controller-0.21.1/charts/actions-runner-controller/templates/githubwebhook.service.yaml#L19-L23
however, that would make the helm config
metrics.serviceMonitor
somewhat misleading.Whole Controller Logs
Whole Runner Pod Logs
Additional Context
on a related note...
the label
app.kubernetes.io/instance
is not used correctly in this helm chart.i realize that this was most likely a concession to backward compatibility. but if you ever have to release a breaking change for the helm chart, you might as well fix the labeling to be e.g.:
and
instead of
and