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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ docker-build-minikube: docker-build-local
minikube image load mk-cdn.tar
minikube cache reload

del mk-*.tar
rm -f mk-*.tar

run-subgraphs-local:
cd demo && go run cmd/all/main.go
Expand Down
1 change: 1 addition & 0 deletions helm/cosmo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ This is the official Helm Chart for WunderGraph Cosmo - The Full Lifecycle Graph
| redis.master.persistence.enabled | bool | `true` | |
| redis.master.persistence.size | string | `"1Gi"` | |
| redis.replica.replicaCount | int | `0` | |
| router.additionalPodLabels | object | `{}` | Add labels to pod resources |
| router.commonLabels | object | `{}` | Add labels to all deployed resources |
| router.configuration.cdnUrl | string | `"http://cosmo-cdn:8787"` | The URL of the Cosmo CDN. Should be internal to the cluster. |
| router.configuration.controlplaneUrl | string | `"http://cosmo-controlplane:3001"` | The URL of the Cosmo Controlplane. Should be internal to the cluster. |
Expand Down
3 changes: 2 additions & 1 deletion helm/cosmo/charts/router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ This is the official Helm Chart for the WunderGraph Cosmo Router.

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalLabels | object | `{}` | Add labels to deployment metadata.labels |
| additionalLabels | object | `{}` | Add labels to deployment (metadata.labels) |
| additionalPodLabels | object | `{}` | Add labels to deployment pod template (spec.template.metadata.labels) |
| affinity | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
Expand Down
9 changes: 9 additions & 0 deletions helm/cosmo/charts/router/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ Additional Labels that are just rendered in metadata.labels
{{- end }}
{{- end }}

{{/*
Additional Pod Labels that are just rendered in metadata.labels
*/}}
{{- define "router.additionalPodLabels" -}}
{{- range $key, $value := .Values.additionalPodLabels }}
{{ $key }}: {{ quote $value }}
{{- end }}
{{- end }}

{{/*
Common labels
*/}}
Expand Down
1 change: 1 addition & 0 deletions helm/cosmo/charts/router/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "router.selectorLabels" . | nindent 8 }}
{{- include "router.additionalPodLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
5 changes: 4 additions & 1 deletion helm/cosmo/charts/router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ image:
# -- Add labels to all deployed resources
commonLabels: {}

# -- Add labels to deployment metadata.labels
# -- Add labels to deployment (metadata.labels)
additionalLabels: {}

# -- Add labels to deployment pod template (spec.template.metadata.labels)
additionalPodLabels: {}

deploymentStrategy: {}

imagePullSecrets: []
Expand Down
3 changes: 3 additions & 0 deletions helm/cosmo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ router:
# -- Add labels to all deployed resources
commonLabels: {}

# -- Add labels to pod resources
additionalPodLabels: {}

terminationGracePeriodSeconds: 60
deploymentStrategy:
rollingUpdate:
Expand Down
Loading