--- 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-09T09:26:05Z" 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":"24ee11f8-125e-4c85-9259-843a8716b0ef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-09T09:26:05Z" name: cni-copy-resources namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 24ee11f8-125e-4c85-9259-843a8716b0ef resourceVersion: "2211" uid: 1ff6b2fd-3ede-439f-8de8-c3fa27f67217 - 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-09T09:26:05Z" 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-09T09:26:05Z" name: cni-sysctl-allowlist namespace: openshift-multus resourceVersion: "2208" uid: 4f00f298-9391-4254-be70-5a78202733c5 - 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-09T09:26:05Z" 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":"24ee11f8-125e-4c85-9259-843a8716b0ef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-09T09:26:05Z" name: default-cni-sysctl-allowlist namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 24ee11f8-125e-4c85-9259-843a8716b0ef resourceVersion: "2207" uid: cb000ee6-3560-4bff-8561-e7e0f857b7ac - apiVersion: v1 data: ca.crt: | -----BEGIN CERTIFICATE----- MIIDPDCCAiSgAwIBAgIITRjH/c24Rj4wDQYJKoZIhvcNAQELBQAwJjESMBAGA1UE CxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdyb290LWNhMB4XDTI2MDYwOTA5MjM1MloX DTM2MDYwNjA5MjM1MlowJjESMBAGA1UECxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdy b290LWNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmhd12qTE0+nW TSd+Tc3T90Om0wBC1vTD/gRGOThJSHZewNhc27ulSJbH90vBmQb17qXRc0SfXgiX lQER6gphuNLwI6orQdibHxKvfvse2HZlgt8xmMqw2eO+JgUjMYoAxINPczE6ee6r ZScAMThehA/DntpCtuNLwKLo3fMSGrAWDQ1HpMr2P7ojxIRdjpbKyOuW9lJma8au 6CthNNiHFDlZOfoevoGsQRsXNuaIIsoyW3DjcFBc1etzeWbDQRGhRbb/K4Yt0Y+J 1U58GcsEi2THnHXsKAYlKqPJobav5PWAGXKqBFnLImMhdzx4WDHHa/cC3Pr93pDo tHlQt/UUbQIDAQABo24wbDAOBgNVHQ8BAf8EBAMCAqQwDwYDVR0TAQH/BAUwAwEB /zBJBgNVHQ4EQgRAEMA0F8+KXsaT1suujJwQakoVVL5luGWR0Txxqklhl2Kqnk3k WtXxFvtCuphbIPFWFukzOWyJd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YIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADBJBgNV HQ4EQgRAg9wFxBmN+z0NOkZiQ1mCqs7l4tiNf5oZ8QBuvQCXErPhliTy6cLTNPZu qCD8SREzLoH1Og9N4BVWFB1qVTdQtDBLBgNVHSMERDBCgEAQwDQXz4pexpPWy66M nBBqShVUvmW4ZZHRPHGqSWGXYqqeTeRa1fEW+0K6mFsg8VYW6TM5bIl1nHaXvEJ9 V5w2MEsGA1UdEQREMEKCQCouYXBwcy41NDFhN2M4MS05YThmLTQ1M2MtODdmOC1j ODg1ZDQ4YzZiZjgucHJvZC5rb25mbHV4ZWFhcy5jb20wDQYJKoZIhvcNAQELBQAD ggEBAFUEkcCIETPv3nNJpnPSs0OUp7l33PL/bBWmZPyLhe27BdSjFJd5ilWbV+we HCWKMIQ8kvZ0lqILfwW/ckaHBWK3yxjcYuu/Nm+QM585esR+r9IP7RuUx07JFDKA Chn39/8y2lnQwXYxVe7NfrwNZayDU+3Ur/kEWwdNY4RdZWx64bGwQgnj9SGY+Y3b uEnN36bsIXcPi/qhDFusPAjn3m6M7bKNf5TvaACwoipLJ6dJWqw6S41wzPsaTbKm QVB7xaK+RY5/3f5+PsS35MdU9WtH/Rm30j33AL4vOn40fDHPY1XgMybJZAxT5wo9 mB5t90E5wh1hA32XT5PeZK+uE20= -----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-09T09:26:16Z" 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-09T09:26:16Z" name: kube-root-ca.crt namespace: openshift-multus resourceVersion: "2544" uid: dcb95e5b-25c6-4330-a4c1-4a32a6d41cb4 - 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-09T09:26:05Z" 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":"24ee11f8-125e-4c85-9259-843a8716b0ef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-09T09:26:05Z" name: multus-daemon-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 24ee11f8-125e-4c85-9259-843a8716b0ef resourceVersion: "2214" uid: fbf27f89-e2d2-40a9-9e1f-dc2170a3fdc7 - apiVersion: v1 data: service-ca.crt: | -----BEGIN CERTIFICATE----- MIIDUDCCAjigAwIBAgIHRgstg4h5UzANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQD DCtvcGVuc2hpZnQtc2VydmljZS1zZXJ2aW5nLXNpZ25lckAxNzgwOTk3NzgxMB4X DTI2MDYwOTA5MzYyMVoXDTI4MDgwNzA5MzYyMlowNjE0MDIGA1UEAwwrb3BlbnNo aWZ0LXNlcnZpY2Utc2VydmluZy1zaWduZXJAMTc4MDk5Nzc4MTCCASIwDQYJKoZI hvcNAQEBBQADggEPADCCAQoCggEBALlXaAZhxNs0qoTTIYp9A5dX5E8zWOlurHtx IG5xKMwsVxwGhfSsC9Cth4tZCYcW/L9UzGv3s1x7OY7V9Z/6BMbNp8P5Mx7UhHy9 PVaZhzuw44D8y8t1LFmod09HAINb0N5FKgit1D1Dx8EOGEfeUl9CkMLb5tl32JLt Gn5Nz9CcRU57tyWeRZrTOQYDv5kAoY1wBIKwLNCbLdKWemW8O+aoOxQ6g6pJk+mp WRuhG4PQI06rKKWvpwOspeoSdoLc8B83oyrYU0RJvy/0xEPj4E97DoLoGfhqgR5m S+nOMZD097DIz9uBtp/HKrkdwsoxSJxVSStItWhxe+E5N68FKocCAwEAAaNjMGEw DgYDVR0PAQH/BAQDAgKkMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFC8MFt48 aQ7+H57pB0Zi6n1JggMkMB8GA1UdIwQYMBaAFC8MFt48aQ7+H57pB0Zi6n1JggMk MA0GCSqGSIb3DQEBCwUAA4IBAQC0gpHxl45pCzTOUn7fvLyYvrpmGlBgJPposgMd GrW/4p7XfnonbFnZyBXvVuWRZ0XP41IDC9aNma8hbXcntnnxiWCPnh2GVqBea09c KxIDjFnFS7DdCwbFbINCGBAEzYle1L7PoYqyDwmDrUXCQde3vaTPsuxWlePWbDHG wmcmyuWCC3M+2Ln1gA9gDXfVFlHtrY0d1YurhJomQZX9lJZG88Z3tlv5Vggo7fsZ xF1xU3Y3D0YaNU1AzsptELsn0JuGit094b+ONxY0KJrXIJJeXt1n7znqbj8FoC4d p1+43ryFS0MIFRNVacP6E/eppIplQcY+4A7dZPinE5UXcueE -----END CERTIFICATE----- kind: ConfigMap metadata: annotations: service.beta.openshift.io/inject-cabundle: "true" creationTimestamp: "2026-06-09T09:26:16Z" 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-09T09:26:16Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:service-ca.crt: {} manager: service-ca-operator operation: Update time: "2026-06-09T09:36:33Z" name: openshift-service-ca.crt namespace: openshift-multus resourceVersion: "9066" uid: 1acb171e-fc03-44be-a1d5-b8b99214d4d9 - 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-09T09:26:05Z" managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: f:whereabouts.conf: {} f:metadata: f:ownerReferences: k:{"uid":"24ee11f8-125e-4c85-9259-843a8716b0ef"}: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-06-09T09:26:05Z" name: whereabouts-flatfile-config namespace: openshift-multus ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 24ee11f8-125e-4c85-9259-843a8716b0ef resourceVersion: "2212" uid: a4e75a0b-848c-41f2-8f63-7d7520f63877 kind: ConfigMapList metadata: resourceVersion: "24174"