diff --git a/chartpress.yaml b/chartpress.yaml new file mode 100644 index 00000000..460688e5 --- /dev/null +++ b/chartpress.yaml @@ -0,0 +1,14 @@ +charts: + - name: helm-chart/amalthea + resetTag: latest + imagePrefix: renku/ + repo: + git: SwissDataScienceCenter/helm-charts + published: https://swissdatasciencecenter.github.io/helm-charts + paths: + - . + images: + amalthea: + contextPath: . + dockerfilePath: Dockerfile + valuesPath: image diff --git a/controller/config.py b/controller/config.py index e71a9d9d..c09eae08 100644 --- a/controller/config.py +++ b/controller/config.py @@ -27,6 +27,7 @@ {"name": "configmaps", "group": ""}, {"name": "services", "group": ""}, {"name": "persistentvolumeclaims", "group": ""}, + {"name": "persistentvolumes", "group": ""}, ] CHILD_RESOURCES += json.loads(os.getenv("EXTRA_CHILD_RESOURCES", "[]")) diff --git a/helm-chart/amalthea/templates/rbac/_rbac_rules.tpl b/helm-chart/amalthea/templates/rbac/_rbac_rules.tpl index 4174a263..d640ed6f 100644 --- a/helm-chart/amalthea/templates/rbac/_rbac_rules.tpl +++ b/helm-chart/amalthea/templates/rbac/_rbac_rules.tpl @@ -30,6 +30,7 @@ - networking.k8s.io resources: - statefulsets + - persistentvolume - persistentvolumeclaims - services - ingresses diff --git a/helm-chart/amalthea/values.yaml b/helm-chart/amalthea/values.yaml index 04e48525..9bdf992c 100644 --- a/helm-chart/amalthea/values.yaml +++ b/helm-chart/amalthea/values.yaml @@ -70,7 +70,7 @@ kopf: # backoff: 10 # If the operator should be able to create and watch child resources other than -# [statefulset, persistentvolumeclaims, services, ingresses, secrets, configmaps] +# [statefulset, persistentvolumeclaims, persistentvolumeclaims, services, ingresses, secrets, configmaps] # which are necessary for Amalthea to work, add the corresponding API groups and # resources here as an array of name/group objects, eg: extraChildResources: []