Skip to content
Snippets Groups Projects
Commit 70f91178 authored by Tomohiro Ono's avatar Tomohiro Ono Committed by Yas Naoi
Browse files

Issue #3284251 by onotm, kumikoono, yas: Refactor K8s template parameters (Separate Files)

parent 8e55d65a
No related branches found
No related tags found
3 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!1028Issue #3284251: Refactor K8s template parameters (Separate Files)
......@@ -10,8 +10,6 @@ api_server:
api_server_token:
# You need to change the value here, or define the key-value in a separate file.
your_api_server_token
app_name:
nginx
aws_region:
us-west-2
cloud_context:
......@@ -29,8 +27,6 @@ configmap_value:
value
configmap_value_add:
dev
container_name:
nginx
cronjob_name:
bdd-cronjob-@random
cronjob_schedule:
......@@ -52,8 +48,6 @@ endpoint_ip_edit:
192.0.2.43
endpoint_name:
bdd-endpoint-@random
image_version:
nginx:1.14.2
image_name:
bdd-image-@random
ingress_name:
......@@ -105,10 +99,6 @@ persistent_volume_claim_name:
bdd-persistent-volume-claim-@random
pod_name:
bdd-pod-@random
port:
80
protocol:
TCP
replica_count:
3
replica_count_edit:
......@@ -175,7 +165,5 @@ volume_capacity_edit:
200Mi
volume_local_path:
/tmp/bdd_volume_@random
volume_mount_path:
/usr/share/nginx/html
wait:
500
# This file is processed by drush cloud:behat:preprocess.
# '@Random' is a reserved term to be replaced by a random string.
# '@random' is in lower cases, and '@RANDOM' is in uppercase.
# The use hyphen or lower score follows the rule of camel case in Kubernetes glossary.
# If the resource name is not camel case, separate each word (e.g. storage_class).
app_name:
nginx
container_name:
nginx
image_version:
nginx:1.14.2
port:
80
protocol:
TCP
volume_mount_path:
/usr/share/nginx/html
......@@ -160,8 +160,9 @@ and stop the browser process once the test ends.
```
run_behat.sh -b modules/cloud_service_providers/k8s/tests/src/Behat \
-p features/templates/params/private.yml, \
features/templates/params/k8s_params.yml
-p features/templates/params/private.yml,\
features/templates/params/k8s_params.yml,\
features/templates/params/nginx.yml
```
Instead of using the script, you can follow the steps below:
......
......@@ -3,7 +3,7 @@ readonly AWS_PARAMS_FILES='features/templates/params/private.yml,features/templa
# Single quotes are required with --tags option.
readonly AWS_TAGS="'@minimal&&~@ignore'"
readonly K8s_BEHAT_PATH='modules/cloud_service_providers/k8s/tests/src/Behat'
readonly K8s_PARAMS_FILES='features/templates/params/private.yml,features/templates/params/k8s_params.yml'
readonly K8s_PARAMS_FILES='features/templates/params/private.yml,features/templates/params/k8s_params.yml,features/templates/params/nginx.yml'
readonly DEFAULT_BEHAT_PATH='tests/src/Behat'
readonly DEFAULT_PARAMS_FILES="${K8s_PARAMS_FILES}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment