Skip to content

Commit

Permalink
Merge pull request #53 from foomo/gateway
Browse files Browse the repository at this point in the history
feat(squadron-keel-server) feat: add gateway
  • Loading branch information
franklinkim authored Dec 23, 2024
2 parents 4359545 + a0a3f52 commit d6ba375
Show file tree
Hide file tree
Showing 13 changed files with 131 additions and 24 deletions.
8 changes: 4 additions & 4 deletions charts/beam/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ sources:
annotations:
"artifacthub.io/links": |
- name: Chart Source
url: https://github.com/foomo/helm-charts
url: https://github.com/foomo/helm-chartstree/main/charts/beam
- name: Pinniped Chart Source
url: https://github.com/bitnami/charts/tree/main/bitnami/pinniped/
dependencies:
# https://artifacthub.io/packages/helm/bitnami/pinniped
- name: pinniped
alias: pinniped
version: 2.3.5
version: 2.4.1
repository: "oci://registry-1.docker.io/bitnamicharts"
condition: pinniped.enabled
version: 0.4.3
appVersion: 0.4.3
version: 0.5.0
appVersion: 0.5.0

10 changes: 5 additions & 5 deletions charts/beam/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# beam

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

Secure infrastructure access

Expand Down Expand Up @@ -107,7 +107,7 @@ HTTPS_PROXY=socks5://127.0.0.1:1234 kubectl get namespaces --kubeconfig "beam-ku

| Repository | Name | Version |
|------------|------|---------|
| oci://registry-1.docker.io/bitnamicharts | pinniped(pinniped) | 2.3.5 |
| oci://registry-1.docker.io/bitnamicharts | pinniped(pinniped) | 2.4.1 |

## Values

Expand Down Expand Up @@ -136,7 +136,7 @@ HTTPS_PROXY=socks5://127.0.0.1:1234 kubectl get namespaces --kubeconfig "beam-ku
| cloudflared.image.pullPolicy | string | `"IfNotPresent"` | Image tag |
| cloudflared.image.pullSecrets | list | `[]` | Image pull secrets |
| cloudflared.image.repository | string | `"cloudflare/cloudflared"` | Image repository |
| cloudflared.image.tag | string | `"2024.11.1"` | Image tag |
| cloudflared.image.tag | string | `"2024.12.2"` | Image tag |
| cloudflared.ingress | list | `[]` | Define ingress rules for the tunnel ([read more](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress)) |
| cloudflared.livenessProbe | object | `{"failureThreshold":1,"httpGet":{"path":"/ready","port":2000},"initialDelaySeconds":10,"periodSeconds":10}` | Liveness probe settings for pods. |
| cloudflared.podAnnotations | object | `{}` | Annotations for pods |
Expand Down Expand Up @@ -181,11 +181,11 @@ HTTPS_PROXY=socks5://127.0.0.1:1234 kubectl get namespaces --kubeconfig "beam-ku
| cloudflaredSplitter.extraVolumeMounts | list | `[]` | Volume mounts to add |
| cloudflaredSplitter.image.pullPolicy | string | `"IfNotPresent"` | Image tag |
| cloudflaredSplitter.image.repository | string | `"nginx"` | Image repository |
| cloudflaredSplitter.image.tag | string | `"1.27.2"` | Image tag |
| cloudflaredSplitter.image.tag | string | `"1.27.3"` | Image tag |
| cloudflaredSplitter.livenessProbe | object | `{}` | Liveness probe settings for pods |
| cloudflaredSplitter.readinessProbe | object | `{}` | Readiness probe settings for pods |
| cloudflaredSplitter.resources | object | `{}` | Resource request & limits. |
| cloudflaredSplitter.securityContext | object | `{}` | Security context |
| cloudflaredSplitter.securityContext | object | `{}` | Security Context |
| cloudflaredSplitter.startProbe | object | `{}` | Startup probe settings for pods |

### Overrides
Expand Down
6 changes: 3 additions & 3 deletions charts/beam/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
"type": "string"
},
"tag": {
"default": "2024.11.1",
"default": "2024.12.2",
"description": "Image tag",
"required": [],
"title": "tag",
Expand Down Expand Up @@ -691,7 +691,7 @@
"type": "string"
},
"tag": {
"default": "1.27.2",
"default": "1.27.3",
"description": "Image tag",
"required": [],
"title": "tag",
Expand Down Expand Up @@ -728,7 +728,7 @@
},
"securityContext": {
"additionalProperties": true,
"description": "Security context",
"description": "Security Context",
"required": [],
"title": "securityContext",
"type": "object"
Expand Down
6 changes: 3 additions & 3 deletions charts/beam/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ cloudflared:
# @schema
# -- Image tag
# @section -- Cloudflared settings
tag: '2024.11.1' # https://github.com/cloudflare/cloudflared/releases
tag: '2024.12.2' # https://github.com/cloudflare/cloudflared/releases
# @schema
# type: object
# @schema
Expand Down Expand Up @@ -481,12 +481,12 @@ cloudflaredSplitter:
# @schema
# -- Image tag
# @section -- Cloudflared Splitter settings
tag: '1.27.2' # https://github.com/nginx/nginx/releases
tag: '1.27.3' # https://github.com/nginx/nginx/releases
# @schema
# type: object
# additionalProperties: true
# @schema
# -- Security context
# -- Security Context
# @section -- Cloudflared Splitter settings
securityContext: {}
# securityContext:
Expand Down
2 changes: 1 addition & 1 deletion charts/sesamy-gtm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ annotations:
url: https://github.com/foomo/helm-charts/tree/main/charts/sesamy-gtm
- name: GTM Changelog
url: https://developers.google.com/tag-platform/tag-manager/server-side/release-notes
version: 0.1.2
version: 0.1.3
appVersion: 2.4.0
4 changes: 2 additions & 2 deletions charts/sesamy-gtm/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sesamy-gtm

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

Helm chart for the Sesamy GTM tagging & preview service.

Expand Down Expand Up @@ -145,7 +145,7 @@ Helm chart for the Sesamy GTM tagging & preview service.
| proxy.config | string | `"server {\n listen 443 ssl;\n\n ssl_certificate /etc/nginx/ssl/tls.crt;\n ssl_certificate_key /etc/nginx/ssl/tls.key;\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 1h;\n ssl_buffer_size 8k;\n\n location / {\n proxy_pass http://0.0.0.0:{{ .Values.tagging.service.port }};\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $server_name;\n proxy_set_header Upgrade $http_upgrade;\n proxy_set_header Connection 'upgrade';\n proxy_cache_bypass $http_upgrade;\n }\n}\n"` | Nginx SSL Reverse Proxy config |
| proxy.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy |
| proxy.image.repository | string | `"nginx"` | The image repository |
| proxy.image.tag | string | `"1.27-alpine"` | The image [tag](https://hub.docker.com/_/nginx) |
| proxy.image.tag | string | `"1.27.3-alpine"` | The image [tag](https://hub.docker.com/_/nginx) |
| proxy.resources | object | `{}` | Resource request & limits |
| proxy.tls.crt | string | `""` | Base64 encoded TLS cert |
| proxy.tls.key | string | `""` | Base64 encoded TLS key |
Expand Down
2 changes: 1 addition & 1 deletion charts/sesamy-gtm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@
"type": "string"
},
"tag": {
"default": "1.27-alpine",
"default": "1.27.3-alpine",
"description": "The image [tag](https://hub.docker.com/_/nginx)",
"required": [],
"title": "tag",
Expand Down
2 changes: 1 addition & 1 deletion charts/sesamy-gtm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ proxy:
# @schema
# -- The image [tag](https://hub.docker.com/_/nginx)
# @section -- HTTPS Proxy
tag: '1.27-alpine'
tag: '1.27.3-alpine'
# @schema
# type: object
# @schema
Expand Down
6 changes: 3 additions & 3 deletions charts/squadron-keel-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sources:
annotations:
"artifacthub.io/links": |
- name: Chart Source
url: https://github.com/foomo/helm-charts
url: https://github.com/foomo/helm-charts/tree/main/charts/squadron-keel-server
version: 0.1.16
appVersion: 0.1.16
version: 0.2.0
appVersion: 0.2.0
11 changes: 10 additions & 1 deletion charts/squadron-keel-server/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# squadron-keel-server

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

Squadron Keel Server Chart

Expand Down Expand Up @@ -47,6 +47,15 @@ Squadron Keel Server Chart
| nameOverride | string | `""` | Overrides the chart's name |
| namespaceOverride | string | `""` | The name of the Namespace to deploy |

### Gateway

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| gateway.addToRobots | string | `""` | Robots.txt |
| gateway.enabled | bool | `false` | Indicates wether the gateway is enabled or not |
| gateway.expose | list | `[]` | Expose settings |
| gateway.sitemap | string | `""` | Sitemap |

### Global

| Key | Type | Default | Description |
Expand Down
19 changes: 19 additions & 0 deletions charts/squadron-keel-server/templates/gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if and (.Capabilities.APIVersions.Has "foomo.org/v1") .Values.gateway.enabled }}
apiVersion: foomo.org/v1
kind: Gateway
metadata:
name: {{ include "keel.server.fullname" . }}
labels: {{- include "keel.server.labels" . | nindent 4 }}
namespace: {{ include "keel.server.namespace" . }}
spec:
service: http://{{ include "keel.server.fullname" . }}.{{ include "keel.server.namespace" . }}
{{- with .Values.gateway.addToRobots }}
addToRobots: {{ . }}
{{- end }}
{{- with .Values.gateway.sitemap }}
sitemap: {{ . }}
{{- end }}
{{- with .Values.gateway.expose }}
expose: {{- toYaml . | nindent 4 }}
{{ end }}
{{- end }}
40 changes: 40 additions & 0 deletions charts/squadron-keel-server/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,46 @@
"title": "fullnameOverride",
"type": "string"
},
"gateway": {
"additionalProperties": false,
"description": "Foomo gateway settings",
"properties": {
"addToRobots": {
"default": "",
"description": "Robots.txt",
"required": [],
"title": "addToRobots",
"type": "string"
},
"enabled": {
"default": false,
"description": "Indicates wether the gateway is enabled or not",
"required": [],
"title": "enabled",
"type": "boolean"
},
"expose": {
"description": "Expose settings",
"items": {
"required": [],
"type": "object"
},
"required": [],
"title": "expose",
"type": "array"
},
"sitemap": {
"default": "",
"description": "Sitemap",
"required": [],
"title": "sitemap",
"type": "string"
}
},
"required": [],
"title": "gateway",
"type": "object"
},
"global": {
"additionalProperties": true,
"properties": {
Expand Down
39 changes: 39 additions & 0 deletions charts/squadron-keel-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,45 @@ scheduling:
# @section -- Scheduling
priorityClass: null

# @schema
# type: object
# @schema
# Foomo gateway settings
gateway:
# @schema
# type: boolean
# @schema
# -- Indicates wether the gateway is enabled or not
# @section -- Gateway
enabled: false
# @schema
# type: string
# @schema
# -- Sitemap
# @section -- Gateway
sitemap: ''
# @schema
# type: string
# @schema
# -- Robots.txt
# @section -- Gateway
addToRobots: ''
# @schema
# type: array
# items:
# type: object
# additionProperties: true
# @schema
# -- Expose settings
# @section -- Gateway
expose: []
# expose:
# - stripBasePath: true
# cmsMimetypes:
# - application/x-page
# - application/x-folder
# - application/x-shortcut

# @schema
# type: object
# @schema
Expand Down

0 comments on commit d6ba375

Please sign in to comment.