Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Revert "refactored service options" (#70)
Browse files Browse the repository at this point in the history
* Revert "refactored service options (#67)"

This reverts commit f31ff9b.

* bump versions
  • Loading branch information
ssb-jnk authored Nov 15, 2023
1 parent 25bb957 commit db6806a
Show file tree
Hide file tree
Showing 15 changed files with 104 additions and 53 deletions.
1 change: 1 addition & 0 deletions charts/datadoc/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
If you don't run your custom service you will get a 502 bad gateway error.
{{- end }}
{{- end }}
- Your access token is **{{ .Values.security.password }}**
25 changes: 13 additions & 12 deletions charts/datadoc/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,10 @@
]
},
"version": {
"description": "datadoc supported versions",
"description": "supported versions",
"type": "string",
"default": "europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/onyxia/datadoc:master",
"listEnum": [
"europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/onyxia/datadoc:master"
],
"render": "list",
"pattern": "^[a-z0-9-_./]+(:[a-z0-9-_.]+)?$"
"default": "europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/onyxia/datadoc:master"
}
}
}
Expand Down Expand Up @@ -174,6 +170,15 @@
"description": "security specific configuration",
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "Password",
"default": "changeme",
"render": "password",
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
},
"allowlist": {
"type": "object",
"description": "IP protection",
Expand All @@ -183,7 +188,6 @@
"title": "Enable IP protection",
"description": "Only the configured set of IPs will be able to reach the service",
"default": true,
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "region.defaultIpProtection"
}
Expand Down Expand Up @@ -211,7 +215,6 @@
"title": "Enable network policy",
"description": "Only pod from the same namespace will be allowed",
"default": true,
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "region.defaultNetworkPolicy"
}
Expand All @@ -235,8 +238,7 @@
"type": "boolean",
"title": "Enable service entry",
"description": "Enable access to external services",
"default": true,
"hidden": true
"default": true
},
"hosts": {
"type": "array",
Expand Down Expand Up @@ -362,8 +364,7 @@
"type": "boolean",
"title": "Enable a custom service port",
"description": "Enable a custom service port",
"default": false,
"hidden": true
"default": false
},
"port": {
"type": "integer",
Expand Down
1 change: 1 addition & 0 deletions charts/jupyter-python-dapla/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if .Values.istio.enabled }}
- You can connect to this jupyter with your browser on this [link](https://{{ .Values.istio.hostname }})
{{- end }}
- Your access token is **{{ .Values.security.password }}**

*NOTES about deletion :*

Expand Down
4 changes: 4 additions & 0 deletions charts/jupyter-python-dapla/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ spec:
- name: NB_USER
value: {{ .Values.environment.user }}
- name: PASSWORD
{{- if .Values.security.oauth2.enabled}}
value: ""
{{- else }}
value: {{ .Values.security.password }}
{{- end }}
- name: PROJECT_USER
value: {{ .Values.environment.user }}
- name: PROJECT_GROUP
Expand Down
26 changes: 14 additions & 12 deletions charts/jupyter-python-dapla/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,19 @@
"type": "boolean",
"title": "Enable hive metastore discovery",
"description": "discover your hive metastore service",
"default": true,
"hidden": true
"default": true
},
"mlflow": {
"type": "boolean",
"title": "Enable mlflow discovery",
"description": "discover your mlflow service",
"default": true,
"hidden": true
"default": true
},
"metaflow": {
"type": "boolean",
"title": "Enable metaflow discovery",
"description": "discover your metaflow service",
"default": true,
"hidden": true
"default": true
}
}
},
Expand Down Expand Up @@ -183,6 +180,15 @@
"description": "security specific configuration",
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "Password",
"default": "changeme",
"render": "password",
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
},
"allowlist": {
"type": "object",
"description": "IP protection",
Expand All @@ -192,7 +198,6 @@
"title": "Enable IP protection",
"description": "Only the configured set of IPs will be able to reach the service",
"default": true,
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "region.defaultIpProtection"
}
Expand Down Expand Up @@ -220,7 +225,6 @@
"title": "Enable network policy",
"description": "Only pod from the same namespace will be allowed",
"default": true,
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "region.defaultNetworkPolicy"
}
Expand All @@ -244,8 +248,7 @@
"type": "boolean",
"title": "Enable service entry",
"description": "Enable access to external services",
"default": true,
"hidden": true
"default": true
},
"hosts": {
"type": "array",
Expand Down Expand Up @@ -484,8 +487,7 @@
"type": "boolean",
"title": "Enable a custom service port",
"description": "Enable a custom service port",
"default": false,
"hidden": true
"default": false
},
"port": {
"type": "integer",
Expand Down
1 change: 1 addition & 0 deletions charts/mlflow-dapla/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if .Values.istio.enabled }}
- You can connect to the mlflow UI with your browser on this [link](https://{{ .Values.istio.hostname }})
{{- end }}
- Your access token is **{{ .Values.security.password }}**

*NOTES about deletion :*

Expand Down
16 changes: 9 additions & 7 deletions charts/mlflow-dapla/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"description": "Enable route",
"type": "boolean",
"default": false,
"hidden": true,
"x-onyxia": {
"hidden": false,
"overwriteDefaultWith": "k8s.route"
Expand All @@ -62,7 +61,6 @@
"type": "string",
"form": true,
"title": "Hostname",
"hidden": true,
"x-onyxia": {
"hidden": false,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
Expand All @@ -74,6 +72,14 @@
"description": "security specific configuration",
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "Password",
"default": "changeme",
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
},
"allowlist": {
"type": "object",
"description": "IP protection",
Expand Down Expand Up @@ -136,8 +142,7 @@
"type": "boolean",
"title": "Enable service entry",
"description": "Enable access to external services",
"default": true,
"hidden": true
"default": true
},
"hosts": {
"type": "array",
Expand Down Expand Up @@ -292,7 +297,6 @@
"type": "string",
"title": "User",
"default": "user",
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "{{project.id}}"
}
Expand All @@ -301,7 +305,6 @@
"type": "string",
"title": "User Password",
"default": "changeme",
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
Expand All @@ -310,7 +313,6 @@
"type": "string",
"title": "Admin Password",
"default": "changeme",
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
Expand Down
3 changes: 3 additions & 0 deletions charts/rstudio-dapla/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- You can connect to this rstudio with your browser on this [link](https://{{ .Values.istio.hostname }})
{{- end }}

- The login is **{{ .Values.environment.user }}**
- The password is **{{ .Values.security.password }}**

*NOTES about deletion :*

{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio-dapla/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
- name: IMAGE_NAME
value: "{{ .Values.service.image.version }}"
- name: PASSWORD
value: ""
value: {{ .Values.security.password }}
- name: PROJECT_USER
value: {{ .Values.environment.user }}
- name: PROJECT_GROUP
Expand Down
17 changes: 11 additions & 6 deletions charts/rstudio-dapla/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"description": "RStudio specific configuration",
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "Password",
"default": "changeme",
"render": "password",
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
},
"allowlist": {
"type": "object",
"description": "IP protection",
Expand All @@ -170,7 +179,6 @@
"title": "Enable IP protection",
"description": "Only the configured set of IPs will be able to reach the service",
"default": true,
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "region.defaultIpProtection"
}
Expand Down Expand Up @@ -198,7 +206,6 @@
"title": "Enable network policy",
"description": "Only pod from the same namespace will be allowed",
"default": true,
"hidden": true,
"x-onyxia": {
"overwriteDefaultWith": "region.defaultNetworkPolicy"
}
Expand All @@ -222,8 +229,7 @@
"type": "boolean",
"title": "Enable service entry",
"description": "Enable access to external services",
"default": true,
"hidden": true
"default": true
},
"hosts": {
"type": "array",
Expand Down Expand Up @@ -497,8 +503,7 @@
"type": "boolean",
"title": "Enable a custom service port",
"description": "Enable a custom service port",
"default": false,
"hidden": true
"default": false
},
"port": {
"type": "integer",
Expand Down
2 changes: 2 additions & 0 deletions charts/vscode-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ The Visual Studio Code IDE with Python, Julia, and a collection of standard data
| discovery.mlflow | bool | `true` | |
| environment.group | string | `"users"` | |
| environment.user | string | `"onyxia"` | |
| fauxpilot.enabled | bool | `false` | |
| fauxpilot.server | string | `"http://fauxpilot-proxy.fauxpilot:5000/v1/engines"` | |
| fullnameOverride | string | `""` | |
| git.branch | string | `""` | |
| git.cache | string | `""` | |
Expand Down
1 change: 1 addition & 0 deletions charts/vscode-python/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.istio.enabled }}
- You can connect to this vscode with your browser on this [link](https://{{ .Values.istio.hostname }})
{{- end }}
- Your access token is **{{ .Values.security.password }}**
6 changes: 5 additions & 1 deletion charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,17 @@ spec:
value: {{ .Values.init.personalInitArgs }}
{{- end }}
- name: PASSWORD
value: ""
value: {{ .Values.security.password }}
- name: PROJECT_USER
value: {{ .Values.environment.user }}
- name: PROJECT_GROUP
value: {{ .Values.environment.group }}
- name: ROOT_PROJECT_DIRECTORY
value: /home/{{ .Values.environment.user }}/work
{{- if .Values.fauxpilot.enabled }}
- name: FAUXPILOT_SERVER
value: "{{ .Values.fauxpilot.server }}"
{{- end }}
envFrom:
{{- if .Values.oidc.enabled }}
- configMapRef:
Expand Down
Loading

0 comments on commit db6806a

Please sign in to comment.