Skip to content

Commit b893127

Browse files
committed
add eclair chart
1 parent 296e0ba commit b893127

File tree

7 files changed

+321
-0
lines changed

7 files changed

+321
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: v2
2+
name: eclair
3+
description: A Helm chart for Eclair
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.1.0
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
# It is recommended to use it with quotes.
24+
appVersion: "0.1.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "eclair.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "eclair.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "eclair.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "eclair.labels" -}}
37+
helm.sh/chart: {{ include "eclair.chart" . }}
38+
{{ include "eclair.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "eclair.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "eclair.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "eclair.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "eclair.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}

resources/charts/bitcoincore/charts/eclair/templates/configmap.yaml

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
apiVersion: apps/v1
2+
kind: Pod
3+
metadata:
4+
name: {{ include "eclair.fullname" . }}
5+
labels:
6+
{{- include "eclair.labels" . | nindent 4 }}
7+
{{- with .Values.podLabels }}
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}
10+
app: {{ include "eclair.fullname" . }}
11+
{{- if .Values.collectLogs }}
12+
collect_logs: "true"
13+
{{- end }}
14+
chain: {{ .Values.global.chain }}
15+
spec:
16+
{{- with .Values.imagePullSecrets }}
17+
imagePullSecrets:
18+
{{- toYaml . | nindent 4 }}
19+
{{- end }}
20+
securityContext:
21+
{{- toYaml .Values.podSecurityContext | nindent 4 }}
22+
containers:
23+
- name: {{ .Chart.Name }}
24+
securityContext:
25+
{{- toYaml .Values.securityContext | nindent 12 }}
26+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
27+
imagePullPolicy: {{ .Values.image.pullPolicy }}
28+
ports:
29+
- name: http
30+
containerPort: {{ .Values.service.port }}
31+
protocol: TCP
32+
livenessProbe:
33+
{{- toYaml .Values.livenessProbe | nindent 12 }}
34+
readinessProbe:
35+
{{- toYaml .Values.readinessProbe | nindent 12 }}
36+
resources:
37+
{{- toYaml .Values.resources | nindent 12 }}
38+
39+
{{- with .Values.volumeMounts }}
40+
volumeMounts:
41+
{{- toYaml . | nindent 12 }}
42+
{{- end }}
43+
{{- with .Values.volumes }}
44+
volumes:
45+
{{- toYaml . | nindent 8 }}
46+
{{- end }}
47+
{{- with .Values.nodeSelector }}
48+
nodeSelector:
49+
{{- toYaml . | nindent 8 }}
50+
{{- end }}
51+
{{- with .Values.affinity }}
52+
affinity:
53+
{{- toYaml . | nindent 8 }}
54+
{{- end }}
55+
{{- with .Values.tolerations }}
56+
tolerations:
57+
{{- toYaml . | nindent 8 }}
58+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ include "eclair.fullname" . }}
5+
labels:
6+
{{- include "eclair.labels" . | nindent 4 }}
7+
app: {{ include "eclair.fullname" . }}
8+
spec:
9+
type: {{ .Values.service.type }}
10+
ports:
11+
- port: {{ .Values.ServerPort }}
12+
targetPort: server
13+
protocol: TCP
14+
name: server
15+
- port: {{ .Values.APIPort }}
16+
targetPort: api
17+
protocol: TCP
18+
name: api
19+
selector:
20+
{{- include "eclair.selectorLabels" . | nindent 4 }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Default values for eclair.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
namespace: warnet
5+
6+
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
7+
image:
8+
repository: acinq/eclair
9+
# This sets the pull policy for images.
10+
pullPolicy: IfNotPresent
11+
# Overrides the image tag whose default is the chart appVersion.
12+
tag: "release-0.8.0"
13+
14+
# This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
15+
imagePullSecrets: []
16+
nameOverride: ""
17+
fullnameOverride: ""
18+
19+
# This is for setting Kubernetes Labels to a Pod.
20+
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
21+
podLabels:
22+
app: "warnet"
23+
mission: "lightning"
24+
25+
podSecurityContext: {}
26+
# fsGroup: 2000
27+
28+
securityContext: {}
29+
# capabilities:
30+
# drop:
31+
# - ALL
32+
# readOnlyRootFilesystem: true
33+
# runAsNonRoot: true
34+
# runAsUser: 1000
35+
36+
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
37+
service:
38+
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
39+
type: ClusterIP
40+
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
41+
ServerPort: 9735
42+
APIPort: 8080
43+
44+
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
45+
ingress:
46+
enabled: false
47+
className: ""
48+
annotations: {}
49+
# kubernetes.io/ingress.class: nginx
50+
# kubernetes.io/tls-acme: "true"
51+
hosts:
52+
- host: chart-example.local
53+
paths:
54+
- path: /
55+
pathType: ImplementationSpecific
56+
tls: []
57+
# - secretName: chart-example-tls
58+
# hosts:
59+
# - chart-example.local
60+
61+
resources: {}
62+
# We usually recommend not to specify default resources and to leave this as a conscious
63+
# choice for the user. This also increases chances charts run on environments with little
64+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
65+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
66+
# limits:
67+
# cpu: 100m
68+
# memory: 128Mi
69+
# requests:
70+
# cpu: 100m
71+
# memory: 128Mi
72+
73+
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
74+
livenessProbe:
75+
httpGet:
76+
path: /getinfo
77+
port: 8080
78+
failureThreshold: 3
79+
initialDelaySeconds: 10
80+
periodSeconds: 20
81+
timeoutSeconds: 5
82+
readinessProbe:
83+
initialDelaySeconds: 10
84+
failureThreshold: 3
85+
periodSeconds: 10
86+
tcpSocket:
87+
port: 8080
88+
startupProbe:
89+
initialDelaySeconds: 15
90+
periodSeconds: 10
91+
failureThreshold: 5
92+
timeoutSeconds: 30
93+
exec:
94+
command:
95+
- sh
96+
- -c
97+
- 'curl -s http://localhost:8080/getinfo | grep -q "blockHeight"'
98+
99+
# Additional volumes on the output Deployment definition.
100+
volumes: []
101+
# - name: foo
102+
# secret:
103+
# secretName: mysecret
104+
# optional: false
105+
106+
# Additional volumeMounts on the output Deployment definition.
107+
volumeMounts: []
108+
# - name: foo
109+
# mountPath: "/etc/foo"
110+
# readOnly: true
111+
112+
nodeSelector: {}
113+
114+
tolerations: []
115+
116+
affinity: {}
117+
118+
baseConfig: |
119+
# server port
120+
eclair.server.port=9737
121+
# node's label
122+
eclair.node-alias="eclair-node"
123+
# rgb node's color
124+
eclair.node-color=49daaa
125+
eclair.api.enabled=true
126+
# Make sure this port isn't accessible from the internet!
127+
eclair.api.port=8080
128+
#eclair.api.password is set in configmap.yaml
129+
130+
config: ""
131+
132+
defaultConfig: ""
133+
134+
channels: []

0 commit comments

Comments
 (0)