diff --git a/charts/jupyterhub-outpost/Chart.yaml b/charts/jupyterhub-outpost/Chart.yaml index 487c92c9b7b8f638e881a43346af3fc94eb976f6..9bf530b9fe26d172298e24ececbd539dbdae1474 100644 --- a/charts/jupyterhub-outpost/Chart.yaml +++ b/charts/jupyterhub-outpost/Chart.yaml @@ -17,7 +17,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.6 +version: 1.0.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/jupyterhub-outpost/README.md b/charts/jupyterhub-outpost/README.md index e5ead55e8e22a57289165952cfe2adef90fdcbbb..4139ebd38a6830f362791ae5156681693ea04dab 100644 --- a/charts/jupyterhub-outpost/README.md +++ b/charts/jupyterhub-outpost/README.md @@ -116,6 +116,23 @@ extraEnvVarsSecrets: ``` ### CHANGELOG +#### 1.0.7 +- Add permission to delete events. Allows for cleaner spawning events when using KubeSpawner. + Example Configuration: + ``` + def delete_previous_events(spawner): + config.load_incluster_config() + v1 = client.CoreV1Api() + events = v1.list_namespaced_event(namespace=spawner.namespace, field_selector=f"involvedObject.name={spawner.pod_name}") + for event in events.items: + name = event.metadata.name + if name: + v1.delete_namespaced_event(name=name, namespace=spawner.namespace) + + async def pre_spawn_hook(spawner): + delete_previous_events(spawner) + ``` + #### 1.0.6 - using `jupyterjsc/jupyterhub-outpost:1.0.5` as default image, fixes async calls diff --git a/charts/jupyterhub-outpost/templates/rbac.yaml b/charts/jupyterhub-outpost/templates/rbac.yaml index ec3e2410707a2da4ba5e66c9d27a1ffa32fd7b9f..bc87517606db08078c981b5d90333e7c9703992c 100644 --- a/charts/jupyterhub-outpost/templates/rbac.yaml +++ b/charts/jupyterhub-outpost/templates/rbac.yaml @@ -37,7 +37,7 @@ rules: verbs: ["get", "watch", "list", "create", "delete"] - apiGroups: [""] # "" indicates the core API group resources: ["events"] - verbs: ["get", "watch", "list"] + verbs: ["get", "watch", "list", "delete"] --- kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 @@ -52,4 +52,4 @@ subjects: roleRef: kind: Role name: {{ include "jupyterhub-outpost.fullname" . }} - apiGroup: rbac.authorization.k8s.io \ No newline at end of file + apiGroup: rbac.authorization.k8s.io