Azure-Samples / Azure-Samples/aks-platform-engineering

AKS workload cluster HelmChartProxy ArgoCD app error

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
160
Forks
86
PR merge metrics
No merged PRs in 30d

Description

### 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:
Annotations:
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:
```

### Expected/desired behavior
> The ArgoCD application installed automatically properly connects to the repository URL for the app without errors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.