Skip to content

Commit 01a119c

Browse files
committed
Rename packages to 'opr' because 'operator' is a package in the python standard library and imports fail otherwise
Rename 'server' to 'srv' for consistency Add pytest tests for tornado
1 parent 2b73723 commit 01a119c

18 files changed

+44
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ jobs:
3535
runs-on: ubuntu-latest
3636
needs:
3737
- changed-dirs
38-
if: contains(needs.changed-dirs.outputs.changeDirs, 'operator') || contains(needs.changed-dirs.outputs.changeDirs, 'server')
38+
if: contains(needs.changed-dirs.outputs.changeDirs, 'opr') || contains(needs.changed-dirs.outputs.changeDirs, 'srv')
3939
strategy:
4040
matrix:
4141
include:
4242
- image: ghcr.io/tu-wien-datalab/config-server-operator
43-
directory: operator
43+
directory: opr
44+
version-pattern: operator-v(\d.+)
4445
- image: ghcr.io/tu-wien-datalab/config-server
45-
directory: server
46+
directory: srv
47+
version-pattern: server-v(\d.+)
4648
steps:
4749
- name: Docker metadata
4850
id: meta
@@ -53,8 +55,7 @@ jobs:
5355
# generate Docker tags based on the following events/attributes
5456
tags: |
5557
type=ref,event=branch
56-
type=match,pattern=\w+-v(\d.+),group=1
57-
type=ref,event=tag
58+
type=match,pattern=${{ matrix.pattern }},group=1
5859
type=sha
5960
6061
- name: Checkout repository

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ Install dependencies
3737
Add the CRDs to the cluster
3838

3939
```bash
40-
kubectl apply -f operator/crd.yaml
40+
kubectl apply -f opr/crd.yaml
4141
```
4242

4343
Run the operator
4444

4545
```bash
46-
kopf run operator/operator.py --verbose
46+
kopf run opr/operator.py --verbose
4747
```
4848

File renamed without changes.

opr/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

srv/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)