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
40f918dc
Commit
40f918dc
authored
May 08, 2017
by
Konstantinos Tsakalozos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint errors in juju kubernetes master and e2e charms
parent
6dab46e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
kubernetes_e2e.py
...ter/juju/layers/kubernetes-e2e/reactive/kubernetes_e2e.py
+0
-4
Makefile
cluster/juju/layers/kubernetes-master/Makefile
+25
-0
kubernetes_master.py
...ju/layers/kubernetes-master/reactive/kubernetes_master.py
+0
-1
No files found.
cluster/juju/layers/kubernetes-e2e/reactive/kubernetes_e2e.py
View file @
40f918dc
...
@@ -14,14 +14,11 @@
...
@@ -14,14 +14,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
os
from
charms
import
layer
from
charms
import
layer
from
charms.layer
import
snap
from
charms.layer
import
snap
from
charms.reactive
import
hook
from
charms.reactive
import
hook
from
charms.reactive
import
is_state
from
charms.reactive
import
is_state
from
charms.reactive
import
remove_state
from
charms.reactive
import
set_state
from
charms.reactive
import
set_state
from
charms.reactive
import
when
from
charms.reactive
import
when
from
charms.reactive
import
when_not
from
charms.reactive
import
when_not
...
@@ -30,7 +27,6 @@ from charmhelpers.core import hookenv
...
@@ -30,7 +27,6 @@ from charmhelpers.core import hookenv
from
shlex
import
split
from
shlex
import
split
from
subprocess
import
call
from
subprocess
import
check_call
from
subprocess
import
check_call
from
subprocess
import
check_output
from
subprocess
import
check_output
...
...
cluster/juju/layers/kubernetes-master/Makefile
0 → 100644
View file @
40f918dc
#!/usr/bin/make
all
:
lint unit_test
.PHONY
:
clean
clean
:
@
rm
-rf
.tox
.PHONY
:
apt_prereqs
apt_prereqs
:
@
# Need tox, but don't install the apt version unless we have to
(
don
't want to conflict with pip)
@
which tox >/dev/null || (sudo pip install tox)
@
sudo apt-get install -y python-pip python-flake8 python3-flake8 flake8
.PHONY
:
lint
lint
:
apt_prereqs
@
tox
--notest
@
flake8
$
(
wildcard hooks reactive lib unit_tests tests
)
@
charm proof
.PHONY
:
unit_test
unit_test
:
apt_prereqs
@
echo
Starting tests...
tox
cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
View file @
40f918dc
...
@@ -441,7 +441,6 @@ def addons_ready():
...
@@ -441,7 +441,6 @@ def addons_ready():
return
False
return
False
@when
(
'loadbalancer.available'
,
'certificates.ca.available'
,
@when
(
'loadbalancer.available'
,
'certificates.ca.available'
,
'certificates.client.cert.available'
)
'certificates.client.cert.available'
)
def
loadbalancer_kubeconfig
(
loadbalancer
,
ca
,
client
):
def
loadbalancer_kubeconfig
(
loadbalancer
,
ca
,
client
):
...
...
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