Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Day1 Operations: failed to load initial state of resource Cluster.postgresql.k8s.2ndq.io #300

@KoljaKrueckmeyer

Description

@KoljaKrueckmeyer

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:

  1. Copied https://github.com/rhd-gitops-example/taxi in a private repo

  2. 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

  3. Check the status of the apps in the ArgoCD UI

  4. See error

Expected behavior
The status of the apps should be 'Synced'. No error should be shown

Screenshots
image (1)
image

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions