Skip to content

Commit ba2046a

Browse files
committed
remove code - docs only module
1 parent 6bfee93 commit ba2046a

19 files changed

+712
-326
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.gitremotes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
"editor.codeActionsOnSave": {
1414
"source.organizeImports": true
1515
},
16+
"python.pythonPath": "/home/giles/.local/share/virtualenvs/k8s-epics-docs-jjNZuJbx",
1617
}

CONTRIBUTING.rst

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ Contributing
22
============
33

44
Contributions and issues are most welcome! All issues and pull requests are
5-
handled through github on the `dls_controls repository`_. Also, please check for
5+
handled through github on the `epics-containers repository`_. Also, please check for
66
any existing issues before filing a new one. If you have a great idea but it
77
involves big changes, please file a ticket before making a pull request! We
88
want to make sure you don't spend your time coding something that might not fit
99
the scope of the project.
1010

11-
.. _dls_controls repository: https://github.com/dls-controls/k8s_epics_docs/issues
11+
.. _epics-containers repository: https://github.com/epics-containers/k8s-epics-docs/issues
1212

1313
Running the tests
1414
-----------------
1515

1616
To get the source source code and run the unit tests, run::
1717

18-
$ git clone git://github.com/dls-controls/k8s_epics_docs.git
18+
$ git clone git://github.com/epics-containers/k8s-epics-docs.git
1919
$ cd k8s_epics_docs
2020
$ pipenv install --dev
2121
$ pipenv run tests
@@ -27,6 +27,9 @@ same or is improved by a pull request!
2727
Code Styling
2828
------------
2929

30+
This documentation module currently has no code but the style applies to any
31+
python modules in the epics-containers organization.
32+
3033
The code in this repository conforms to standards set by the following tools:
3134

3235
- black_ for code formatting
@@ -66,13 +69,3 @@ You can build the docs from the project directory by running::
6669
$ pipenv run docs
6770
$ firefox build/html/index.html
6871

69-
70-
Release Checklist
71-
-----------------
72-
73-
Before a new release, please go through the following checklist:
74-
75-
- Choose a new PEP440 compliant release number
76-
- Git tag the version with a message summarizing the changes
77-
- Push to github and the actions will make a release on pypi
78-
- Push to internal gitlab and do a dls-release.py of the tag

Pipfile.lock

Lines changed: 634 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.rst

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ how it does it, and why people should use it.
88

99
============== ==============================================================
1010
PyPI ``pip install k8s_epics_docs``
11-
Source code https://github.com/dls-controls/k8s_epics_docs
12-
Documentation https://dls-controls.github.io/k8s_epics_docs
11+
Source code https://github.com/epics-containers/k8s-epics-docs
12+
Documentation https://epics-containers.github.io
1313
============== ==============================================================
1414

1515
This is where you should put some images or code snippets that illustrate
@@ -28,22 +28,14 @@ Or if it is a commandline tool then you might put some example commands here::
2828
k8s_epics_docs person --times=2
2929

3030

31-
.. |code_ci| image:: https://github.com/dls-controls/k8s_epics_docs/workflows/Code%20CI/badge.svg?branch=master
32-
:target: https://github.com/dls-controls/k8s_epics_docs/actions?query=workflow%3A%22Code+CI%22
31+
.. |code_ci| image:: https://github.com/epics-containers/k8s-epics-docs/workflows/Code%20CI/badge.svg?branch=master
32+
:target: https://github.com/epics-containers/k8s-epics-docs/actions?query=workflow%3A%22Code+CI%22
3333
:alt: Code CI
3434

35-
.. |docs_ci| image:: https://github.com/dls-controls/k8s_epics_docs/workflows/Docs%20CI/badge.svg?branch=master
36-
:target: https://github.com/dls-controls/k8s_epics_docs/actions?query=workflow%3A%22Docs+CI%22
35+
.. |docs_ci| image:: https://github.com/epics-containers/k8s-epics-docs/workflows/Docs%20CI/badge.svg?branch=master
36+
:target: https://github.com/epics-containers/k8s-epics-docs/actions?query=workflow%3A%22Docs+CI%22
3737
:alt: Docs CI
3838

