Skip to content

Commit 369a5ba

Browse files
feat(internal-gateway): signadot poc (#79)
Co-authored-by: shirtabachii <shir.tabachi@codefresh.io>
1 parent 65880e0 commit 369a5ba

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

charts/internal-gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v0.0.0
33
description: A Helm chart for Codefresh Internal Gateway
44
name: internal-gateway
5-
version: 0.7.0
5+
version: 0.8.0
66
home: https://github.com/codefresh-io/helm-charts
77
keywords:
88
- codefresh

charts/internal-gateway/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# internal-gateway
22

3-
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square)
3+
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square)
44

55
A Helm chart for Codefresh Internal Gateway
66

@@ -46,6 +46,7 @@ A Helm chart for Codefresh Internal Gateway
4646
| nginx.config.resolver | string | `nil` | Allows to set a custom resolver |
4747
| nginx.config.serverDirectives | object | `{}` | Allows appending custom directives to the server block (map) |
4848
| nginx.config.serverSnippet | string | `""` | Allows appending custom configuration to the server block (string) |
49+
| nginx.config.signadot | bool | `false` | Misc signadot configuration |
4950
| nginx.config.verboseLogging | bool | `false` | Enable logging of 2xx and 3xx HTTP requests |
5051
| nginx.config.workerConnections | string | `"16384"` | Sets the maximum number of simultaneous connections that can be opened by a worker process. |
5152
| nginx.config.workerProcesses | string | `"8"` | Defines the number of worker processes. |

charts/internal-gateway/templates/_components/_configmap.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ data:
7272
listen 8080;
7373
listen [::]:8080;
7474
75+
{{- range $key, $val := $nginxConfig.serverDirectives }}
76+
{{ printf "%s %s;" $key $val }}
77+
{{- end }}
78+
7579
{{- range $key, $val := $nginxConfig.locations }}
7680
{{- if $val.enabled }}
7781
location {{ $key }} {

charts/internal-gateway/templates/_location_map.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ authHeaderSet: |
55
proxy_set_header X-CF-Auth-Entity $auth_entity;
66
locationSnippet: |
77
proxy_http_version 1.1;
8+
{{- if not .Values.signadot }}
89
proxy_set_header Host $host;
10+
{{- end }}
911
proxy_set_header Upgrade $http_upgrade;
1012
proxy_set_header Connection $connection_upgrade;
1113
proxy_set_header X-Request-ID $request_id;

charts/internal-gateway/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ nginx:
148148
# !! Moved into separate template at `templates/nginx/configmap.yaml`
149149
# @default -- See below
150150
file: ""
151+
# -- Misc signadot configuration
152+
signadot: false
151153

152154
# -- Controller parameters
153155
# @default -- See below

0 commit comments

Comments
 (0)