--- 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.23 creationTimestamp: "2026-07-07T16:33:31Z" 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":"9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-07T16:33:31Z" name: cni-copy-resources namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a resourceVersion: "2463" uid: fca1d767-5d8e-4753-bcd2-276b5dc26a4f - 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.23 creationTimestamp: "2026-07-07T16:33:31Z" 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-07-07T16:33:31Z" name: cni-sysctl-allowlist namespace: openshift-multus resourceVersion: "2450" uid: 11a60d98-0310-4efe-8655-07342e1e5e74 - 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.23 creationTimestamp: "2026-07-07T16:33:31Z" 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":"9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-07T16:33:31Z" name: default-cni-sysctl-allowlist namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a resourceVersion: "2449" uid: bfceed7d-794b-4807-b535-377b05f6c2af - apiVersion: v1 data: ca.crt: | -----BEGIN CERTIFICATE----- MIIDPDCCAiSgAwIBAgIIB1Y3UzrVVAQwDQYJKoZIhvcNAQELBQAwJjESMBAGA1UE CxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdyb290LWNhMB4XDTI2MDcwNzE2MzA1NloX DTM2MDcwNDE2MzA1NlowJjESMBAGA1UECxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdy b290LWNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy1n2wdLZuF8q GN395mGCu/udBQl5rivkNyAQCboVixnhLk8EaeegznB5SnmwXRzEtFIHBy7f4n2a /M2IapTI1C7KzntI/Wny11gLsmKLZgffM/Y0TrCY+Jcx/4Zy4tK6gC8at1OrPDJD R7SRVxtZj+GSA/dyQIhHYEPhMI8SwOpuexsmZ9S7gDSD7hepbnvN4hH0UqdbcuV+ BpGDOYTGVbwR0lP6RHB/ycSZG1BhunveHhvArkINnEfUp7+3nuHBU1G3+aatYozc 7y2yu5p6q3883sqSe8V43I3CovS2ZTNWhyhqYUsUvGaG2DIcljZuadM7r2O3T/g8 ylgyOxgzzQIDAQABo24wbDAOBgNVHQ8BAf8EBAMCAqQwDwYDVR0TAQH/BAUwAwEB /zBJBgNVHQ4EQgRAGCCEA3pfvYaOzA0I0SebePyH2TGeN06+TRqk+4f1gCnmv9u+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IFoDAd BgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADBJBgNV HQ4EQgRAfalXA069duH9b4dJGHTYWgaS95DKCzjQEjho6Hehc2wkahQ9wzQkqJcL 5MyFkS/ms57gMh18M+fneAf7OeBnCzBLBgNVHSMERDBCgEAYIIQDel+9ho7MDQjR J5t4/IfZMZ43Tr5NGqT7h/WAKea/277ubbKdKrtze8FYMJbWHOxFsDEVxjgEqTgf ccEFMEsGA1UdEQREMEKCQCouYXBwcy5mZmFhZDQxYy02NTE3LTQ1NWEtYjJhOC1i MzVlZWUyYjc0YjkucHJvZC5rb25mbHV4ZWFhcy5jb20wDQYJKoZIhvcNAQELBQAD ggEBADfCjrsU06YfmOJqLJssYh+yN1TBr1dgOcpvnyflZ4XHTxIqBXZjr9YRqX6N yV/yPNQgpzriSybqF+HoPfuR9dP8pj52xizA05PwsOZs/hMKlTYJx7+JI2MZpLCk 4D6UpJnuhI6j5dpQ/5bCB1AWKlkVN0QFVlZsWcElz4ymr1mFZZFOZYkoK06Aexvn iPZ05o4Gf9bY15ZX/riDAaWXyoCVh10FB6F3jUUnDVEDGF+TQGWb9z9JW6ijNio7 Ut1zm79M3UCi+YckJpYVEA9m70JPpPEsVP7sL8o1URVUIaK8OtIdTc8gU4Wz+wKd 2NEhKOnLN7uAnY/UZf9qMkNy22s= -----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-07-07T16:33:28Z" 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-07-07T16:34:21Z" name: kube-root-ca.crt namespace: openshift-multus resourceVersion: "4458" uid: 920f1e73-3ba1-4e6c-86e6-1ab79c00e435 - 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-07-07T16:33:32Z" 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":"9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-07T16:33:32Z" name: multus-daemon-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a resourceVersion: "2488" uid: 76957862-27ca-4b5e-a12a-be02b6b9f45a - apiVersion: v1 data: service-ca.crt: | -----BEGIN CERTIFICATE----- MIIDUTCCAjmgAwIBAgIIPDgslIJ3bOYwDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UE Awwrb3BlbnNoaWZ0LXNlcnZpY2Utc2VydmluZy1zaWduZXJAMTc4MzQ0MjM5OTAe Fw0yNjA3MDcxNjM5NTlaFw0yODA5MDQxNjQwMDBaMDYxNDAyBgNVBAMMK29wZW5z aGlmdC1zZXJ2aWNlLXNlcnZpbmctc2lnbmVyQDE3ODM0NDIzOTkwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDsPLtLl2FAa7G/j5B0zSBjiuKru9GbfDp8 zP0Mtlinnifmrcg1Ozm/LGiBzEhQ/f1AAekb1El9jAb6hSlw969q/WNb37XceL8I tR+sFCUqiY9iFxhAiSZOxUR0Kga6ZHijYiswgK4Mgp3/v9Jwg+wHy81Qk32o4t9Q JzO3RQ9yu9Xu/FOIkhaJppQ1zLnE+x6KfjmIU3F2ptGmGnBgPdSdI1OXVXS98NbY ux90Hn/m2GJziNPA+Ff16V6GzRc5aQrUE3ywg7gkaFYsw99v42HX7uywamdE9xF8 353r8unmPz/8gUJCSqTwCkSGhr3gdRc48ZrPiLZLtDJ0zG+Df7yDAgMBAAGjYzBh MA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRaIdAN SVUqSnLevZk4gQAxPGIbGTAfBgNVHSMEGDAWgBRaIdANSVUqSnLevZk4gQAxPGIb GTANBgkqhkiG9w0BAQsFAAOCAQEADL40LbQ0syMek6rei3QzF1TxUjCxL7etTAOJ Tk5KXlR0aRUSkkH61SDRTFNMRL3mFjHVOx618hOsJKP4zwah4kUjW8tJAbdjYA81 rL60cxjPc6RDKdFFjZ327UNrWbuFwj1PgJ8m7E9pn385S2vh2YR1jDHgU7Uy2Q4O lLOIg5J6WcqIFYsKqj+S3dOyT7xc8h8PRSDVZaqZ0Ab05CpS4tZRM2rYaFBGAeZK 9FdF/Bg4h+TJKMLa/DQ6riakQB7XUePuEoihfeL4LBj8XCBJvKhEZTYopiiQx0Uv 3eZfL/yi45+h6Gr/EwXcCKxkNymHx07uBo5s+RuhAR1xChCZ3Q== -----END CERTIFICATE----- kind: ConfigMap metadata: annotations: service.beta.openshift.io/inject-cabundle: "true" creationTimestamp: "2026-07-07T16:33:28Z" 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-07-07T16:33:28Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:service-ca.crt: {} manager: service-ca-operator operation: Update time: "2026-07-07T16:40:15Z" name: openshift-service-ca.crt namespace: openshift-multus resourceVersion: "8320" uid: 278cf53f-02af-4860-aeb8-c222bb275b8f - 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-07-07T16:33:32Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:whereabouts.conf: {} f:metadata: f:ownerReferences: k:{"uid":"9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-07T16:33:32Z" name: whereabouts-flatfile-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 9d5ee199-e3ef-42a1-a3a3-40884aa3cd9a resourceVersion: "2469" uid: 7601418a-ec76-47f9-83fb-bd636738b56d kind: ConfigMapList metadata: resourceVersion: "21658"