Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager, config *config.Config) error
- func GetUpdateStack(allUpdates map[string][]Update) string
- type CoreConfig
- type ReconcileIBPPeer
- func (r *ReconcileIBPPeer) AddOwnerReferenceToSecret(secret *corev1.Secret) (bool, error)
- func (r *ReconcileIBPPeer) AppendUpdateIfMissing(updates []Update, update Update) []Update
- func (r *ReconcileIBPPeer) CreateFunc(e event.CreateEvent) bool
- func (r *ReconcileIBPPeer) DeleteFunc(e event.DeleteEvent) bool
- func (r *ReconcileIBPPeer) GetPodStatus(instance *current.IBPPeer) (bool, error)
- func (r *ReconcileIBPPeer) GetSpecState(instance *current.IBPPeer) (*corev1.ConfigMap, error)
- func (r *ReconcileIBPPeer) GetUpdateStatus(instance *current.IBPPeer) *Update
- func (r *ReconcileIBPPeer) GetUpdateStatusAtElement(instance *current.IBPPeer, index int) *Update
- func (r *ReconcileIBPPeer) PopUpdate(instanceName string) *Update
- func (r *ReconcileIBPPeer) PushUpdate(instanceName string, update Update)
- func (r *ReconcileIBPPeer) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileIBPPeer) ReconcileRestart(namespace string) (bool, error)
- func (r *ReconcileIBPPeer) SaveSpecState(instance *current.IBPPeer) error
- func (r *ReconcileIBPPeer) SetStatus(instance *current.IBPPeer, reconcileStatus *current.CRStatus, ...) error
- func (r *ReconcileIBPPeer) SetupWithManager(mgr ctrl.Manager) error
- func (r *ReconcileIBPPeer) UpdateFunc(e event.UpdateEvent) bool
- type Update
- func (u *Update) CertificateCreated() bool
- func (u *Update) CertificateUpdated() bool
- func (u *Update) ConfigOverridesUpdated() bool
- func (u *Update) CryptoBackupNeeded() bool
- func (u *Update) DindArgsUpdated() bool
- func (u *Update) EcertCreated() bool
- func (u *Update) EcertEnroll() bool
- func (u *Update) EcertNewKeyReenroll() bool
- func (u *Update) EcertReenrollNeeded() bool
- func (u *Update) EcertUpdated() bool
- func (u *Update) FabricVersionUpdated() bool
- func (u *Update) GetCreatedCertType() commoninit.SecretType
- func (u *Update) GetUpdateStackWithTrues() string
- func (u *Update) GetUpdatedCertType() commoninit.SecretType
- func (u *Update) ImagesUpdated() bool
- func (u *Update) MSPUpdated() bool
- func (u *Update) MigrateToV2() bool
- func (u *Update) MigrateToV24() bool
- func (u *Update) Needed() bool
- func (u *Update) NodeOUUpdated() bool
- func (u *Update) PeerTagUpdated() bool
- func (u *Update) RestartNeeded() bool
- func (u *Update) SetDindArgsUpdated(updated bool)
- func (u *Update) SpecUpdated() bool
- func (u *Update) TLSCertCreated() bool
- func (u *Update) TLSCertEnroll() bool
- func (u *Update) TLSCertUpdated() bool
- func (u *Update) TLSReenrollNeeded() bool
- func (u *Update) TLScertNewKeyReenroll() bool
- func (u *Update) UpgradeDBs() bool
Constants ¶
const (
KIND = "IBPPeer"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new IBPPeer 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 ¶
Types ¶
type CoreConfig ¶
type CoreConfig interface {
GetMaxNameLength() *int
}
type ReconcileIBPPeer ¶
type ReconcileIBPPeer struct { Offering peerReconcile Config *config.Config RestartService *staggerrestarts.StaggerRestartsService // contains filtered or unexported fields }
ReconcileIBPPeer reconciles a IBPPeer object
func (*ReconcileIBPPeer) AddOwnerReferenceToSecret ¶
func (r *ReconcileIBPPeer) AddOwnerReferenceToSecret(secret *corev1.Secret) (bool, error)
func (*ReconcileIBPPeer) AppendUpdateIfMissing ¶
func (r *ReconcileIBPPeer) AppendUpdateIfMissing(updates []Update, update Update) []Update
func (*ReconcileIBPPeer) CreateFunc ¶
func (r *ReconcileIBPPeer) CreateFunc(e event.CreateEvent) bool
func (*ReconcileIBPPeer) DeleteFunc ¶
func (r *ReconcileIBPPeer) DeleteFunc(e event.DeleteEvent) bool
DeleteFunc will perform any necessary clean up, such as removing artificates that were left dangling after the deletion of the peer resource
func (*ReconcileIBPPeer) GetPodStatus ¶
func (r *ReconcileIBPPeer) GetPodStatus(instance *current.IBPPeer) (bool, error)
func (*ReconcileIBPPeer) GetSpecState ¶
func (*ReconcileIBPPeer) GetUpdateStatus ¶
func (r *ReconcileIBPPeer) GetUpdateStatus(instance *current.IBPPeer) *Update
func (*ReconcileIBPPeer) GetUpdateStatusAtElement ¶
func (r *ReconcileIBPPeer) GetUpdateStatusAtElement(instance *current.IBPPeer, index int) *Update
func (*ReconcileIBPPeer) PopUpdate ¶
func (r *ReconcileIBPPeer) PopUpdate(instanceName string) *Update
func (*ReconcileIBPPeer) PushUpdate ¶
func (r *ReconcileIBPPeer) PushUpdate(instanceName string, update Update)
func (*ReconcileIBPPeer) Reconcile ¶
func (r *ReconcileIBPPeer) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a IBPPeer object and makes changes based on the state read and what is in the IBPPeer.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 (*ReconcileIBPPeer) ReconcileRestart ¶
func (r *ReconcileIBPPeer) ReconcileRestart(namespace string) (bool, error)
func (*ReconcileIBPPeer) SaveSpecState ¶
func (r *ReconcileIBPPeer) SaveSpecState(instance *current.IBPPeer) error
func (*ReconcileIBPPeer) SetupWithManager ¶
func (r *ReconcileIBPPeer) SetupWithManager(mgr ctrl.Manager) error
func (*ReconcileIBPPeer) UpdateFunc ¶
func (r *ReconcileIBPPeer) UpdateFunc(e event.UpdateEvent) bool
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
func (*Update) CertificateCreated ¶
func (*Update) CertificateUpdated ¶
func (*Update) ConfigOverridesUpdated ¶
func (*Update) CryptoBackupNeeded ¶
func (*Update) DindArgsUpdated ¶
func (*Update) EcertCreated ¶
func (*Update) EcertEnroll ¶
func (*Update) EcertNewKeyReenroll ¶
func (*Update) EcertReenrollNeeded ¶
func (*Update) EcertUpdated ¶
func (*Update) FabricVersionUpdated ¶
FabricVersionUpdated returns true if fabric version updated
func (*Update) GetCreatedCertType ¶
func (u *Update) GetCreatedCertType() commoninit.SecretType
func (*Update) GetUpdateStackWithTrues ¶
func (*Update) GetUpdatedCertType ¶
func (u *Update) GetUpdatedCertType() commoninit.SecretType
func (*Update) ImagesUpdated ¶
ImagesUpdated returns true if images updated