Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-1638

Prometheus rule cannot be synced up via ArgoCD

    XMLWordPrintable

Details

    • False
    • False
    • Before this update, while reconciling cluster permissions, if a secret belonged to a cluster config instance it was deleted. This update fixes this issue. Now, the namespaces field from the secret is deleted instead of the secret.

    Description

      Sync error in 1.3.1:

      prometheusrules.monitoring.coreos.com is forbidden: User "system:serviceaccount:argocd:gitops-argocd-application-controller" cannot create resource "prometheusrules" in API group "monitoring.coreos.com" in the namespace "webapps-dev"

      Labeling have been already done. Also all other resources have been correctly applied to the namespace using ArgoCD.

      Configured  using the annotation

      argocd.argoproj.io/managed-by: argocd-demo on the myapp-demo projects

      as per

      https://developers.redhat.com/articles/2021/08/03/managing-gitops-control-planes-secure-gitops-practices

       

      Attachments

        Activity

          People

            jrao@redhat.com Jaideep Rao
            rhn-support-dkiselev Danila Kiselev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days
                3d