Documentation ¶
Index ¶
- type DeploymentWrapper
- func (d *DeploymentWrapper) Image(image string, args []string) *DeploymentWrapper
- func (d *DeploymentWrapper) Label(k, v string) *DeploymentWrapper
- func (d *DeploymentWrapper) Name(n string) *DeploymentWrapper
- func (d *DeploymentWrapper) Obj() *appsv1.Deployment
- func (d *DeploymentWrapper) PodTemplateAnnotation(k, v string) *DeploymentWrapper
- func (d *DeploymentWrapper) PodTemplateSpecLabel(k, v string) *DeploymentWrapper
- func (d *DeploymentWrapper) PodTemplateSpecQueue(q string) *DeploymentWrapper
- func (d *DeploymentWrapper) Queue(q string) *DeploymentWrapper
- func (d *DeploymentWrapper) ReadyReplicas(readyReplicas int32) *DeploymentWrapper
- func (d *DeploymentWrapper) Replicas(replicas int32) *DeploymentWrapper
- func (d *DeploymentWrapper) Request(r corev1.ResourceName, v string) *DeploymentWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentWrapper ¶
type DeploymentWrapper struct {
appsv1.Deployment
}
DeploymentWrapper wraps a Deployment.
func MakeDeployment ¶
func MakeDeployment(name, ns string) *DeploymentWrapper
MakeDeployment creates a wrapper for a Deployment with a single container.
func (*DeploymentWrapper) Image ¶ added in v0.10.0
func (d *DeploymentWrapper) Image(image string, args []string) *DeploymentWrapper
Image sets an image to the default container.
func (*DeploymentWrapper) Label ¶
func (d *DeploymentWrapper) Label(k, v string) *DeploymentWrapper
Label sets the label of the Deployment
func (*DeploymentWrapper) Name ¶
func (d *DeploymentWrapper) Name(n string) *DeploymentWrapper
Name updated the name of the Deployment
func (*DeploymentWrapper) Obj ¶
func (d *DeploymentWrapper) Obj() *appsv1.Deployment
Obj returns the inner Deployment.
func (*DeploymentWrapper) PodTemplateAnnotation ¶ added in v0.10.0
func (d *DeploymentWrapper) PodTemplateAnnotation(k, v string) *DeploymentWrapper
PodTemplateAnnotation sets the annotation of the pod template
func (*DeploymentWrapper) PodTemplateSpecLabel ¶
func (d *DeploymentWrapper) PodTemplateSpecLabel(k, v string) *DeploymentWrapper
PodTemplateSpecLabel sets the label of the pod template spec of the Deployment
func (*DeploymentWrapper) PodTemplateSpecQueue ¶
func (d *DeploymentWrapper) PodTemplateSpecQueue(q string) *DeploymentWrapper
PodTemplateSpecQueue updates the queue name of the pod template spec of the Deployment
func (*DeploymentWrapper) Queue ¶
func (d *DeploymentWrapper) Queue(q string) *DeploymentWrapper
Queue updates the queue name of the Deployment
func (*DeploymentWrapper) ReadyReplicas ¶ added in v0.10.0
func (d *DeploymentWrapper) ReadyReplicas(readyReplicas int32) *DeploymentWrapper
ReadyReplicas updated the readyReplicas of the Deployment
func (*DeploymentWrapper) Replicas ¶ added in v0.10.0
func (d *DeploymentWrapper) Replicas(replicas int32) *DeploymentWrapper
Replicas updated the replicas of the Deployment
func (*DeploymentWrapper) Request ¶ added in v0.10.0
func (d *DeploymentWrapper) Request(r corev1.ResourceName, v string) *DeploymentWrapper
Request adds a resource request to the default container.