Documentation ¶
Index ¶
- type StatefulSetWrapper
- func (ss *StatefulSetWrapper) Image(image string, args []string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Label(k, v string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Limit(r corev1.ResourceName, v string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Name(n string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Obj() *appsv1.StatefulSet
- func (ss *StatefulSetWrapper) PodTemplateAnnotation(k, v string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecAnnotation(k, v string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecLabel(k, v string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupFastAdmissionAnnotation(enabled bool) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupNameLabel(ownerName string, ownerUID types.UID, ownerGVK schema.GroupVersionKind) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupPodIndexLabelAnnotation(labelName string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupServingAnnotation(enabled bool) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupTotalCountAnnotation(replicas int32) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) PodTemplateSpecQueue(q string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Queue(q string) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Replicas(r int32) *StatefulSetWrapper
- func (ss *StatefulSetWrapper) Request(r corev1.ResourceName, v string) *StatefulSetWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatefulSetWrapper ¶
type StatefulSetWrapper struct {
appsv1.StatefulSet
}
StatefulSetWrapper wraps a StatefulSet.
func MakeStatefulSet ¶
func MakeStatefulSet(name, ns string) *StatefulSetWrapper
MakeStatefulSet creates a wrapper for a StatefulSet with a single container.
func (*StatefulSetWrapper) Image ¶
func (ss *StatefulSetWrapper) Image(image string, args []string) *StatefulSetWrapper
func (*StatefulSetWrapper) Label ¶
func (ss *StatefulSetWrapper) Label(k, v string) *StatefulSetWrapper
Label sets the label of the StatefulSet
func (*StatefulSetWrapper) Limit ¶
func (ss *StatefulSetWrapper) Limit(r corev1.ResourceName, v string) *StatefulSetWrapper
Limit adds a resource limit to the default container.
func (*StatefulSetWrapper) Name ¶
func (ss *StatefulSetWrapper) Name(n string) *StatefulSetWrapper
Name updated the name of the StatefulSet
func (*StatefulSetWrapper) Obj ¶
func (ss *StatefulSetWrapper) Obj() *appsv1.StatefulSet
Obj returns the inner StatefulSet.
func (*StatefulSetWrapper) PodTemplateAnnotation ¶ added in v0.10.0
func (ss *StatefulSetWrapper) PodTemplateAnnotation(k, v string) *StatefulSetWrapper
PodTemplateAnnotation sets the annotation of the pod template
func (*StatefulSetWrapper) PodTemplateSpecAnnotation ¶
func (ss *StatefulSetWrapper) PodTemplateSpecAnnotation(k, v string) *StatefulSetWrapper
PodTemplateSpecAnnotation sets the annotation of the pod template spec of the StatefulSet
func (*StatefulSetWrapper) PodTemplateSpecLabel ¶
func (ss *StatefulSetWrapper) PodTemplateSpecLabel(k, v string) *StatefulSetWrapper
PodTemplateSpecLabel sets the label of the pod template spec of the StatefulSet
func (*StatefulSetWrapper) PodTemplateSpecPodGroupFastAdmissionAnnotation ¶
func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupFastAdmissionAnnotation(enabled bool) *StatefulSetWrapper
func (*StatefulSetWrapper) PodTemplateSpecPodGroupNameLabel ¶
func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupNameLabel( ownerName string, ownerUID types.UID, ownerGVK schema.GroupVersionKind, ) *StatefulSetWrapper
func (*StatefulSetWrapper) PodTemplateSpecPodGroupPodIndexLabelAnnotation ¶ added in v0.10.0
func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupPodIndexLabelAnnotation(labelName string) *StatefulSetWrapper
func (*StatefulSetWrapper) PodTemplateSpecPodGroupServingAnnotation ¶ added in v0.10.0
func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupServingAnnotation(enabled bool) *StatefulSetWrapper
func (*StatefulSetWrapper) PodTemplateSpecPodGroupTotalCountAnnotation ¶
func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupTotalCountAnnotation(replicas int32) *StatefulSetWrapper
func (*StatefulSetWrapper) PodTemplateSpecQueue ¶
func (ss *StatefulSetWrapper) PodTemplateSpecQueue(q string) *StatefulSetWrapper
PodTemplateSpecQueue updates the queue name of the pod template spec of the StatefulSet
func (*StatefulSetWrapper) Queue ¶
func (ss *StatefulSetWrapper) Queue(q string) *StatefulSetWrapper
Queue updates the queue name of the StatefulSet
func (*StatefulSetWrapper) Replicas ¶
func (ss *StatefulSetWrapper) Replicas(r int32) *StatefulSetWrapper
func (*StatefulSetWrapper) Request ¶
func (ss *StatefulSetWrapper) Request(r corev1.ResourceName, v string) *StatefulSetWrapper
Request adds a resource request to the default container.