Skip to content

Commit d2a2c97

Browse files
author
Alan Christie
committed
feat: Adds new DM config map (defining images)
1 parent 2753812 commit d2a2c97

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

roles/operator/tasks/deploy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
definition: "{{ lookup('template', 'crd.yaml.j2') }}"
66
wait: yes
77

8-
- name: Deploy Data Manager API RBAC
8+
- name: Deploy Data Manager Material
99
kubernetes.core.k8s:
1010
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
1111
wait: yes
1212
loop:
1313
- rbac-data-manager
14+
- configmap-data-manager
1415

1516
- name: Deploy objects to operator Namespace ({{ jo_namespace }})
1617
kubernetes.core.k8s:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
3+
# A Data-Manager-compliant ConfigMap.
4+
# This is deployed tot the DM namespace and provides configuration material.
5+
# The configMap must have the same name as the application CRD,
6+
# e.g. 'jupyternotebooks.squonk.it'.
7+
#
8+
# The 'data' section provides a 'dm-app.config' key
9+
# with a value that's essentially a Python Configparser file using '='
10+
# as key/value delimiter.
11+
12+
kind: ConfigMap
13+
apiVersion: v1
14+
metadata:
15+
name: jupyternotebooks.squonk.it
16+
namespace: {{ dt_namespace }}
17+
data:
18+
dm-app.config: |
19+
[public image variants]
20+
# A list of image variants that are public
21+
# (i.e. do not need an ImagePullSecret).
22+
# The key is the image (including its tag).
23+
# The value is the image symbolic name.
24+
jupyter/base-notebook:2022-09-12 = Base
25+
jupyter/minimal-notebook:2022-09-12 = Minimal
26+
jupyter/r-notebook:r-4.1.3 = r v4
27+
jupyter/scipy-notebook:2022-09-12 = SciPy
28+
jupyter/tensorflow-notebook:tensorflow-2.9.1 = Tensorflow 2.9
29+
jupyter/datascience-notebook:2022-09-12 = DataScience

0 commit comments

Comments
 (0)