Skip to content

AKS workload cluster HelmChartProxy ArgoCD app error #83

@dtzar

Description

@dtzar

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow the readme - new team setup documents.

Any log messages given by the failure

$kubectl describe helmchartproxy argocd-app

Name:         argocd-app
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  addons.cluster.x-k8s.io/v1alpha1
Kind:         HelmChartProxy
Metadata:
  Creation Timestamp:  2024-07-25T23:06:19Z
  Finalizers:
    helmchartproxy.addons.cluster.x-k8s.io
  Generation:        1
  Resource Version:  38792
  UID:               59301810-87dd-45cd-9183-1a221f75a881
Spec:
  Chart Name:  argocd-apps
  Cluster Selector:
  Namespace:  default
  Options:
    Enable Client Cache:  false
    Install:
      Create Namespace:  true
    Timeout:             5m0s
    Upgrade:
      Max History:  10
    Wait:           true
    Wait For Jobs:  true
  Repo URL:         https://argoproj.github.io/argo-helm
  Values Template:  applications:
  - name: apps-infra
    namespace: argocd
    finalizers:
    - resources-finalizer.argocd.argoproj.io
    project: default
    sources:
      - repoURL: https://github.com/Azure-Samples/aks-platform-engineering.git
        path: aks-platform-engineering/tree/main/gitops/apps/infra
        targetRevision: HEAD
    destination:
      server: https://kubernetes.default.svc
      namespace: default
    syncPolicy:
      automated:
        prune: false
        selfHeal: false
      syncOptions:
      - CreateNamespace=true
    revisionHistoryLimit: null
ignoreDifferences:
  - group: apps
    kind: Deployment
    jsonPointers:
    - /spec/replicas
info:
- name: url
  value: https://argoproj.github.io/
Status:
  Conditions:
    Last Transition Time:  2024-07-25T23:06:22Z
    Message:               unable to build kubernetes objects from release manifest: unable to decode "": json: cannot unmarshal number into Go struct field ObjectMeta.metadata.name of type string
    Reason:                HelmInstallOrUpgradeFailed @ HelmReleaseProxy/argocd-apps-aks0-45xk5
    Severity:              Error
    Status:                False
    Type:                  Ready
    Last Transition Time:  2024-07-25T23:06:22Z
    Message:               unable to build kubernetes objects from release manifest: unable to decode "": json: cannot unmarshal number into Go struct field ObjectMeta.metadata.name of type string
    Reason:                HelmInstallOrUpgradeFailed @ HelmReleaseProxy/argocd-apps-aks0-45xk5
    Severity:              Error
    Status:                False
    Type:                  HelmReleaseProxiesReady
    Last Transition Time:  2024-07-25T23:06:20Z
    Status:                True
    Type:                  HelmReleaseProxySpecsUpToDate
  Matching Clusters:
    API Version:        cluster.x-k8s.io/v1beta1
    Kind:               Cluster
    Name:               aks0
    Namespace:          default
  Observed Generation:  1
Events:                 <none>

Expected/desired behavior

The ArgoCD application installed automatically properly connects to the repository URL for the app without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions