Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-1298

When deploying Serving with ArgoCD, routes that are auto-created cause installation to be outofsync

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.36.0, 1.35.1
    • 1.34.0
    • None
    • None

      Similar to https://issues.redhat.com/browse/OSSM-5820
      We copy the labels from the ingress of a knative service to the OCP route.
      Among the labels that are used by ArgoCD is "app.kubernetes.io/instance:..."

      It holds that: "Argo CD identifies resources it manages by setting the application instance label to the name of the managing Application on all resources that are managed (i.e. reconciled from Git). The default label used is the well-known label app.kubernetes.io/instance".

      OCP route (unlike the ingress has no owner refs) and so it is considered as not being part of the resources deployed and is marked for pruning. Thus, the deployed ArgoCD app is out of sync (see attached files).

      Reproduced with: https://github.com/openshift-knative/serverless-operator/compare/main...skonto:serverless-operator:routes?expand=1

      Also verified that adding that label to a random resource eg. a pod, in the same ns where the app is creates an issue.

        1. Screenshot from 2024-12-02 14-16-52.png
          456 kB
          Stavros Kontopoulos
        2. Screenshot from 2024-12-02 14-20-13.png
          140 kB
          Stavros Kontopoulos
        3. Screenshot from 2024-12-02 14-46-44.png
          451 kB
          Stavros Kontopoulos

              skontopo@redhat.com Stavros Kontopoulos
              skontopo@redhat.com Stavros Kontopoulos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: