Describe the bug
Hi, I am new to GitOps/ArgoCD and I try to bring in the stuff of https://github.com/redhat-developer/kam/tree/master/docs/journey/day1 into our cluster. But after kam bootrstrap I get the following error:
failed to sync cluster https://172.21.0.1:443: failed to load initial state of resource Cluster.postgresql.k8s.2ndq.io: Internal error occurred: error resolving resource
To Reproduce
Steps to reproduce the behavior:
-
Copied https://github.com/rhd-gitops-example/taxi in a private repo
-
Invoke the following kam command (in our cluster)
kam bootstrap --service-repo-url https://github.ibm.com/CloudPrivate4Mfg/kkr-test-repo1.git --gitops-repo-url https://github.ibm.com/CloudPrivate4Mfg/kkr-test-gitops.git --image-repo kkr-test-project1/kkr-test-app1 --dockercfgjson C:\Users\KoljaMariusKrueckmey\repos\plantConnectitityServices\kkr-test-repo1\dockerconfigjson.json --git-host-access-token *** --output C:\Users\KoljaMariusKrueckmey\repos\plantConnectitityServices\kkr-gitops-test --push-to-git=true --private-repo-driver=github --overwrite
-
Check the status of the apps in the ArgoCD UI
-
See error
Expected behavior
The status of the apps should be 'Synced'. No error should be shown
Screenshots


Additional context
Output of oc get app cicd-app -n openshift-gitops -o yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"argoproj.io/v1alpha1","kind":"Application","metadata":{"annotations":{},"creationTimestamp":null,"name":"cicd-app","namespace":"openshift-gitops"},"spec":{"destination":{"namespace":"cicd","server":"https://kubernetes.default.svc/"},"ignoreDifferences":[{"group":"[argoproj.io](http://argoproj.io/)","jsonPointers":["/status"],"kind":"Application"},{"group":"[triggers.tekton.dev](http://triggers.tekton.dev/)","jsonPointers":["/status"],"kind":"EventListener"},{"group":"[triggers.tekton.dev](http://triggers.tekton.dev/)","jsonPointers":["/status"],"kind":"TriggerTemplate"},{"group":"[triggers.tekton.dev](http://triggers.tekton.dev/)","jsonPointers":["/status"],"kind":"TriggerBinding"},{"group":"[route.openshift.io](http://route.openshift.io/)","jsonPointers":["/spec/host"],"kind":"Route"}],"project":"default","source":{"path":"config/cicd/overlays","repoURL":"https://github.ibm.com/CloudPrivate4Mfg/kkr-test-gitops.git"},"syncPolicy":{"automated":{"prune":true,"selfHeal":true}}},"status":{"health":{},"summary":{},"sync":{"comparedTo":{"destination":{},"source":{"repoURL":""}},"status":""}}}
creationTimestamp: "2022-03-14T14:37:02Z"
generation: 19
name: cicd-app
namespace: openshift-gitops
resourceVersion: "541838720"
uid: 6e57dd17-53e0-4914-80f8-dab6d334ba6a
spec:
destination:
namespace: cicd
server: https://kubernetes.default.svc/
ignoreDifferences:
Describe the bug
Hi, I am new to GitOps/ArgoCD and I try to bring in the stuff of https://github.com/redhat-developer/kam/tree/master/docs/journey/day1 into our cluster. But after kam bootrstrap I get the following error:
failed to sync cluster https://172.21.0.1:443: failed to load initial state of resource Cluster.postgresql.k8s.2ndq.io: Internal error occurred: error resolving resource
To Reproduce
Steps to reproduce the behavior:
Copied https://github.com/rhd-gitops-example/taxi in a private repo
Invoke the following kam command (in our cluster)
kam bootstrap --service-repo-url https://github.ibm.com/CloudPrivate4Mfg/kkr-test-repo1.git --gitops-repo-url https://github.ibm.com/CloudPrivate4Mfg/kkr-test-gitops.git --image-repo kkr-test-project1/kkr-test-app1 --dockercfgjson C:\Users\KoljaMariusKrueckmey\repos\plantConnectitityServices\kkr-test-repo1\dockerconfigjson.json --git-host-access-token *** --output C:\Users\KoljaMariusKrueckmey\repos\plantConnectitityServices\kkr-gitops-test --push-to-git=true --private-repo-driver=github --overwrite
Check the status of the apps in the ArgoCD UI
See error
Expected behavior
The status of the apps should be 'Synced'. No error should be shown
Screenshots


Additional context
Output of oc get app cicd-app -n openshift-gitops -o yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"argoproj.io/v1alpha1","kind":"Application","metadata":{"annotations":{},"creationTimestamp":null,"name":"cicd-app","namespace":"openshift-gitops"},"spec":{"destination":{"namespace":"cicd","server":"https://kubernetes.default.svc/"},"ignoreDifferences":[{"group":"[argoproj.io](http://argoproj.io/)","jsonPointers":["/status"],"kind":"Application"},{"group":"[triggers.tekton.dev](http://triggers.tekton.dev/)","jsonPointers":["/status"],"kind":"EventListener"},{"group":"[triggers.tekton.dev](http://triggers.tekton.dev/)","jsonPointers":["/status"],"kind":"TriggerTemplate"},{"group":"[triggers.tekton.dev](http://triggers.tekton.dev/)","jsonPointers":["/status"],"kind":"TriggerBinding"},{"group":"[route.openshift.io](http://route.openshift.io/)","jsonPointers":["/spec/host"],"kind":"Route"}],"project":"default","source":{"path":"config/cicd/overlays","repoURL":"https://github.ibm.com/CloudPrivate4Mfg/kkr-test-gitops.git"},"syncPolicy":{"automated":{"prune":true,"selfHeal":true}}},"status":{"health":{},"summary":{},"sync":{"comparedTo":{"destination":{},"source":{"repoURL":""}},"status":""}}}
creationTimestamp: "2022-03-14T14:37:02Z"
generation: 19
name: cicd-app
namespace: openshift-gitops
resourceVersion: "541838720"
uid: 6e57dd17-53e0-4914-80f8-dab6d334ba6a
spec:
destination:
namespace: cicd
server: https://kubernetes.default.svc/
ignoreDifferences:
jsonPointers:
kind: Application
jsonPointers:
kind: EventListener
jsonPointers:
kind: TriggerTemplate
jsonPointers:
kind: TriggerBinding
jsonPointers:
kind: Route
project: default
source:
path: config/cicd/overlays
repoURL: https://github.ibm.com/CloudPrivate4Mfg/kkr-test-gitops.git
syncPolicy:
automated:
prune: true
selfHeal: true
status:
conditions:
message: 'failed to sync cluster https://172.21.0.1:443: failed to load initial
state of resource Cluster.postgresql.k8s.2ndq.io: Internal error occurred: error
resolving resource'
type: ComparisonError
message: 'failed to sync cluster https://172.21.0.1:443: failed to load initial
state of resource Cluster.postgresql.k8s.2ndq.io: Internal error occurred: error
resolving resource'
type: ComparisonError
health:
status: Healthy
reconciledAt: "2022-03-14T15:25:11Z"
summary: {}
sync:
comparedTo:
destination:
namespace: cicd
server: https://kubernetes.default.svc/
source:
path: config/cicd/overlays
repoURL: https://github.ibm.com/CloudPrivate4Mfg/kkr-test-gitops.git
status: Unknown