ethereum_beacon_cookbooks

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GethEphemeral = "gethEphemeral"
)
View Source
const (
	LighthouseEphemeral = "lighthouseEphemeral"
)

Variables

View Source
var (
	BeaconClusterDefinition = zeus_cluster_config_drivers.ClusterDefinition{
		ClusterClassName: "ethereumBeacon",
		CloudCtxNs:       BeaconCloudCtxNs,
		ComponentBases:   BeaconComponentBases,
	}
	BeaconCloudCtxNs = zeus_common_types.CloudCtxNs{
		CloudProvider: "do",
		Region:        "sfo3",
		Context:       "do-sfo3-dev-do-sfo3-zeus",
		Namespace:     "beacon",
		Env:           "production",
	}
	BeaconComponentBases = map[string]zeus_cluster_config_drivers.ComponentBaseDefinition{
		"consensusClients": ConsensusClientComponentBase,
		"execClients":      ExecClientComponentBase,
	}
	ConsensusClientComponentBase = zeus_cluster_config_drivers.ComponentBaseDefinition{
		SkeletonBases: map[string]zeus_cluster_config_drivers.ClusterSkeletonBaseDefinition{
			"lighthouseHercules": ConsensusClientSkeletonBaseConfig,
		},
	}
	ExecClientComponentBase = zeus_cluster_config_drivers.ComponentBaseDefinition{
		SkeletonBases: map[string]zeus_cluster_config_drivers.ClusterSkeletonBaseDefinition{
			"gethHercules": ExecClientSkeletonBaseConfig,
		},
	}
)
View Source
var BeaconConsensusClientChartPath = filepaths.Path{
	PackageName: "",
	DirIn:       "./ethereum/beacons/infra/consensus_client",
	DirOut:      "./ethereum/outputs",
	FnIn:        "lighthouseHercules",
	FnOut:       "",
	Env:         "",
}
View Source
var BeaconExecClientChartPath = filepaths.Path{
	PackageName: "",
	DirIn:       "./ethereum/beacons/infra/exec_client",
	DirOut:      "./ethereum/outputs",
	FnIn:        "gethHercules",
	FnOut:       "",
	Env:         "",
}
View Source
var BeaconIngressSkeletonBaseConfig = zeus_cluster_config_drivers.ClusterSkeletonBaseDefinition{
	SkeletonBaseChart:         zeus_req_types.TopologyCreateRequest{},
	SkeletonBaseNameChartPath: BeaconConsensusClientChartPath,
}
View Source
var Cd = zeus_req_types.ClusterTopologyDeployRequest{

	ClusterClassName:    "ethereumBeacons",
	SkeletonBaseOptions: []string{"gethHercules", "lighthouseHercules"},
	CloudCtxNs:          BeaconCloudCtxNs,
}
View Source
var ConsensusClientChart = zeus_req_types.TopologyCreateRequest{
	TopologyName:      "lighthouseHercules",
	ChartName:         "lighthouseHercules",
	ChartDescription:  "lighthouseHercules",
	Version:           fmt.Sprintf("lighthouseHerculesv0.0.%d", time.Now().Unix()),
	ClusterClassName:  "ethereumBeacons",
	ComponentBaseName: "consensusClient",
	SkeletonBaseName:  "lighthouseHercules",
	Tag:               "latest",
}
View Source
var ConsensusClientSkeletonBaseConfig = zeus_cluster_config_drivers.ClusterSkeletonBaseDefinition{
	SkeletonBaseChart:         zeus_req_types.TopologyCreateRequest{},
	SkeletonBaseNameChartPath: BeaconConsensusClientChartPath,
}
View Source
var DeployConsensusClientKnsReq = zeus_req_types.TopologyDeployRequest{
	TopologyID: 0,
	CloudCtxNs: BeaconCloudCtxNs,
}

DeployConsensusClientKnsReq set your own topologyID here after uploading a chart workload

View Source
var DeployExecClientKnsReq = zeus_req_types.TopologyDeployRequest{
	TopologyID: 0,
	CloudCtxNs: BeaconCloudCtxNs,
}

DeployExecClientKnsReq set your own topologyID here after uploading a chart workload

View Source
var ExecClientChart = zeus_req_types.TopologyCreateRequest{
	TopologyName:      "gethHercules",
	ChartName:         "gethHercules",
	ChartDescription:  "gethHercules",
	Version:           fmt.Sprintf("gethHerculesv0.0.%d", time.Now().Unix()),
	ClusterClassName:  "ethereumBeacons",
	ComponentBaseName: "executionClient",
	SkeletonBaseName:  "gethHercules",
	Tag:               "latest",
}
View Source
var ExecClientSkeletonBaseConfig = zeus_cluster_config_drivers.ClusterSkeletonBaseDefinition{
	SkeletonBaseChart:         zeus_req_types.TopologyCreateRequest{},
	SkeletonBaseNameChartPath: BeaconExecClientChartPath,
}
View Source
var IngressChart = zeus_req_types.TopologyCreateRequest{
	TopologyName:      "beaconIngress",
	ChartName:         "beaconIngress",
	ChartDescription:  "beaconIngress",
	Version:           fmt.Sprintf("beaconIngress-v.0.%d", time.Now().Unix()),
	SkeletonBaseName:  "beaconIngress",
	ComponentBaseName: "beaconIngress",
	ClusterClassName:  "ethereumBeacon",
	Tag:               "latest",
}
View Source
var IngressChartPath = filepaths.Path{
	PackageName: "",
	DirIn:       "./ethereum/beacons/infra/ingress",
	DirOut:      "./ethereum/beacons/infra/processed_beacon_ingress",
	FnIn:        "beaconIngress",
	FnOut:       "",
	Env:         "",
}

Functions

func ConfigEphemeralLighthouseGethBeacon

func ConfigEphemeralLighthouseGethBeacon(cp, ep, ing filepaths.Path, withIngress bool)

func EphemeralConsensusClientLighthouseConfig

func EphemeralConsensusClientLighthouseConfig(inf topology_workloads.TopologyBaseInfraWorkload)

func EphemeralExecClientGethConfig

func EphemeralExecClientGethConfig(inf topology_workloads.TopologyBaseInfraWorkload)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL