Skip to content
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

Remove server side call from podmonitoring template #329

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

kenske
Copy link
Contributor

@kenske kenske commented Aug 12, 2022

The .Capabilities.APIVersions.Has is server side, which means it breaks in workflows where helm template is used (ArgoCD for example)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
The `.Capabilities.APIVersions.Has` is server side, which means it breaks in workflows where `helm template` is used (ArgoCD for example)
@stakater-user
Copy link
Contributor

@kenske Image is available for testing. docker pull stakater/reloader:SNAPSHOT-PR-329-328442c1

@faizanahmad055
Copy link
Contributor

@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.

@kenske
Copy link
Contributor Author

kenske commented Sep 28, 2022

@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.

@faizanahmad055 faizanahmad055 merged commit 99349ce into stakater:master Sep 29, 2022
@kenske kenske deleted the patch-1 branch September 30, 2022 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants