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

Unify namings and minor change #320

Merged
merged 14 commits into from
Apr 23, 2024
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
.aider*
29 changes: 2 additions & 27 deletions aggregator/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
## Request-Response Settings for Orakl ##
## Aggregator Settings for Orakl ##
---


This chart will deploy the Request-Response of Orakl.


``` bash
global:
image:
repository: docker.io/jolol/orakl #repository url
pullPolicy: IfNotPresent
tag: "v.0.0.6" #image tag
imagePullPolicy: IfNotPresent
# -- If defined, uses a Secret to pull an image from a private Docker registry or repository
imagePullSecrets: []

config:
NODE_ENV: production #[dev, production]
CHAIN: baobab #[baobab, cypress]
HOST_SETTINGS_DB_DIR: #Default is empty
HEALTH_CHECK_PORT: 8888 #Specify Helath Check Port
ORAKL_DIR: /app/db #The path should match with PVC of Orakl database
REDIS_HOST: localhost #Redis Host Url
REDIS_PORT: 6379 #Redis Port
SLACK_WEBHOOK_URL: #Error message is delivered to slack
LOG_LEVEL: debug #[info, debug]
LOG_DIR: /app/log #The path should match with PVC of Orakl Log
```
This chart will deploy the Aggregator of Orakl.
2 changes: 1 addition & 1 deletion aggregator/templates/listener/deployment-listener.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: aggregator-listener
name: {{ .Values.global.name }}-listener
labels:
{{- include "orakl-aggregator.labels.listener" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/templates/listener/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: aggregator-listener
name: {{ .Values.global.name }}-listener
labels:
{{- include "orakl-aggregator.labels.listener" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/templates/reporter/deployment-reporter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: aggregator-reporter
name: {{ .Values.global.name }}-reporter
labels:
{{- include "orakl-aggregator.labels.reporter" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/templates/reporter/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: aggregator-reporter
name: {{ .Values.global.name }}-reporter
labels:
{{- include "orakl-aggregator.labels.reporter" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/templates/worker/deployment-worker.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: aggregator-worker
name: {{ .Values.global.name }}-worker
labels:
{{- include "orakl-aggregator.labels.worker" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/templates/worker/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: aggregator-worker
name: {{ .Values.global.name }}-worker
labels:
{{- include "orakl-aggregator.labels.worker" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/values.baobab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: aggregator
name: orakl-aggregator
namespace: orakl
appName: orakl-aggregator
image:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/values.cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: aggregator
name: orakl-aggregator
namespace: orakl
appName: orakl-aggregator
image:
Expand Down
2 changes: 1 addition & 1 deletion aggregator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: aggregator
name: orakl-aggregator
namespace: orakl
appName: orakl-aggregator
image:
Expand Down
2 changes: 1 addition & 1 deletion api/values.baobab.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Api Configuration
## created by Bisonai
global:
name: api
name: orakl-api
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-api
Expand Down
2 changes: 1 addition & 1 deletion api/values.cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Api Configuration
## created by Bisonai
global:
name: api
name: orakl-api
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-api
Expand Down
2 changes: 1 addition & 1 deletion api/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Api Configuration
## created by Bisonai
global:
name: api
name: orakl-api
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-api
Expand Down
2 changes: 1 addition & 1 deletion boot-api/values.baobab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: boot-api
name: orakl-boot-api
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-boot-api #repository url
Expand Down
2 changes: 1 addition & 1 deletion boot-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: boot-api
name: orakl-boot-api
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-boot-api #repository url
Expand Down
2 changes: 1 addition & 1 deletion cli/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cli
name: {{ .Values.global.name }}
labels:
{{- include "orakl-cli.labels.cli" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion cli/values.baobab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: cli
name: orakl-cli
namespace: orakl
image:
repository: public.ecr.aws/u6t6w0e4/orakl-cli
Expand Down
2 changes: 1 addition & 1 deletion cli/values.cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: cli
name: orakl-cli
namespace: orakl
image:
repository: public.ecr.aws/u6t6w0e4/orakl-cli
Expand Down
2 changes: 1 addition & 1 deletion cli/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: cli
name: orakl-cli
namespace: orakl
image:
repository: public.ecr.aws/u6t6w0e4/orakl-cli
Expand Down
2 changes: 1 addition & 1 deletion delegator/values.baobab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: delegator
name: orakl-delegator
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-delegator #repository url
Expand Down
2 changes: 1 addition & 1 deletion delegator/values.cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: delegator
name: orakl-delegator
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-delegator #repository url
Expand Down
2 changes: 1 addition & 1 deletion delegator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: delegator
name: orakl-delegator
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-delegator #repository url
Expand Down
2 changes: 1 addition & 1 deletion fetcher/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: fetcher
name: {{ .Values.global.name }}
labels:
{{- include "orakl-fetcher.labels.fetcher" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion fetcher/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: orakl-fetcher
name: {{ .Values.global.name }}
spec:
{{ if .Values.global.externalIp.enabled }}
type: LoadBalancer
Expand Down
2 changes: 1 addition & 1 deletion fetcher/values.baobab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: fetcher
name: orakl-fetcher
namespace: orakl
image:
repository: public.ecr.aws/u6t6w0e4/orakl-fetcher #repository url
Expand Down
2 changes: 1 addition & 1 deletion fetcher/values.cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: fetcher
name: orakl-fetcher
namespace: orakl
image:
repository: public.ecr.aws/u6t6w0e4/orakl-fetcher #repository url
Expand Down
2 changes: 1 addition & 1 deletion fetcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## created by Bisonai

global:
name: fetcher
name: orakl-fetcher
namespace: orakl
image:
repository: public.ecr.aws/u6t6w0e4/orakl-fetcher #repository url
Expand Down
2 changes: 1 addition & 1 deletion grafana-as-code/values.baobab.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global:
name: grafana-as-code
name: orakl-grafana-as-code
namespace: orakl

image:
Expand Down
2 changes: 1 addition & 1 deletion grafana-as-code/values.cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global:
name: grafana-as-code
name: orakl-grafana-as-code
namespace: orakl

image:
Expand Down
2 changes: 1 addition & 1 deletion grafana-as-code/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global:
name: grafana-as-code
name: orakl-grafana-as-code
namespace: orakl

image:
Expand Down
2 changes: 1 addition & 1 deletion monitor-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: monitor-api
name: {{ .Values.global.name }}
labels:
{{- include "orakl-monitor-api.labels.monitor-api" . | nindent 4 }}
spec:
Expand Down
9 changes: 0 additions & 9 deletions monitor-api/templates/secrets.yaml.bak

This file was deleted.

6 changes: 4 additions & 2 deletions monitor-api/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: orakl-monitor-api
name: {{ .Values.global.name }}
spec:
type: LoadBalancer
loadBalancerIP: 34.142.143.138
{{- with .Values.service }}
loadBalancerIP: {{ .loadBalancerIP | quote }}
{{- end }}
ports:
- port: 8888
targetPort: http
Expand Down
2 changes: 1 addition & 1 deletion monitor-api/values.baobab.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Listener Configuration
## created by Bisonai
global:
name: monitor-api
name: orakl-monitor-api
namespace: orakl

image:
Expand Down
2 changes: 1 addition & 1 deletion monitor-api/values.cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Listener Configuration
## created by Bisonai
global:
name: monitor-api
name: orakl-monitor-api
namespace: orakl

image:
Expand Down
2 changes: 1 addition & 1 deletion monitor-api/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Listener Configuration
## created by Bisonai
global:
name: monitor-api
name: orakl-monitor-api
namespace: orakl

image:
Expand Down
2 changes: 1 addition & 1 deletion node/values.baobab.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Api Configuration
## created by Bisonai
global:
name: node
name: orakl-node
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-node
Expand Down
2 changes: 1 addition & 1 deletion node/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Klaytn Orakl Api Configuration
## created by Bisonai
global:
name: node
name: orakl-node
namespace: orakl
image:
repository: public.ecr.aws/bisonai/orakl-node
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"license": "UNLICENSED",
"devDependencies": {
"husky": "^9.0.11"
}
Expand Down
Loading
Loading