Skip to content

Commit

Permalink
Add linter (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
antares-sw authored Feb 23, 2024
1 parent a332697 commit e11d858
Show file tree
Hide file tree
Showing 44 changed files with 147 additions and 56 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Helm Lint

on: [push]

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Lint Helm Charts
run: ./scripts/lint.sh
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.vscode

# ignore fetched subcharts
**/charts/**/charts
Expand Down
1 change: 1 addition & 0 deletions charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ appVersion: v2.4.23
kubeVersion: "^1.18.0-0"
description: The StakeWise backend application.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand Down
2 changes: 1 addition & 1 deletion charts/besu/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: besu
description: An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client.
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
home: https://stakewise.io/
sources:
- https://github.com/hyperledger/besu
Expand Down
3 changes: 1 addition & 2 deletions charts/charon/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: charon
description: Charon is an open-source Ethereum Distributed validator client written in golang.
icon: https://raw.githubusercontent.com/ObolNetwork/charon/main/docs/images/charonlogo.svg
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
home: https://obol.tech/
sources:
- https://github.com/ObolNetwork/charon
Expand Down Expand Up @@ -37,4 +37,3 @@ version: 0.1.1
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.11.0"

1 change: 1 addition & 0 deletions charts/common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: common
description: A Library Helm Chart for grouping common logic between stakewise charts. This chart is not deployable by itself.
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
1 change: 1 addition & 0 deletions charts/contract-watcher/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: contract-watcher
description: A Helm chart for Contracts monitring
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
2 changes: 1 addition & 1 deletion charts/erigon/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: erigon
description: Ethereum implementation on the efficiency frontier
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
2 changes: 1 addition & 1 deletion charts/erigon/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: " {{ include "common.names.fullname" . }}-test-connection"
name: {{ include "common.names.fullname" . }}-test-connection
labels:
{{- include "common.labels.standard" . | nindent 4 }}
annotations:
Expand Down
2 changes: 1 addition & 1 deletion charts/geth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: 2.4.2
kubeVersion: "^1.20.0-0"
description: Official Golang implementation of the Ethereum v1 protocol.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -15,7 +16,6 @@ sources:
maintainers:
- name: Dmitri Tsumak
email: [email protected]
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
appVersion: v1.13.13

dependencies:
Expand Down
7 changes: 4 additions & 3 deletions charts/grafana-stakewise-dashboards/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: grafana-stakewise-dashboards
description: A set of Grafana Dashboards for Staking Infrastructure
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -24,6 +25,6 @@ version: 1.0.0
appVersion: "1.0.0"

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.0.0
- name: common
repository: https://charts.stakewise.io/
version: 1.0.0
6 changes: 3 additions & 3 deletions charts/graph-node/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies:
version: 1.0.0
- name: ipfs
repository: https://charts.stakewise.io/
version: 2.0.1
digest: sha256:5f83f5ead4f9a04749ffdb12d9e4c7f70549ff16a964c1f16477f9cc9173442f
generated: "2023-04-14T14:42:16.882137+04:00"
version: 2.0.4
digest: sha256:c218ddebb280b18f60b1b306977791e5fe7f72852f4110688a0557cc2ec303f4
generated: "2024-02-23T10:41:03.941111+03:00"
1 change: 1 addition & 0 deletions charts/graph-node/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: graph-node
description: Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
1 change: 1 addition & 0 deletions charts/horcrux/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ keywords:
- blockchain
- staking
home: https://stakewise.io/
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
sources:
- https://github.com/stakewise/bls-horcrux/
maintainers:
Expand Down
7 changes: 4 additions & 3 deletions charts/ipfs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: ipfs
description: IPFS implementation in Go
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down Expand Up @@ -31,6 +32,6 @@ sources:
- https://github.com/ipfs/kubo

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
7 changes: 4 additions & 3 deletions charts/keeper/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ appVersion: v2.8.10
kubeVersion: "^1.14.0-0"
description: StakeWise Keeper is used to aggregate transactions from the oracles and submit them on-chain.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -17,6 +18,6 @@ maintainers:
email: [email protected]

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
7 changes: 4 additions & 3 deletions charts/lighthouse-validator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: lighthouse-validator
description: A Lighthouse Validator Chart
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -24,6 +25,6 @@ version: 5.0.0
appVersion: "5.0.0"

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
8 changes: 4 additions & 4 deletions charts/lighthouse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: 5.0.0
kubeVersion: "^1.20.0-0"
description: Rust Ethereum 2.0 Client.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -15,10 +16,9 @@ sources:
maintainers:
- name: Dmitri Tsumak
email: [email protected]
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
appVersion: v5.0.0

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
1 change: 1 addition & 0 deletions charts/lodestar-validator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: lodestar-validator
description: A Lodestar Validator Chart
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
2 changes: 1 addition & 1 deletion charts/lodestar/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: lodestar
version: 1.0.7
kubeVersion: "^1.20.0-0"
description: Rust Ethereum 2.0 Client.
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
type: application
keywords:
- ethereum
Expand All @@ -15,7 +16,6 @@ sources:
maintainers:
- name: Dmitri Tsumak
email: [email protected]
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
appVersion: v1.15.1

dependencies:
Expand Down
7 changes: 4 additions & 3 deletions charts/mev-boost/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v2
name: mev-boost
description: mev-boost allows proof-of-stake Ethereum consensus clients to outsource block construction
home: https://boost.flashbots.net/
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand Down Expand Up @@ -29,6 +30,6 @@ version: 1.5.0
appVersion: "v1.5.0"

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
2 changes: 1 addition & 1 deletion charts/nethermind/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: .NET Core Ethereum client
type: application
version: 2.5.2
appVersion: "v1.25.4"
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -12,7 +13,6 @@ keywords:
home: https://nethermind.io/
sources:
- https://github.com/NethermindEth/nethermind
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png

dependencies:
- name: common
Expand Down
8 changes: 4 additions & 4 deletions charts/nimbus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: 2.2.11
kubeVersion: "^1.18.0-0"
description: Nim implementation of the Ethereum Beacon Chain
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -15,10 +16,9 @@ sources:
maintainers:
- name: Dmitri Tsumak
email: [email protected]
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
appVersion: multiarch-v22.11.0

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
7 changes: 4 additions & 3 deletions charts/oracle/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ appVersion: v2.8.10
kubeVersion: "^1.14.0-0"
description: The StakeWise application for submitting off-chain data to smart contracts.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -17,6 +18,6 @@ maintainers:
email: [email protected]

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
1 change: 1 addition & 0 deletions charts/prysm-validator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: prysm-validator
description: A Prysm Validator Chart
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
2 changes: 1 addition & 1 deletion charts/prysm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ appVersion: v4.2.1
kubeVersion: "^1.18.0-0"
description: Go implementation of Ethereum proof of stake.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand All @@ -16,7 +17,6 @@ sources:
maintainers:
- name: Dmitri Tsumak
email: [email protected]
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png

dependencies:
- name: common
Expand Down
7 changes: 4 additions & 3 deletions charts/ssv-node/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: ssv-node
description: SSV Node
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -24,6 +25,6 @@ version: 1.0.4
appVersion: "v0.3.1"

dependencies:
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
- name: common
repository: https://charts.stakewise.io/
version: 1.x.x
1 change: 1 addition & 0 deletions charts/teku-validator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: teku-validator
description: A Teku Validator Chart
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
2 changes: 1 addition & 1 deletion charts/teku/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: teku
description: Teku is an open-source Ethereum 2.0 client written in Java.
icon: https://raw.githubusercontent.com/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
home: https://stakewise.io/
sources:
- https://github.com/ConsenSys/teku
Expand Down
1 change: 1 addition & 0 deletions charts/v3-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ appVersion: v1.0.26
kubeVersion: "^1.20.0-0"
description: The StakeWise backend application.
type: application
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png
keywords:
- ethereum
- blockchain
Expand Down
2 changes: 0 additions & 2 deletions charts/v3-backend/templates/common-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ metadata:
{{- include "common.labels.standard" . | nindent 4 }}
type: Opaque
data:
SECRET_KEY: {{ .Values.settings.secretKey | b64enc | quote }}

GCP_STORAGE_OAUTH_CREDENTIALS: {{ .Values.settings.gcpStorageOauthCredentials | b64enc | quote }}
GCP_PERSPECTIVE_API_KEY: {{ .Values.settings.gcpPerspectiveApiKey | b64enc | quote }}
GCP_CLOUD_VISION_API_KEY: {{ .Values.settings.gcpCloudVisionApiKey | b64enc | quote }}
Expand Down
Loading

0 comments on commit e11d858

Please sign in to comment.