--- apiVersion: v1 items: - apiVersion: v1 data: cnibincopy.sh: |- #!/bin/bash set -e function log() { echo "$(date --iso-8601=seconds) [cnibincopy] ${1}" } DESTINATION_DIRECTORY=/host/opt/cni/bin/ # Perform validation of usage if [ -z "$RHEL8_SOURCE_DIRECTORY" ] || [ -z "$RHEL9_SOURCE_DIRECTORY" ] || [ -z "$DEFAULT_SOURCE_DIRECTORY" ]; then log "FATAL ERROR: You must set env variables: RHEL8_SOURCE_DIRECTORY, RHEL9_SOURCE_DIRECTORY, DEFAULT_SOURCE_DIRECTORY" exit 1 fi if [ ! -d "$DESTINATION_DIRECTORY" ]; then log "FATAL ERROR: Destination directory ($DESTINATION_DIRECTORY) does not exist" exit 1 fi # Collect host OS information . /host/etc/os-release rhelmajor= # detect which version we're using in order to copy the proper binaries case "${ID}" in rhcos|scos) RHEL_VERSION=$(echo "${CPE_NAME}" | cut -f 5 -d :) rhelmajor=$(echo $RHEL_VERSION | sed -E 's/([0-9]+)\.{1}[0-9]+(\.[0-9]+)?/\1/') ;; rhel|centos) rhelmajor=$(echo "${VERSION_ID}" | cut -f 1 -d .) ;; fedora) if [ "${VARIANT_ID}" == "coreos" ]; then rhelmajor=8 else log "FATAL ERROR: Unsupported Fedora variant=${VARIANT_ID}" exit 1 fi ;; *) log "FATAL ERROR: Unsupported OS ID=${ID}"; exit 1 ;; esac # Set which directory we'll copy from, detect if it exists sourcedir= founddir=false case "${rhelmajor}" in 8) if [ -d "${RHEL8_SOURCE_DIRECTORY}" ]; then sourcedir=${RHEL8_SOURCE_DIRECTORY} founddir=true fi ;; 9) if [ -d "${RHEL9_SOURCE_DIRECTORY}" ]; then sourcedir=${RHEL9_SOURCE_DIRECTORY} founddir=true fi ;; *) log "ERROR: RHEL Major Version Unsupported, rhelmajor=${rhelmajor}" ;; esac # When it doesn't exist, fall back to the original directory. if [ "$founddir" == false ]; then log "Source directory unavailable for OS version: ${rhelmajor}" sourcedir=$DEFAULT_SOURCE_DIRECTORY fi # Use a subdirectory called "upgrade" so we can atomically move fully copied files. # We now use --remove-destination after running into an issue with -f not working over symlinks UPGRADE_DIRECTORY=${DESTINATION_DIRECTORY}upgrade_$(uuidgen) rm -Rf $UPGRADE_DIRECTORY mkdir -p $UPGRADE_DIRECTORY cp -r --remove-destination ${sourcedir}* $UPGRADE_DIRECTORY if [ $? -eq 0 ]; then log "Successfully copied files in ${sourcedir} to $UPGRADE_DIRECTORY" else log "Failed to copy files in ${sourcedir} to $UPGRADE_DIRECTORY" rm -Rf $UPGRADE_DIRECTORY exit 1 fi mv -f $UPGRADE_DIRECTORY/* ${DESTINATION_DIRECTORY}/ if [ $? -eq 0 ]; then log "Successfully moved files in $UPGRADE_DIRECTORY to ${DESTINATION_DIRECTORY}" else log "Failed to move files in $UPGRADE_DIRECTORY to ${DESTINATION_DIRECTORY}" rm -Rf $UPGRADE_DIRECTORY exit 1 fi rm -Rf $UPGRADE_DIRECTORY kind: ConfigMap metadata: annotations: kubernetes.io/description: | This is a script used to copy CNI binaries based on host OS release.openshift.io/version: 4.21.19 creationTimestamp: "2026-06-08T13:24:18Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:cnibincopy.sh: {} f:metadata: f:annotations: f:kubernetes.io/description: {} f:release.openshift.io/version: {} f:ownerReferences: k:{"uid":"6e645113-fcae-422f-952b-36f2bbed0cef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-08T13:24:18Z" name: cni-copy-resources namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 6e645113-fcae-422f-952b-36f2bbed0cef resourceVersion: "2405" uid: 46213702-4fd4-4276-a8c4-d96a1f294a23 - apiVersion: v1 data: allowlist.conf: |- ^net.ipv4.conf.IFNAME.accept_redirects$ ^net.ipv4.conf.IFNAME.accept_source_route$ ^net.ipv4.conf.IFNAME.arp_accept$ ^net.ipv4.conf.IFNAME.arp_notify$ ^net.ipv4.conf.IFNAME.disable_policy$ ^net.ipv4.conf.IFNAME.secure_redirects$ ^net.ipv4.conf.IFNAME.send_redirects$ ^net.ipv6.conf.IFNAME.accept_ra$ ^net.ipv6.conf.IFNAME.accept_redirects$ ^net.ipv6.conf.IFNAME.accept_source_route$ ^net.ipv6.conf.IFNAME.arp_accept$ ^net.ipv6.conf.IFNAME.arp_notify$ ^net.ipv6.neigh.IFNAME.base_reachable_time_ms$ ^net.ipv6.neigh.IFNAME.retrans_time_ms$ kind: ConfigMap metadata: annotations: kubernetes.io/description: | Sysctl allowlist for nodes. release.openshift.io/version: 4.21.19 creationTimestamp: "2026-06-08T13:24:18Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: .: {} f:allowlist.conf: {} f:metadata: f:annotations: .: {} f:kubernetes.io/description: {} f:release.openshift.io/version: {} manager: network-operator operation: Update time: "2026-06-08T13:24:18Z" name: cni-sysctl-allowlist namespace: openshift-multus resourceVersion: "2398" uid: c86bbedb-4f91-48fd-9794-9fcc8551c1a8 - apiVersion: v1 data: allowlist.conf: |- ^net.ipv4.conf.IFNAME.accept_redirects$ ^net.ipv4.conf.IFNAME.accept_source_route$ ^net.ipv4.conf.IFNAME.arp_accept$ ^net.ipv4.conf.IFNAME.arp_notify$ ^net.ipv4.conf.IFNAME.disable_policy$ ^net.ipv4.conf.IFNAME.secure_redirects$ ^net.ipv4.conf.IFNAME.send_redirects$ ^net.ipv6.conf.IFNAME.accept_ra$ ^net.ipv6.conf.IFNAME.accept_redirects$ ^net.ipv6.conf.IFNAME.accept_source_route$ ^net.ipv6.conf.IFNAME.arp_accept$ ^net.ipv6.conf.IFNAME.arp_notify$ ^net.ipv6.neigh.IFNAME.base_reachable_time_ms$ ^net.ipv6.neigh.IFNAME.retrans_time_ms$ kind: ConfigMap metadata: annotations: kubernetes.io/description: | Sysctl allowlist for nodes. release.openshift.io/version: 4.21.19 creationTimestamp: "2026-06-08T13:24:18Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:allowlist.conf: {} f:metadata: f:annotations: f:kubernetes.io/description: {} f:release.openshift.io/version: {} f:ownerReferences: k:{"uid":"6e645113-fcae-422f-952b-36f2bbed0cef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-08T13:24:18Z" name: default-cni-sysctl-allowlist namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 6e645113-fcae-422f-952b-36f2bbed0cef resourceVersion: "2397" uid: c7754adb-d341-441a-a1c6-a0abf56c7753 - apiVersion: v1 data: ca.crt: | -----BEGIN CERTIFICATE----- MIIDPDCCAiSgAwIBAgIIQ7DQyQ1qp6swDQYJKoZIhvcNAQELBQAwJjESMBAGA1UE CxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdyb290LWNhMB4XDTI2MDYwODEzMjIwNVoX DTM2MDYwNTEzMjIwNVowJjESMBAGA1UECxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdy b290LWNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt+umga4DhDOk hDpYct6NhQNafMU2ExblTE/Se9937kPYsVczZtC6VpjIg1IZoQVxWWdah2ACPyd8 knzD5B0uUq79pBCAbD1qsyqALSpv7Ca76QCnQW/S5A/wZmz1Ren3LCPvcccmJ9jP jARF/1yYD/s9hYzDhdh9Pyh5+ij1fnZDo8EGIGKCGKxIsKahYaVNwiXS/IinkdUB ryxiNfSxFZvXd2vAXrsZgL4VxAQlg+AXlLTOl5sXGT3zfUqE8GMLgPlFWHQGsk34 bhaZ/Guj8aC72eB3OrZ7K/ZQdDMiH7NE28JW0j7QsDG72Rv9L/UKqlEvspSwbMYk hZKztTvNZQIDAQABo24wbDAOBgNVHQ8BAf8EBAMCAqQwDwYDVR0TAQH/BAUwAwEB /zBJBgNVHQ4EQgRALXKIcP4i/YK1sJGrSjcPVsrNZBJvsqJ4E+gCkAWZKhlfZ1+M F9DlXXq9n41Tn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ggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADBJBgNV HQ4EQgRAd4MDnP0ra2hEIEEOCcfBQnRrOvT7ZXoDsI+ZLhH4J1EC4pdZqIGtB5zO ffz+eWzQ6TKAqm54Avuk4WMJd/H1XDBLBgNVHSMERDBCgEAtcohw/iL9grWwkatK Nw9Wys1kEm+yongT6AKQBZkqGV9nX4wX0OVder2fjVOew5lJx9rr6u1CUXeBhKs9 85l7MEsGA1UdEQREMEKCQCouYXBwcy44MDRlOTE0Zi1hYzI4LTRhYjUtYjQ3Yi01 MGM2Njc2MjllYjYucHJvZC5rb25mbHV4ZWFhcy5jb20wDQYJKoZIhvcNAQELBQAD ggEBAChOPXg2SrI4qIVmjshzSAcqTcEw51ClEz7zZ8WCQkMeGQRg7gcGiKcEuQTr UuoJsrp2E1t1zwofTL4Q2YPrls+gxK1B+xY35EInsjrIQ/OzEoPgmBAy9SmBh/5d z9snNkoSiLXXeDmVUhD7avHdC327Y4/sK8lsoFDNSzItttSwHmjO0lpupzSl2Sl3 Qxocd/i4DFZANDq0KRMZG011eV+iXKpE+N/LhT1P5K64hhduIF6W/ABkfhHq5a8d VftQXT2E0vhEsnDQf7NyHHEbUZyWJPdneUfDB45gxnQ7ugOW2uVjCntoTRn+Lign zvpFWOU5QxuJVDl6Cbw+hTLGkxg= -----END CERTIFICATE----- kind: ConfigMap metadata: annotations: kubernetes.io/description: Contains a CA bundle that can be used to verify the kube-apiserver when using internal endpoints such as the internal service IP or kubernetes.default.svc. No other usage is guaranteed across distributions of Kubernetes clusters. creationTimestamp: "2026-06-08T13:24:26Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: .: {} f:ca.crt: {} f:metadata: f:annotations: .: {} f:kubernetes.io/description: {} manager: kube-controller-manager operation: Update time: "2026-06-08T13:24:26Z" name: kube-root-ca.crt namespace: openshift-multus resourceVersion: "2794" uid: b2db1c59-2551-4de8-a7a9-a1a54d70a04b - apiVersion: v1 data: daemon-config.json: | { "cniVersion": "0.3.1", "chrootDir": "/hostroot", "logToStderr": true, "logLevel": "verbose", "binDir": "/var/lib/cni/bin", "perNodeCertificate": { "enabled": true, "bootstrapKubeconfig": "/var/lib/kubelet/kubeconfig", "certDir": "/etc/cni/multus/certs", "certDuration": "24h" }, "cniConfigDir": "/host/etc/cni/net.d", "multusConfigFile": "auto", "multusAutoconfigDir": "/host/run/multus/cni/net.d", "namespaceIsolation": true, "globalNamespaces": "default,openshift-multus,openshift-sriov-network-operator,openshift-cnv", "readinessindicatorfile": "/host/run/multus/cni/net.d/10-ovn-kubernetes.conf", "daemonSocketDir": "/run/multus/socket", "socketDir": "/host/run/multus/socket", "auxiliaryCNIChainName": "vendor-cni-chain" } kind: ConfigMap metadata: creationTimestamp: "2026-06-08T13:24:18Z" labels: app: multus tier: node managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:daemon-config.json: {} f:metadata: f:labels: f:app: {} f:tier: {} f:ownerReferences: k:{"uid":"6e645113-fcae-422f-952b-36f2bbed0cef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-08T13:24:18Z" name: multus-daemon-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 6e645113-fcae-422f-952b-36f2bbed0cef resourceVersion: "2417" uid: c371d03c-1d2a-47b6-b169-6af5b3edbb5e - apiVersion: v1 data: service-ca.crt: | -----BEGIN CERTIFICATE----- MIIDUTCCAjmgAwIBAgIIR/BabMVeDLUwDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UE Awwrb3BlbnNoaWZ0LXNlcnZpY2Utc2VydmluZy1zaWduZXJAMTc4MDkyNTY3MTAe Fw0yNjA2MDgxMzM0MzFaFw0yODA4MDYxMzM0MzJaMDYxNDAyBgNVBAMMK29wZW5z aGlmdC1zZXJ2aWNlLXNlcnZpbmctc2lnbmVyQDE3ODA5MjU2NzEwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDP9IDHzsm9KIB5rQw+aG263zUGhAoEMjen Ig4dvXyOWsyxsjnF2fnVlvErn3mmLZKEFhcpIX+1j98tz0BdaD3xfQJuo+JqBn4m kIVoggsBO6eAwPghrETofjbt/enKg1/3uOhFZ4e9fXklsSVKhQr6qhcjekHL5LyJ hFTYzX5tbREYgaYqlWPuMldPgmWL/i04p800zcpE67d96lV9FmP5oWp7BtB+rS0L XtuXNCybmzaOliNK/h2fCuYKpXyTnc0tExbOozw9wTEPAXaX2h2ttXKcWgKzbmCh i9Isu18uR7sI0qc13ndy0YD5kR6iDaNT/e/xAyFzg4vDhaxrvqozAgMBAAGjYzBh MA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTIghGO lZogqJZ52vWJSNzIrHYE7DAfBgNVHSMEGDAWgBTIghGOlZogqJZ52vWJSNzIrHYE 7DANBgkqhkiG9w0BAQsFAAOCAQEAmz+x8jcrxeglBBNTun3Y6Up8rA1ILMgvb5v5 MSO1HPxQwNZBCydBPP2DCE266NcS3KUO8JX7SonWhO23biMKZGJn61s2fycBuJ3/ i5qxmBEUFng10kIib5HxD30HHUWxws6YFP/YEkRd5HQxBjbUFMJMoVzP5gB/IFLt 4PEs1hwUXkDPb8MJ4He3p9IYFTBsXWGTaKjvAok0RWS3OCMceejvi21KuOigZL+O XKcdbdFWsf6cNV7PVH1QN+T2a+4g/9F+dimYRNF4fMR7LjwQ1kA+Ss6Rtife6dYn y+2UAQ3ricbkgsgSZLJrRuGwfV7+gjIkEVdVCC0OcIa86szmpQ== -----END CERTIFICATE----- kind: ConfigMap metadata: annotations: service.beta.openshift.io/inject-cabundle: "true" creationTimestamp: "2026-06-08T13:24:26Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: {} f:metadata: f:annotations: .: {} f:service.beta.openshift.io/inject-cabundle: {} manager: kube-controller-manager operation: Update time: "2026-06-08T13:24:26Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:service-ca.crt: {} manager: service-ca-operator operation: Update time: "2026-06-08T13:34:43Z" name: openshift-service-ca.crt namespace: openshift-multus resourceVersion: "9184" uid: 15a9338e-4da0-458c-91dd-3645ec27c8d0 - apiVersion: v1 data: whereabouts.conf: | { "datastore": "kubernetes", "kubernetes": { "kubeconfig": "/etc/kubernetes/cni/net.d/whereabouts.d/whereabouts.kubeconfig" }, "reconciler_cron_expression": "30 4 * * *", "log_level": "verbose", "configuration_path": "/etc/kubernetes/cni/net.d/whereabouts.d" } kind: ConfigMap metadata: creationTimestamp: "2026-06-08T13:24:18Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:whereabouts.conf: {} f:metadata: f:ownerReferences: k:{"uid":"6e645113-fcae-422f-952b-36f2bbed0cef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-08T13:24:18Z" name: whereabouts-flatfile-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 6e645113-fcae-422f-952b-36f2bbed0cef resourceVersion: "2411" uid: dc6cdca0-cb7d-408c-b2a0-c2e5e29a3228 kind: ConfigMapList metadata: resourceVersion: "17464"