--- 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.25 creationTimestamp: "2026-07-20T20:00:29Z" 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":"bcac3036-a4dd-41a7-94f6-56f8e3b9f195"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-20T20:00:29Z" name: cni-copy-resources namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: bcac3036-a4dd-41a7-94f6-56f8e3b9f195 resourceVersion: "2464" uid: e8dec741-56d9-4e9f-87ad-351d3922c7d4 - 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.25 creationTimestamp: "2026-07-20T20:00:29Z" 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-20T20:00:29Z" name: cni-sysctl-allowlist namespace: openshift-multus resourceVersion: "2381" uid: 895ecb62-05b3-4365-83ef-9319e88a621d - 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.25 creationTimestamp: "2026-07-20T20:00:29Z" 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":"bcac3036-a4dd-41a7-94f6-56f8e3b9f195"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-20T20:00:29Z" name: default-cni-sysctl-allowlist namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: bcac3036-a4dd-41a7-94f6-56f8e3b9f195 resourceVersion: "2366" uid: ef5e9705-75da-4ee4-9a16-e52fa8048f6b - apiVersion: v1 data: ca.crt: | -----BEGIN CERTIFICATE----- MIIDPDCCAiSgAwIBAgIILMpWn4nz+qkwDQYJKoZIhvcNAQELBQAwJjESMBAGA1UE CxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdyb290LWNhMB4XDTI2MDcyMDE5NTc0OVoX DTM2MDcxNzE5NTc0OVowJjESMBAGA1UECxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdy b290LWNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2SNPaAkyyrjE muVQye7wa4MbkHGYyT5sEv9pz+X9OnSaNEiXPH2MP7I5KQjF1KSJK8uLiR/iGuX3 vzSZzZ0nv4VfMXusvq0/WUycywfzbeSttZvgY9PbciI7jclg8PUpVUAT4Sr8lyp5 YQtoun+6knUrS9NY96a8vA9kw9urZ+HTM4LGrTCq120lVkH+OIp1TOLWn/h/Wu/M R+/A9neGYaIYdFBFfm7FZxvzfXpe7moXrV0PapL8sDpeZZ/Wq1ZfhduM0ox2w7Q1 QC+v4yeq6KmxRBqrPLIc2xHKUCGWZOwsFfVT75pu98N2HVfi1hOTr56gFUds8ved lUxIcSLqowIDAQABo24wbDAOBgNVHQ8BAf8EBAMCAqQwDwYDVR0TAQH/BAUwAwEB /zBJBgNVHQ4EQgRAHunAkHYmPUQzlM6ZwIAbjSSa5Yb+6hiM9wmxz1X8ub6esY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/wQEAwIFoDAd BgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADBJBgNV HQ4EQgRAKKzaRCA6hefhqHucUoKSDI9L8jl12ys9QQpq5YJzrgOSGjAfI4KvsL46 C8RDysBpv8PDcdLzcGtrcTlrdTbTQzBLBgNVHSMERDBCgEAe6cCQdiY9RDOUzpnA gBuNJJrlhv7qGIz3CbHPVfy5vp6ximEkSmRf02R9+7Qm9ySCIfTa2lhY7aMtrCE5 fTKTMEsGA1UdEQREMEKCQCouYXBwcy43OTE4N2RmMS1kNmRkLTQwZmItODU1ZS0x MWYxZTcxNmJlN2UucHJvZC5rb25mbHV4ZWFhcy5jb20wDQYJKoZIhvcNAQELBQAD ggEBADPwzgPHIiXHoD/dtgmgBqepIgJJrz8feF8TfVCZzcWxwa5D3cFtmhzhwbU8 gbKQEOfw67x4K/XzL38A4Tmdme54nEoKCOQNk9FfQCbRsmkiZisY4VtV7KnO6kWH 6y2fFACjIMuczjD4MAZSHyAdoe5Y/v2J7IqmPC9yuvV8ed2eQFP4ryDN6njAHaog OQI1UEfRwwHbq+WcmS5ksVDUhucshSh+rP3aIAqqmdXhejjZeRudsI2J9eaVc2wI Shkcrf4X2J9+3NV6KgYL0HK3w7Og2qo9jR0CzojmCKzUFesJTqON+CPehXNH0dvI c+Zgcevy5Zb4jwTybvwhDpypfAw= -----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-20T20:00:39Z" 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-20T20:00:39Z" name: kube-root-ca.crt namespace: openshift-multus resourceVersion: "3785" uid: 7a42d917-42aa-47aa-b145-394166318361 - 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-20T20:00:29Z" 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":"bcac3036-a4dd-41a7-94f6-56f8e3b9f195"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-20T20:00:29Z" name: multus-daemon-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: bcac3036-a4dd-41a7-94f6-56f8e3b9f195 resourceVersion: "2599" uid: 196bd965-37a4-4488-b944-44c86ff760e5 - apiVersion: v1 data: service-ca.crt: | -----BEGIN CERTIFICATE----- MIIDUTCCAjmgAwIBAgIITDcxHB8LJzYwDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UE Awwrb3BlbnNoaWZ0LXNlcnZpY2Utc2VydmluZy1zaWduZXJAMTc4NDU3ODI0NDAe Fw0yNjA3MjAyMDEwNDNaFw0yODA5MTcyMDEwNDRaMDYxNDAyBgNVBAMMK29wZW5z aGlmdC1zZXJ2aWNlLXNlcnZpbmctc2lnbmVyQDE3ODQ1NzgyNDQwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDYqS1Sq4Q2M/wcS8OtRjahdUp7y+RtVNNn keB25RNuqKL0fmyx852u4M5n2DngAyaPlGdFXYL1CQO6e7jFSIOf5VHPgm5xa9ls 6wwbJ4FNmGeZN1UybuoAa8fggHB6yfumqeXwuWujzXfO6b/UmWR9kkwh4RnJqhfd XR73ZGLH8ZSIGcQJ30EXGegJsXmL7wjAMc2QJBdlDUx9LvdSYmC0SslvNlYCxjrW LenbFCpKdPdipRzSIgC2x7Z9y764i/0naFPIkIkmGho7T7CPFesT7Bwo165ApPfL SMJWTCNtMK04xM0i6b0zPr+ZkzIfpjRIdw7tJR0wQzH4NfcHF27XAgMBAAGjYzBh MA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQRJ26l fYQTF+vQGx9BT3xcyoQsNTAfBgNVHSMEGDAWgBQRJ26lfYQTF+vQGx9BT3xcyoQs NTANBgkqhkiG9w0BAQsFAAOCAQEAs0aHAGJCVWXiOvVnP6biv5HhjYMCdyf3Nde5 npBDgJ9TSTDVo6pZ71w2nul0Ha3RnPmfEGH+14i0yn2eThIPmcsN0knJyiC9AotX eELB64tcOWLnql7ZSqH3ukn4iMQmbvQnHlRpJ0b78z1JIX7WE8r5RGavrH0JHkQD Q/113Sa6c4Ky+I8+f/RiIkWzpXsOFDBZnWBk/BHJ0cqUZKhAGDg2187a5E7eForj rSicNmT1m/UsY8u7BBPEZzXRRPYF2kpjdrcga5Z12wz2AxMU4RhDwoCuoTq/UKER 0wHd3z9vIRpiwHSbyUozkQYoI9iVI08vZd+cOr4POnByTB5CVw== -----END CERTIFICATE----- kind: ConfigMap metadata: annotations: service.beta.openshift.io/inject-cabundle: "true" creationTimestamp: "2026-07-20T20:00:39Z" 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-20T20:00:39Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:service-ca.crt: {} manager: service-ca-operator operation: Update time: "2026-07-20T20:10:58Z" name: openshift-service-ca.crt namespace: openshift-multus resourceVersion: "9189" uid: 865b7acb-a0c4-481c-8d10-1e6d3b11be90 - 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-20T20:00:29Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:whereabouts.conf: {} f:metadata: f:ownerReferences: k:{"uid":"bcac3036-a4dd-41a7-94f6-56f8e3b9f195"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-07-20T20:00:29Z" name: whereabouts-flatfile-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: bcac3036-a4dd-41a7-94f6-56f8e3b9f195 resourceVersion: "2558" uid: 74d47825-7258-4067-a1e3-1338cff515c6 kind: ConfigMapList metadata: resourceVersion: "15733"