@@ -61,11 +61,9 @@ readonly -f os::start::configure_server
6161function os::start::internal::create_master_certs() {
6262 local version=" ${1:- } "
6363 local openshift_volumes=( " ${MASTER_CONFIG_DIR} " )
64- local openshift_executable
65- openshift_executable=" $( os::start::internal::openshift_executable " ${version} " ) "
6664
6765 os::log::debug " Creating certificates for the OpenShift server"
68- ${openshift_executable} admin ca create-master-certs \
66+ oc adm ca create-master-certs \
6967 --overwrite=false \
7068 --master=" ${MASTER_ADDR} " \
7169 --cert-dir=" ${MASTER_CONFIG_DIR} " \
@@ -89,11 +87,9 @@ readonly -f os::start::internal::create_master_certs
8987function os::start::internal::configure_node() {
9088 local version=" ${1:- } "
9189 local openshift_volumes=( " ${MASTER_CONFIG_DIR} " " ${NODE_CONFIG_DIR} " )
92- local openshift_executable
93- openshift_executable=" $( os::start::internal::openshift_executable " ${version} " ) "
9490
9591 os::log::debug " Creating node configuration for the OpenShift server"
96- ${openshift_executable} admin create-node-config \
92+ oc adm create-node-config \
9793 --node-dir=" ${NODE_CONFIG_DIR} " \
9894 --node=" ${KUBELET_HOST} " \
9995 --hostnames=" ${KUBELET_HOST} " \
@@ -602,9 +598,9 @@ function os::start::router() {
602598 cat " ${MASTER_CONFIG_DIR} /router.crt" \
603599 " ${MASTER_CONFIG_DIR} /router.key" \
604600 " ${MASTER_CONFIG_DIR} /ca.crt" > " ${MASTER_CONFIG_DIR} /router.pem"
605- openshift admin router --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --service-account=router --default-cert=" ${MASTER_CONFIG_DIR} /router.pem"
601+ oc adm router --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --service-account=router --default-cert=" ${MASTER_CONFIG_DIR} /router.pem"
606602 else
607- openshift admin router --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --service-account=router
603+ oc adm router --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --service-account=router
608604 fi
609605
610606 # Set the SYN eater to make router reloads more robust
@@ -631,7 +627,7 @@ function os::start::registry() {
631627 os::log::debug " Installing the registry"
632628 # For testing purposes, ensure the quota objects are always up to date in the registry by
633629 # disabling project cache.
634- openshift admin registry --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --enforce-quota -o json | \
630+ oc adm registry --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --enforce-quota -o json | \
635631 oc env --config=" ${ADMIN_KUBECONFIG} " -f - --output json " REGISTRY_MIDDLEWARE_REPOSITORY_OPENSHIFT_PROJECTCACHETTL=0" | \
636632 oc create --config=" ${ADMIN_KUBECONFIG} " -f -
637633}
0 commit comments