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
afc3befa
Commit
afc3befa
authored
Apr 13, 2018
by
Krzysztof Siedlecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing FULL_REGISTRY assignment
parent
ca5f4b2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
cloud-provider-config.sh
test/kubemark/cloud-provider-config.sh
+1
-1
hollow-node_template.yaml
test/kubemark/resources/hollow-node_template.yaml
+2
-2
start-kubemark.sh
test/kubemark/start-kubemark.sh
+4
-3
No files found.
test/kubemark/cloud-provider-config.sh
View file @
afc3befa
...
...
@@ -17,5 +17,5 @@
CLOUD_PROVIDER
=
"
${
CLOUD_PROVIDER
:-
gce
}
"
CONTAINER_REGISTRY
=
"
${
CONTAINER_REGISTRY
:-
gcr
.io
}
"
PROJECT
=
"
${
PROJECT
:-}
"
FULL_REGISTRY
=
"
${
CONTAINER_REGISTRY
}
/
${
PROJECT
}
"
KUBEMARK_IMAGE_REGISTRY
=
"
${
KUBEMARK_IMAGE_REGISTRY
:-
}
"
KUBEMARK_IMAGE_MAKE_TARGET
=
"
${
KUBEMARK_IMAGE_MAKE_TARGET
:-
gcloudpush
}
"
test/kubemark/resources/hollow-node_template.yaml
View file @
afc3befa
...
...
@@ -35,7 +35,7 @@ spec:
emptyDir
:
{}
containers
:
-
name
:
hollow-kubelet
image
:
{{
full
_registry
}}
/kubemark:{{kubemark_image_tag}}
image
:
{{
kubemark_image
_registry
}}
/kubemark:{{kubemark_image_tag}}
ports
:
-
containerPort
:
4194
-
containerPort
:
10250
...
...
@@ -67,7 +67,7 @@ spec:
securityContext
:
privileged
:
true
-
name
:
hollow-proxy
image
:
{{
full
_registry
}}
/kubemark:{{kubemark_image_tag}}
image
:
{{
kubemark_image
_registry
}}
/kubemark:{{kubemark_image_tag}}
env
:
-
name
:
CONTENT_TYPE
valueFrom
:
...
...
test/kubemark/start-kubemark.sh
View file @
afc3befa
...
...
@@ -207,8 +207,9 @@ function create-and-upload-hollow-node-image {
CURR_DIR
=
`
pwd
`
cd
"
${
MAKE_DIR
}
"
RETRIES
=
3
KUBEMARK_IMAGE_REGISTRY
=
"
${
KUBEMARK_IMAGE_REGISTRY
:-${
CONTAINER_REGISTRY
}
/
${
PROJECT
}}
"
for
attempt
in
$(
seq
1
${
RETRIES
})
;
do
if
!
REGISTRY
=
"
${
FULL
_REGISTRY
}
"
IMAGE_TAG
=
"
${
KUBEMARK_IMAGE_TAG
}
"
make
"
${
KUBEMARK_IMAGE_MAKE_TARGET
}
"
;
then
if
!
REGISTRY
=
"
${
KUBEMARK_IMAGE
_REGISTRY
}
"
IMAGE_TAG
=
"
${
KUBEMARK_IMAGE_TAG
}
"
make
"
${
KUBEMARK_IMAGE_MAKE_TARGET
}
"
;
then
if
[[
$((
attempt
))
-eq
"
${
RETRIES
}
"
]]
;
then
echo
"
${
color_red
}
Make failed. Exiting.
${
color_norm
}
"
exit
1
...
...
@@ -233,7 +234,7 @@ function create-and-upload-hollow-node-image-bazel {
RETRIES
=
3
for
attempt
in
$(
seq
1
${
RETRIES
})
;
do
if
!
bazel run //cluster/images/kubemark:push
--define
REGISTRY
=
"
${
FULL
_REGISTRY
}
"
--define
IMAGE_TAG
=
"
${
KUBEMARK_IMAGE_TAG
}
"
;
then
if
!
bazel run //cluster/images/kubemark:push
--define
REGISTRY
=
"
${
KUBEMARK_IMAGE
_REGISTRY
}
"
--define
IMAGE_TAG
=
"
${
KUBEMARK_IMAGE_TAG
}
"
;
then
if
[[
$((
attempt
))
-eq
"
${
RETRIES
}
"
]]
;
then
echo
"
${
color_red
}
Image push failed. Exiting.
${
color_norm
}
"
exit
1
...
...
@@ -407,7 +408,7 @@ current-context: kubemark-context")
proxy_mem
=
$((
100
*
1024
+
${
proxy_mem_per_node
}
*
${
NUM_NODES
}))
sed
-i
''
-e
"s/{{HOLLOW_PROXY_CPU}}/
${
proxy_cpu
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{HOLLOW_PROXY_MEM}}/
${
proxy_mem
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s'{{
full_registry}}'
${
FULL
_REGISTRY
}
'g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s'{{
kubemark_image_registry}}'
${
KUBEMARK_IMAGE
_REGISTRY
}
'g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{kubemark_image_tag}}/
${
KUBEMARK_IMAGE_TAG
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{master_ip}}/
${
MASTER_IP
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{kubelet_verbosity_level}}/
${
KUBELET_TEST_LOG_LEVEL
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
...
...
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