Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Data struct {
PodDeviceEntries []PodDevicesEntry
}
}
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
func TranslateNewCheckpointToOld ¶
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
type NewFile ¶
type NewFile struct {
Data struct {
PodDeviceEntries []NewPodDevicesEntry
}
}
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
type NewPodDevicesEntry ¶
type NewPodDevicesEntry struct {
PodUID string
ContainerName string
ResourceName string
DeviceIDs cp.DevicesPerNUMA //map[int64][]string
}
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
type PodDevicesEntry ¶
type PodDevicesEntry struct {
PodUID string
ContainerName string
ResourceName string
DeviceIDs []string
}
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