Checklist:
argocd app create env-apps --server argo.TLD.dev:443 --dest-namespace argocd --dest-server https://kubernetes.default.svc --directory-recurse --repo https://PRIVATE.git --path env-apps --upsert --revision BRANCH --insecureapiVersion: argoproj.io/v1alpha1
metadata:
name: 'env-apps'
spec:
destination:
server: 'https://kubernetes.default.svc'
namespace: argocd
source:
repoURL: 'PRIVATE.git'
path: ./apps
targetRevision: BRANCH
directory:
recurse: true
jsonnet: {}
project: default
errors with status.sync.comparedTo.source.path in body is required
kubectl apply -f with the app of apps.yml works
after removing "path" from the list found in:
kubectl get customresourcedefinition applications.argoproj.io \
--template={{.spec.validation.openAPIV3Schema.properties.status.properties.sync.properties.comparedTo.properties.source.required}}
it worked.
argocd versionargocd: v1.3.0+9f8608c
BuildDate: 2019-11-13T01:49:01Z
GitCommit: 9f8608c9fcb2a1d8dcc06eeadd57e5c0334c5800
GitTreeState: clean
GoVersion: go1.12.6
Compiler: gc
Platform: linux/amd64
argocd-server: v1.3.0+9f8608c
BuildDate: 2019-11-13T01:51:00Z
GitCommit: 9f8608c9fcb2a1d8dcc06eeadd57e5c0334c5800
GitTreeState: clean
GoVersion: go1.12.6
Compiler: gc
Platform: linux/amd64
Ksonnet Version: v0.13.1
Kustomize Version: Version: {Version:kustomize/v3.2.1 GitCommit:d89b448c745937f0cf1936162f26a5aac688f840 BuildDate:2019-09-27T00:10:52Z GoOs:linux GoArch:amd64}
Helm Version: v2.15.2
Kubectl Version: v1.14.0
Expected behavior
I'm not getting a status validation error on a fresh create
Version
1.3.0
Hi, can I ask some questions about this to help narrow down the issue:
You're using version v1.3 of Argo CD. Did you just upgrade? If this is on an existing cluster - can I please ask if you updated the CRDs by applying the correct manifests as per the quick start guide? This field became optional in v1.3 and if you had not done so, then I would expect the error you mention?
You're quite right. I was switching the deployment to the Argo Helm Chart. Thanks to you I found out that Helm is very particular about when it does and doesn't deploy CRDs. Thanks!
I am using the Helm chart and had the same issue. I could fix this issue by applying the CRDs as follows:
kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-cd/v1.3.6/manifests/crds/application-crd.yaml
kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-cd/v1.3.6/manifests/crds/appproject-crd.yaml