Documentation ¶
Index ¶
- type ConfigMapManager
- type DeploymentManager
- type Migrate
- func (m *Migrate) MigrationNeeded(instance metav1.Object) bool
- func (m *Migrate) SetChaincodeLauncherResourceOnCR(instance metav1.Object) error
- func (m *Migrate) UpdateConfig(instance metav1.Object, version string) error
- func (m *Migrate) UpgradeDBs(instance metav1.Object, timeouts config.DBMigrationTimeouts) error
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 Migrate ¶
type Migrate struct { DeploymentManager DeploymentManager ConfigMapManager ConfigMapManager Client k8sclient.Client }
func (*Migrate) SetChaincodeLauncherResourceOnCR ¶
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 (*Migrate) UpgradeDBs ¶
Click to show internal directories.
Click to hide internal directories.