v2

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapManager

type ConfigMapManager interface {
	GetCoreConfig(*current.IBPPeer) (*corev1.ConfigMap, error)
	CreateOrUpdate(*current.IBPPeer, initializer.CoreConfig) error
}

type DeploymentManager

type DeploymentManager interface {
	Get(metav1.Object) (client.Object, error)
	Delete(metav1.Object) error
	DeploymentStatus(metav1.Object) (appsv1.DeploymentStatus, error)
	GetScheme() *runtime.Scheme
}

type Migrate

type Migrate struct {
	DeploymentManager DeploymentManager
	ConfigMapManager  ConfigMapManager
	Client            k8sclient.Client
}

func (*Migrate) MigrationNeeded

func (m *Migrate) MigrationNeeded(instance metav1.Object) bool

func (*Migrate) SetChaincodeLauncherResourceOnCR

func (m *Migrate) SetChaincodeLauncherResourceOnCR(instance metav1.Object) error

SetChaincodeLauncherResourceOnCR will update the peer's CR by adding chaincode launcher resources. The default resources are defined in deployer's config map, which is part IBPConsole resource. The default resources are extracted for the chaincode launcher by reading the deployer's config map and updating the CR.

func (*Migrate) UpdateConfig

func (m *Migrate) UpdateConfig(instance metav1.Object, version string) error

func (*Migrate) UpgradeDBs

func (m *Migrate) UpgradeDBs(instance metav1.Object, timeouts config.DBMigrationTimeouts) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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