Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8b1bd664
Commit
8b1bd664
authored
Jul 07, 2016
by
Cole Mickens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
azure kube-up respects AZURE_RESOURCE_GROUP
This fixes #28482. declare AZKUBE_ variables as global to workaround lack of bash support for exporting array variables
parent
203e1e96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
util.sh
cluster/azure/util.sh
+7
-11
No files found.
cluster/azure/util.sh
View file @
8b1bd664
...
...
@@ -165,9 +165,9 @@ EOF
}
function
get-common-params
()
{
declare
-a
AZKUBE_AUTH_PARAMS
declare
-a
AZKUBE_DOCKER_PARAMS
declare
-a
AZKUBE_RESOURCE_GROUP_PARAM
declare
-a
g
AZKUBE_AUTH_PARAMS
declare
-a
g
AZKUBE_DOCKER_PARAMS
declare
-a
g
AZKUBE_RESOURCE_GROUP_PARAM
case
"
${
AZURE_AUTH_METHOD
}
"
in
"client_secret"
)
...
...
@@ -180,17 +180,13 @@ function get-common-params() {
if
[[
!
-z
"
${
AZURE_HTTPS_PROXY
:-}
"
]]
;
then
docker_params
+
=(
"--net=host"
"--env=https_proxy=
${
AZURE_HTTPS_PROXY
}
"
)
AZKUBE_DOCKER_PARAMS
+
=(
"--net=host"
"--env=https_proxy=
${
AZURE_HTTPS_PROXY
}
"
)
fi
if
[[
!
-z
"
${
AZURE_RESOURCE_GROUP
_PARAM
:-}
"
]]
;
then
echo
"Forcing use of resource group
${
AZURE_RESOURCE_GROUP
_PARAM
}
"
resource_group_params+
=(
"--resource-group=
${
AZURE_RESOURCE_GROUP_PARAM
}
"
)
if
[[
!
-z
"
${
AZURE_RESOURCE_GROUP
:-}
"
]]
;
then
echo
"Forcing use of resource group
${
AZURE_RESOURCE_GROUP
}
"
AZKUBE_RESOURCE_GROUP_PARAM+
=(
"--resource-group=
${
AZURE_RESOURCE_GROUP
}
"
)
fi
export
AZKUBE_AUTH_PARAMS
export
AZKUBE_DOCKER_PARAMS
export
AZKUBE_RESOURCE_GROUP_PARAM
}
function
azure-deploy
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment