Documentation ¶
Index ¶
- Constants
- func ConfigToBytes(c *cav1.ServerConfig) ([]byte, error)
- type CA
- func (ca *CA) AddTLSCryptoIfMissing(instance *current.IBPCA, endpoints *current.CAEndpoints) error
- func (ca *CA) CheckCertificates(instance *current.IBPCA) (*current.CRStatus, error)
- func (ca *CA) CheckForTLSSecret(instance *current.IBPCA) error
- func (ca *CA) CheckStates(instance *current.IBPCA) error
- func (ca *CA) CreateCACryptoSecret(instance *current.IBPCA, caCrypto map[string][]byte) error
- func (ca *CA) CreateManagers()
- func (ca *CA) CreateTLSCACryptoSecret(instance *current.IBPCA, tlscaCrypto map[string][]byte) error
- func (ca *CA) GenTLSCrypto(instance *current.IBPCA, endpoints *current.CAEndpoints) ([]byte, []byte, error)
- func (ca *CA) GetEndpoints(instance *current.IBPCA) *current.CAEndpoints
- func (ca *CA) GetEndpointsDNS(instance *current.IBPCA) *current.CAEndpoints
- func (ca *CA) GetLabels(instance v1.Object) map[string]string
- func (ca *CA) HandleActions(instance *current.IBPCA, update Update) error
- func (ca *CA) HandleRestart(instance *current.IBPCA, update Update) error
- func (ca *CA) Initialize(instance *current.IBPCA, update Update) error
- func (ca *CA) PreReconcileChecks(instance *current.IBPCA, update Update) (bool, error)
- func (ca *CA) Reconcile(instance *current.IBPCA, update Update) (common.Result, error)
- func (ca *CA) ReconcileFabricCAMigration(instance *current.IBPCA) error
- func (ca *CA) ReconcileHSMImages(instance *current.IBPCA) bool
- func (ca *CA) ReconcileManagers(instance *current.IBPCA, updated Update) error
- func (ca *CA) ReconcileRBAC(instance *current.IBPCA) error
- func (ca *CA) RenewCert(instance *current.IBPCA, endpoints *current.CAEndpoints) error
- func (ca *CA) RestartAction(instance *current.IBPCA) error
- func (ca *CA) SelectRegion(instance *current.IBPCA) (bool, error)
- func (ca *CA) SelectZone(instance *current.IBPCA) (bool, error)
- func (ca *CA) SetVersion(instance *current.IBPCA) (bool, error)
- func (ca *CA) UpdateConnectionProfile(instance *current.IBPCA) error
- func (ca *CA) UpdateConnectionProfileConfigmap(instance *current.IBPCA, endpoints current.CAEndpoints, ...) error
- type CertificateManager
- type IBPCA
- type Initialize
- func (i *Initialize) CreateConfigResources(name string, instance *current.IBPCA, resp *initializer.Response) error
- func (i *Initialize) CreateEnrollmentCAConfig(instance *current.IBPCA) (*initializer.Response, error)
- func (i *Initialize) CreateOrUpdateConfigMap(instance *current.IBPCA, data map[string][]byte, name string) error
- func (i *Initialize) CreateOrUpdateCryptoSecret(instance *current.IBPCA, caCrypto map[string][]byte, name string) error
- func (i *Initialize) CreateTLSCAConfig(instance *current.IBPCA) (*initializer.Response, error)
- func (i *Initialize) GetCryptoSecret(instance *current.IBPCA, name string) (*corev1.Secret, error)
- func (i *Initialize) GetEnrollmentInitCA(instance *current.IBPCA, data []byte) (*initializer.CA, error)
- func (i *Initialize) GetTLSInitCA(instance *current.IBPCA, data []byte) (*initializer.CA, error)
- func (i *Initialize) HandleConfigResources(name string, instance *current.IBPCA, resp *initializer.Response, ...) error
- func (i *Initialize) HandleEnrollmentCAInit(instance *current.IBPCA, update Update) (*initializer.Response, error)
- func (i *Initialize) HandleTLSCAInit(instance *current.IBPCA, update Update) (*initializer.Response, error)
- func (i *Initialize) MergeCryptoMaterial(current map[string][]byte, updated map[string][]byte) map[string][]byte
- func (i *Initialize) ReadConfigMap(instance *current.IBPCA, name string) (*corev1.ConfigMap, error)
- func (i *Initialize) SecretExists(instance *current.IBPCA, name string) bool
- func (i *Initialize) SyncDBConfig(orig *current.IBPCA) (*current.IBPCA, error)
- func (i *Initialize) UpdateConfigResources(name string, instance *current.IBPCA, resp *initializer.Response) error
- func (i *Initialize) UpdateEnrollmentCAConfig(instance *current.IBPCA) (*initializer.Response, error)
- func (i *Initialize) UpdateTLSCAConfig(instance *current.IBPCA) (*initializer.Response, error)
- type InitializeIBPCA
- type Initializer
- type Override
- type RestartManager
- type Update
Constants ¶
View Source
const (
DaysToSecondsConversion = int64(24 * 60 * 60)
)
Variables ¶
This section is empty.
Functions ¶
func ConfigToBytes ¶
func ConfigToBytes(c *cav1.ServerConfig) ([]byte, error)
Types ¶
type CA ¶
type CA struct { Client controllerclient.Client Scheme *runtime.Scheme Config *config.Config DeploymentManager resources.Manager ServiceManager resources.Manager PVCManager resources.Manager RoleManager resources.Manager RoleBindingManager resources.Manager ServiceAccountManager resources.Manager Override Override Initializer InitializeIBPCA CertificateManager CertificateManager RenewCertTimers map[string]*time.Timer Restart RestartManager }
func (*CA) AddTLSCryptoIfMissing ¶
func (*CA) CheckCertificates ¶
func (*CA) CreateCACryptoSecret ¶
func (*CA) CreateManagers ¶
func (ca *CA) CreateManagers()
func (*CA) CreateTLSCACryptoSecret ¶
func (*CA) GenTLSCrypto ¶
func (*CA) GetEndpoints ¶
func (ca *CA) GetEndpoints(instance *current.IBPCA) *current.CAEndpoints
func (*CA) GetEndpointsDNS ¶
func (ca *CA) GetEndpointsDNS(instance *current.IBPCA) *current.CAEndpoints
func (*CA) HandleActions ¶
func (*CA) HandleRestart ¶
func (*CA) PreReconcileChecks ¶
PreReconcileChecks validate CR request before starting reconcile flow
func (*CA) ReconcileFabricCAMigration ¶
func (*CA) ReconcileManagers ¶
func (*CA) UpdateConnectionProfile ¶
func (*CA) UpdateConnectionProfileConfigmap ¶
type CertificateManager ¶
type Initialize ¶
type Initialize struct { Config *initializer.Config Scheme *runtime.Scheme Labels func(instance v1.Object) map[string]string Initializer Initializer Client k8sclient.Client }
func NewInitializer ¶
func NewInitializer(config *initializer.Config, scheme *runtime.Scheme, client k8sclient.Client, labels func(instance v1.Object) map[string]string, timeouts initializer.HSMInitJobTimeouts) *Initialize
func (*Initialize) CreateConfigResources ¶
func (i *Initialize) CreateConfigResources(name string, instance *current.IBPCA, resp *initializer.Response) error
func (*Initialize) CreateEnrollmentCAConfig ¶
func (i *Initialize) CreateEnrollmentCAConfig(instance *current.IBPCA) (*initializer.Response, error)
func (*Initialize) CreateOrUpdateConfigMap ¶
func (*Initialize) CreateOrUpdateCryptoSecret ¶
func (*Initialize) CreateTLSCAConfig ¶
func (i *Initialize) CreateTLSCAConfig(instance *current.IBPCA) (*initializer.Response, error)
func (*Initialize) GetCryptoSecret ¶
func (*Initialize) GetEnrollmentInitCA ¶
func (i *Initialize) GetEnrollmentInitCA(instance *current.IBPCA, data []byte) (*initializer.CA, error)
func (*Initialize) GetTLSInitCA ¶
func (i *Initialize) GetTLSInitCA(instance *current.IBPCA, data []byte) (*initializer.CA, error)
func (*Initialize) HandleConfigResources ¶
func (i *Initialize) HandleConfigResources(name string, instance *current.IBPCA, resp *initializer.Response, update Update) error
func (*Initialize) HandleEnrollmentCAInit ¶
func (i *Initialize) HandleEnrollmentCAInit(instance *current.IBPCA, update Update) (*initializer.Response, error)
func (*Initialize) HandleTLSCAInit ¶
func (i *Initialize) HandleTLSCAInit(instance *current.IBPCA, update Update) (*initializer.Response, error)
func (*Initialize) MergeCryptoMaterial ¶
func (*Initialize) ReadConfigMap ¶
func (*Initialize) SecretExists ¶
func (i *Initialize) SecretExists(instance *current.IBPCA, name string) bool
func (*Initialize) SyncDBConfig ¶
func (*Initialize) UpdateConfigResources ¶
func (i *Initialize) UpdateConfigResources(name string, instance *current.IBPCA, resp *initializer.Response) error
func (*Initialize) UpdateEnrollmentCAConfig ¶
func (i *Initialize) UpdateEnrollmentCAConfig(instance *current.IBPCA) (*initializer.Response, error)
func (*Initialize) UpdateTLSCAConfig ¶
func (i *Initialize) UpdateTLSCAConfig(instance *current.IBPCA) (*initializer.Response, error)
type InitializeIBPCA ¶
type InitializeIBPCA interface { HandleEnrollmentCAInit(instance *current.IBPCA, update Update) (*initializer.Response, error) HandleConfigResources(name string, instance *current.IBPCA, resp *initializer.Response, update Update) error HandleTLSCAInit(instance *current.IBPCA, update Update) (*initializer.Response, error) SyncDBConfig(*current.IBPCA) (*current.IBPCA, error) CreateOrUpdateConfigMap(instance *current.IBPCA, data map[string][]byte, name string) error ReadConfigMap(instance *current.IBPCA, name string) (*corev1.ConfigMap, error) }
type Initializer ¶
type Initializer interface { Create(*current.IBPCA, *cav1.ServerConfig, initializer.IBPCA) (*initializer.Response, error) Update(*current.IBPCA, *cav1.ServerConfig, initializer.IBPCA) (*initializer.Response, error) }
type Override ¶
type Override interface { Deployment(v1.Object, *appsv1.Deployment, resources.Action) error Service(v1.Object, *corev1.Service, resources.Action) error PVC(v1.Object, *corev1.PersistentVolumeClaim, resources.Action) error Role(v1.Object, *rbacv1.Role, resources.Action) error RoleBinding(v1.Object, *rbacv1.RoleBinding, resources.Action) error ServiceAccount(v1.Object, *corev1.ServiceAccount, resources.Action) error IsPostgres(instance *current.IBPCA) bool }
type RestartManager ¶
Click to show internal directories.
Click to hide internal directories.