➜ infra git:(main) ✗ helm secrets -n argocd upgrade --install
argocd-apps
argo/argocd-apps
-f values/argocd-apps.yaml
[helm-secrets] Decrypt skipped: values/argocd-apps.yaml
Release "argocd-apps" does not exist. Installing it now.
Error: 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
Error: plugin "secrets" exited with error
Well, the helm complains about ObjectMeta.metadata.name Let’s see what’s there.
➜ infra git:(main) ✗ helm secrets -n argocd template
argocd-apps
argo/argocd-apps
-f values/argocd-apps.yaml
[helm-secrets] Decrypt skipped: values/argocd-apps.yaml
---
# Source: argocd-apps/templates/applications.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: 0
namespace: argocd
Zero??? Maybe something is wrong in the values?
➜ infra git:(main) ✗ helm secrets decrypt values/argocd-apps.yaml
applications:
- name: apps
namespace: argocd
No, that’s right. Why 0?