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
db9e83f1
Commit
db9e83f1
authored
May 01, 2018
by
Rye Terrell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds support for arm64 to microbot example of the kubernetes-worker charm
parent
b46dad61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
microbot
cluster/juju/layers/kubernetes-worker/actions/microbot
+4
-1
microbot-example.yaml
.../layers/kubernetes-worker/templates/microbot-example.yaml
+1
-1
No files found.
cluster/juju/layers/kubernetes-worker/actions/microbot
View file @
db9e83f1
...
@@ -21,7 +21,7 @@ from charmhelpers.core.hookenv import action_get
...
@@ -21,7 +21,7 @@ from charmhelpers.core.hookenv import action_get
from
charmhelpers.core.hookenv
import
action_set
from
charmhelpers.core.hookenv
import
action_set
from
charmhelpers.core.hookenv
import
unit_public_ip
from
charmhelpers.core.hookenv
import
unit_public_ip
from
charms.templating.jinja2
import
render
from
charms.templating.jinja2
import
render
from
subprocess
import
call
from
subprocess
import
call
,
check_output
os
.
environ
[
'PATH'
]
+=
os
.
pathsep
+
os
.
path
.
join
(
os
.
sep
,
'snap'
,
'bin'
)
os
.
environ
[
'PATH'
]
+=
os
.
pathsep
+
os
.
path
.
join
(
os
.
sep
,
'snap'
,
'bin'
)
...
@@ -30,6 +30,9 @@ context['replicas'] = action_get('replicas')
...
@@ -30,6 +30,9 @@ context['replicas'] = action_get('replicas')
context
[
'delete'
]
=
action_get
(
'delete'
)
context
[
'delete'
]
=
action_get
(
'delete'
)
context
[
'public_address'
]
=
unit_public_ip
()
context
[
'public_address'
]
=
unit_public_ip
()
arch
=
check_output
([
'dpkg'
,
'--print-architecture'
])
.
rstrip
()
context
[
'arch'
]
=
arch
.
decode
(
'utf-8'
)
if
not
context
[
'replicas'
]:
if
not
context
[
'replicas'
]:
context
[
'replicas'
]
=
3
context
[
'replicas'
]
=
3
...
...
cluster/juju/layers/kubernetes-worker/templates/microbot-example.yaml
View file @
db9e83f1
...
@@ -18,7 +18,7 @@ spec:
...
@@ -18,7 +18,7 @@ spec:
app
:
microbot
app
:
microbot
spec
:
spec
:
containers
:
containers
:
-
image
:
dontrebootme/microbot:v1
-
image
:
cdkbot/microbot-{{ arch }}:latest
imagePullPolicy
:
"
"
imagePullPolicy
:
"
"
name
:
microbot
name
:
microbot
ports
:
ports
:
...
...
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