Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentConfigCreate ¶
type DeploymentConfigCreate struct {
Namespace *f2k8s.Namespace
DeploymentConfig *osappsv1.DeploymentConfig
Result *osappsv1.DeploymentConfig
Ctx context.Context
}
Executes a fully specified OCP DeploymentConfig
See DeploymentConfigCreateSimple for a simpler interface ¶
func (*DeploymentConfigCreate) Execute ¶
func (d *DeploymentConfigCreate) Execute() error
type DeploymentConfigCreateSimple ¶
type DeploymentConfigCreateSimple struct {
Name string
Namespace *f2k8s.Namespace
DeploymentOpts f2k8s.DeploymentOpts
Wait time.Duration // Waits for the deployment to be ready. Otherwise, returns as soon as the create instruction has been issued. If the wait lapses, return an error.
Ctx context.Context
Result *osappsv1.DeploymentConfig
frame2.DefaultRunDealer
}
See DeploymentConfigCreate for a more complete interface
func (*DeploymentConfigCreateSimple) Execute ¶
func (d *DeploymentConfigCreateSimple) Execute() error
TODO: remove this whole thing?
type DeploymentConfigUndeploy ¶
type DeploymentConfigUndeploy struct {
Name string
Namespace *f2k8s.Namespace
Wait time.Duration // Waits for the deployment to be gone. Otherwise, returns as soon as the delete instruction has been issued. If the wait lapses, return an error.
Ctx context.Context
frame2.DefaultRunDealer
}
func (*DeploymentConfigUndeploy) Execute ¶
func (k *DeploymentConfigUndeploy) Execute() error
type DeploymentConfigValidate ¶
type DeploymentConfigValidate struct {
Namespace *f2k8s.Namespace
Name string
MinReadyReplicas int
Ctx context.Context
Result *osappsv1.DeploymentConfig
frame2.Log
frame2.DefaultRunDealer
}
func (*DeploymentConfigValidate) Validate ¶
func (d *DeploymentConfigValidate) Validate() error
type DeploymentConfigWait ¶
type DeploymentConfigWait struct {
Name string
Namespace *f2k8s.Namespace
Ctx context.Context
// On this field, do not set the context. Use the DeploymentConfigWait.Ctx,
// instead, it will be used for the underlying Retry
RetryOptions frame2.RetryOptions
frame2.DefaultRunDealer
*frame2.Log
}
Wait for the named deploymentconfig to be available. By default, it waits for up to two minutes, and ensures that the deployment reports as ready for at least 10s.
That behavior can be changed using the RetryOptions field. On that field, the Ctx field cannot be set; if a different timeout is desired, set it on the Action's Ctx itself, and it will be used for the RetryOptions.
func (DeploymentConfigWait) Validate ¶
func (w DeploymentConfigWait) Validate() error
Click to show internal directories.
Click to hide internal directories.