Alerted with OutOfSync due to not matched yaml manifest with synced one

Solution Verified - Updated -

Issue

  • It's evaluated as "OutOfSync" status due to missing "allowedFlexVolumes: []" field in the scc object after syncing in OpenShift GitOps.
// Your Security Context Constraints(SCC) yaml would be like the below one in your git repo.
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: true
allowHostPID: true
allowHostPorts: true
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedFlexVolumes: []                <--- This field is defined specifically. However it's disappeared after syncing.
allowedCapabilities: []
apiVersion: security.openshift.io/v1
:

Environment

  • OpenShift Container Platform
    • 4.x

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