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
f416289a
Commit
f416289a
authored
May 01, 2015
by
Eric Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update all python with boilerplate
parent
b0129089
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
258 additions
and
5 deletions
+258
-5
json-extractor.py
build/json-extractor.py
+1
-1
__init__.py
...er/juju/charms/trusty/kubernetes-master/hooks/__init__.py
+16
-0
hooks.py
cluster/juju/charms/trusty/kubernetes-master/hooks/hooks.py
+16
-1
install.py
...ter/juju/charms/trusty/kubernetes-master/hooks/install.py
+15
-1
kubernetes_installer.py
...ms/trusty/kubernetes-master/hooks/kubernetes_installer.py
+16
-0
setup.py
cluster/juju/charms/trusty/kubernetes-master/hooks/setup.py
+16
-0
kubernetes_installer_test.py
...kubernetes-master/unit_tests/kubernetes_installer_test.py
+16
-0
test_install.py
...harms/trusty/kubernetes-master/unit_tests/test_install.py
+16
-0
hooks.py
cluster/juju/charms/trusty/kubernetes/hooks/hooks.py
+16
-1
kubernetes_installer.py
...ju/charms/trusty/kubernetes/hooks/kubernetes_installer.py
+16
-0
__init__.py
cluster/juju/charms/trusty/kubernetes/hooks/lib/__init__.py
+16
-0
registrator.py
...er/juju/charms/trusty/kubernetes/hooks/lib/registrator.py
+16
-0
test_registrator.py
...arms/trusty/kubernetes/unit_tests/lib/test_registrator.py
+16
-0
test_hooks.py
...er/juju/charms/trusty/kubernetes/unit_tests/test_hooks.py
+16
-0
return-node-ips.py
cluster/juju/return-node-ips.py
+15
-0
container_bridge.py
cluster/saltbase/salt/_states/container_bridge.py
+3
-1
celery_conf.py
examples/celery-rabbitmq/celery-app-add/celery_conf.py
+16
-0
run_tasks.py
examples/celery-rabbitmq/celery-app-add/run_tasks.py
+16
-0
No files found.
build/json-extractor.py
View file @
f416289a
#!/usr/bin/env python
#!/usr/bin/env python
# Copyright 2014
Google Inc.
All rights reserved.
# Copyright 2014
The Kubernetes Authors
All rights reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
cluster/juju/charms/trusty/kubernetes-master/hooks/__init__.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cluster/juju/charms/trusty/kubernetes-master/hooks/hooks.py
100755 → 100644
View file @
f416289a
#!/usr/bin/python
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
"""
The main hook file is called by Juju.
The main hook file is called by Juju.
"""
"""
...
...
cluster/juju/charms/trusty/kubernetes-master/hooks/install.py
100755 → 100644
View file @
f416289a
#!/usr/bin/python
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
setup
import
setup
setup
.
pre_install
()
setup
.
pre_install
()
...
...
cluster/juju/charms/trusty/kubernetes-master/hooks/kubernetes_installer.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
os
import
shlex
import
shlex
import
subprocess
import
subprocess
...
...
cluster/juju/charms/trusty/kubernetes-master/hooks/setup.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
def
pre_install
():
def
pre_install
():
"""
"""
Do any setup required before the install hook.
Do any setup required before the install hook.
...
...
cluster/juju/charms/trusty/kubernetes-master/unit_tests/kubernetes_installer_test.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
mock
import
patch
from
mock
import
patch
from
path
import
path
from
path
import
path
from
path
import
Path
from
path
import
Path
...
...
cluster/juju/charms/trusty/kubernetes-master/unit_tests/test_install.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
mock
import
patch
,
Mock
,
MagicMock
from
mock
import
patch
,
Mock
,
MagicMock
from
path
import
Path
from
path
import
Path
import
pytest
import
pytest
...
...
cluster/juju/charms/trusty/kubernetes/hooks/hooks.py
100755 → 100644
View file @
f416289a
#!/usr/bin/python
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
"""
The main hook file that is called by Juju.
The main hook file that is called by Juju.
"""
"""
...
...
cluster/juju/charms/trusty/kubernetes/hooks/kubernetes_installer.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
subprocess
import
subprocess
from
path
import
path
from
path
import
path
...
...
cluster/juju/charms/trusty/kubernetes/hooks/lib/__init__.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cluster/juju/charms/trusty/kubernetes/hooks/lib/registrator.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
httplib
import
httplib
import
json
import
json
import
time
import
time
...
...
cluster/juju/charms/trusty/kubernetes/unit_tests/lib/test_registrator.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
json
import
json
from
mock
import
MagicMock
,
patch
,
call
from
mock
import
MagicMock
,
patch
,
call
from
path
import
Path
from
path
import
Path
...
...
cluster/juju/charms/trusty/kubernetes/unit_tests/test_hooks.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# import pytest
# import pytest
...
...
cluster/juju/return-node-ips.py
100755 → 100644
View file @
f416289a
#!/usr/bin/env python
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
json
import
json
import
sys
import
sys
# This script helps parse out the private IP addreses from the
# This script helps parse out the private IP addreses from the
...
...
cluster/saltbase/salt/_states/container_bridge.py
View file @
f416289a
# Copyright 2014 Google Inc. All rights reserved.
#!/usr/bin/env python
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
examples/celery-rabbitmq/celery-app-add/celery_conf.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
os
from
celery
import
Celery
from
celery
import
Celery
...
...
examples/celery-rabbitmq/celery-app-add/run_tasks.py
View file @
f416289a
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
random
import
random
import
syslog
import
syslog
import
time
import
time
...
...
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