-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add GitHub Camo readme support for Status Badges when having non-public deployments #21495
Comments
That Ingress config would be heavily org-specific, no? Would it make sense to develop one for your environment and then add it as an example to Argo CD docs? |
That is correct. In the current documentation, we do not provide any example of public ingresses for Argo CD. That depends on everyones infrastructure. People are also responsible to configure web application firewall and other security mechanism they deem necessary when exposing public endpoints for their instance. However, the badge documentation could be improved to mention the need to use a public endpoint, and to configure |
Interesting, I wasn't aware of the I've managed to get it to work with following config, where I use Tailscale as ingressClass using their funnel-service. configs:
cm:
statusbadge.enabled: true
statusbadge.url: https://argocd-funnel.example.ts.net/
applicationSet:
ingress:
enabled: true
annotations:
tailscale.com/funnel: "true"
ingressClassName: tailscale
hostname: argocd-funnel.example.ts.net
tls: true
extraPaths:
- path: /api/badge
pathType: Prefix
backend:
service:
name: argocd-server
port:
number: 443 |
The only "issue" with that is that there is a small thing not fully working on the application details page in the Status Badge section. When choosing Markdown for instance , the generated return is basically But since the |
@tobiasehlert are you willing to submit a doc PR to update https://argo-cd.readthedocs.io/en/stable/user-guide/status-badge/
|
@agaudreault, created #21529 to add a note to the docs page :) |
Summary
Add additional ingress (as for Generator-Git webhooks) to enable
/api/badge
calls to work for GitHub Camo service to collect Status Badges.Motivation
When using any Status Badge pointing to an ArgoCD that is hosted behind firewalls and only accessible over for instance VPN, any badges that you place in a GitHub readme.md file are not working.
It would be really nice to have some type of endpoint supporting for
/api/badge
reachable but nothing else, so that the GitHub Camo (camo.githubusercontent.com) service could collect the image and present it on a readme.md file.Proposal
I think it would be great to have some similar feature as the ingress on the applicationSet that allows webhook-calls from eg. GitHub towards
/api/webhook
to be delivered.Except that the difference here would be only certain path to be delivered, in this case
/api/badge
.Would be probably be something similar to this:
https://argo-cd.readthedocs.io/en/latest/operator-manual/applicationset/Generators-Git/#webhook-configuration
The text was updated successfully, but these errors were encountered: