Conversation
Generated 87 ArgoCD Application objects mirroring the featureset directory structure from charts/opscenter-features/templates/featuresets/. Each Application includes: - Proper helm values (ace-user-roles, platform config, monitoring) - ignoreDifferences for fields that change between helm template runs: - Secret /data (certificate data) - WebhookConfiguration caBundle - Deployment/StatefulSet reload/checksum annotations - APIService caBundle - CRD spec/annotations Charts are organized into 18 featureset directories: - capi-capa, capi-capg, capi-core, crossplane - ocm-hub, ocm-spoke - opscenter-backup, opscenter-core, opscenter-cost - opscenter-datastore, opscenter-networking, opscenter-observability - opscenter-policy-management, opscenter-secret-management - opscenter-security, opscenter-storage, opscenter-tools - saas-core
A standalone Go tool that generates ArgoCD Application objects for helm charts by rendering each chart multiple times using the Helm Go SDK. Key features: - Uses Helm Go SDK directly (no shell-out to helm CLI) - Pulls charts from OCI registries via registry.Client - Renders with action.NewInstall in dry-run mode (kubeVersion v1.31.0) - Memory storage driver - no kube cluster needed - Detects fields that change between renders and generates ignoreDifferences Detected change patterns: - Secret /data (certificate fields ca.crt, tls.crt, tls.key) - WebhookConfiguration caBundle (via jqPathExpressions) - APIService caBundle - Deployment/StatefulSet annotations (reload, checksum~1apiregistration.yaml) Includes comprehensive test suite: - TestDiffResourcesUnit: unit tests for diff logic - TestArgoCDAppStructure: validates generated Application structure - TestSpecificCharts: integration tests for kubedb, kubevault, kubestash, voyager - TestAllOpscenterCharts: E2E test over all 87 opscenter-features charts Usage: cd cmd/argocd-gen go run . --chart kubedb --version v2026.2.26 --namespace kubedb Signed-off-by: Tamal Saha <tamal@appscode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
argocd-gentool that uses Helm Go SDK to detect changing fields and generate ignoreDifferencescharts/opscenter-features/templates/featuresets/Changes
argocd/ (87 ArgoCD Application objects)
cmd/argocd-gen/ (Helm Go SDK tool)
Testing
Verified