Open kxs-sindrakumar opened 2 years ago
yaml: line 175: mapping values are not allowed in this context
I think this may have more to do with change in kustomize version from argo-cd v2.2 to v2.4 rather than Argo CD bug. I suggest downgrading kustomize to the version in v2.2 to verify.
However, another problem is that you appear to be using the legacy URL format of resource references. https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md#legacy-url-format
Newer kustomize resource references should look like:
https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6
git@github.com:owner/repo
ssh://git@github.com/owner/repo
yaml: line 175: mapping values are not allowed in this context
I think this may have more to do with change in kustomize version from argo-cd v2.2 to v2.4 rather than Argo CD bug. I suggest downgrading kustomize to the version in v2.2 to verify.
However, another problem is that you appear to be using the legacy URL format of resource references. https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md#legacy-url-format
Newer kustomize resource references should look like:
https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6
git@github.com:owner/repo
ssh://git@github.com/owner/repo
{Version:kustomize/v4.2.0 GitCommit:d53a2ad45d04b0264bcee9e19879437d851cb778 BuildDate:2021-06-30T22:49:26Z GoOs:linux GoArch:amd64}
https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6
My kustomization.yaml used the following to create the manifest:
- github.com/argoproj/argo-cd/manifests/base?ref=v2.2.0&timeout=90
- github.com/argoproj/argo-cd/manifests/crds?ref=v2.2.0&timeout=90
- github.com/argoproj/argo-cd/manifests/cluster-rbac?ref=v2.2.0&timeout=90
Checklist:
argocd version
.Describe the bug
What I have tried
To Reproduce
Kustomization.yaml:
namespace.yaml:
patches/argocd-cm.yaml:
patches/argocd-repo-server-deploy.yaml:
patches/argocd-resource-limites.yaml:
The application kustomization.yaml: Note: this repo doesn't exist, i changed some of the names to protect identity.
Expected behavior
As per version 2.2.8, I except the kustomize build to create the manifest and sync the application
Screenshots
N/A
Version
Logs
Note: url changed slightly to avoid showing confidential information.