Point the ArgoCD app directly at the forge-mirrored upstream repo (mirrors/cloudnative-pg) using directory.include to select the specific release manifest. This eliminates both the Helm chart dependency and the need to vendor large manifest files. Upgrades become a two-line change: targetRevision and directory.include. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
735 B
YAML
24 lines
735 B
YAML
# CloudNativePG Operator - PostgreSQL for Kubernetes
|
|
# Deploys the operator only; PostgreSQL clusters are created separately
|
|
#
|
|
# Mirror of https://github.com/cloudnative-pg/cloudnative-pg
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: cloudnative-pg
|
|
namespace: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: ssh://forgejo@forge.ops.eblu.me:2222/mirrors/cloudnative-pg.git
|
|
targetRevision: v1.27.1
|
|
path: releases
|
|
directory:
|
|
include: 'cnpg-1.27.1.yaml'
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: cnpg-system
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true # Required for large CRDs that exceed annotation size limit
|