Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*PodTemplateSpec, error)
- func (b *Builder) WithAffinity(affinity *corev1.Affinity) *Builder
- func (b *Builder) WithAnnotations(annotations map[string]string) *Builder
- func (b *Builder) WithAnnotationsNew(annotations map[string]string) *Builder
- func (b *Builder) WithContainerBuilders(containerBuilderList ...*container.Builder) *Builder
- func (b *Builder) WithContainerBuildersNew(containerBuilderList ...*container.Builder) *Builder
- func (b *Builder) WithLabels(labels map[string]string) *Builder
- func (b *Builder) WithLabelsNew(labels map[string]string) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithNamespace(namespace string) *Builder
- func (b *Builder) WithNodeSelector(nodeselectors map[string]string) *Builder
- func (b *Builder) WithNodeSelectorNew(nodeselectors map[string]string) *Builder
- func (b *Builder) WithPriorityClassName(prorityClassName string) *Builder
- func (b *Builder) WithServiceAccountName(serviceAccountnNme string) *Builder
- func (b *Builder) WithTolerations(tolerations ...corev1.Toleration) *Builder
- func (b *Builder) WithTolerationsByValue(tolerations ...corev1.Toleration) *Builder
- func (b *Builder) WithTolerationsNew(tolerations ...corev1.Toleration) *Builder
- func (b *Builder) WithVolumeBuilders(volumeBuilderList ...*volume.Builder) *Builder
- func (b *Builder) WithVolumeBuildersNew(volumeBuilderList ...*volume.Builder) *Builder
- type PodTemplateSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder object for Pod
func (*Builder) Build ¶
func (b *Builder) Build() (*PodTemplateSpec, error)
Build returns a deployment instance
func (*Builder) WithAffinity ¶
WithAffinity sets the affinity field of podtemplatespec
func (*Builder) WithAnnotations ¶
WithAnnotations merges existing annotations if any with the ones that are provided here
func (*Builder) WithAnnotationsNew ¶
WithAnnotationsNew resets the annotation field of podtemplatespec with provided arguments
func (*Builder) WithContainerBuilders ¶
WithContainerBuilders builds the list of containerbuilder provided and merges it to the containers field of the podtemplatespec
func (*Builder) WithContainerBuildersNew ¶
WithContainerBuildersNew builds the list of containerbuilder provided and sets the containers field of the podtemplatespec
func (*Builder) WithLabels ¶
WithLabels merges existing labels if any with the ones that are provided here
func (*Builder) WithLabelsNew ¶
WithLabelsNew resets the labels field of podtemplatespec with provided arguments
func (*Builder) WithNamespace ¶
WithNamespace sets the Namespace field of PodTemplateSpec with provided value.
func (*Builder) WithNodeSelector ¶
WithNodeSelector merges the nodeselectors if present with the provided arguments
func (*Builder) WithNodeSelectorNew ¶
WithNodeSelectorNew resets the nodeselector field of podtemplatespec with provided arguments
func (*Builder) WithPriorityClassName ¶
WithPriorityClassName sets the PriorityClassName field of podtemplatespec
func (*Builder) WithServiceAccountName ¶
WithServiceAccountName sets the ServiceAccountnNme field of podtemplatespec
func (*Builder) WithTolerations ¶
func (b *Builder) WithTolerations(tolerations ...corev1.Toleration) *Builder
WithTolerations merges the existing tolerations with the provided arguments
func (*Builder) WithTolerationsByValue ¶
func (b *Builder) WithTolerationsByValue(tolerations ...corev1.Toleration) *Builder
WithTolerationsByValue sets pod toleration. If provided tolerations argument is empty it does not complain.
func (*Builder) WithTolerationsNew ¶
func (b *Builder) WithTolerationsNew(tolerations ...corev1.Toleration) *Builder
WithTolerationsNew sets the tolerations field of podtemplatespec
func (*Builder) WithVolumeBuilders ¶
WithVolumeBuilders builds the list of volumebuilders provided and merges it to the volumes field of podtemplatespec.
type PodTemplateSpec ¶
type PodTemplateSpec struct {
Object *corev1.PodTemplateSpec
}
PodTemplateSpec holds the api's podtemplatespec objects