forked from linera-io/linera-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added scylla-operator chart and helmfiles * Replaced Helm wrapper with Helmfile wrapper * Added a step in CI to install Helmfile * Create new temporary directory for every Helmfile deployment * Increase installations timeouts * Fix CI * Make sure CI uses already built binaries * Fix Helmfile installation * Removed create_cert script --------- Co-authored-by: Andre da Silva <[email protected]>
- Loading branch information
1 parent
568f1a1
commit c82bc0b
Showing
16 changed files
with
163 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,8 @@ jobs: | |
strip target/release/linera-proxy | ||
strip target/release/linera-server | ||
strip target/release/linera-db | ||
- name: Setup helmfile | ||
uses: mamezou-tech/[email protected] | ||
- name: Run Wasm e2e test | ||
uses: nick-fields/retry@v2 | ||
with: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,59 @@ | ||
repositories: | ||
- name: scylla | ||
url: https://scylla-operator-charts.storage.googleapis.com/stable | ||
- name: jetstack | ||
url: https://charts.jetstack.io | ||
- name: prometheus-community | ||
url: https://prometheus-community.github.io/helm-charts | ||
- name: grafana | ||
url: https://grafana.github.io/helm-charts | ||
|
||
releases: | ||
- name: linera-core | ||
namespace: default | ||
chart: . | ||
timeout: 900 | ||
needs: | ||
- scylla/scylla | ||
values: | ||
- {{ env "LINERA_HELMFILE_VALUES_LINERA_CORE" | default "values-local.yaml" }} | ||
set: | ||
- name: installCRDs | ||
value: "true" | ||
- name: validator.serverConfig | ||
value: {{ env "LINERA_HELMFILE_SET_SERVER_CONFIG" | default "working/server_1.json" }} | ||
- name: validator.genesisConfig | ||
value: {{ env "LINERA_HELMFILE_SET_GENESIS_CONFIG" | default "working/genesis.json" }} | ||
- name: numShards | ||
value: {{ env "LINERA_HELMFILE_SET_NUM_SHARDS" | default 10 }} | ||
- name: scylla | ||
namespace: scylla | ||
chart: scylla/scylla | ||
timeout: 900 | ||
needs: | ||
- scylla-manager/scylla-manager | ||
- scylla-operator/scylla-operator | ||
values: | ||
- {{ env "LINERA_HELMFILE_VALUES_SCYLLA" | default "scylla.values.yaml" }} | ||
- name: scylla-manager | ||
namespace: scylla-manager | ||
chart: scylla/scylla-manager | ||
timeout: 900 | ||
needs: | ||
- scylla-operator/scylla-operator | ||
- name: scylla-operator | ||
namespace: scylla-operator | ||
chart: scylla/scylla-operator | ||
timeout: 900 | ||
needs: | ||
- cert-manager/cert-manager | ||
values: | ||
- {{ env "LINERA_HELMFILE_VALUES_SCYLLA_OPERATOR" | default "scylla-operator.values.yaml" }} | ||
- name: cert-manager | ||
namespace: cert-manager | ||
chart: jetstack/cert-manager | ||
timeout: 900 | ||
set: | ||
- name: installCRDs | ||
value: "true" | ||
|
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,3 @@ | ||
webhook: | ||
createSelfSignedCertificate: true | ||
certificateSecretName: "" |
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,16 @@ | ||
developerMode: true | ||
sysctls: | ||
- "fs.aio-max-nr=4082080" | ||
datacenter: validator | ||
racks: | ||
- name: rack-1 | ||
members: 1 | ||
storage: | ||
capacity: 1Gi | ||
resources: | ||
limits: | ||
cpu: 1 | ||
memory: 0.2Gi | ||
requests: | ||
cpu: 1 | ||
memory: 0.2Gi |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
// Copyright (c) Zefchain Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use crate::util::CommandExt; | ||
use anyhow::Result; | ||
use fs_extra::dir::CopyOptions; | ||
use std::path::Path; | ||
use tokio::process::Command; | ||
|
||
pub struct HelmFile; | ||
|
||
impl HelmFile { | ||
pub async fn sync( | ||
server_config_id: usize, | ||
github_root: &Path, | ||
num_shards: usize, | ||
cluster_id: u32, | ||
) -> Result<()> { | ||
let chart_dir = format!("{}/kubernetes/linera-validator", github_root.display()); | ||
|
||
let temp_dir = tempfile::tempdir()?; | ||
fs_extra::copy_items(&[&chart_dir], temp_dir.path(), &CopyOptions::new())?; | ||
|
||
Command::new("helmfile") | ||
.current_dir(&temp_dir.path().join("linera-validator")) | ||
.env( | ||
"LINERA_HELMFILE_SET_SERVER_CONFIG", | ||
&format!("working/server_{server_config_id}.json"), | ||
) | ||
.env("LINERA_HELMFILE_SET_NUM_SHARDS", num_shards.to_string()) | ||
.arg("sync") | ||
.arg("--wait") | ||
.args(["--kube-context", &format!("kind-{}", cluster_id)]) | ||
.spawn_and_wait() | ||
.await | ||
} | ||
} |
Oops, something went wrong.