Skip to content

Commit

Permalink
Merge pull request #348 from celo-org/op-proxyd-custom
Browse files Browse the repository at this point in the history
Custom proxyd
  • Loading branch information
alvarof2 authored Jul 10, 2024
2 parents f2006c4 + 4aa93c0 commit b1094bf
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/op-proxyd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: op-proxyd
description: Celo implementation for OP proxyd
type: application
version: 0.1.0
appVersion: "v4.5.4"
version: 0.1.1
appVersion: "v0.0.1"
home: https://clabs.co
sources:
- https://celo.org
Expand Down
7 changes: 4 additions & 3 deletions charts/op-proxyd/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# op-proxyd

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.5.4](https://img.shields.io/badge/AppVersion-v4.5.4-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)

Celo implementation for OP proxyd

Expand Down Expand Up @@ -28,8 +28,8 @@ Celo implementation for OP proxyd
| config | string | `""` | Config as string. Minimal example at https://github.com/ethereum-optimism/optimism/blob/develop/proxyd/example.config.toml |
| fullnameOverride | string | `""` | Chart full name override |
| image.pullPolicy | string | `"IfNotPresent"` | Image pullpolicy |
| image.repository | string | `"us-docker.pkg.dev/oplabs-tools-artifacts/images/proxyd"` | Image repository |
| image.tag | string | `"v4.5.4"` | Image tag Overrides the image tag whose default is the chart appVersion. |
| image.repository | string | `"us-west1-docker.pkg.dev/devopsre/dev-images/proxyd"` | Image repository |
| image.tag | string | `"test"` | Image tag Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | Image pull secrets |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `"nginx"` | |
Expand All @@ -47,6 +47,7 @@ Celo implementation for OP proxyd
| readinessProbe | object | `{"httpGet":{"path":"/healthz","port":"rpc"}}` | Readiness probe configuration |
| replicaCount | int | `1` | Number of deployment replicas |
| resources | object | `{}` | Container resources |
| secretEnv | object | `{}` | Env Vars. mounted from a secret |
| securityContext | object | `{}` | Custom container security context |
| service.rpcPort | int | `8080` | RPC port |
| service.type | string | `"ClusterIP"` | K8S service type |
Expand Down
21 changes: 20 additions & 1 deletion charts/op-proxyd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
command:
- /bin/bash
- -c
args:
- |
envsubst < /etc/proxyd/proxyd-tmp.toml > /etc/proxyd/proxyd.toml
/bin/entrypoint.sh /bin/proxyd /etc/proxyd/proxyd.toml
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand All @@ -53,6 +60,18 @@ spec:
containerPort: {{ .Values.metrics.port }}
protocol: TCP
{{- end }}
{{- if .Values.secretEnv }}
env:
{{- with .Values.secretEnv }}
{{- range $key, $value := . }}
- name: {{ $key }}
valueFrom:
secretKeyRef:
name: {{ $value.secretName }}
key: {{ $value.secretKey }}
{{- end }}
{{- end }}
{{- end }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
Expand All @@ -61,7 +80,7 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: config
mountPath: /etc/proxyd/proxyd.toml
mountPath: /etc/proxyd/proxyd-tmp.toml
subPath: config
volumes:
- name: config
Expand Down
10 changes: 8 additions & 2 deletions charts/op-proxyd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@ replicaCount: 1

image:
# -- Image repository
repository: us-docker.pkg.dev/oplabs-tools-artifacts/images/proxyd
repository: us-west1-docker.pkg.dev/devopsre/dev-images/proxyd
# -- Image pullpolicy
pullPolicy: IfNotPresent
# -- Image tag
# Overrides the image tag whose default is the chart appVersion.
tag: "v4.5.4"
tag: "test"

# -- Image pull secrets
imagePullSecrets: []

# -- Env Vars. mounted from a secret
secretEnv: {}
# INFURA_URL:
# secretName: "test"
# secretKey: "test"

# -- Config as string. Minimal example at https://github.com/ethereum-optimism/optimism/blob/develop/proxyd/example.config.toml
config: ""
# |
Expand Down

0 comments on commit b1094bf

Please sign in to comment.