Skip to content

Commit 266d928

Browse files
author
Alan Christie
committed
- Attempt to fix filters
1 parent 09458c7 commit 266d928

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

operator/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"""
7474

7575

76-
@kopf.on.create("squonk.it", "v1alpha1", "jupyternotebooks", id="jupyter")
76+
@kopf.on.create("squonk.it", "v1alpha3", "jupyternotebooks", id="jupyter")
7777
def create(name, uid, namespace, spec, logger, **_):
7878

7979
characters = string.ascii_letters + string.digits
@@ -379,7 +379,7 @@ def create(name, uid, namespace, spec, logger, **_):
379379
}
380380

381381

382-
@kopf.on.delete("squonk.it", "v1alpha1", "jupyternotebooks")
382+
@kopf.on.delete("squonk.it", "v1alpha3", "jupyternotebooks")
383383
def delete(body, **kwargs):
384384
msg = f"Jupyter notebook {body['metadata']['name']} deleted"
385385
return {'message': msg}

roles/operator/files/crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
jsonPath: .status.jupyter.notebook.token
2727
name: Token
2828
type: string
29-
name: v1alpha2
29+
name: v1alpha3
3030
schema:
3131
openAPIV3Schema:
3232
type: object

0 commit comments

Comments
 (0)