-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter catalog services based on keywords (#520)
- Loading branch information
Showing
5 changed files
with
232 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
onyxia-api/src/test/resources/catalog-loader-test-with-keywords/catalogs.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// This file is a json5-file, which onyxia-api should be able to parse | ||
{ | ||
"catalogs": [ | ||
{ | ||
"id": "ide", | ||
"name": "IDE", | ||
"description": "Services for datascientists.", | ||
"maintainer": "[email protected]", | ||
"location": "https://inseefrlab.github.io/helm-charts-interactive-services", | ||
"status": "PROD", | ||
"highlightedCharts": ["jupyter-python", "rstudio", "vscode-python"], | ||
// Single quote should be supported | ||
"timeout": '10m', | ||
"type": 'helm', | ||
/* block comment | ||
over several | ||
lines are supported */ | ||
"skipTlsVerify": false, | ||
"caFile": null, | ||
"allowSharing": false, | ||
"visible": { | ||
"user": true, | ||
// Trailing comma is supported | ||
"project": true, | ||
}, | ||
"restrictions": [ | ||
{ | ||
"userAttribute": { | ||
"key": "sub", | ||
"match": "^onyxia.*" | ||
} | ||
} | ||
] | ||
}, | ||
], | ||
} |
131 changes: 131 additions & 0 deletions
131
onyxia-api/src/test/resources/catalog-loader-test-with-keywords/index.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
apiVersion: v1 | ||
entries: | ||
keepme: | ||
- apiVersion: v2 | ||
appVersion: "1" | ||
created: "2022-10-03T11:53:20.589754116Z" | ||
dependencies: | ||
- name: argo-cd | ||
repository: https://argoproj.github.io/argo-helm | ||
version: 4.9.11 | ||
- name: library-chart | ||
repository: https://inseefrlab.github.io/helm-charts-datascience | ||
version: 2.0.21 | ||
description: Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. | ||
digest: beedc71c7f5730cf68000b5665dd4da636e72a026edd9b12c1d048398d4166dd | ||
home: https://argo-cd.readthedocs.io/en/stable/ | ||
icon: https://minio.lab.sspcloud.fr/projet-onyxia/assets/servicesImg/argo.png | ||
keywords: | ||
- CD | ||
name: keepme | ||
sources: | ||
- https://github.com/InseeFrLab/helm-charts-datascience/tree/master/charts/argo-cd | ||
- https://github.com/argoproj/argo-helm/tree/master/charts/argo-cd | ||
type: application | ||
urls: | ||
- keepeme1.gz | ||
version: 2.5.1 | ||
maintainers: | ||
- email: [email protected] | ||
name: test | ||
- apiVersion: v2 | ||
appVersion: "1" | ||
created: "2022-10-03T11:53:20.589754116Z" | ||
dependencies: | ||
- name: argo-cd | ||
repository: https://argoproj.github.io/argo-helm | ||
version: 4.9.11 | ||
- name: library-chart | ||
repository: https://inseefrlab.github.io/helm-charts-datascience | ||
version: 2.0.21 | ||
description: Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. | ||
digest: beedc71c7f5730cf68000b5665dd4da636e72a026edd9b12c1d048398d4166dd | ||
home: https://argo-cd.readthedocs.io/en/stable/ | ||
icon: https://minio.lab.sspcloud.fr/projet-onyxia/assets/servicesImg/argo.png | ||
keywords: | ||
- CD | ||
name: keepme | ||
sources: | ||
- https://github.com/InseeFrLab/helm-charts-datascience/tree/master/charts/argo-cd | ||
- https://github.com/argoproj/argo-helm/tree/master/charts/argo-cd | ||
type: application | ||
urls: | ||
- keepeme1.gz | ||
version: 2.4.1 | ||
maintainers: | ||
- email: [email protected] | ||
name: test | ||
- apiVersion: v2 | ||
appVersion: "2" | ||
created: "2022-10-03T11:53:20.589754116Z" | ||
dependencies: | ||
- name: argo-cd | ||
repository: https://argoproj.github.io/argo-helm | ||
version: 4.9.11 | ||
- name: library-chart | ||
repository: https://inseefrlab.github.io/helm-charts-datascience | ||
version: 2.0.21 | ||
description: Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. | ||
digest: beedc71c7f5730cf68000b5665dd4da636e72a026edd9b12c1d048398d4166dd | ||
home: https://argo-cd.readthedocs.io/en/stable/ | ||
icon: https://minio.lab.sspcloud.fr/projet-onyxia/assets/servicesImg/argo.png | ||
keywords: | ||
- CD | ||
name: keepme | ||
sources: | ||
- https://github.com/InseeFrLab/helm-charts-datascience/tree/master/charts/argo-cd | ||
- https://github.com/argoproj/argo-helm/tree/master/charts/argo-cd | ||
type: application | ||
urls: | ||
- keepeme2.gz | ||
version: 2.4.0 | ||
excludeme: | ||
- apiVersion: v2 | ||
appVersion: "1" | ||
created: "2022-10-03T11:53:20.589754116Z" | ||
dependencies: | ||
- name: argo-cd | ||
repository: https://argoproj.github.io/argo-helm | ||
version: 4.9.11 | ||
- name: library-chart | ||
repository: https://inseefrlab.github.io/helm-charts-datascience | ||
version: 2.0.21 | ||
description: Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. | ||
digest: beedc71c7f5730cf68000b5665dd4da636e72a026edd9b12c1d048398d4166dd | ||
home: https://argo-cd.readthedocs.io/en/stable/ | ||
icon: https://minio.lab.sspcloud.fr/projet-onyxia/assets/servicesImg/argo.png | ||
name: excludeme | ||
keywords: | ||
- Experimental | ||
sources: | ||
- https://github.com/InseeFrLab/helm-charts-datascience/tree/master/charts/argo-cd | ||
- https://github.com/argoproj/argo-helm/tree/master/charts/argo-cd | ||
type: application | ||
urls: | ||
- excludeme1.gz | ||
version: 2.4.1 | ||
- apiVersion: v2 | ||
appVersion: "2" | ||
created: "2022-10-03T11:53:20.589754116Z" | ||
dependencies: | ||
- name: argo-cd | ||
repository: https://argoproj.github.io/argo-helm | ||
version: 4.9.11 | ||
- name: library-chart | ||
repository: https://inseefrlab.github.io/helm-charts-datascience | ||
version: 2.0.21 | ||
description: Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. | ||
digest: beedc71c7f5730cf68000b5665dd4da636e72a026edd9b12c1d048398d4166dd | ||
home: https://argo-cd.readthedocs.io/en/stable/ | ||
icon: https://minio.lab.sspcloud.fr/projet-onyxia/assets/servicesImg/argo.png | ||
name: excludeme | ||
keywords: | ||
- Experimental | ||
- CD | ||
sources: | ||
- https://github.com/InseeFrLab/helm-charts-datascience/tree/master/charts/argo-cd | ||
- https://github.com/argoproj/argo-helm/tree/master/charts/argo-cd | ||
type: application | ||
urls: | ||
- excludeme2.gz | ||
version: 2.4.0 |