chainnode

package
v1.52.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivKeyFilename = "priv_validator_key.json"

	MnemonicKey = "mnemonic"

	VolumeSnapshotDataSourceKind     = "VolumeSnapshot"
	VolumeSnapshotDataSourceApiGroup = "snapshot.storage.k8s.io"

	ReasonImagePullBackOff = "ImagePullBackOff"
	ReasonErrImagePull     = "ErrImagePull"
)
View Source
const OneMiB = int64(1024 * 1024)

Variables

This section is empty.

Functions

func AddOrUpdateUpgrade

func AddOrUpdateUpgrade(upgrades []appsv1.Upgrade, upgrade appsv1.Upgrade, currentHeight int64) []appsv1.Upgrade

func IsPodReady added in v1.46.3

func IsPodReady(pod *corev1.Pod) bool

func WithChainNodeLabels

func WithChainNodeLabels(chainNode *appsv1.ChainNode, additional ...map[string]string) map[string]string

Types

type GenerationChangedPredicate

type GenerationChangedPredicate struct {
	predicate.Funcs
}

func (GenerationChangedPredicate) Create

Create implements default CreateEvent filter

func (GenerationChangedPredicate) Delete

Delete implements default DeleteEvent filter

func (GenerationChangedPredicate) Update

Update implements default UpdateEvent filter for validating generation change

type KeyFormatter

type KeyFormatter struct {
	IsValidator bool
	UseTmkms    bool
	UseDashes   bool
}

func GetKeyFormatter

func GetKeyFormatter(chainNode *appsv1.ChainNode) *KeyFormatter

func (*KeyFormatter) API

func (kf *KeyFormatter) API() string

func (*KeyFormatter) AddrBookFile

func (kf *KeyFormatter) AddrBookFile() string

func (*KeyFormatter) AddrBookStrict

func (kf *KeyFormatter) AddrBookStrict() string

func (*KeyFormatter) Address

func (kf *KeyFormatter) Address() string

func (*KeyFormatter) AllowDuplicateIP

func (kf *KeyFormatter) AllowDuplicateIP() string

func (*KeyFormatter) CorsAllowedOrigins

func (kf *KeyFormatter) CorsAllowedOrigins() string

func (*KeyFormatter) Enable

func (kf *KeyFormatter) Enable() string

func (*KeyFormatter) ExternalAddress

func (kf *KeyFormatter) ExternalAddress() string

func (*KeyFormatter) FormatKey

func (kf *KeyFormatter) FormatKey(key string) string

func (*KeyFormatter) GRPC

func (kf *KeyFormatter) GRPC() string

func (*KeyFormatter) GenesisFile

func (kf *KeyFormatter) GenesisFile() string

func (*KeyFormatter) GetBaseAppToml

func (kf *KeyFormatter) GetBaseAppToml() map[string]interface{}

func (*KeyFormatter) GetBaseConfigToml

func (kf *KeyFormatter) GetBaseConfigToml() map[string]interface{}

func (*KeyFormatter) HaltHeight added in v1.40.0

func (kf *KeyFormatter) HaltHeight() string

func (*KeyFormatter) Instrumentation

func (kf *KeyFormatter) Instrumentation() string

func (*KeyFormatter) JsonRPC

func (kf *KeyFormatter) JsonRPC() string

func (*KeyFormatter) Laddr

func (kf *KeyFormatter) Laddr() string

func (*KeyFormatter) LogFormat

func (kf *KeyFormatter) LogFormat() string

func (*KeyFormatter) Moniker

func (kf *KeyFormatter) Moniker() string

func (*KeyFormatter) P2P

func (kf *KeyFormatter) P2P() string

func (*KeyFormatter) PersistentPeers

func (kf *KeyFormatter) PersistentPeers() string

func (*KeyFormatter) Pex

func (kf *KeyFormatter) Pex() string

func (*KeyFormatter) PrivValidatorLaddr

func (kf *KeyFormatter) PrivValidatorLaddr() string

func (*KeyFormatter) PrivatePeerIDs

func (kf *KeyFormatter) PrivatePeerIDs() string

func (*KeyFormatter) Prometheus

func (kf *KeyFormatter) Prometheus() string

func (*KeyFormatter) RPC

func (kf *KeyFormatter) RPC() string

func (*KeyFormatter) RPCServers

func (kf *KeyFormatter) RPCServers() string

func (*KeyFormatter) SeedMode

func (kf *KeyFormatter) SeedMode() string

func (*KeyFormatter) Seeds added in v1.48.0

func (kf *KeyFormatter) Seeds() string

func (*KeyFormatter) SnapshotInterval

func (kf *KeyFormatter) SnapshotInterval() string

func (*KeyFormatter) SnapshotKeepRecent

func (kf *KeyFormatter) SnapshotKeepRecent() string

func (*KeyFormatter) StateDashSync

func (kf *KeyFormatter) StateDashSync() string

func (*KeyFormatter) StateSync

func (kf *KeyFormatter) StateSync() string

func (*KeyFormatter) TrustHash

func (kf *KeyFormatter) TrustHash() string

func (*KeyFormatter) TrustHeight

func (kf *KeyFormatter) TrustHeight() string

func (*KeyFormatter) TrustPeriod

func (kf *KeyFormatter) TrustPeriod() string

func (*KeyFormatter) UnconditionalPeerIDs

func (kf *KeyFormatter) UnconditionalPeerIDs() string

func (*KeyFormatter) WsAddress

func (kf *KeyFormatter) WsAddress() string

type Reconciler

type Reconciler struct {
	client.Client
	ClientSet  *kubernetes.Clientset
	RestConfig *rest.Config
	Scheme     *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a ChainNode object

func (*Reconciler) PatchPod

func (r *Reconciler) PatchPod(ctx context.Context, cur, mod *corev1.Pod) (*corev1.Pod, error)

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

type SnapshotIntegrityStatus

type SnapshotIntegrityStatus string

Jump to

Keyboard shortcuts

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