updated with k8s's api change.