Skip to content

Commit

Permalink
feat: metachart
Browse files Browse the repository at this point in the history
  • Loading branch information
philanton committed Mar 13, 2024
1 parent b718a92 commit d9734bb
Show file tree
Hide file tree
Showing 9 changed files with 173 additions and 18 deletions.
19 changes: 13 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ kind: pipeline
type: docker

steps:
- name: Publish
image: otwld/drone-chart-releaser-github-pages
settings:
cr_token:
from_secret: github_api_key
skip_existing: true
- name: Dependencies
image: quay.io/openware/k8s-go-tools:1.0.1
pull: if-not-exists
user: root
commands:
- helm dependency update charts/stack

- name: Publish
image: otwld/drone-chart-releaser-github-pages
settings:
cr_token:
from_secret: github_api_key
skip_existing: true

trigger:
event:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
charts/
**/*.tgz
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,8 @@ Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

helm repo add <alias> https://<orgname>.github.io/helm-charts
helm repo add yellow-stack https://layer-3.github.io/stack

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
<alias>` to see the charts.

To install the <chart-name> chart:

helm install my-<chart-name> <alias>/<chart-name>

To uninstall the chart:

helm delete my-<chart-name>
yellow-stack` to see the charts.
2 changes: 1 addition & 1 deletion charts/neodax/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: v1
appVersion: '1.0'
description: NeoDax Helm Chart
name: neodax
version: 1.0.0
version: 1.0.1
2 changes: 2 additions & 0 deletions charts/neodax/templates/config-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.config }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -11,3 +12,4 @@ metadata:
data:
finex.yaml: |-
{{- .Values.config | nindent 4 }}
{{- end }}
23 changes: 23 additions & 0 deletions charts/stack/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
15 changes: 15 additions & 0 deletions charts/stack/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dependencies:
- name: neodax
repository: file://../neodax
version: 1.0.1
- name: clearport
repository: file://../clearport
version: 1.1.0
- name: clearport
repository: file://../clearport
version: 1.1.0
- name: terminal
repository: file://../terminal
version: 1.0.0
digest: sha256:92204ad99feeb131eab457decb1421fb590e00cce4b4ac988e22b3824f834288
generated: "2024-03-13T17:56:29.840548+02:00"
21 changes: 21 additions & 0 deletions charts/stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v2
name: stack
description: Yellow Network Stack Helm Chart
type: application
version: 0.1.0
appVersion: "1.1.0"
dependencies:
- name: neodax
version: 1.0.1
repository: file://../neodax
- name: clearport
version: 1.1.0
repository: file://../clearport
alias: clearportB
- name: clearport
version: 1.1.0
repository: file://../clearport
alias: clearportA
- name: terminal
version: 1.0.0
repository: file://../terminal
95 changes: 95 additions & 0 deletions charts/stack/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
neodax:
image:
tag: v1.0.0
externalHostname: example.neodax.com
tlsClusterIssuer: letsencrypt-prod
config: "" # |
# mode: dev
secrets:
FINEX_DATABASE_DRIVER: postgres
FINEX_DATABASE_HOST: db # CHANGEME
FINEX_DATABASE_PORT: "5432"
FINEX_DATABASE_NAME: finex
FINEX_DATABASE_USERNAME: finex
FINEX_DATABASE_PASSWORD: finex # CHANGEME
FINEX_DATABASE_SCHEMA: public
FINEX_INFLUX_HOST: influxdb-0, influxdb-1, influxdb-2 # CHANGEME
FINEX_INFLUX_DATABASE: finex
services:
grpc:
nodePort: 30000 # CHANGEME

clearportB:
externalHostname: b.clearport.com # CHANGEME
externalSecret: clearport-sec

services:
peerGrpc:
nodePort: 31001 # CHANGEME

secrets:
TARGET_NETWORK: testnet
MARKET_PRICE_SOURCE: finex
FINEX_PRICE_FEED_URL: http://<release-name>-neodax-grpc:<neodax-grpc-port> # CHANGEME
FUNDING_MODE: internal
DATABASE_DRIVER: postgres
DATABASE_HOST: db
DATABASE_PORT: "5432"
DATABASE_USER: clearport_b
DATABASE_PASS: clearport_b # CHANGEME
DATABASE_NAME: clearport_b
DATABASE_SCHEMA: public

persistentVolume:
enabled: false

hooks:
createDb:
enabled: true
createDbUser:
enabled: true
createDbSchema:
enabled: true
addOperator:
enabled: true

responderMode:
enabled: true
name: Example # CHANGEME

clearportA:
externalHostname: a.clearport.com # CHANGEME
externalSecret: clearport-sec

services:
peerGrpc:
nodePort: 31000 # CHANGEME

secrets:
TARGET_NETWORK: testnet
MARKET_PRICE_SOURCE: finex
FINEX_PRICE_FEED_URL: http://<release-name>-neodax-grpc:<neodax-grpc-port> # CHANGEME
FUNDING_MODE: session_key
DATABASE_DRIVER: postgres
DATABASE_HOST: db
DATABASE_PORT: "5432"
DATABASE_USER: clearport_a
DATABASE_PASS: clearport_a # CHANGEME
DATABASE_NAME: clearport_a
DATABASE_SCHEMA: public

persistentVolume:
enabled: false

hooks:
createDb:
enabled: true
createDbUser:
enabled: true
createDbSchema:
enabled: true

terminal:
externalHostname: example.terminal.com # CHANGEME
secrets: {}
# NEXT_PUBLIC_CLEARPORT_URL: https://a.clearport.com # CHANGEME

0 comments on commit d9734bb

Please sign in to comment.