gerald1248 / openshift-backup

nightly project backups for clusters
MIT License
9 stars 7 forks source link

Workaround for CronJob API/oc client mapping problem #13

Closed clcollins closed 5 years ago

clcollins commented 5 years ago

Swapped oc create -f for oc process -f piped to oc create -f -.

This is a workaround to address a client mapping problem for the CronJob api version introduced in OpenShift 3.11. See: https://github.com/openshift/origin/issues/21789

Signed-off-by: Christopher Collins collins.christopher@gmail.com

pangzheng commented 5 years ago

hi ,good idea i try ,but....,and thx

# oc process -f lxcfs-initializer-crd-temlate.json | oc create -f -
Error from server: no kind "InitializerConfiguration" is registered for version "admissionregistration.k8s.io/v1beta1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:29"