-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(argo-cd): Add option to disable API checks in all servicemonitor #2729
Conversation
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Signed-off-by: Psycho Mantys <psycho.mantys@gmail.com>
Hi @psychomantys I am not a fan of this approach. We had this request already one time and declined it.
For this, you need to execute helm with the parameter helm template argocd \
oci://ghcr.io/argoproj/argo-helm/argo-cd \
--api-versions monitoring.coreos.com/v1 \
--values argocd-values.yaml
There is first class support for this also in kustomize: apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: argo-cd
repo: oci://ghcr.io/argoproj/argo-helm
version: 7.0.0
releaseName: argocd
apiVersions: #
- monitoring.coreos.com/v1 # see this structure
valuesInline:
controller:
metrics:
enabled: true
serviceMonitor:
enabled: true
server:
metrics:
enabled: true
serviceMonitor:
enabled: true
repoServer:
metrics:
enabled: true
serviceMonitor:
enabled: true
Update: repositories:
- name: argo
url: https://argoproj.github.io/argo-helm
apiVersions:
- monitoring.coreos.com/v1
releases:
- name: argocd
namespace: argocd
chart: argo/argo-cd
values:
- argocd-values.yaml
|
Thank you for your contribution and for sharing your perspective! I understand your point of view, and i agree that relying solely on external tools for api checks is ideal for wider range of use cases. To address this, I've implemented the functionality with an optional variable. By default, the functionality will be disabled, preserving the current behavior and ensuring compatibility with existing workflows. For users who prefer this approach, the variable can be easily enabled in the This approach aims to strike a balance between providing flexibility and maintaining compatibility with existing tooling and workflows. |
I think I was clear with my explanation, no? 😃 We already discussed this inside the maintainers chat and we'd like to decline the idea. I mean it is hard to say "no", we really appreciate every contribution. But supporting all edge cases of users also means more work (due to more testing) for us. Back to topic? What tool(s) are you using? |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What this PR does / why we need it:
This helm attempts to verify the API version during deployment processes. However, in some environments, direct access to the API is not available beforehand, which complicates the deployment.
This situation is particularly problematic in two notable scenarios:
My PR proposes modifications that bypass the API version check under these specific conditions, ensuring smoother and more flexible deployments in environments lacking direct API connectivity.
Checklist: