File tree 10 files changed +16
-31
lines changed
10 files changed +16
-31
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ function os::start::internal::patch_master_config() {
197
197
readonly -f os::start::internal::patch_master_config
198
198
199
199
# 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 '
201
201
#
202
202
# Globals:
203
203
# - USE_SUDO
@@ -303,7 +303,7 @@ function os::start::master() {
303
303
readonly -f os::start::master
304
304
305
305
# 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 '
307
307
#
308
308
# Globals:
309
309
# - USE_SUDO
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ reset_tmp_dir
48
48
49
49
os::log::system::start
50
50
51
- configure_os_server
52
- start_os_server
51
+ os::start::configure_server
52
+ os::start::server
53
53
54
54
# set our default KUBECONFIG location
55
55
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ export ETCD_PORT=34001
29
29
export ETCD_PEER_PORT=37001
30
30
os::util::environment::setup_all_server_vars " generate-swagger-spec/"
31
31
reset_tmp_dir
32
- configure_os_server
32
+ os::start::configure_server
33
33
34
34
35
35
SWAGGER_SPEC_REL_DIR=" ${1:- } "
36
36
SWAGGER_SPEC_OUT_DIR=" ${OS_ROOT} /${SWAGGER_SPEC_REL_DIR} /api/swagger-spec"
37
37
mkdir -p " ${SWAGGER_SPEC_OUT_DIR} "
38
38
39
39
# Start openshift
40
- start_os_master
40
+ os::start::master
41
41
42
42
os::log::info " Updating ${SWAGGER_SPEC_OUT_DIR} :"
43
43
Original file line number Diff line number Diff line change 2
2
3
3
# Provides simple utility functions
4
4
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
-
20
5
# ensure_iptables_or_die tests if the testing machine has iptables available
21
6
# and in PATH. Also test whether current user has sudo privileges.
22
7
function ensure_iptables_or_die() {
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ Common functions for extended tests are located in `./hack/util.sh`. Environment
96
96
* ` compile_extended() ` perform the compilation of the Go tests into a test binary.
97
97
* ` test_privileges() ` verify if you have permissions to start OpenShift server.
98
98
* ` 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.
101
101
* ` install_router_extended() ` installs the OpenShift router service.
102
102
* ` install_registry_extended() ` installs the OpenShift Docker registry service.
103
103
* ` create_image_streams_extended() ` creates ImageStream(s) for all OpenShift images.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ trap "cleanup" EXIT
25
25
26
26
echo " [INFO] Starting server as distinct processes"
27
27
ensure_iptables_or_die
28
- configure_os_server
28
+ os::start::configure_server
29
29
30
30
echo " [INFO] ` openshift version` "
31
31
echo " [INFO] Server logs will be at: ${LOG_DIR} /openshift.log"
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ reset_tmp_dir
29
29
30
30
os::log::system::start
31
31
32
- configure_os_server
33
- start_os_server
32
+ os::start::configure_server
33
+ os::start::server
34
34
35
35
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
36
36
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ function cleanup() {
72
72
}
73
73
trap " cleanup" EXIT
74
74
75
- configure_os_server
75
+ os::start::configure_server
76
76
77
77
# set up env vars
78
78
cp -R test/extended/testdata/gssapi " ${BASETMPDIR} "
@@ -85,7 +85,7 @@ backend='https://openshift.default.svc.cluster.local:443'
85
85
oauth_patch=" $( sed " s/HOST_NAME/${host} /" " ${test_data_location} /config/oauth_config.json" ) "
86
86
cp " ${SERVER_CONFIG_DIR} /master/master-config.yaml" " ${SERVER_CONFIG_DIR} /master/master-config.tmp.yaml"
87
87
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
89
89
90
90
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
91
91
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ reset_tmp_dir
28
28
29
29
os::log::system::start
30
30
31
- configure_os_server
32
- start_os_server
31
+ os::start::configure_server
32
+ os::start::server
33
33
34
34
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
35
35
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ function os::test::extended::setup () {
96
96
CONFIG_VERSION=" ${CONTROLLER_VERSION} "
97
97
fi
98
98
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
100
100
# put change there - only want this for extended tests
101
101
os::log::info " Turn on audit logging"
102
102
cp " ${SERVER_CONFIG_DIR} /master/master-config.yaml" " ${SERVER_CONFIG_DIR} /master/master-config.orig2.yaml"
You can’t perform that action at this time.
0 commit comments