-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update firefly-helm-charts to FireFly 1.3 and KiND deployment
- Loading branch information
Showing
35 changed files
with
4,763 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
all: lint e2e | ||
|
||
kind: | ||
kind create cluster || true | ||
kind create cluster --name firefly --config kind-config.yml | ||
kind export kubeconfig -n firefly | ||
|
||
clean: | ||
kind delete cluster | ||
|
@@ -14,10 +15,20 @@ lint: | |
ct lint \ | ||
--target-branch=main \ | ||
--exclude-deprecated \ | ||
--excluded-charts besu-node,besu-genesis\ | ||
--check-version-increment=false \ | ||
--lint-conf=./charts/lintconf.yaml | ||
./hack/enforce-chart-conventions.sh | ||
|
||
besu: | ||
kubectl --namespace default apply -f ./values/monitoring/ | ||
mkdir -p besu | ||
git clone --depth 1 https://github.com/Consensys/quorum-kubernetes besu | ||
helm upgrade --install genesis ./besu/helm/charts/besu-genesis --namespace default --create-namespace --values ./values/genesis-besu.yml | ||
kubectl --namespace default wait --for=condition=complete job/besu-genesis-init --timeout=600s | ||
helm upgrade --install validator-1 ./besu/helm/charts/besu-node --namespace default --values ./values/validator.yml | ||
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=besu-statefulset --timeout=600s | ||
|
||
deps: | ||
kubectl create ns cert-manager || true | ||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.4.0/cert-manager.crds.yaml | ||
|
@@ -27,9 +38,10 @@ deps: | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts || true | ||
helm upgrade --install --set kubeStateMetrics.enabled=false --set nodeExporter.enabled=false --set grafana.enabled=false kube-prometheus prometheus-community/kube-prometheus-stack | ||
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami || true | ||
helm upgrade --install --set postgresqlPassword=firef1y --set extraEnv[0].name=POSTGRES_DATABASE --set extraEnv[0].value=firefly postgresql bitnami/postgresql --version 10.16.2 | ||
helm upgrade --install --set global.postgresql.auth.postgresPassword=firef1y --set extraEnv[0].name=POSTGRES_DATABASE --set extraEnv[0].value=firefly postgresql bitnami/postgresql --version 14.3.0 | ||
kubectl create secret generic custom-psql-config --dry-run --from-literal="url=postgres://postgres:[email protected]:5432/postgres?sslmode=disable" -o json | kubectl apply -f - | ||
kubectl apply -n default -f manifests/mtls-cert.yaml | ||
helm upgrade --install ipfs ./charts/ipfs -f ./charts/ipfs/values.yaml | ||
|
||
starter: charts/firefly/local-values.yaml | ||
|
||
|
@@ -43,3 +55,12 @@ test: | |
ct install --namespace default --helm-extra-args="--timeout 120s" --charts charts/firefly | ||
|
||
e2e: kind deps test | ||
|
||
stack: kind deps besu | ||
helm upgrade -i firefly-signer ./charts/firefly-signer -f ./charts/firefly/values.yaml | ||
helm upgrade -i firefly ./charts/firefly -f ./charts/firefly/local-kind-values.yaml | ||
|
||
clean-stack: | ||
kind delete cluster --name firefly | ||
yq -i '.config.fireflyContracts = []' ./hack/multiparty-values.yaml | ||
rm -rf besu/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ description: | | |
transaction state. | ||
type: application | ||
version: 0.7.0 | ||
appVersion: "0.1.3" | ||
appVersion: "v1.3.14" | ||
|
||
maintainers: | ||
- name: hfuss | ||
- name: onelapahead | ||
email: [email protected] | ||
- name: drewmarshburn | ||
email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v2 | ||
name: firefly-signer | ||
description: | | ||
A Helm chart for deploying the FireFly Signer microservice to Kubernetes | ||
type: application | ||
version: 0.7.0 | ||
appVersion: "1.1.13" | ||
|
||
maintainers: | ||
- name: EnriqueL8 | ||
email: [email protected] | ||
- name: onelapahead | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "firefly-signer.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "firefly-signer.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "firefly-signer.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "firefly-signer.labels" -}} | ||
helm.sh/chart: {{ include "firefly-signer.chart" . }} | ||
{{ include "firefly-signer.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "firefly-signer.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "firefly-signer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/component: evmconnect | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{/* | ||
Copyright © 2024 Kaleido, Inc. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://swww.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
{{- if .Values.signer.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "firefly-signer.fullname" . }}-config | ||
labels: | ||
{{- include "firefly-signer.labels" . | nindent 4 }} | ||
stringData: | ||
config.yaml: |- | ||
server: | ||
port: 8545 | ||
address: 0.0.0.0 | ||
backend: | ||
chainId: {{ .Values.backend.chainId }} | ||
url: {{ .Values.backend.url }} | ||
fileWallet: | ||
path: /data/keystore | ||
filenames: | ||
primaryExt: .toml | ||
metadata: | ||
format: toml | ||
keyFileProperty: '{{ "{{" }} index .signing "key-file" {{ "}}" }}' | ||
passwordFileProperty: '{{ "{{" }} index .signing "password-file" {{ "}}" }}' | ||
log: | ||
level: debug | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{/* | ||
Copyright © 2024 Kaleido, Inc. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://swww.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
{{- if .Values.signer.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "firefly-signer.fullname" . }}-keystore | ||
labels: | ||
{{- include "firefly-signer.labels" . | nindent 4 }} | ||
stringData: | ||
75a99473917701038e854ef6999c76cd947c9f9e: |- | ||
{"address":"75a99473917701038e854ef6999c76cd947c9f9e","id":"8cfd0d87-b5ac-45a4-acb9-55f5b2b9bb2e","version":3,"crypto":{"cipher":"aes-128-ctr","ciphertext":"72c8d1f61787f7b1455d7e081edd72d7e1f41f503f363cb7afe08634c10bcd09","cipherparams":{"iv":"8731e724016127b91cf013bc0b4f7f82"},"kdf":"scrypt","mac":"af4de886e6a7e22beefbeaea213e621f00ebca859528c7d474635850800a8de6","kdfparams":{"dklen":32,"n":1024,"p":1,"r":8,"salt":"b1e3901cfe16ed73c538e1adaef5c584ea3b0a405ec1dd1c8776e55c3385c27b"}}} | ||
75a99473917701038e854ef6999c76cd947c9f9e.toml: |- | ||
[metadata] | ||
createdAt = 2019-11-05T08:15:30-05:00 | ||
description = "File based configuration" | ||
[signing] | ||
type = "file-based-signer" | ||
key-file = "/data/keystore/75a99473917701038e854ef6999c76cd947c9f9e" | ||
password-file = "/data/password" | ||
password: correcthorsebatterystaple | ||
|
||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{/* | ||
Copyright © 2024 Kaleido, Inc. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://swww.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "firefly-signer.fullname" . }} | ||
labels: | ||
{{- include "firefly-signer.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- port: {{ .Values.service.port }} | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
{{- include "firefly-signer.selectorLabels" . | nindent 4 }} |
Oops, something went wrong.