add k8s util functions for compatibility of upstream changes

No match.