diff --git a/charts/templates/server/configmap.yaml b/charts/templates/server/configmap.yaml new file mode 100644 index 00000000..d66d291c --- /dev/null +++ b/charts/templates/server/configmap.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ printf "%s-%s-%s" "sourcify.name" "config" "server"}} + labels: + {{- include "sourcify.labels" . | nindent 4 }} + {{- include "sourcify.server.selectorLabels" . | nindent 4 }} +data: + REPOSITORY_PATH: {{ template "sourcify.fullname" . }}-repository # Repository service name in the same namespace + SERVER_PORT: {{ .Values.server.service.port }} + REPOSITORY_SERVER_URL: {{ .Values.repository.config.url }} diff --git a/charts/values.yaml b/charts/values.yaml index e8b0e1ce..4b8bf9bf 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -55,6 +55,9 @@ repository: paths: [] tls: [] + config: + url: localhost + server: ## Deploy sourcify server enabled: true