Reloader
Reloader copied to clipboard
Remove server side call from podmonitoring template
The .Capabilities.APIVersions.Has
is server side, which means it breaks in workflows where helm template
is used (ArgoCD for example)
@kenske Image is available for testing. docker pull stakater/reloader:SNAPSHOT-PR-329-328442c1
@kenske I didn't understand, can you please explain your use case? We do not want the podMonitor to be enabled if it doesn't exist in the cluster.
@faizanahmad055 If you're generating k8s manifests using helm template
, the .Capabilities.APIVersions.Has
function won't work. There are many use cases for helm template
, including applying the changes to an external cluster using GitOps.
I thought that having .Values.reloader.podMonitor.enabled
would be enough, and it will error out if the monitoring API is not available anyway.