Skip to content

Commit

Permalink
Add external schema value to api-server
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Mar 23, 2024
1 parent 880ab77 commit 721f39a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/kamu-api-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kamu-api-server
description: API server component of the Kamu Compute Node
type: application
version: 0.16.3
appVersion: "0.16.2"
version: 0.16.4
appVersion: "0.16.3"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
sources:
Expand Down
2 changes: 2 additions & 0 deletions charts/kamu-api-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ spec:
env:
- name: RUST_BACKTRACE
value: "1"
- name: KAMU_PROTOCOL_SCHEME
value: {{ .Values.app.apiExternalHttpScheme | quote }}
- name: KAMU_AUTH_GITHUB_CLIENT_ID
value: {{ .Values.app.authGithubClientId | quote }}
- name: KAMU_AUTH_GITHUB_CLIENT_SECRET
Expand Down
8 changes: 6 additions & 2 deletions charts/kamu-api-server/values.schema.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"$schema": "http://json-schema.org/schema",
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"app": {
"type": "object",
"required": [
"config",
"datasetRepositoryUrl",
"apiExternalHttpScheme",
"authGithubClientId",
"authGithubClientSecret",
"jwtSecret"
Expand All @@ -21,6 +22,9 @@
"type": "string",
"format": "uri"
},
"apiExternalHttpScheme": {
"type": "string"
},
"authGithubClientId": {
"type": "string"
},
Expand Down Expand Up @@ -57,4 +61,4 @@
}
}
}
}
}
7 changes: 6 additions & 1 deletion charts/kamu-api-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ app:
# TODO: generate schema for config from DTOs
config: {}
# TODO: Move into config file

# URL of the storage bucket for datasets (S3 or Minio)
# Example: https://api.kamu.dev/graphql
# Example: "s3://repo.example.com.us-west-2/"
datasetRepositoryUrl: ""

# Specify "https" if the application is deployed behind a TLS-terminating reverse proxy, "http" otherwise
apiExternalHttpScheme: "https"

# TODO: Move into secrets
authGithubClientId: ""
authGithubClientSecret: ""
Expand Down

0 comments on commit 721f39a

Please sign in to comment.