Documentation
¶
Index ¶
- type AdditionalOptions
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) CreateAndWaitUntilReady(timeout time.Duration) (*Builder, error)
- func (builder *Builder) Delete() error
- func (builder *Builder) DeleteAndWait(timeout time.Duration) error
- func (builder *Builder) Exists() bool
- func (builder *Builder) IsReady(timeout time.Duration) bool
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WithAdditionalContainerSpecs(specs []corev1.Container) *Builder
- func (builder *Builder) WithHostNetwork() *Builder
- func (builder *Builder) WithNodeSelector(selector map[string]string) *Builder
- func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
- func (builder *Builder) WithVolume(dsVolume corev1.Volume) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalOptions ¶
AdditionalOptions additional options for daemonset object.
type Builder ¶
type Builder struct { // Daemonset definition. Used to create a daemonset object. Definition *appsv1.DaemonSet // Created daemonset object. Object *appsv1.DaemonSet // contains filtered or unexported fields }
Builder provides struct for daemonset object containing connection to the cluster and the daemonset definitions.
func NewBuilder ¶
func NewBuilder( apiClient *clients.Settings, name, nsname string, labels map[string]string, containerSpec corev1.Container) *Builder
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create builds daemonset in the cluster and stores the created object in struct.
func (*Builder) CreateAndWaitUntilReady ¶
CreateAndWaitUntilReady creates a daemonset in the cluster and waits until the daemonset is available.
func (*Builder) DeleteAndWait ¶
DeleteAndWait deletes a daemonset and waits until it is removed from the cluster.
func (*Builder) IsReady ¶
IsReady waits for the daemonset to reach expected number of pods in Ready state.
func (*Builder) Update ¶
Update renovates the existing daemonset object with daemonset definition in builder.
func (*Builder) WithAdditionalContainerSpecs ¶
WithAdditionalContainerSpecs appends a list of container specs to the daemonset definition.
func (*Builder) WithHostNetwork ¶
WithHostNetwork applies HostNetwork to daemonset definition.
func (*Builder) WithNodeSelector ¶
WithNodeSelector applies nodeSelector to the daemonset definition.
func (*Builder) WithOptions ¶
func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
WithOptions creates daemonset with generic mutation options.