Cluster autoscaler doesn't respect ignoreDifferences field in gitops application config in RHOCP 4

Solution Verified - Updated -

Issue

  • The ignoreDifferences configuration is not being honored for the MachineSet kind.

  • The behavior is inconsistent because the same ignoreDifferences configuration works as
    expected for upstream Deployment resources.

  • Example configuration that works for Deployment.apps :

    ignoreDifferences:
      - group: apps
        kind: Deployment
        jsonPointers:
          - /spec/replicas
    

    Similar configuration fails for MachineSet.machine.openshift.io :

    ignoreDifferences:
      - group: machine.openshift.io
        kind: MachineSet
        jsonPointers:
          - /spec/replicas
    
  • The drift gets continuously detected even when only replica count or auto-managed fields
    change, which should be ignored as per the above configuration.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content