Skip to content

Commit a553668

Browse files
author
OpenShift Bot
authored
Merge pull request #11583 from stevekuznetsov/skuznets/remove-deprecated-starts
Merged by openshift-bot
2 parents e408f55 + 6f1e762 commit a553668

10 files changed

+16
-31
lines changed

hack/lib/start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function os::start::internal::patch_master_config() {
197197
readonly -f os::start::internal::patch_master_config
198198

199199
# os::start::server starts the OpenShift server, exports the PID of the OpenShift server and waits until openshift server endpoints are available
200-
# It is advised to use this function after a successful run of 'configure_os_server'
200+
# It is advised to use this function after a successful run of 'os::start::configure_server'
201201
#
202202
# Globals:
203203
# - USE_SUDO
@@ -303,7 +303,7 @@ function os::start::master() {
303303
readonly -f os::start::master
304304

305305
# os::start::all_in_one starts the OpenShift server all in one.
306-
# It is advised to use this function after a successful run of 'configure_os_server'
306+
# It is advised to use this function after a successful run of 'os::start::configure_server'
307307
#
308308
# Globals:
309309
# - USE_SUDO

hack/test-end-to-end.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ reset_tmp_dir
4848

4949
os::log::system::start
5050

51-
configure_os_server
52-
start_os_server
51+
os::start::configure_server
52+
os::start::server
5353

5454
# set our default KUBECONFIG location
5555
export KUBECONFIG="${ADMIN_KUBECONFIG}"

hack/update-generated-swagger-spec.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ export ETCD_PORT=34001
2929
export ETCD_PEER_PORT=37001
3030
os::util::environment::setup_all_server_vars "generate-swagger-spec/"
3131
reset_tmp_dir
32-
configure_os_server
32+
os::start::configure_server
3333

3434

3535
SWAGGER_SPEC_REL_DIR="${1:-}"
3636
SWAGGER_SPEC_OUT_DIR="${OS_ROOT}/${SWAGGER_SPEC_REL_DIR}/api/swagger-spec"
3737
mkdir -p "${SWAGGER_SPEC_OUT_DIR}"
3838

3939
# Start openshift
40-
start_os_master
40+
os::start::master
4141

4242
os::log::info "Updating ${SWAGGER_SPEC_OUT_DIR}:"
4343

hack/util.sh

-15
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22

33
# Provides simple utility functions
44

5-
function start_os_server() {
6-
os::log::warn "start_os_server is deprecated, please use os::start::server"
7-
os::start::server "$@"
8-
}
9-
10-
function configure_os_server() {
11-
os::log::warn "configure_os_server is deprecated, please use os::start::configure_server"
12-
os::start::configure_server "$@"
13-
}
14-
15-
function start_os_master() {
16-
os::log::warn "start_os_master is deprecated, please use os::start::master"
17-
os::start::master "$@"
18-
}
19-
205
# ensure_iptables_or_die tests if the testing machine has iptables available
216
# and in PATH. Also test whether current user has sudo privileges.
227
function ensure_iptables_or_die() {

test/extended/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ Common functions for extended tests are located in `./hack/util.sh`. Environment
9696
* `compile_extended()` perform the compilation of the Go tests into a test binary.
9797
* `test_privileges()` verify if you have permissions to start OpenShift server.
9898
* `os::util::environment::setup_all_server_vars()` setup all required environment variables related to OpenShift server.
99-
* `configure_os_server()` generates all configuration files for OpenShift server.
100-
* `start_os_server()` starts the OpenShift master and node.
99+
* `os::start::configure_server()` generates all configuration files for OpenShift server.
100+
* `os::start::server()` starts the OpenShift master and node.
101101
* `install_router_extended()` installs the OpenShift router service.
102102
* `install_registry_extended()` installs the OpenShift Docker registry service.
103103
* `create_image_streams_extended()` creates ImageStream(s) for all OpenShift images.

test/extended/alternate_launches.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trap "cleanup" EXIT
2525

2626
echo "[INFO] Starting server as distinct processes"
2727
ensure_iptables_or_die
28-
configure_os_server
28+
os::start::configure_server
2929

3030
echo "[INFO] `openshift version`"
3131
echo "[INFO] Server logs will be at: ${LOG_DIR}/openshift.log"

test/extended/cmd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ reset_tmp_dir
2929

3030
os::log::system::start
3131

32-
configure_os_server
33-
start_os_server
32+
os::start::configure_server
33+
os::start::server
3434

3535
export KUBECONFIG="${ADMIN_KUBECONFIG}"
3636

test/extended/gssapi.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function cleanup() {
7272
}
7373
trap "cleanup" EXIT
7474

75-
configure_os_server
75+
os::start::configure_server
7676

7777
# set up env vars
7878
cp -R test/extended/testdata/gssapi "${BASETMPDIR}"
@@ -85,7 +85,7 @@ backend='https://openshift.default.svc.cluster.local:443'
8585
oauth_patch="$(sed "s/HOST_NAME/${host}/" "${test_data_location}/config/oauth_config.json")"
8686
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.tmp.yaml"
8787
openshift ex config patch "${SERVER_CONFIG_DIR}/master/master-config.tmp.yaml" --patch="${oauth_patch}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
88-
start_os_server
88+
os::start::server
8989

9090
export KUBECONFIG="${ADMIN_KUBECONFIG}"
9191

test/extended/ldap_groups.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ reset_tmp_dir
2828

2929
os::log::system::start
3030

31-
configure_os_server
32-
start_os_server
31+
os::start::configure_server
32+
os::start::server
3333

3434
export KUBECONFIG="${ADMIN_KUBECONFIG}"
3535

test/extended/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function os::test::extended::setup () {
9696
CONFIG_VERSION="${CONTROLLER_VERSION}"
9797
fi
9898
os::start::configure_server "${CONFIG_VERSION}"
99-
#turn on audit logging for extended tests ... mimic what is done in util.sh configure_os_server, but don't
99+
#turn on audit logging for extended tests ... mimic what is done in os::start::configure_server, but don't
100100
# put change there - only want this for extended tests
101101
os::log::info "Turn on audit logging"
102102
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml"

0 commit comments

Comments
 (0)