Add new entrypoint 'experimental' for capsules
According to the comment in https://review.openstack.org/#/c/484602/, introduce the new api endpoint for capsules will reduce the API burden when changing. Change-Id: Ia686406449fdfa3ac4947fd997d9e2a8baf8f4b6 Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
This commit is contained in:
parent
127794e2dd
commit
51f54b8e7b
@ -147,6 +147,7 @@ function upload_sandbox_image {
|
|||||||
function create_zun_accounts {
|
function create_zun_accounts {
|
||||||
|
|
||||||
create_service_user "zun" "admin"
|
create_service_user "zun" "admin"
|
||||||
|
create_service_user "zun-experimental" "admin"
|
||||||
|
|
||||||
if is_service_enabled zun-api; then
|
if is_service_enabled zun-api; then
|
||||||
|
|
||||||
@ -159,11 +160,18 @@ function create_zun_accounts {
|
|||||||
|
|
||||||
local zun_service=$(get_or_create_service "zun" \
|
local zun_service=$(get_or_create_service "zun" \
|
||||||
"container" "Container As Service")
|
"container" "Container As Service")
|
||||||
|
local zun_experimental_service=$(get_or_create_service "zun-experimental" \
|
||||||
|
"container-experimental" "Container As Service - Experimental")
|
||||||
get_or_create_endpoint $zun_service \
|
get_or_create_endpoint $zun_service \
|
||||||
"$REGION_NAME" \
|
"$REGION_NAME" \
|
||||||
"$zun_api_url/v1" \
|
"$zun_api_url/v1" \
|
||||||
"$zun_api_url/v1" \
|
"$zun_api_url/v1" \
|
||||||
"$zun_api_url/v1"
|
"$zun_api_url/v1"
|
||||||
|
get_or_create_endpoint $zun_experimental_service \
|
||||||
|
"$REGION_NAME" \
|
||||||
|
"$zun_api_url/experimental" \
|
||||||
|
"$zun_api_url/experimental" \
|
||||||
|
"$zun_api_url/experimental"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user