Documentation ¶
Index ¶
- func Enroll(instance EnrollInstance, enrollment *current.Enrollment, storagePath string, ...) (*config.Response, error)
- func HSMInitContainer(instance *current.IBPPeer, hsmConfig *config.HSMConfig) *container.Container
- func Reenroll(reenroller Reenroller, client k8sclient.Client, certType common.SecretType, ...) error
- func Restart(client k8sclient.Client, name, namespace string) error
- func StartJob(client controller.Client, job *batchv1.Job, opt controller.CreateOption) error
- func UpgradeDBs(deploymentManager DeploymentReset, client controller.Client, ...) error
- type DeploymentReset
- type EnrollInstance
- type ReenrollInstance
- type Reenroller
- type UpgradeInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enroll ¶
func Enroll(instance EnrollInstance, enrollment *current.Enrollment, storagePath string, client k8sclient.Client, scheme *runtime.Scheme, ecert bool, timeouts enroller.HSMEnrollJobTimeouts) (*config.Response, error)
func HSMInitContainer ¶
HSMInitContainer creates a container that copies the HSM library to shared volume
func Reenroll ¶
func Reenroll(reenroller Reenroller, client k8sclient.Client, certType common.SecretType, instance ReenrollInstance, newKey bool) error
func Restart ¶
By triggering a component restart by updating its annotations instead of deleting the deployment, components will be restarted with the rolling update strategy unless their deployments specify a recreate strategy. This will allow ibpconsole components with rolling update strategies to not have any downtime.
func StartJob ¶
func StartJob(client controller.Client, job *batchv1.Job, opt controller.CreateOption) error
StartJob uses the client to create a job on kubernetes client
func UpgradeDBs ¶
func UpgradeDBs(deploymentManager DeploymentReset, client controller.Client, instance UpgradeInstance, timeouts oconfig.DBMigrationTimeouts) error
UpgradeDBs will update the database and peform all necessary clean up and restart logic
Types ¶
type DeploymentReset ¶
type DeploymentReset interface { Get(v1.Object) (k8sclient.Object, error) DeploymentStatus(v1.Object) (appsv1.DeploymentStatus, error) GetScheme() *runtime.Scheme }
DeploymentReset defines the contract to manage deployment reousrce
type EnrollInstance ¶
type ReenrollInstance ¶
type Reenroller ¶
Click to show internal directories.
Click to hide internal directories.