This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data-space-configuration endpoint (#79)
* Add data-space-configuration endpoint * Update helm chart versions * Update helm chart versions * Move endpoint to apisix. Adapt k3s provider config. * Update helm chart versions * Fix file name * Update helm chart versions * fix json * Update helm chart versions --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Stefan Wiedemann <[email protected]>
- Loading branch information
1 parent
537e440
commit a2916a0
Showing
6 changed files
with
120 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.dataSpaceConfig.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: dsconfig | ||
namespace: {{ $.Release.Namespace | quote }} | ||
labels: | ||
{{ include "dsc.labels" . | nindent 4 }} | ||
data: | ||
data-space-configuration.json: |- | ||
{ | ||
"supported_models": {{ .Values.dataSpaceConfig.supportedModels | toJson }}, | ||
"supported_protocols": {{ .Values.dataSpaceConfig.supportedProtocols | toJson }}, | ||
"authentication_protocols": {{ .Values.dataSpaceConfig.authenticationProtocols | toJson }} | ||
} | ||
{{- end }} |
38 changes: 38 additions & 0 deletions
38
charts/data-space-connector/templates/dsconfig-deployment.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,38 @@ | ||
{{- if .Values.dataSpaceConfig.enabled }} | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: dsconfig | ||
namespace: {{ $.Release.Namespace | quote }} | ||
labels: | ||
{{ include "dsc.labels" . | nindent 4 }} | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: dsconfig | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: dsconfig | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
spec: | ||
serviceAccountName: default | ||
containers: | ||
- name: dsconfig-static | ||
imagePullPolicy: Always | ||
image: "lipanski/docker-static-website:2.1.0" | ||
ports: | ||
- name: http | ||
containerPort: 3000 | ||
protocol: TCP | ||
volumeMounts: | ||
- name: dsconfig-json | ||
mountPath: /home/static/.well-known/data-space-configuration | ||
volumes: | ||
- name: dsconfig-json | ||
configMap: | ||
name: dsconfig | ||
{{- end }} |
19 changes: 19 additions & 0 deletions
19
charts/data-space-connector/templates/dsconfig-service.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,19 @@ | ||
{{- if .Values.dataSpaceConfig.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dsconfig | ||
namespace: {{ $.Release.Namespace | quote }} | ||
labels: | ||
{{ include "dsc.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.dataSpaceConfig.serviceType }} | ||
ports: | ||
- port: {{ .Values.dataSpaceConfig.port }} | ||
targetPort: 3000 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app.kubernetes.io/name: dsconfig | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} |
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