#160·homelab

ArgoCD Manifest error

Author: brimdorCreated May 10, 2024Updated May 10, 2025
Labelsbug

Similar issue to: https://github.com/khuedoan/homelab/issues/102 When running "make" for the first time, when it gets to the "system" portion, it fails.

system\bootstrap.yml

  • name: Apply ArgoCD manifests kubernetes.core.k8s: resource_definition: "{{ argocd_manifests.stdout }}" apply: true server_side_apply: field_manager: argocd-controller

That task fails and gives the following error: TASK [Apply ArgoCD manifests] ****************************************************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible_collections.kubernetes.core.plugins.module_utils.k8s.exceptions.CoreException: Failed to load resource definition: 'str' object has no attribute 'setdefault' fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to load resource definition: 'str' object has no attribute 'setdefault'"}

To reproduce this error, start over from scratch, to replicate a first time build. You can do this using my reset script I put in a pull request along with other quality of life change suggestions. (https://github.com/khuedoan/homelab/pull/159)

Then run the usual process to build.

  1. make tools
  2. make configure (if needed)
  3. make

Once it gets to the step described above, it will fail.