39-
.. |coverage| image:: https://codecov.io/gh/dls-controls/k8s_epics_docs/branch/master/graph/badge.svg
40-
:target: https://codecov.io/gh/dls-controls/k8s_epics_docs
41-
:alt: Test Coverage
42-
43-
.. |pypi_version| image:: https://img.shields.io/pypi/v/k8s_epics_docs.svg
44-
:target: https://pypi.org/project/k8s_epics_docs
45-
:alt: Latest PyPI version
46-
4739
.. |license| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
4840
:target: https://opensource.org/licenses/Apache-2.0
4941
:alt: Apache License
@@ -52,4 +44,4 @@ Or if it is a commandline tool then you might put some example commands here::
5244
Anything below this line is used when viewing README.rst and will be replaced
5345
when included in index.rst
5446
55-
See https://dls-controls.github.io/k8s_epics_docs for more detailed documentation.
47+
See https://epics-containers.github.io for more detailed documentation.

docs/reference/api.rst

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/reference/cli.rst

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
.. _CLI:
2+
3+
CLI
4+
===
5+
6+
The Module k8s-epics-utils provides scripts that simplify common operations
7+
for deploying and managing IOCs with Kubernetes.
8+
9+
The underlying tools used are:
10+
11+
- kubectl: https://kubernetes.io/docs/tasks/tools/
12+
- helm: https://helm.sh/docs/intro/install/
13+
14+
To enable the scripts you must have helm and kubectl installed and be
15+
authenticated to your kubernetes cluster. Then source the script:
16+
17+
-
18+
19+
The k8s-iocs shell function can perform the following opertions. In all cases
20+
these are simply shortcuts for helm and kubectl commands.
21+
22+
usage:
23+
k8s-ioc <command> <options>
24+
25+
commands:
26+
27+
attach <ioc-name>
28+
attach to a running ioc shell
29+
delete <ioc-name>
30+
delete all ioc resources except storage
31+
deploy <ioc-name> <ioc-version>
32+
deploy an ioc manifest from the beamline helm registry
33+
exec <ioc-name>
34+
execute bash in the ioc's container
35+
history <ioc-name>
36+
list the history of installed versions of an ioc
37+
graylog <ioc-name>
38+
print a URL to get to greylog historical logging for an ioc
39+
list <ioc-name> [options]
40+
list k8s resources associtated with ioc-name
41+
-o output formatting e.g. -o name
42+
log <ioc-name> [options]
43+
display log of ioc output
44+
-p for previous instance
45+
-f to attach to output stream
46+
monitor <beamline>
47+
monitor the status of running IOCs on a beamline
48+
ps [<beamline>]
49+
list all running iocs [on beamline]
50+
purge
51+
clear the helm local cache
52+
restart <ioc-name>
53+
restart a running ioc
54+
rollback <ioc-name> <revision>
55+
rollback to a previous revision
56+
(see history command for revision numbers)
57+
start <ioc-name>
58+
start a stopped ioc
59+
stop <ioc-name>
60+
stop a deployed ioc

docs/tutorials/installation.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
Installation Tutorial
22
=====================
33

4-
.. note::
5-
6-
For installation inside DLS, please see the internal documentation on
7-
``dls-python3`` and ``pipenv``. Although these instructions will work
8-
inside DLS, they are intended for external use.
9-
104
Check your version of python
115
----------------------------
126

@@ -35,7 +29,7 @@ You can now use ``pip`` to install the library::
3529
If you require a feature that is not currently released you can also install
3630
from github::
3731

38-
python3 -m pip install git+git://github.com/dls-controls/k8s_epics_docs.git
32+
python3 -m pip install git+git://github.com/epics-containers/k8s-epics-docs.git
3933

4034
The library should now be installed and the commandline interface on your path.
4135
You can check the version that has been installed by typing::

k8s_epics_docs/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)