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

DeploymentConfig is OutOfSync most of the time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • ArgoCD, Operator
    • None
    • 5
    • False
    • None
    • False
    • GitOps Tangerine - Sprint 3260

      Description

      Syncing the following resource

      apiVersion: apps.openshift.io/v1
      kind: DeploymentConfig
      metadata:
        name: example
      spec:
        selector:
          app: httpd
        replicas: 2
        template:
          metadata:
            labels:
              app: httpd
          spec:
            containers:
              - name: httpd
                image: >-
                  image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest
                ports:
                  - containerPort: 8080
                resources:
                  limits:
                    cpu: '1'
                    memory: '1.2G' 

      will be constantly in an OutOfSync condition.

      Expected behavior

      Resource is in Synced status, without any drift

      To reproduce:

      1) Put the above resource in a Git repository (or use resource in repository https://github.com/jannfis/test-multi-app/blob/main/openshift/deploymentconfig/dc.yaml)

      2) Create an Argo CD app

      3) Sync the app

      4) Oberve OutOfSync due to several factors

      Workaround

      Set known types for DeploymentConfig resource in argocd-cm:

        resource.customizations.knownTypeFields.apps.openshift.io_DeploymentConfig: |
          - field: spec.template.spec
            type: core/v1/PodSpec
       

       

              rh-ee-mmeetei Mangaal Meetei
              jfischer@redhat.com Jann Fischer
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: