Skip to content

Commit

Permalink
Merge pull request #20 from centrifugal/pro_license_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia authored Oct 10, 2021
2 parents 13205f9 + 005ec48 commit 41d4c08
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: centrifugo
description: Centrifugo is a scalable real-time messaging server in language-agnostic way
version: 7.1.1
version: 7.1.2
appVersion: 3.0.2
home: https://centrifugal.dev
icon: https://centrifugal.dev/img/favicon.png
Expand Down
3 changes: 2 additions & 1 deletion charts/centrifugo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ The following table lists the configurable parameters of the Centrifugo chart an
| `secrets.grpcApiKey` | Centrifugo grpc_api_key for Centrifugo GRPC API authorization. | `nil` |
| `secrets.redisAddress` | Connection string to Redis. | `nil` |
| `secrets.redisPassword` | Password for Redis. | `nil` |
| `secrets.redisSentinelPassword` | Password for Redis Sentinel. | `nil` |
| `secrets.natsUrl` | Connection string to Nats. | `nil` |

| `secrets.license` | Centrifugo PRO license | `nil` |

### Metrics parameters

Expand Down
6 changes: 6 additions & 0 deletions charts/centrifugo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ spec:
name: {{ include "centrifugo.secretName" . }}
key: nats_url
optional: true
- name: CENTRIFUGO_LICENSE
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: license
optional: true
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
value: {{ $value | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/centrifugo/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ data:
{{- if .Values.secrets.natsUrl }}
nats_url: {{ .Values.secrets.natsUrl | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.license }}
license: {{ .Values.secrets.license | b64enc | quote }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,6 @@ secrets:

# Connection string to Nats.
natsUrl: ""

# Centrifugo PRO license.
license: ""

0 comments on commit 41d4c08

Please sign in to comment.