# Functions
TranslateNewCheckpointToOld downgrades from an 1.21+ checkpoint file representation to the old format It simply merges all the NUMA specififc DeviceID string slices into one big slice Enables code re-use without needing to modify the business logic of an Operator needing to simultaneously support pre, and post 1.21 K8s versions.
# Structs
File is representing the kubelet checkpoint file structure with only relevant fields - valid until K8s 1.20 TODO: REMOVE THIS TPYE AFTER 1.20 SUPPORT IS DROPPED.
NewFile is representing the kubelet checkpoint file structure with only relevant fields - valid from K8s 1.21 onward Reference: https://github.com/kubernetes/kubernetes/commit/a8b8995ef241e93e9486d475126450f33f24ef4e.
NewPodDevicesEntry is representing Pod specific deviceID allocations from kubelet checkpoint file structure - valid from K8s 1.21 onward Reference: https://github.com/kubernetes/kubernetes/commit/a8b8995ef241e93e9486d475126450f33f24ef4e.
PodDevicesEntry is representing Pod specific deviceID allocations from kubelet checkpoint file structure - valid until K8s 1.20 TODO: REMOVE THIS TPYE AFTER 1.20 SUPPORT IS DROPPED.