Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use toml configs #35

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions chainlink/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: base
repository: file://../base
version: 1.0.0
digest: sha256:f40bb973d13e50df11c689f0e97f5ea9ff47623b9835e50ee5d0da301f03296a
generated: "2023-01-04T10:54:28.019079539+01:00"
6 changes: 5 additions & 1 deletion chainlink/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ maintainers:
- name: Leo Vigna
email: [email protected]

appVersion: 0.10.9
appVersion: 0.11.0
dependencies:
- name: base
repository: file://../base
version: 1.x.x
6 changes: 6 additions & 0 deletions chainlink/templates/config-toml-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "chainlink.fullname" . }}-config-toml
data:
value: {{- toYaml .Values.configToml }}
6 changes: 6 additions & 0 deletions chainlink/templates/secrets-toml-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "chainlink.fullname" . }}-secrets-toml
data:
value: {{- toYaml .Values.secretsToml }}
16 changes: 16 additions & 0 deletions chainlink/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ spec:
volumeMounts:
- name: config
mountPath: {{ .Values.volumes.config.mountPath }}
- name: configToml
mountPath: {{ .Values.volumes.configToml.mountPath }}
- name: secretsToml
mountPath: {{ .Values.volumes.secretsToml.mountPath }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand All @@ -93,3 +97,15 @@ spec:
path: api
- key: WALLET_PASSWORD
path: password
- name: configToml
configMap:
name: {{ include "chainlink.fullname" . }}-config-toml
items:
- key: value
path: config.toml
- name: secretsToml
secretsMap:
name: {{ include "chainlink.fullname" . }}-secrets-toml
items:
- key: value
path: secrets.toml
11 changes: 9 additions & 2 deletions chainlink/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:
repository: smartcontract/chainlink
pullPolicy: IfNotPresent
command: ["chainlink", "local", "node"]
args: ["-a", "/etc/chainlink/api", "-p", "/etc/chainlink/password"]
args: ["-a", "/etc/chainlink/api", "-p", "/etc/chainlink/password", "-c", "/etc/chainlink/config.toml", "-s", "/etc/chainlink/secrets.toml"]
config:
# Login Info
ROOT: /chainlink
Expand All @@ -21,7 +21,7 @@ config:
CHAINLINK_PORT: "6688"
CHAINLINK_TLS_PORT: "0"
# Database
DATABASE_TIMEOUT: "0"
# DATABASE_TIMEOUT: "0"
DATABASE_URL: postgresql://postgres@postgresql:5432/chainlink?sslmode=disable
# Ethereum
ETH_URL: ws://geth:8546
Expand Down Expand Up @@ -91,6 +91,10 @@ container:
volumes:
config:
mountPath: /etc/chainlink
configToml:
mountPath: /etc/chainlink
secretsToml:
mountPath: /etc/chainlink

service:
type: ClusterIP
Expand All @@ -110,3 +114,6 @@ resources: {}
nodeSelector: {}
tolerations: []
affinity: {}

configToml: ''
secretsToml: ''