Skip to content

Commit

Permalink
Fixed external uri (#109)
Browse files Browse the repository at this point in the history
* Fixed external uri

* fix space

Signed-off-by: KongZ <[email protected]>
  • Loading branch information
KongZ authored Mar 3, 2022
1 parent 986d09f commit 0d704d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
4 changes: 2 additions & 2 deletions charts/graylog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: graylog
home: https://www.graylog.org
version: 2.1.0
appVersion: 4.2.3
version: 2.1.1
appVersion: 4.2.7
description: Graylog is the centralized log management solution built to open standards for capturing, storing, and enabling real-time analysis of terabytes of machine data.
keywords:
- graylog
Expand Down
5 changes: 2 additions & 3 deletions charts/graylog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,12 @@ The following table lists the configurable parameters of the Graylog chart and t
| Parameter | Description | Default |
|------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|
| `graylog.image.repository` | `graylog` image repository | `graylog/graylog` |
| `graylog.image.tag` | `graylog` image tag | `4.2.3-1` |
| `graylog.imagePullPolicy` | Image pull policy | `IfNotPresent` |
| `graylog.image.tag` | `graylog` image tag | `4.2.7-1` |
| `graylog.image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `graylog.replicas` | The number of Graylog instances in the cluster. The chart will automatic create assign master to one of replicas | `2` |
| `graylog.resources` | CPU/Memory resource requests/limits | Memory: `1024Mi`, CPU: `500m` |
| `graylog.heapSize` | Override Java heap size. If this value empty, chart will allocate heap size using `-XX:+UseCGroupMemoryLimitForHeap` | |
| `graylog.externalUri` | External URI that Graylog is available at | |
| `graylog.externalUriTLS` | Using TLS offload on External URI? set this to `true` to get https:// on ExternalUri at | |
| `graylog.nodeSelector` | Graylog server pod assignment | `{}` |
| `graylog.affinity` | Graylog server affinity | `{}` |
| `graylog.tolerations` | Graylog server tolerations | `[]` |
Expand Down
15 changes: 1 addition & 14 deletions charts/graylog/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,12 @@ Craft url taking into account the TLS settings of the server
{{- end -}}
{{- end -}}

{{/*
Craft Publicurl taking into account the TLS settings of the server
*/}}
{{- define "graylog.formatPublicUrl" -}}
{{- $env := index . 0 }}
{{- $url := index . 1 }}
{{- if $env.Values.graylog.externalUriTLS }}
{{- printf "https://%s" $url }}
{{- else }}
{{- printf "http://%s" $url }}
{{- end -}}
{{- end -}}

{{/*
Print external URI
*/}}
{{- define "graylog.url" -}}
{{- if .Values.graylog.externalUri }}
{{- include "graylog.formatPublicUrl" (list . .Values.graylog.externalUri) }}
{{- printf .Values.graylog.externalUri }}
{{- else if .Values.graylog.ingress.enabled }}
{{- if .Values.graylog.ingress.tls }}
{{- range .Values.graylog.ingress.tls }}{{ range .hosts }}https://{{ . }}{{ end }}{{ end }}
Expand Down
5 changes: 1 addition & 4 deletions charts/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,10 @@ graylog:
##
certFile: /etc/graylog/server/server.cert

## External URL to access Graylog at
## External URL to access Graylog at e.g. https://graylog.mycompany.com
##
externalUri: ""

## External URL is https ?
externalUriTLS: false

ingress:
## If true, Graylog server Ingress will be created
##
Expand Down

0 comments on commit 0d704d8

Please sign in to comment.