ibporderer

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: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KIND = "IBPOrderer"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, config *config.Config) error

Add creates a new IBPOrderer Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GetUpdateStack

func GetUpdateStack(allUpdates map[string][]Update) string

Types

type ReconcileIBPOrderer

type ReconcileIBPOrderer struct {
	Offering       ordererReconcile
	Config         *config.Config
	RestartService *staggerrestarts.StaggerRestartsService
	// contains filtered or unexported fields
}

ReconcileIBPOrderer reconciles a IBPOrderer object

func (*ReconcileIBPOrderer) AddOwnerReferenceToSecret

func (r *ReconcileIBPOrderer) AddOwnerReferenceToSecret(secret *corev1.Secret) (bool, error)

func (*ReconcileIBPOrderer) AppendUpdateIfMissing

func (r *ReconcileIBPOrderer) AppendUpdateIfMissing(updates []Update, update Update) []Update

func (*ReconcileIBPOrderer) CreateFunc

func (r *ReconcileIBPOrderer) CreateFunc(e event.CreateEvent) bool

func (*ReconcileIBPOrderer) DeleteFunc

func (r *ReconcileIBPOrderer) DeleteFunc(e event.DeleteEvent) bool

func (*ReconcileIBPOrderer) GetGenesisSecret

func (r *ReconcileIBPOrderer) GetGenesisSecret(instance *current.IBPOrderer) error

func (*ReconcileIBPOrderer) GetPodStatus

func (r *ReconcileIBPOrderer) GetPodStatus(instance *current.IBPOrderer) (map[string]corev1.PodStatus, error)

func (*ReconcileIBPOrderer) GetSpecState

func (r *ReconcileIBPOrderer) GetSpecState(instance *current.IBPOrderer) (*corev1.ConfigMap, error)

func (*ReconcileIBPOrderer) GetUpdateStatus

func (r *ReconcileIBPOrderer) GetUpdateStatus(instance *current.IBPOrderer) *Update

func (*ReconcileIBPOrderer) GetUpdateStatusAtElement

func (r *ReconcileIBPOrderer) GetUpdateStatusAtElement(instance *current.IBPOrderer, index int) *Update

func (*ReconcileIBPOrderer) PopUpdate

func (r *ReconcileIBPOrderer) PopUpdate(instanceName string) *Update

func (*ReconcileIBPOrderer) PushUpdate

func (r *ReconcileIBPOrderer) PushUpdate(instanceName string, update Update)

func (*ReconcileIBPOrderer) Reconcile

func (r *ReconcileIBPOrderer) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a IBPOrderer object and makes changes based on the state read and what is in the IBPOrderer.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*ReconcileIBPOrderer) ReconcileRestart

func (r *ReconcileIBPOrderer) ReconcileRestart(namespace string) (bool, error)

func (*ReconcileIBPOrderer) SaveSpecState

func (r *ReconcileIBPOrderer) SaveSpecState(instance *current.IBPOrderer) error

func (*ReconcileIBPOrderer) SetStatus

func (r *ReconcileIBPOrderer) SetStatus(instance *current.IBPOrderer, result *common.Result, reconcileErr error) error

func (*ReconcileIBPOrderer) SetupWithManager

func (r *ReconcileIBPOrderer) SetupWithManager(mgr ctrl.Manager) error

func (*ReconcileIBPOrderer) UpdateFunc

func (r *ReconcileIBPOrderer) UpdateFunc(e event.UpdateEvent) bool

type Update

type Update struct {
	// contains filtered or unexported fields
}

func (*Update) CertificateCreated

func (u *Update) CertificateCreated() bool

func (*Update) CertificateUpdated

func (u *Update) CertificateUpdated() bool

func (*Update) ConfigOverridesUpdated

func (u *Update) ConfigOverridesUpdated() bool

func (*Update) CryptoBackupNeeded

func (u *Update) CryptoBackupNeeded() bool

func (*Update) DeploymentUpdated

func (u *Update) DeploymentUpdated() bool

func (*Update) Detected

func (u *Update) Detected() bool

func (*Update) EcertCreated

func (u *Update) EcertCreated() bool

func (*Update) EcertEnroll

func (u *Update) EcertEnroll() bool

func (*Update) EcertNewKeyReenroll

func (u *Update) EcertNewKeyReenroll() bool

func (*Update) EcertReenrollNeeded

func (u *Update) EcertReenrollNeeded() bool

func (*Update) EcertUpdated

func (u *Update) EcertUpdated() bool

func (*Update) FabricVersionUpdated

func (u *Update) FabricVersionUpdated() bool

FabricVersionUpdated returns true if fabric version updated

func (*Update) GetCreatedCertType

func (u *Update) GetCreatedCertType() commoninit.SecretType

func (*Update) GetUpdateStackWithTrues

func (u *Update) GetUpdateStackWithTrues() string

func (*Update) GetUpdatedCertType

func (u *Update) GetUpdatedCertType() commoninit.SecretType

func (*Update) ImagesUpdated

func (u *Update) ImagesUpdated() bool

ImagesUpdated returns true if images updated

func (*Update) MSPUpdated

func (u *Update) MSPUpdated() bool

func (*Update) MigrateToV2

func (u *Update) MigrateToV2() bool

func (*Update) MigrateToV24

func (u *Update) MigrateToV24() bool

func (*Update) NodeOUUpdated

func (u *Update) NodeOUUpdated() bool

func (*Update) OrdererTagUpdated

func (u *Update) OrdererTagUpdated() bool

func (*Update) RestartNeeded

func (u *Update) RestartNeeded() bool

func (*Update) SpecUpdated

func (u *Update) SpecUpdated() bool

func (*Update) StatusUpdated

func (u *Update) StatusUpdated() bool

func (*Update) TLSCertCreated

func (u *Update) TLSCertCreated() bool

func (*Update) TLSCertUpdated

func (u *Update) TLSCertUpdated() bool

func (*Update) TLScertEnroll

func (u *Update) TLScertEnroll() bool

func (*Update) TLScertNewKeyReenroll

func (u *Update) TLScertNewKeyReenroll() bool

func (*Update) TLScertReenrollNeeded

func (u *Update) TLScertReenrollNeeded() bool

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