Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/cosmo/charts/router/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.12.0
version: 0.13.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion helm/cosmo/charts/router/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# router

![Version: 0.12.0](https://img.shields.io/badge/Version-0.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.197.1](https://img.shields.io/badge/AppVersion-0.197.1-informational?style=flat-square)
![Version: 0.13.0](https://img.shields.io/badge/Version-0.13.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.197.1](https://img.shields.io/badge/AppVersion-0.197.1-informational?style=flat-square)

This is the official Helm Chart for the WunderGraph Cosmo Router.

Expand All @@ -15,6 +15,7 @@ This is the official Helm Chart for the WunderGraph Cosmo Router.
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| commonConfiguration | string | `"version: \"1\"\nlog_level: \"info\""` | You can use this to provide the router configuration via yaml. Values here have precedence over the configurations section. For a full list of available configuration options, see https://cosmo-docs.wundergraph.com/router/configuration This value is processed with the helm `tpl` function allowing referencing of variables and inclusion of templates |
| commonConfigurationPath | string | `""` | Path to a configuration file to embed. If set, this takes precedence over commonConfiguration. The file path is relative to the chart directory and will be processed with the helm `tpl` function. Example: "configs/router-config.yaml" |
| commonLabels | object | `{}` | Add labels to all deployed resources |
| configuration.cdnUrl | string | `""` | |
| configuration.configPath | string | `""` | The path to the router config file. This does not refer to the execution config. See: https://cosmo-docs.wundergraph.com/router/configuration#config-file |
Expand Down
4 changes: 3 additions & 1 deletion helm/cosmo/charts/router/templates/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ metadata:
data:
config.yaml: |-
# User-supplied common configuration:
{{- if .Values.commonConfiguration }}
{{- if .Values.commonConfigurationPath }}
{{- tpl (.Files.Get .Values.commonConfigurationPath) . | nindent 4 }}
{{- else if .Values.commonConfiguration }}
{{- tpl .Values.commonConfiguration . | nindent 4 }}
{{- end }}
logLevel: "{{ .Values.configuration.logLevel }}"
Expand Down
5 changes: 5 additions & 0 deletions helm/cosmo/charts/router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ commonConfiguration: |-
version: "1"
log_level: "info"

# -- Path to a configuration file to embed. If set, this takes precedence over commonConfiguration.
# The file path is relative to the chart directory and will be processed with the helm `tpl` function.
# Example: "configs/router-config.yaml"
commonConfigurationPath: ""

# Use this section to pass the graphApiToken or to configure simple settings.
configuration:
# -- The router token is used to authenticate the router against the controlplane (required)
Expand Down
Loading