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

Commit

Permalink
Adjust for PxWebApi
Browse files Browse the repository at this point in the history
  • Loading branch information
runejo committed Nov 13, 2023
1 parent c53b58f commit 4bb4f8c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 35 deletions.
2 changes: 1 addition & 1 deletion charts/statbank-pxwebapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Document datasets in Statistics Norway.
| persistence.enabled | bool | `false` | |
| persistence.size | string | `"10Gi"` | |
| podAnnotations | object | `{}` | |
| podLabels."onyxia.app" | string | `"datadoc"` | |
| podLabels."onyxia.app" | string | `"statbank-pxwebapi"` | |
| podSecurityContext.fsGroup | int | `100` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/statbank-pxwebapi/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.istio.enabled }}
- You can connect to datadoc with your browser on this [link](https://{{ .Values.istio.hostname }})
- You can connect to PxWebApi with your browser on this [link](https://{{ .Values.istio.hostname }})
{{- if .Values.networking.user.enabled }}
- You can connect to your custom port on this [link](https://{{ .Values.istio.userHostname }})
If you don't run your custom service you will get a 502 bad gateway error.
Expand Down
4 changes: 2 additions & 2 deletions charts/statbank-pxwebapi/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
subdomain: {{ include "library-chart.fullname" . }}
hostname: datadoc
hostname: statbank-pxwebapi
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand All @@ -62,7 +62,7 @@ spec:
fieldPath: metadata.name
- name: IMAGE_NAME
value: "{{ .Values.service.image.version }}"
- name: DATADOC_DATASET_PATH
- name: PXWEBAPI_DATASET_PATH
value: {{ .Values.dataset.dataset_path }}
- name: PROJECT_USER
value: {{ .Values.environment.user }}
Expand Down
54 changes: 24 additions & 30 deletions charts/statbank-pxwebapi/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,13 @@
"x-onyxia": {
"hidden": true
},
"enum": [
"IfNotPresent",
"Always",
"Never"
]
"enum": ["IfNotPresent", "Always", "Never"]
},
"version": {
"description": "supported versions",
"type": "string",
"render": "list",
"default": "europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/onyxia/datadoc:master"
"default": "europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/onyxia/statbank-pxwebapi:main"
}
}
}
Expand Down Expand Up @@ -274,9 +270,7 @@
"title": "OAuth2 provider",
"description": "Which OAuth2 provider to use, keycloak-oidc is the only one available for now",
"default": "keycloak-oidc",
"enum": [
"keycloak-oidc"
],
"enum": ["keycloak-oidc"],
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.oauth2.provider"
Expand Down Expand Up @@ -356,28 +350,28 @@
"form": true,
"title": "Networking detail",
"properties": {
"user": {
"type": "object",
"description": "user defined port",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enable a custom service port",
"description": "Enable a custom service port",
"default": false
},
"port": {
"type": "integer",
"description": "port of the custom service",
"title": "Custom service port",
"hidden": {
"value": false,
"path": "networking/user/enabled"
},
"default": 8050
}
}
"user": {
"type": "object",
"description": "user defined port",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enable a custom service port",
"description": "Enable a custom service port",
"default": false
},
"port": {
"type": "integer",
"description": "port of the custom service",
"title": "Custom service port",
"hidden": {
"value": false,
"path": "networking/user/enabled"
},
"default": 8050
}
}
}
}
},
"userAttributes": {
Expand Down
2 changes: 1 addition & 1 deletion charts/statbank-pxwebapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ kubernetes:
podAnnotations: {}

podLabels:
onyxia.app: "datadoc"
onyxia.app: "statbank-pxwebapi"

podSecurityContext:
fsGroup: 100
Expand Down

0 comments on commit 4bb4f8c

Please sign in to comment.