Skip to content

Conversation

@ksawerykarwacki
Copy link

Summary

Add support for dynamically loading ArgoCD shard URLs from Kubernetes secrets without requiring Helm chart redeployment.

  • Secrets labeled with kargo.akuity.io/argocd-shard=true in the Kargo namespace are watched and used to configure ArgoCD shard URLs
  • Dynamic shards override static (Helm) configuration with the same name
  • When a secret is deleted, any static configuration is restored
  • Backwards compatible - existing Helm configuration continues to work unchanged

Secret Format

apiVersion: v1
kind: Secret
metadata:
  name: argocd-shard-production
  namespace: kargo
  labels:
    kargo.akuity.io/argocd-shard: "true"
type: Opaque
stringData:
  name: "production"                      # Shard identifier (empty for default)
  url: "https://argocd.example.com"       # ArgoCD base URL

Closes #4971

@ksawerykarwacki ksawerykarwacki requested a review from a team as a code owner December 19, 2025 14:34
@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit ca14832
🔍 Latest deploy log https://app.netlify.com/projects/docs-kargo-io/deploys/69456277a0247300085f29c0
😎 Deploy Preview https://deploy-preview-5521.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ksawerykarwacki
Copy link
Author

Any chances that soemone will look at this? @krancour, @hiddeco?

This is small change but lack of it is rather frustrating in the sharded deployement.

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.

Allow dynamic loading of argocd urls

1 participant