Skip to content

Cannot install the plugin with ArgoCD #980

Description

@mmelcot

I try to install this plugin with ArgoCD like this:

---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: cloudnativepg-operator
  namespace: argocd
  annotations:
    argocd.argoproj.io/sync-wave: '0'
  labels:
    type: postgres
spec:
  project: myproject
  sources:
    - chart: cloudnative-pg
      repoURL: https://cloudnative-pg.github.io/charts
      targetRevision: 0.28.2
      helm:
        releaseName: cloudnative-pg
    # Install the barman plugin
    - repoURL: https://github.com/cloudnative-pg/plugin-barman-cloud
      targetRevision: v0.13.0
      path: .
  destination:
    server: https://kubernetes.default.svc
    namespace: cnpg-system
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions: [CreateNamespace=true, ServerSideApply=true]

ArgoCD complains with:

ComparisonError: Failed to load target state: failed to unmarshal manifests for source 2 of 2: Object 'Kind' is missing in '{".":"0.13.0","metadata":{"annotations":{"argocd.argoproj.io/tracking-id":"cloudnativepg-operator:/:cnpg-system/"}}}'
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions