Skip to content

Commit

Permalink
[sc-8603]: update chart for origins proxy mode (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyCharlesBlake authored Oct 14, 2024
1 parent fb3e204 commit 94a92ec
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 27 deletions.
4 changes: 2 additions & 2 deletions charts/gofer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.0
version: 0.3.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.30"
appVersion: "0.44"
17 changes: 7 additions & 10 deletions charts/gofer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gofer

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

A Helm chart for deploying gofer to Kubernetes

Expand All @@ -23,10 +23,10 @@ A Helm chart for deploying gofer to Kubernetes
| configHcl | object | `{}` | |
| env | object | `{}` | Environment variable listing |
| fullnameOverride | string | `""` | |
| goferMode | string | `"agent"` | can be "agent" or "watch" |
| goferMode | string | `"agent"` | can be "agent" or "watch" or "proxy" |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/chronicleprotocol/gofer"` | |
| image.tag | string | `"sha-f2a5f01"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
Expand All @@ -35,17 +35,14 @@ A Helm chart for deploying gofer to Kubernetes
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| livenessProbe.initialDelaySeconds | int | `60` | |
| livenessProbe.periodSeconds | int | `120` | |
| livenessProbe.tcpSocket.port | string | `"gofer"` | |
| livenessProbe | object | `{}` | |
| logFormat | string | `"text"` | |
| logLevel | string | `"debug"` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| readinessProbe.initialDelaySeconds | int | `10` | |
| readinessProbe.periodSeconds | int | `10` | |
| readinessProbe.tcpSocket.port | string | `"gofer"` | |
| readinessProbe | object | `{}` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
Expand All @@ -69,4 +66,4 @@ A Helm chart for deploying gofer to Kubernetes
| tolerations | list | `[]` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
24 changes: 24 additions & 0 deletions charts/gofer/ci/origin-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
goferMode: "proxy"

service:
ports:
gofer:
port: 8080

env:
normal:
CFG_WATCH_INTERVAL: "10s"

livenessProbe:
httpGet:
path: /livez
port: gofer
initialDelaySeconds: 60
periodSeconds: 120

readinessProbe:
httpGet:
path: /readyz
port: gofer
initialDelaySeconds: 60
periodSeconds: 60
2 changes: 1 addition & 1 deletion charts/gofer/ci/watch-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ goferMode: "watch"

env:
normal:
WATCHDOG_CHAIN_RPC_URLS: "https://rpc.testnet.chroniclelabs.io/sep"
WATCHDOG_CHAIN_RPC_URLS: "https://eth-sepolia.public.blastapi.io"
WATCHDOG_CONFIG_REGISTRY: 0xE1CcD31f46F30A764DbACB4759E69d8799126941
WATCHDOG_INTERVAL: 60s
WATCHDOG_ETH_FROM: "0x0000000000000000000000000000000000000000"
11 changes: 9 additions & 2 deletions charts/gofer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ spec:
{{- end }}
{{- else }}
- "{{ .Values.goferMode }}"
- "-v"
- "{{ .Values.logLevel | default "debug" }}"
{{- end }}
{{- range $arg := .Values.extraArgs }}
- "{{ $arg }}"
Expand All @@ -65,10 +63,14 @@ spec:
containerPort: {{ $val.port }}
protocol: {{ $val.protocol }}
{{- end }}
{{- if .Values.livenessProbe }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand All @@ -78,6 +80,11 @@ spec:
subPath: gofer.hcl
{{- end }}
env:
### Logging
- name: CFG_LOG_LEVEL
value: {{ .Values.logLevel | default "warning" | quote }}
- name: CFG_LOG_FORMAT
value: {{ .Values.logFormat | default "text" | quote }}
{{- include "helpers.list-env-variables" . | indent 12 }}

volumes:
Expand Down
37 changes: 25 additions & 12 deletions charts/gofer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
replicaCount: 1

logLevel: "debug"
# -- can be "agent" or "watch"
logFormat: "text"
# -- can be "agent" or "watch" or "proxy"
goferMode: "agent"

# -- Environment variable listing
Expand All @@ -19,7 +20,7 @@ image:
repository: ghcr.io/chronicleprotocol/gofer
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "sha-f2a5f01"
tag: ""

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -71,18 +72,30 @@ ingress:
# - chart-example.local

# @default -- See `values.yaml`
livenessProbe:
tcpSocket:
port: gofer
initialDelaySeconds: 60
periodSeconds: 120
livenessProbe: {}
# tcpSocket:
# port: gofer
# initialDelaySeconds: 60
# periodSeconds: 120
# -- for proxy mode:
# httpGet:
# path: /livez
# port: gofer
# initialDelaySeconds: 60
# periodSeconds: 120

# @default -- See `values.yaml`
readinessProbe:
tcpSocket:
port: gofer
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe: {}
# tcpSocket:
# port: gofer
# initialDelaySeconds: 10
# periodSeconds: 10
# -- for proxy mode:
# httpGet:
# path: /readyz
# port: gofer
# initialDelaySeconds: 60
# periodSeconds: 60

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 94a92ec

Please sign in to comment.