v1

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ControllerRevisionBlank = (&ControllerRevisionDie{}).DieFeed(appsv1.ControllerRevision{})
View Source
var DaemonSetBlank = (&DaemonSetDie{}).DieFeed(appsv1.DaemonSet{})
View Source
var DaemonSetSpecBlank = (&DaemonSetSpecDie{}).DieFeed(appsv1.DaemonSetSpec{})
View Source
var DaemonSetStatusBlank = (&DaemonSetStatusDie{}).DieFeed(appsv1.DaemonSetStatus{})
View Source
var DaemonSetUpdateStrategyBlank = (&DaemonSetUpdateStrategyDie{}).DieFeed(appsv1.DaemonSetUpdateStrategy{})
View Source
var DeploymentBlank = (&DeploymentDie{}).DieFeed(appsv1.Deployment{})
View Source
var DeploymentSpecBlank = (&DeploymentSpecDie{}).DieFeed(appsv1.DeploymentSpec{})
View Source
var DeploymentStatusBlank = (&DeploymentStatusDie{}).DieFeed(appsv1.DeploymentStatus{})
View Source
var DeploymentStrategyBlank = (&DeploymentStrategyDie{}).DieFeed(appsv1.DeploymentStrategy{})
View Source
var ReplicaSetBlank = (&ReplicaSetDie{}).DieFeed(appsv1.ReplicaSet{})
View Source
var ReplicaSetSpecBlank = (&ReplicaSetSpecDie{}).DieFeed(appsv1.ReplicaSetSpec{})
View Source
var ReplicaSetStatusBlank = (&ReplicaSetStatusDie{}).DieFeed(appsv1.ReplicaSetStatus{})
View Source
var RollingUpdateDaemonSetBlank = (&RollingUpdateDaemonSetDie{}).DieFeed(appsv1.RollingUpdateDaemonSet{})
View Source
var RollingUpdateDeploymentBlank = (&RollingUpdateDeploymentDie{}).DieFeed(appsv1.RollingUpdateDeployment{})
View Source
var RollingUpdateStatefulSetStrategyBlank = (&RollingUpdateStatefulSetStrategyDie{}).DieFeed(appsv1.RollingUpdateStatefulSetStrategy{})
View Source
var StatefulSetBlank = (&StatefulSetDie{}).DieFeed(appsv1.StatefulSet{})
View Source
var StatefulSetOrdinalsBlank = (&StatefulSetOrdinalsDie{}).DieFeed(appsv1.StatefulSetOrdinals{})
View Source
var StatefulSetPersistentVolumeClaimRetentionPolicyBlank = (&StatefulSetPersistentVolumeClaimRetentionPolicyDie{}).DieFeed(appsv1.StatefulSetPersistentVolumeClaimRetentionPolicy{})
View Source
var StatefulSetSpecBlank = (&StatefulSetSpecDie{}).DieFeed(appsv1.StatefulSetSpec{})
View Source
var StatefulSetStatusBlank = (&StatefulSetStatusDie{}).DieFeed(appsv1.StatefulSetStatus{})
View Source
var StatefulSetUpdateStrategyBlank = (&StatefulSetUpdateStrategyDie{}).DieFeed(appsv1.StatefulSetUpdateStrategy{})

Functions

This section is empty.

Types

type ControllerRevisionDie added in v0.3.0

type ControllerRevisionDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*ControllerRevisionDie) APIVersion added in v0.5.0

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*ControllerRevisionDie) Data added in v0.3.0

Data is the serialized representation of the state.

func (*ControllerRevisionDie) DeepCopy added in v0.3.0

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ControllerRevisionDie) DeepCopyObject added in v0.3.0

func (d *ControllerRevisionDie) DeepCopyObject() runtime.Object

func (*ControllerRevisionDie) DieFeed added in v0.3.0

DieFeed returns a new die with the provided resource.

func (*ControllerRevisionDie) DieFeedJSON added in v0.8.0

func (d *ControllerRevisionDie) DieFeedJSON(j []byte) *ControllerRevisionDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ControllerRevisionDie) DieFeedPtr added in v0.3.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ControllerRevisionDie) DieFeedRawExtension added in v0.5.0

func (d *ControllerRevisionDie) DieFeedRawExtension(raw runtime.RawExtension) *ControllerRevisionDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ControllerRevisionDie) DieFeedYAML added in v0.8.0

func (d *ControllerRevisionDie) DieFeedYAML(y []byte) *ControllerRevisionDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ControllerRevisionDie) DieFeedYAMLFile added in v0.8.0

func (d *ControllerRevisionDie) DieFeedYAMLFile(name string) *ControllerRevisionDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ControllerRevisionDie) DieImmutable added in v0.3.0

func (d *ControllerRevisionDie) DieImmutable(immutable bool) *ControllerRevisionDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ControllerRevisionDie) DieRelease added in v0.3.0

DieRelease returns the resource managed by the die.

func (*ControllerRevisionDie) DieReleaseJSON added in v0.8.0

func (d *ControllerRevisionDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ControllerRevisionDie) DieReleasePtr added in v0.3.0

func (d *ControllerRevisionDie) DieReleasePtr() *appsv1.ControllerRevision

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ControllerRevisionDie) DieReleaseRawExtension added in v0.5.0

func (d *ControllerRevisionDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ControllerRevisionDie) DieReleaseUnstructured added in v0.3.0

func (d *ControllerRevisionDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*ControllerRevisionDie) DieReleaseYAML added in v0.8.0

func (d *ControllerRevisionDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ControllerRevisionDie) DieStamp added in v0.3.0

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ControllerRevisionDie) DieStampAt added in v0.8.0

func (d *ControllerRevisionDie) DieStampAt(jp string, fn interface{}) *ControllerRevisionDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ControllerRevisionDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ControllerRevisionDie) GetObjectKind added in v0.3.0

func (d *ControllerRevisionDie) GetObjectKind() schema.ObjectKind

func (*ControllerRevisionDie) Kind added in v0.5.0

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*ControllerRevisionDie) MarshalJSON added in v0.3.0

func (d *ControllerRevisionDie) MarshalJSON() ([]byte, error)

func (*ControllerRevisionDie) MetadataDie added in v0.3.0

func (d *ControllerRevisionDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ControllerRevisionDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*ControllerRevisionDie) Revision added in v0.3.0

Revision indicates the revision of the state represented by Data.

func (*ControllerRevisionDie) UnmarshalJSON added in v0.3.0

func (d *ControllerRevisionDie) UnmarshalJSON(b []byte) error

type DaemonSetDie

type DaemonSetDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*DaemonSetDie) APIVersion added in v0.5.0

func (d *DaemonSetDie) APIVersion(v string) *DaemonSetDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*DaemonSetDie) DeepCopy

func (d *DaemonSetDie) DeepCopy() *DaemonSetDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DaemonSetDie) DeepCopyObject

func (d *DaemonSetDie) DeepCopyObject() runtime.Object

func (*DaemonSetDie) DieFeed

func (d *DaemonSetDie) DieFeed(r appsv1.DaemonSet) *DaemonSetDie

DieFeed returns a new die with the provided resource.

func (*DaemonSetDie) DieFeedJSON added in v0.8.0

func (d *DaemonSetDie) DieFeedJSON(j []byte) *DaemonSetDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DaemonSetDie) DieFeedPtr

func (d *DaemonSetDie) DieFeedPtr(r *appsv1.DaemonSet) *DaemonSetDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DaemonSetDie) DieFeedRawExtension added in v0.5.0

func (d *DaemonSetDie) DieFeedRawExtension(raw runtime.RawExtension) *DaemonSetDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetDie) DieFeedYAML added in v0.8.0

func (d *DaemonSetDie) DieFeedYAML(y []byte) *DaemonSetDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DaemonSetDie) DieFeedYAMLFile added in v0.8.0

func (d *DaemonSetDie) DieFeedYAMLFile(name string) *DaemonSetDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DaemonSetDie) DieImmutable

func (d *DaemonSetDie) DieImmutable(immutable bool) *DaemonSetDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DaemonSetDie) DieRelease

func (d *DaemonSetDie) DieRelease() appsv1.DaemonSet

DieRelease returns the resource managed by the die.

func (*DaemonSetDie) DieReleaseJSON added in v0.8.0

func (d *DaemonSetDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DaemonSetDie) DieReleasePtr

func (d *DaemonSetDie) DieReleasePtr() *appsv1.DaemonSet

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DaemonSetDie) DieReleaseRawExtension added in v0.5.0

func (d *DaemonSetDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetDie) DieReleaseUnstructured

func (d *DaemonSetDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*DaemonSetDie) DieReleaseYAML added in v0.8.0

func (d *DaemonSetDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DaemonSetDie) DieStamp

func (d *DaemonSetDie) DieStamp(fn func(r *appsv1.DaemonSet)) *DaemonSetDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DaemonSetDie) DieStampAt added in v0.8.0

func (d *DaemonSetDie) DieStampAt(jp string, fn interface{}) *DaemonSetDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DaemonSetDie) DieWith added in v0.9.0

func (d *DaemonSetDie) DieWith(fns ...func(d *DaemonSetDie)) *DaemonSetDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DaemonSetDie) GetObjectKind

func (d *DaemonSetDie) GetObjectKind() schema.ObjectKind

func (*DaemonSetDie) Kind added in v0.5.0

func (d *DaemonSetDie) Kind(v string) *DaemonSetDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*DaemonSetDie) MarshalJSON

func (d *DaemonSetDie) MarshalJSON() ([]byte, error)

func (*DaemonSetDie) MetadataDie

func (d *DaemonSetDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *DaemonSetDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*DaemonSetDie) Spec

The desired behavior of this daemon set.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*DaemonSetDie) SpecDie

func (d *DaemonSetDie) SpecDie(fn func(d *DaemonSetSpecDie)) *DaemonSetDie

SpecDie stamps the resource's spec field with a mutable die.

func (*DaemonSetDie) Status

The current status of this daemon set. This data may be

out of date by some window of time.

Populated by the system.

Read-only.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*DaemonSetDie) StatusDie

func (d *DaemonSetDie) StatusDie(fn func(d *DaemonSetStatusDie)) *DaemonSetDie

StatusDie stamps the resource's status field with a mutable die.

func (*DaemonSetDie) UnmarshalJSON

func (d *DaemonSetDie) UnmarshalJSON(b []byte) error

type DaemonSetSpecDie

type DaemonSetSpecDie struct {
	// contains filtered or unexported fields
}

func (*DaemonSetSpecDie) DeepCopy

func (d *DaemonSetSpecDie) DeepCopy() *DaemonSetSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DaemonSetSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DaemonSetSpecDie) DieFeedJSON added in v0.8.0

func (d *DaemonSetSpecDie) DieFeedJSON(j []byte) *DaemonSetSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DaemonSetSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DaemonSetSpecDie) DieFeedRawExtension added in v0.5.0

func (d *DaemonSetSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *DaemonSetSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetSpecDie) DieFeedYAML added in v0.8.0

func (d *DaemonSetSpecDie) DieFeedYAML(y []byte) *DaemonSetSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DaemonSetSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *DaemonSetSpecDie) DieFeedYAMLFile(name string) *DaemonSetSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DaemonSetSpecDie) DieImmutable

func (d *DaemonSetSpecDie) DieImmutable(immutable bool) *DaemonSetSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DaemonSetSpecDie) DieRelease

func (d *DaemonSetSpecDie) DieRelease() appsv1.DaemonSetSpec

DieRelease returns the resource managed by the die.

func (*DaemonSetSpecDie) DieReleaseJSON added in v0.8.0

func (d *DaemonSetSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DaemonSetSpecDie) DieReleasePtr

func (d *DaemonSetSpecDie) DieReleasePtr() *appsv1.DaemonSetSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DaemonSetSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *DaemonSetSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetSpecDie) DieReleaseYAML added in v0.8.0

func (d *DaemonSetSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DaemonSetSpecDie) DieStamp

func (d *DaemonSetSpecDie) DieStamp(fn func(r *appsv1.DaemonSetSpec)) *DaemonSetSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DaemonSetSpecDie) DieStampAt added in v0.8.0

func (d *DaemonSetSpecDie) DieStampAt(jp string, fn interface{}) *DaemonSetSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DaemonSetSpecDie) DieWith added in v0.9.0

func (d *DaemonSetSpecDie) DieWith(fns ...func(d *DaemonSetSpecDie)) *DaemonSetSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DaemonSetSpecDie) MinReadySeconds

func (d *DaemonSetSpecDie) MinReadySeconds(v int32) *DaemonSetSpecDie

The minimum number of seconds for which a newly created DaemonSet pod should

be ready without any of its container crashing, for it to be considered

available. Defaults to 0 (pod will be considered available as soon as it

is ready).

func (*DaemonSetSpecDie) RevisionHistoryLimit

func (d *DaemonSetSpecDie) RevisionHistoryLimit(v *int32) *DaemonSetSpecDie

The number of old history to retain to allow rollback.

This is a pointer to distinguish between explicit zero and not specified.

Defaults to 10.

func (*DaemonSetSpecDie) Selector

A label query over pods that are managed by the daemon set.

Must match in order to be controlled.

It must match the pod template's labels.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

func (*DaemonSetSpecDie) SelectorDie

func (d *DaemonSetSpecDie) SelectorDie(fn func(d *diemetav1.LabelSelectorDie)) *DaemonSetSpecDie

func (*DaemonSetSpecDie) Template

An object that describes the pod that will be created.

The DaemonSet will create exactly one copy of this pod on every node

that matches the template's node selector (or on every node if no node

selector is specified).

The only allowed template.spec.restartPolicy value is "Always".

More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

func (*DaemonSetSpecDie) TemplateDie

func (d *DaemonSetSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *DaemonSetSpecDie

func (*DaemonSetSpecDie) UpdateStrategy

An update strategy to replace existing DaemonSet pods with new pods.

func (*DaemonSetSpecDie) UpdateStrategyDie

func (d *DaemonSetSpecDie) UpdateStrategyDie(fn func(d *DaemonSetUpdateStrategyDie)) *DaemonSetSpecDie

type DaemonSetStatusDie

type DaemonSetStatusDie struct {
	// contains filtered or unexported fields
}

func (*DaemonSetStatusDie) CollisionCount

func (d *DaemonSetStatusDie) CollisionCount(v *int32) *DaemonSetStatusDie

Count of hash collisions for the DaemonSet. The DaemonSet controller

uses this field as a collision avoidance mechanism when it needs to

create the name for the newest ControllerRevision.

func (*DaemonSetStatusDie) Conditions

Represents the latest available observations of a DaemonSet's current state.

func (*DaemonSetStatusDie) ConditionsDie

func (d *DaemonSetStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *DaemonSetStatusDie

func (*DaemonSetStatusDie) CurrentNumberScheduled

func (d *DaemonSetStatusDie) CurrentNumberScheduled(v int32) *DaemonSetStatusDie

The number of nodes that are running at least 1

daemon pod and are supposed to run the daemon pod.

More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/

func (*DaemonSetStatusDie) DeepCopy

func (d *DaemonSetStatusDie) DeepCopy() *DaemonSetStatusDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DaemonSetStatusDie) DesiredNumberScheduled

func (d *DaemonSetStatusDie) DesiredNumberScheduled(v int32) *DaemonSetStatusDie

The total number of nodes that should be running the daemon

pod (including nodes correctly running the daemon pod).

More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/

func (*DaemonSetStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DaemonSetStatusDie) DieFeedJSON added in v0.8.0

func (d *DaemonSetStatusDie) DieFeedJSON(j []byte) *DaemonSetStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DaemonSetStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DaemonSetStatusDie) DieFeedRawExtension added in v0.5.0

func (d *DaemonSetStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *DaemonSetStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetStatusDie) DieFeedYAML added in v0.8.0

func (d *DaemonSetStatusDie) DieFeedYAML(y []byte) *DaemonSetStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DaemonSetStatusDie) DieFeedYAMLFile added in v0.8.0

func (d *DaemonSetStatusDie) DieFeedYAMLFile(name string) *DaemonSetStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DaemonSetStatusDie) DieImmutable

func (d *DaemonSetStatusDie) DieImmutable(immutable bool) *DaemonSetStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DaemonSetStatusDie) DieRelease

func (d *DaemonSetStatusDie) DieRelease() appsv1.DaemonSetStatus

DieRelease returns the resource managed by the die.

func (*DaemonSetStatusDie) DieReleaseJSON added in v0.8.0

func (d *DaemonSetStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DaemonSetStatusDie) DieReleasePtr

func (d *DaemonSetStatusDie) DieReleasePtr() *appsv1.DaemonSetStatus

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DaemonSetStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *DaemonSetStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetStatusDie) DieReleaseYAML added in v0.8.0

func (d *DaemonSetStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DaemonSetStatusDie) DieStamp

func (d *DaemonSetStatusDie) DieStamp(fn func(r *appsv1.DaemonSetStatus)) *DaemonSetStatusDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DaemonSetStatusDie) DieStampAt added in v0.8.0

func (d *DaemonSetStatusDie) DieStampAt(jp string, fn interface{}) *DaemonSetStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DaemonSetStatusDie) DieWith added in v0.9.0

func (d *DaemonSetStatusDie) DieWith(fns ...func(d *DaemonSetStatusDie)) *DaemonSetStatusDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DaemonSetStatusDie) NumberAvailable

func (d *DaemonSetStatusDie) NumberAvailable(v int32) *DaemonSetStatusDie

The number of nodes that should be running the

daemon pod and have one or more of the daemon pod running and

available (ready for at least spec.minReadySeconds)

func (*DaemonSetStatusDie) NumberMisscheduled

func (d *DaemonSetStatusDie) NumberMisscheduled(v int32) *DaemonSetStatusDie

The number of nodes that are running the daemon pod, but are

not supposed to run the daemon pod.

More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/

func (*DaemonSetStatusDie) NumberReady

func (d *DaemonSetStatusDie) NumberReady(v int32) *DaemonSetStatusDie

numberReady is the number of nodes that should be running the daemon pod and have one

or more of the daemon pod running with a Ready Condition.

func (*DaemonSetStatusDie) NumberUnavailable

func (d *DaemonSetStatusDie) NumberUnavailable(v int32) *DaemonSetStatusDie

The number of nodes that should be running the

daemon pod and have none of the daemon pod running and available

(ready for at least spec.minReadySeconds)

func (*DaemonSetStatusDie) ObservedGeneration

func (d *DaemonSetStatusDie) ObservedGeneration(v int64) *DaemonSetStatusDie

The most recent generation observed by the daemon set controller.

func (*DaemonSetStatusDie) UpdatedNumberScheduled

func (d *DaemonSetStatusDie) UpdatedNumberScheduled(v int32) *DaemonSetStatusDie

The total number of nodes that are running updated daemon pod

type DaemonSetUpdateStrategyDie

type DaemonSetUpdateStrategyDie struct {
	// contains filtered or unexported fields
}

func (*DaemonSetUpdateStrategyDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DaemonSetUpdateStrategyDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DaemonSetUpdateStrategyDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DaemonSetUpdateStrategyDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieImmutable

func (d *DaemonSetUpdateStrategyDie) DieImmutable(immutable bool) *DaemonSetUpdateStrategyDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DaemonSetUpdateStrategyDie) DieRelease

DieRelease returns the resource managed by the die.

func (*DaemonSetUpdateStrategyDie) DieReleaseJSON added in v0.8.0

func (d *DaemonSetUpdateStrategyDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DaemonSetUpdateStrategyDie) DieReleaseRawExtension added in v0.5.0

func (d *DaemonSetUpdateStrategyDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieReleaseYAML added in v0.8.0

func (d *DaemonSetUpdateStrategyDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DaemonSetUpdateStrategyDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DaemonSetUpdateStrategyDie) DieStampAt added in v0.8.0

func (d *DaemonSetUpdateStrategyDie) DieStampAt(jp string, fn interface{}) *DaemonSetUpdateStrategyDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DaemonSetUpdateStrategyDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DaemonSetUpdateStrategyDie) OnDelete

func (*DaemonSetUpdateStrategyDie) RollingUpdate

Rolling update config params. Present only if type = "RollingUpdate".

---

TODO: Update this to follow our convention for oneOf, whatever we decide it

to be. Same as Deployment `strategy.rollingUpdate`.

See https://github.com/kubernetes/kubernetes/issues/35345

func (*DaemonSetUpdateStrategyDie) RollingUpdateDie

func (*DaemonSetUpdateStrategyDie) Type

Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.

type DeploymentDie

type DeploymentDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*DeploymentDie) APIVersion added in v0.5.0

func (d *DeploymentDie) APIVersion(v string) *DeploymentDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*DeploymentDie) DeepCopy

func (d *DeploymentDie) DeepCopy() *DeploymentDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DeploymentDie) DeepCopyObject

func (d *DeploymentDie) DeepCopyObject() runtime.Object

func (*DeploymentDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DeploymentDie) DieFeedJSON added in v0.8.0

func (d *DeploymentDie) DieFeedJSON(j []byte) *DeploymentDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DeploymentDie) DieFeedPtr

func (d *DeploymentDie) DieFeedPtr(r *appsv1.Deployment) *DeploymentDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DeploymentDie) DieFeedRawExtension added in v0.5.0

func (d *DeploymentDie) DieFeedRawExtension(raw runtime.RawExtension) *DeploymentDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentDie) DieFeedYAML added in v0.8.0

func (d *DeploymentDie) DieFeedYAML(y []byte) *DeploymentDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DeploymentDie) DieFeedYAMLFile added in v0.8.0

func (d *DeploymentDie) DieFeedYAMLFile(name string) *DeploymentDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DeploymentDie) DieImmutable

func (d *DeploymentDie) DieImmutable(immutable bool) *DeploymentDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DeploymentDie) DieRelease

func (d *DeploymentDie) DieRelease() appsv1.Deployment

DieRelease returns the resource managed by the die.

func (*DeploymentDie) DieReleaseJSON added in v0.8.0

func (d *DeploymentDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DeploymentDie) DieReleasePtr

func (d *DeploymentDie) DieReleasePtr() *appsv1.Deployment

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DeploymentDie) DieReleaseRawExtension added in v0.5.0

func (d *DeploymentDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentDie) DieReleaseUnstructured

func (d *DeploymentDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*DeploymentDie) DieReleaseYAML added in v0.8.0

func (d *DeploymentDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DeploymentDie) DieStamp

func (d *DeploymentDie) DieStamp(fn func(r *appsv1.Deployment)) *DeploymentDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DeploymentDie) DieStampAt added in v0.8.0

func (d *DeploymentDie) DieStampAt(jp string, fn interface{}) *DeploymentDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DeploymentDie) DieWith added in v0.9.0

func (d *DeploymentDie) DieWith(fns ...func(d *DeploymentDie)) *DeploymentDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DeploymentDie) GetObjectKind

func (d *DeploymentDie) GetObjectKind() schema.ObjectKind

func (*DeploymentDie) Kind added in v0.5.0

func (d *DeploymentDie) Kind(v string) *DeploymentDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*DeploymentDie) MarshalJSON

func (d *DeploymentDie) MarshalJSON() ([]byte, error)

func (*DeploymentDie) MetadataDie

func (d *DeploymentDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *DeploymentDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*DeploymentDie) Spec

Specification of the desired behavior of the Deployment.

func (*DeploymentDie) SpecDie

func (d *DeploymentDie) SpecDie(fn func(d *DeploymentSpecDie)) *DeploymentDie

SpecDie stamps the resource's spec field with a mutable die.

func (*DeploymentDie) Status

Most recently observed status of the Deployment.

func (*DeploymentDie) StatusDie

func (d *DeploymentDie) StatusDie(fn func(d *DeploymentStatusDie)) *DeploymentDie

StatusDie stamps the resource's status field with a mutable die.

func (*DeploymentDie) UnmarshalJSON

func (d *DeploymentDie) UnmarshalJSON(b []byte) error

type DeploymentSpecDie

type DeploymentSpecDie struct {
	// contains filtered or unexported fields
}

func (*DeploymentSpecDie) DeepCopy

func (d *DeploymentSpecDie) DeepCopy() *DeploymentSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DeploymentSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DeploymentSpecDie) DieFeedJSON added in v0.8.0

func (d *DeploymentSpecDie) DieFeedJSON(j []byte) *DeploymentSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DeploymentSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DeploymentSpecDie) DieFeedRawExtension added in v0.5.0

func (d *DeploymentSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *DeploymentSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentSpecDie) DieFeedYAML added in v0.8.0

func (d *DeploymentSpecDie) DieFeedYAML(y []byte) *DeploymentSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DeploymentSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *DeploymentSpecDie) DieFeedYAMLFile(name string) *DeploymentSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DeploymentSpecDie) DieImmutable

func (d *DeploymentSpecDie) DieImmutable(immutable bool) *DeploymentSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DeploymentSpecDie) DieRelease

func (d *DeploymentSpecDie) DieRelease() appsv1.DeploymentSpec

DieRelease returns the resource managed by the die.

func (*DeploymentSpecDie) DieReleaseJSON added in v0.8.0

func (d *DeploymentSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DeploymentSpecDie) DieReleasePtr

func (d *DeploymentSpecDie) DieReleasePtr() *appsv1.DeploymentSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DeploymentSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *DeploymentSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentSpecDie) DieReleaseYAML added in v0.8.0

func (d *DeploymentSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DeploymentSpecDie) DieStamp

func (d *DeploymentSpecDie) DieStamp(fn func(r *appsv1.DeploymentSpec)) *DeploymentSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DeploymentSpecDie) DieStampAt added in v0.8.0

func (d *DeploymentSpecDie) DieStampAt(jp string, fn interface{}) *DeploymentSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DeploymentSpecDie) DieWith added in v0.9.0

func (d *DeploymentSpecDie) DieWith(fns ...func(d *DeploymentSpecDie)) *DeploymentSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DeploymentSpecDie) MinReadySeconds

func (d *DeploymentSpecDie) MinReadySeconds(v int32) *DeploymentSpecDie

Minimum number of seconds for which a newly created pod should be ready

without any of its container crashing, for it to be considered available.

Defaults to 0 (pod will be considered available as soon as it is ready)

func (*DeploymentSpecDie) Paused

Indicates that the deployment is paused.

func (*DeploymentSpecDie) ProgressDeadlineSeconds

func (d *DeploymentSpecDie) ProgressDeadlineSeconds(v *int32) *DeploymentSpecDie

The maximum time in seconds for a deployment to make progress before it

is considered to be failed. The deployment controller will continue to

process failed deployments and a condition with a ProgressDeadlineExceeded

reason will be surfaced in the deployment status. Note that progress will

not be estimated during the time a deployment is paused. Defaults to 600s.

func (*DeploymentSpecDie) Replicas

func (d *DeploymentSpecDie) Replicas(v *int32) *DeploymentSpecDie

Number of desired pods. This is a pointer to distinguish between explicit

zero and not specified. Defaults to 1.

func (*DeploymentSpecDie) RevisionHistoryLimit

func (d *DeploymentSpecDie) RevisionHistoryLimit(v *int32) *DeploymentSpecDie

The number of old ReplicaSets to retain to allow rollback.

This is a pointer to distinguish between explicit zero and not specified.

Defaults to 10.

func (*DeploymentSpecDie) Selector

Label selector for pods. Existing ReplicaSets whose pods are

selected by this will be the ones affected by this deployment.

It must match the pod template's labels.

func (*DeploymentSpecDie) SelectorDie

func (d *DeploymentSpecDie) SelectorDie(fn func(d *diemetav1.LabelSelectorDie)) *DeploymentSpecDie

func (*DeploymentSpecDie) Strategy

The deployment strategy to use to replace existing pods with new ones.

func (*DeploymentSpecDie) StrategyDie

func (d *DeploymentSpecDie) StrategyDie(fn func(d *DeploymentStrategyDie)) *DeploymentSpecDie

func (*DeploymentSpecDie) Template

Template describes the pods that will be created.

The only allowed template.spec.restartPolicy value is "Always".

func (*DeploymentSpecDie) TemplateDie

func (d *DeploymentSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *DeploymentSpecDie

type DeploymentStatusDie

type DeploymentStatusDie struct {
	// contains filtered or unexported fields
}

func (*DeploymentStatusDie) AvailableReplicas

func (d *DeploymentStatusDie) AvailableReplicas(v int32) *DeploymentStatusDie

Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.

func (*DeploymentStatusDie) CollisionCount

func (d *DeploymentStatusDie) CollisionCount(v *int32) *DeploymentStatusDie

Count of hash collisions for the Deployment. The Deployment controller uses this

field as a collision avoidance mechanism when it needs to create the name for the

newest ReplicaSet.

func (*DeploymentStatusDie) Conditions

Represents the latest available observations of a deployment's current state.

func (*DeploymentStatusDie) ConditionsDie

func (d *DeploymentStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *DeploymentStatusDie

func (*DeploymentStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DeploymentStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DeploymentStatusDie) DieFeedJSON added in v0.8.0

func (d *DeploymentStatusDie) DieFeedJSON(j []byte) *DeploymentStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DeploymentStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DeploymentStatusDie) DieFeedRawExtension added in v0.5.0

func (d *DeploymentStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *DeploymentStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentStatusDie) DieFeedYAML added in v0.8.0

func (d *DeploymentStatusDie) DieFeedYAML(y []byte) *DeploymentStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DeploymentStatusDie) DieFeedYAMLFile added in v0.8.0

func (d *DeploymentStatusDie) DieFeedYAMLFile(name string) *DeploymentStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DeploymentStatusDie) DieImmutable

func (d *DeploymentStatusDie) DieImmutable(immutable bool) *DeploymentStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DeploymentStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*DeploymentStatusDie) DieReleaseJSON added in v0.8.0

func (d *DeploymentStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DeploymentStatusDie) DieReleasePtr

func (d *DeploymentStatusDie) DieReleasePtr() *appsv1.DeploymentStatus

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DeploymentStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *DeploymentStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentStatusDie) DieReleaseYAML added in v0.8.0

func (d *DeploymentStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DeploymentStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DeploymentStatusDie) DieStampAt added in v0.8.0

func (d *DeploymentStatusDie) DieStampAt(jp string, fn interface{}) *DeploymentStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DeploymentStatusDie) DieWith added in v0.9.0

func (d *DeploymentStatusDie) DieWith(fns ...func(d *DeploymentStatusDie)) *DeploymentStatusDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DeploymentStatusDie) ObservedGeneration

func (d *DeploymentStatusDie) ObservedGeneration(v int64) *DeploymentStatusDie

The generation observed by the deployment controller.

func (*DeploymentStatusDie) ReadyReplicas

func (d *DeploymentStatusDie) ReadyReplicas(v int32) *DeploymentStatusDie

readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.

func (*DeploymentStatusDie) Replicas

Total number of non-terminated pods targeted by this deployment (their labels match the selector).

func (*DeploymentStatusDie) UnavailableReplicas

func (d *DeploymentStatusDie) UnavailableReplicas(v int32) *DeploymentStatusDie

Total number of unavailable pods targeted by this deployment. This is the total number of

pods that are still required for the deployment to have 100% available capacity. They may

either be pods that are running but not yet available or pods that still have not been created.

func (*DeploymentStatusDie) UpdatedReplicas

func (d *DeploymentStatusDie) UpdatedReplicas(v int32) *DeploymentStatusDie

Total number of non-terminated pods targeted by this deployment that have the desired template spec.

type DeploymentStrategyDie

type DeploymentStrategyDie struct {
	// contains filtered or unexported fields
}

func (*DeploymentStrategyDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*DeploymentStrategyDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*DeploymentStrategyDie) DieFeedJSON added in v0.8.0

func (d *DeploymentStrategyDie) DieFeedJSON(j []byte) *DeploymentStrategyDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*DeploymentStrategyDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*DeploymentStrategyDie) DieFeedRawExtension added in v0.5.0

func (d *DeploymentStrategyDie) DieFeedRawExtension(raw runtime.RawExtension) *DeploymentStrategyDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentStrategyDie) DieFeedYAML added in v0.8.0

func (d *DeploymentStrategyDie) DieFeedYAML(y []byte) *DeploymentStrategyDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*DeploymentStrategyDie) DieFeedYAMLFile added in v0.8.0

func (d *DeploymentStrategyDie) DieFeedYAMLFile(name string) *DeploymentStrategyDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*DeploymentStrategyDie) DieImmutable

func (d *DeploymentStrategyDie) DieImmutable(immutable bool) *DeploymentStrategyDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*DeploymentStrategyDie) DieRelease

DieRelease returns the resource managed by the die.

func (*DeploymentStrategyDie) DieReleaseJSON added in v0.8.0

func (d *DeploymentStrategyDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*DeploymentStrategyDie) DieReleasePtr

func (d *DeploymentStrategyDie) DieReleasePtr() *appsv1.DeploymentStrategy

DieReleasePtr returns a pointer to the resource managed by the die.

func (*DeploymentStrategyDie) DieReleaseRawExtension added in v0.5.0

func (d *DeploymentStrategyDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*DeploymentStrategyDie) DieReleaseYAML added in v0.8.0

func (d *DeploymentStrategyDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*DeploymentStrategyDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*DeploymentStrategyDie) DieStampAt added in v0.8.0

func (d *DeploymentStrategyDie) DieStampAt(jp string, fn interface{}) *DeploymentStrategyDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*DeploymentStrategyDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*DeploymentStrategyDie) Recreate

func (*DeploymentStrategyDie) RollingUpdate

Rolling update config params. Present only if DeploymentStrategyType =

RollingUpdate.

---

TODO: Update this to follow our convention for oneOf, whatever we decide it

to be.

func (*DeploymentStrategyDie) RollingUpdateDie

func (*DeploymentStrategyDie) Type

Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.

type ReplicaSetDie

type ReplicaSetDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*ReplicaSetDie) APIVersion added in v0.5.0

func (d *ReplicaSetDie) APIVersion(v string) *ReplicaSetDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*ReplicaSetDie) DeepCopy

func (d *ReplicaSetDie) DeepCopy() *ReplicaSetDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ReplicaSetDie) DeepCopyObject

func (d *ReplicaSetDie) DeepCopyObject() runtime.Object

func (*ReplicaSetDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ReplicaSetDie) DieFeedJSON added in v0.8.0

func (d *ReplicaSetDie) DieFeedJSON(j []byte) *ReplicaSetDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ReplicaSetDie) DieFeedPtr

func (d *ReplicaSetDie) DieFeedPtr(r *appsv1.ReplicaSet) *ReplicaSetDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ReplicaSetDie) DieFeedRawExtension added in v0.5.0

func (d *ReplicaSetDie) DieFeedRawExtension(raw runtime.RawExtension) *ReplicaSetDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ReplicaSetDie) DieFeedYAML added in v0.8.0

func (d *ReplicaSetDie) DieFeedYAML(y []byte) *ReplicaSetDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ReplicaSetDie) DieFeedYAMLFile added in v0.8.0

func (d *ReplicaSetDie) DieFeedYAMLFile(name string) *ReplicaSetDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ReplicaSetDie) DieImmutable

func (d *ReplicaSetDie) DieImmutable(immutable bool) *ReplicaSetDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ReplicaSetDie) DieRelease

func (d *ReplicaSetDie) DieRelease() appsv1.ReplicaSet

DieRelease returns the resource managed by the die.

func (*ReplicaSetDie) DieReleaseJSON added in v0.8.0

func (d *ReplicaSetDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ReplicaSetDie) DieReleasePtr

func (d *ReplicaSetDie) DieReleasePtr() *appsv1.ReplicaSet

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ReplicaSetDie) DieReleaseRawExtension added in v0.5.0

func (d *ReplicaSetDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ReplicaSetDie) DieReleaseUnstructured

func (d *ReplicaSetDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*ReplicaSetDie) DieReleaseYAML added in v0.8.0

func (d *ReplicaSetDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ReplicaSetDie) DieStamp

func (d *ReplicaSetDie) DieStamp(fn func(r *appsv1.ReplicaSet)) *ReplicaSetDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ReplicaSetDie) DieStampAt added in v0.8.0

func (d *ReplicaSetDie) DieStampAt(jp string, fn interface{}) *ReplicaSetDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ReplicaSetDie) DieWith added in v0.9.0

func (d *ReplicaSetDie) DieWith(fns ...func(d *ReplicaSetDie)) *ReplicaSetDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ReplicaSetDie) GetObjectKind

func (d *ReplicaSetDie) GetObjectKind() schema.ObjectKind

func (*ReplicaSetDie) Kind added in v0.5.0

func (d *ReplicaSetDie) Kind(v string) *ReplicaSetDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*ReplicaSetDie) MarshalJSON

func (d *ReplicaSetDie) MarshalJSON() ([]byte, error)

func (*ReplicaSetDie) MetadataDie

func (d *ReplicaSetDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ReplicaSetDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*ReplicaSetDie) Spec

Spec defines the specification of the desired behavior of the ReplicaSet.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*ReplicaSetDie) SpecDie

func (d *ReplicaSetDie) SpecDie(fn func(d *ReplicaSetSpecDie)) *ReplicaSetDie

SpecDie stamps the resource's spec field with a mutable die.

func (*ReplicaSetDie) Status

Status is the most recently observed status of the ReplicaSet.

This data may be out of date by some window of time.

Populated by the system.

Read-only.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*ReplicaSetDie) StatusDie

func (d *ReplicaSetDie) StatusDie(fn func(d *ReplicaSetStatusDie)) *ReplicaSetDie

StatusDie stamps the resource's status field with a mutable die.

func (*ReplicaSetDie) UnmarshalJSON

func (d *ReplicaSetDie) UnmarshalJSON(b []byte) error

type ReplicaSetSpecDie

type ReplicaSetSpecDie struct {
	// contains filtered or unexported fields
}

func (*ReplicaSetSpecDie) DeepCopy

func (d *ReplicaSetSpecDie) DeepCopy() *ReplicaSetSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ReplicaSetSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ReplicaSetSpecDie) DieFeedJSON added in v0.8.0

func (d *ReplicaSetSpecDie) DieFeedJSON(j []byte) *ReplicaSetSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ReplicaSetSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ReplicaSetSpecDie) DieFeedRawExtension added in v0.5.0

func (d *ReplicaSetSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ReplicaSetSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ReplicaSetSpecDie) DieFeedYAML added in v0.8.0

func (d *ReplicaSetSpecDie) DieFeedYAML(y []byte) *ReplicaSetSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ReplicaSetSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *ReplicaSetSpecDie) DieFeedYAMLFile(name string) *ReplicaSetSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ReplicaSetSpecDie) DieImmutable

func (d *ReplicaSetSpecDie) DieImmutable(immutable bool) *ReplicaSetSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ReplicaSetSpecDie) DieRelease

func (d *ReplicaSetSpecDie) DieRelease() appsv1.ReplicaSetSpec

DieRelease returns the resource managed by the die.

func (*ReplicaSetSpecDie) DieReleaseJSON added in v0.8.0

func (d *ReplicaSetSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ReplicaSetSpecDie) DieReleasePtr

func (d *ReplicaSetSpecDie) DieReleasePtr() *appsv1.ReplicaSetSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ReplicaSetSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *ReplicaSetSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ReplicaSetSpecDie) DieReleaseYAML added in v0.8.0

func (d *ReplicaSetSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ReplicaSetSpecDie) DieStamp

func (d *ReplicaSetSpecDie) DieStamp(fn func(r *appsv1.ReplicaSetSpec)) *ReplicaSetSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ReplicaSetSpecDie) DieStampAt added in v0.8.0

func (d *ReplicaSetSpecDie) DieStampAt(jp string, fn interface{}) *ReplicaSetSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ReplicaSetSpecDie) DieWith added in v0.9.0

func (d *ReplicaSetSpecDie) DieWith(fns ...func(d *ReplicaSetSpecDie)) *ReplicaSetSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ReplicaSetSpecDie) MinReadySeconds

func (d *ReplicaSetSpecDie) MinReadySeconds(v int32) *ReplicaSetSpecDie

Minimum number of seconds for which a newly created pod should be ready

without any of its container crashing, for it to be considered available.

Defaults to 0 (pod will be considered available as soon as it is ready)

func (*ReplicaSetSpecDie) Replicas

func (d *ReplicaSetSpecDie) Replicas(v *int32) *ReplicaSetSpecDie

Replicas is the number of desired replicas.

This is a pointer to distinguish between explicit zero and unspecified.

Defaults to 1.

More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller

func (*ReplicaSetSpecDie) Selector

Selector is a label query over pods that should match the replica count.

Label keys and values that must match in order to be controlled by this replica set.

It must match the pod template's labels.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

func (*ReplicaSetSpecDie) SelectorDie

func (d *ReplicaSetSpecDie) SelectorDie(fn func(d *diemetav1.LabelSelectorDie)) *ReplicaSetSpecDie

func (*ReplicaSetSpecDie) Template

Template is the object that describes the pod that will be created if

insufficient replicas are detected.

More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

func (*ReplicaSetSpecDie) TemplateDie

func (d *ReplicaSetSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *ReplicaSetSpecDie

type ReplicaSetStatusDie

type ReplicaSetStatusDie struct {
	// contains filtered or unexported fields
}

func (*ReplicaSetStatusDie) AvailableReplicas

func (d *ReplicaSetStatusDie) AvailableReplicas(v int32) *ReplicaSetStatusDie

The number of available replicas (ready for at least minReadySeconds) for this replica set.

func (*ReplicaSetStatusDie) Conditions

Represents the latest available observations of a replica set's current state.

func (*ReplicaSetStatusDie) ConditionsDie

func (d *ReplicaSetStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *ReplicaSetStatusDie

func (*ReplicaSetStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ReplicaSetStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ReplicaSetStatusDie) DieFeedJSON added in v0.8.0

func (d *ReplicaSetStatusDie) DieFeedJSON(j []byte) *ReplicaSetStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ReplicaSetStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ReplicaSetStatusDie) DieFeedRawExtension added in v0.5.0

func (d *ReplicaSetStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ReplicaSetStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ReplicaSetStatusDie) DieFeedYAML added in v0.8.0

func (d *ReplicaSetStatusDie) DieFeedYAML(y []byte) *ReplicaSetStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ReplicaSetStatusDie) DieFeedYAMLFile added in v0.8.0

func (d *ReplicaSetStatusDie) DieFeedYAMLFile(name string) *ReplicaSetStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ReplicaSetStatusDie) DieImmutable

func (d *ReplicaSetStatusDie) DieImmutable(immutable bool) *ReplicaSetStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ReplicaSetStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ReplicaSetStatusDie) DieReleaseJSON added in v0.8.0

func (d *ReplicaSetStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ReplicaSetStatusDie) DieReleasePtr

func (d *ReplicaSetStatusDie) DieReleasePtr() *appsv1.ReplicaSetStatus

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ReplicaSetStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *ReplicaSetStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ReplicaSetStatusDie) DieReleaseYAML added in v0.8.0

func (d *ReplicaSetStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ReplicaSetStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ReplicaSetStatusDie) DieStampAt added in v0.8.0

func (d *ReplicaSetStatusDie) DieStampAt(jp string, fn interface{}) *ReplicaSetStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ReplicaSetStatusDie) DieWith added in v0.9.0

func (d *ReplicaSetStatusDie) DieWith(fns ...func(d *ReplicaSetStatusDie)) *ReplicaSetStatusDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ReplicaSetStatusDie) FullyLabeledReplicas

func (d *ReplicaSetStatusDie) FullyLabeledReplicas(v int32) *ReplicaSetStatusDie

The number of pods that have labels matching the labels of the pod template of the replicaset.

func (*ReplicaSetStatusDie) ObservedGeneration

func (d *ReplicaSetStatusDie) ObservedGeneration(v int64) *ReplicaSetStatusDie

ObservedGeneration reflects the generation of the most recently observed ReplicaSet.

func (*ReplicaSetStatusDie) ReadyReplicas

func (d *ReplicaSetStatusDie) ReadyReplicas(v int32) *ReplicaSetStatusDie

readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.

func (*ReplicaSetStatusDie) Replicas

Replicas is the most recently observed number of replicas.

More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller

type RollingUpdateDaemonSetDie

type RollingUpdateDaemonSetDie struct {
	// contains filtered or unexported fields
}

func (*RollingUpdateDaemonSetDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*RollingUpdateDaemonSetDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*RollingUpdateDaemonSetDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*RollingUpdateDaemonSetDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*RollingUpdateDaemonSetDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*RollingUpdateDaemonSetDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*RollingUpdateDaemonSetDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*RollingUpdateDaemonSetDie) DieImmutable

func (d *RollingUpdateDaemonSetDie) DieImmutable(immutable bool) *RollingUpdateDaemonSetDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*RollingUpdateDaemonSetDie) DieRelease

DieRelease returns the resource managed by the die.

func (*RollingUpdateDaemonSetDie) DieReleaseJSON added in v0.8.0

func (d *RollingUpdateDaemonSetDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*RollingUpdateDaemonSetDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*RollingUpdateDaemonSetDie) DieReleaseRawExtension added in v0.5.0

func (d *RollingUpdateDaemonSetDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*RollingUpdateDaemonSetDie) DieReleaseYAML added in v0.8.0

func (d *RollingUpdateDaemonSetDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*RollingUpdateDaemonSetDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*RollingUpdateDaemonSetDie) DieStampAt added in v0.8.0

func (d *RollingUpdateDaemonSetDie) DieStampAt(jp string, fn interface{}) *RollingUpdateDaemonSetDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*RollingUpdateDaemonSetDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*RollingUpdateDaemonSetDie) MaxSurge

The maximum number of nodes with an existing available DaemonSet pod that

can have an updated DaemonSet pod during during an update.

Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).

This can not be 0 if MaxUnavailable is 0.

Absolute number is calculated from percentage by rounding up to a minimum of 1.

Default value is 0.

Example: when this is set to 30%, at most 30% of the total number of nodes

that should be running the daemon pod (i.e. status.desiredNumberScheduled)

can have their a new pod created before the old pod is marked as deleted.

The update starts by launching new pods on 30% of nodes. Once an updated

pod is available (Ready for at least minReadySeconds) the old DaemonSet pod

on that node is marked deleted. If the old pod becomes unavailable for any

reason (Ready transitions to false, is evicted, or is drained) an updated

pod is immediatedly created on that node without considering surge limits.

Allowing surge implies the possibility that the resources consumed by the

daemonset on any given node can double if the readiness check fails, and

so resource intensive daemonsets should take into account that they may

cause evictions during disruption.

func (*RollingUpdateDaemonSetDie) MaxSurgeInt

func (*RollingUpdateDaemonSetDie) MaxSurgeString

func (*RollingUpdateDaemonSetDie) MaxUnavailable

The maximum number of DaemonSet pods that can be unavailable during the

update. Value can be an absolute number (ex: 5) or a percentage of total

number of DaemonSet pods at the start of the update (ex: 10%). Absolute

number is calculated from percentage by rounding up.

This cannot be 0 if MaxSurge is 0

Default value is 1.

Example: when this is set to 30%, at most 30% of the total number of nodes

that should be running the daemon pod (i.e. status.desiredNumberScheduled)

can have their pods stopped for an update at any given time. The update

starts by stopping at most 30% of those DaemonSet pods and then brings

up new DaemonSet pods in their place. Once the new pods are available,

it then proceeds onto other DaemonSet pods, thus ensuring that at least

70% of original number of DaemonSet pods are available at all times during

the update.

func (*RollingUpdateDaemonSetDie) MaxUnavailableInt

func (d *RollingUpdateDaemonSetDie) MaxUnavailableInt(i int) *RollingUpdateDaemonSetDie

func (*RollingUpdateDaemonSetDie) MaxUnavailableString

func (d *RollingUpdateDaemonSetDie) MaxUnavailableString(s string) *RollingUpdateDaemonSetDie

type RollingUpdateDeploymentDie

type RollingUpdateDeploymentDie struct {
	// contains filtered or unexported fields
}

func (*RollingUpdateDeploymentDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*RollingUpdateDeploymentDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*RollingUpdateDeploymentDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*RollingUpdateDeploymentDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*RollingUpdateDeploymentDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*RollingUpdateDeploymentDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*RollingUpdateDeploymentDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*RollingUpdateDeploymentDie) DieImmutable

func (d *RollingUpdateDeploymentDie) DieImmutable(immutable bool) *RollingUpdateDeploymentDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*RollingUpdateDeploymentDie) DieRelease

DieRelease returns the resource managed by the die.

func (*RollingUpdateDeploymentDie) DieReleaseJSON added in v0.8.0

func (d *RollingUpdateDeploymentDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*RollingUpdateDeploymentDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*RollingUpdateDeploymentDie) DieReleaseRawExtension added in v0.5.0

func (d *RollingUpdateDeploymentDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*RollingUpdateDeploymentDie) DieReleaseYAML added in v0.8.0

func (d *RollingUpdateDeploymentDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*RollingUpdateDeploymentDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*RollingUpdateDeploymentDie) DieStampAt added in v0.8.0

func (d *RollingUpdateDeploymentDie) DieStampAt(jp string, fn interface{}) *RollingUpdateDeploymentDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*RollingUpdateDeploymentDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*RollingUpdateDeploymentDie) MaxSurge

The maximum number of pods that can be scheduled above the desired number of

pods.

Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).

This can not be 0 if MaxUnavailable is 0.

Absolute number is calculated from percentage by rounding up.

Defaults to 25%.

Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when

the rolling update starts, such that the total number of old and new pods do not exceed

130% of desired pods. Once old pods have been killed,

new ReplicaSet can be scaled up further, ensuring that total number of pods running

at any time during the update is at most 130% of desired pods.

func (*RollingUpdateDeploymentDie) MaxSurgeInt

func (*RollingUpdateDeploymentDie) MaxSurgeString

func (*RollingUpdateDeploymentDie) MaxUnavailable

The maximum number of pods that can be unavailable during the update.

Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).

Absolute number is calculated from percentage by rounding down.

This can not be 0 if MaxSurge is 0.

Defaults to 25%.

Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods

immediately when the rolling update starts. Once new pods are ready, old ReplicaSet

can be scaled down further, followed by scaling up the new ReplicaSet, ensuring

that the total number of pods available at all times during the update is at

least 70% of desired pods.

func (*RollingUpdateDeploymentDie) MaxUnavailableInt

func (*RollingUpdateDeploymentDie) MaxUnavailableString

func (d *RollingUpdateDeploymentDie) MaxUnavailableString(s string) *RollingUpdateDeploymentDie

type RollingUpdateStatefulSetStrategyDie

type RollingUpdateStatefulSetStrategyDie struct {
	// contains filtered or unexported fields
}

func (*RollingUpdateStatefulSetStrategyDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*RollingUpdateStatefulSetStrategyDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*RollingUpdateStatefulSetStrategyDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*RollingUpdateStatefulSetStrategyDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*RollingUpdateStatefulSetStrategyDie) DieRelease

DieRelease returns the resource managed by the die.

func (*RollingUpdateStatefulSetStrategyDie) DieReleaseJSON added in v0.8.0

func (d *RollingUpdateStatefulSetStrategyDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*RollingUpdateStatefulSetStrategyDie) DieReleaseRawExtension added in v0.5.0

func (d *RollingUpdateStatefulSetStrategyDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieReleaseYAML added in v0.8.0

func (d *RollingUpdateStatefulSetStrategyDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*RollingUpdateStatefulSetStrategyDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*RollingUpdateStatefulSetStrategyDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*RollingUpdateStatefulSetStrategyDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*RollingUpdateStatefulSetStrategyDie) MaxUnavailable added in v0.4.0

The maximum number of pods that can be unavailable during the update.

Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).

Absolute number is calculated from percentage by rounding up. This can not be 0.

Defaults to 1. This field is alpha-level and is only honored by servers that enable the

MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to

Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it

will be counted towards MaxUnavailable.

func (*RollingUpdateStatefulSetStrategyDie) MaxUnavailableInt added in v0.4.0

func (*RollingUpdateStatefulSetStrategyDie) MaxUnavailableString added in v0.4.0

func (*RollingUpdateStatefulSetStrategyDie) Partition

Partition indicates the ordinal at which the StatefulSet should be partitioned

for updates. During a rolling update, all pods from ordinal Replicas-1 to

Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.

This is helpful in being able to do a canary based deployment. The default value is 0.

type StatefulSetDie

type StatefulSetDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*StatefulSetDie) APIVersion added in v0.5.0

func (d *StatefulSetDie) APIVersion(v string) *StatefulSetDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*StatefulSetDie) DeepCopy

func (d *StatefulSetDie) DeepCopy() *StatefulSetDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StatefulSetDie) DeepCopyObject

func (d *StatefulSetDie) DeepCopyObject() runtime.Object

func (*StatefulSetDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StatefulSetDie) DieFeedJSON added in v0.8.0

func (d *StatefulSetDie) DieFeedJSON(j []byte) *StatefulSetDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StatefulSetDie) DieFeedPtr

func (d *StatefulSetDie) DieFeedPtr(r *appsv1.StatefulSet) *StatefulSetDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StatefulSetDie) DieFeedRawExtension added in v0.5.0

func (d *StatefulSetDie) DieFeedRawExtension(raw runtime.RawExtension) *StatefulSetDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetDie) DieFeedYAML added in v0.8.0

func (d *StatefulSetDie) DieFeedYAML(y []byte) *StatefulSetDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StatefulSetDie) DieFeedYAMLFile added in v0.8.0

func (d *StatefulSetDie) DieFeedYAMLFile(name string) *StatefulSetDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StatefulSetDie) DieImmutable

func (d *StatefulSetDie) DieImmutable(immutable bool) *StatefulSetDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StatefulSetDie) DieRelease

func (d *StatefulSetDie) DieRelease() appsv1.StatefulSet

DieRelease returns the resource managed by the die.

func (*StatefulSetDie) DieReleaseJSON added in v0.8.0

func (d *StatefulSetDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StatefulSetDie) DieReleasePtr

func (d *StatefulSetDie) DieReleasePtr() *appsv1.StatefulSet

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StatefulSetDie) DieReleaseRawExtension added in v0.5.0

func (d *StatefulSetDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetDie) DieReleaseUnstructured

func (d *StatefulSetDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*StatefulSetDie) DieReleaseYAML added in v0.8.0

func (d *StatefulSetDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StatefulSetDie) DieStamp

func (d *StatefulSetDie) DieStamp(fn func(r *appsv1.StatefulSet)) *StatefulSetDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StatefulSetDie) DieStampAt added in v0.8.0

func (d *StatefulSetDie) DieStampAt(jp string, fn interface{}) *StatefulSetDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StatefulSetDie) DieWith added in v0.9.0

func (d *StatefulSetDie) DieWith(fns ...func(d *StatefulSetDie)) *StatefulSetDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StatefulSetDie) GetObjectKind

func (d *StatefulSetDie) GetObjectKind() schema.ObjectKind

func (*StatefulSetDie) Kind added in v0.5.0

func (d *StatefulSetDie) Kind(v string) *StatefulSetDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*StatefulSetDie) MarshalJSON

func (d *StatefulSetDie) MarshalJSON() ([]byte, error)

func (*StatefulSetDie) MetadataDie

func (d *StatefulSetDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *StatefulSetDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*StatefulSetDie) Spec

Spec defines the desired identities of pods in this set.

func (*StatefulSetDie) SpecDie

func (d *StatefulSetDie) SpecDie(fn func(d *StatefulSetSpecDie)) *StatefulSetDie

SpecDie stamps the resource's spec field with a mutable die.

func (*StatefulSetDie) Status

Status is the current status of Pods in this StatefulSet. This data

may be out of date by some window of time.

func (*StatefulSetDie) StatusDie

func (d *StatefulSetDie) StatusDie(fn func(d *StatefulSetStatusDie)) *StatefulSetDie

StatusDie stamps the resource's status field with a mutable die.

func (*StatefulSetDie) UnmarshalJSON

func (d *StatefulSetDie) UnmarshalJSON(b []byte) error

type StatefulSetOrdinalsDie added in v0.7.0

type StatefulSetOrdinalsDie struct {
	// contains filtered or unexported fields
}

func (*StatefulSetOrdinalsDie) DeepCopy added in v0.7.0

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StatefulSetOrdinalsDie) DieFeed added in v0.7.0

DieFeed returns a new die with the provided resource.

func (*StatefulSetOrdinalsDie) DieFeedJSON added in v0.8.0

func (d *StatefulSetOrdinalsDie) DieFeedJSON(j []byte) *StatefulSetOrdinalsDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StatefulSetOrdinalsDie) DieFeedPtr added in v0.7.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StatefulSetOrdinalsDie) DieFeedRawExtension added in v0.7.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetOrdinalsDie) DieFeedYAML added in v0.8.0

func (d *StatefulSetOrdinalsDie) DieFeedYAML(y []byte) *StatefulSetOrdinalsDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StatefulSetOrdinalsDie) DieFeedYAMLFile added in v0.8.0

func (d *StatefulSetOrdinalsDie) DieFeedYAMLFile(name string) *StatefulSetOrdinalsDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StatefulSetOrdinalsDie) DieImmutable added in v0.7.0

func (d *StatefulSetOrdinalsDie) DieImmutable(immutable bool) *StatefulSetOrdinalsDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StatefulSetOrdinalsDie) DieRelease added in v0.7.0

DieRelease returns the resource managed by the die.

func (*StatefulSetOrdinalsDie) DieReleaseJSON added in v0.8.0

func (d *StatefulSetOrdinalsDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StatefulSetOrdinalsDie) DieReleasePtr added in v0.7.0

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StatefulSetOrdinalsDie) DieReleaseRawExtension added in v0.7.0

func (d *StatefulSetOrdinalsDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetOrdinalsDie) DieReleaseYAML added in v0.8.0

func (d *StatefulSetOrdinalsDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StatefulSetOrdinalsDie) DieStamp added in v0.7.0

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StatefulSetOrdinalsDie) DieStampAt added in v0.8.0

func (d *StatefulSetOrdinalsDie) DieStampAt(jp string, fn interface{}) *StatefulSetOrdinalsDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StatefulSetOrdinalsDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StatefulSetOrdinalsDie) Start added in v0.7.0

start is the number representing the first replica's index. It may be used

to number replicas from an alternate index (eg: 1-indexed) over the default

0-indexed names, or to orchestrate progressive movement of replicas from

one StatefulSet to another.

If set, replica indices will be in the range:

[.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).

If unset, defaults to 0. Replica indices will be in the range:

[0, .spec.replicas).

type StatefulSetPersistentVolumeClaimRetentionPolicyDie added in v0.2.0

type StatefulSetPersistentVolumeClaimRetentionPolicyDie struct {
	// contains filtered or unexported fields
}

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DeepCopy added in v0.2.0

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieFeed added in v0.2.0

DieFeed returns a new die with the provided resource.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieFeedPtr added in v0.2.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieImmutable added in v0.2.0

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieRelease added in v0.2.0

DieRelease returns the resource managed by the die.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieReleaseJSON added in v0.8.0

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieReleasePtr added in v0.2.0

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieReleaseRawExtension added in v0.5.0

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieReleaseYAML added in v0.8.0

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieStamp added in v0.2.0

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) WhenDeleted added in v0.2.0

WhenDeleted specifies what happens to PVCs created from StatefulSet

VolumeClaimTemplates when the StatefulSet is deleted. The default policy

of `Retain` causes PVCs to not be affected by StatefulSet deletion. The

`Delete` policy causes those PVCs to be deleted.

func (*StatefulSetPersistentVolumeClaimRetentionPolicyDie) WhenScaled added in v0.2.0

WhenScaled specifies what happens to PVCs created from StatefulSet

VolumeClaimTemplates when the StatefulSet is scaled down. The default

policy of `Retain` causes PVCs to not be affected by a scaledown. The

`Delete` policy causes the associated PVCs for any excess pods above

the replica count to be deleted.

type StatefulSetSpecDie

type StatefulSetSpecDie struct {
	// contains filtered or unexported fields
}

func (*StatefulSetSpecDie) DeepCopy

func (d *StatefulSetSpecDie) DeepCopy() *StatefulSetSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StatefulSetSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StatefulSetSpecDie) DieFeedJSON added in v0.8.0

func (d *StatefulSetSpecDie) DieFeedJSON(j []byte) *StatefulSetSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StatefulSetSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StatefulSetSpecDie) DieFeedRawExtension added in v0.5.0

func (d *StatefulSetSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *StatefulSetSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetSpecDie) DieFeedYAML added in v0.8.0

func (d *StatefulSetSpecDie) DieFeedYAML(y []byte) *StatefulSetSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StatefulSetSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *StatefulSetSpecDie) DieFeedYAMLFile(name string) *StatefulSetSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StatefulSetSpecDie) DieImmutable

func (d *StatefulSetSpecDie) DieImmutable(immutable bool) *StatefulSetSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StatefulSetSpecDie) DieRelease

func (d *StatefulSetSpecDie) DieRelease() appsv1.StatefulSetSpec

DieRelease returns the resource managed by the die.

func (*StatefulSetSpecDie) DieReleaseJSON added in v0.8.0

func (d *StatefulSetSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StatefulSetSpecDie) DieReleasePtr

func (d *StatefulSetSpecDie) DieReleasePtr() *appsv1.StatefulSetSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StatefulSetSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *StatefulSetSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetSpecDie) DieReleaseYAML added in v0.8.0

func (d *StatefulSetSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StatefulSetSpecDie) DieStamp

func (d *StatefulSetSpecDie) DieStamp(fn func(r *appsv1.StatefulSetSpec)) *StatefulSetSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StatefulSetSpecDie) DieStampAt added in v0.8.0

func (d *StatefulSetSpecDie) DieStampAt(jp string, fn interface{}) *StatefulSetSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StatefulSetSpecDie) DieWith added in v0.9.0

func (d *StatefulSetSpecDie) DieWith(fns ...func(d *StatefulSetSpecDie)) *StatefulSetSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StatefulSetSpecDie) MinReadySeconds

func (d *StatefulSetSpecDie) MinReadySeconds(v int32) *StatefulSetSpecDie

Minimum number of seconds for which a newly created pod should be ready

without any of its container crashing for it to be considered available.

Defaults to 0 (pod will be considered available as soon as it is ready)

func (*StatefulSetSpecDie) Ordinals added in v0.7.0

ordinals controls the numbering of replica indices in a StatefulSet. The

default ordinals behavior assigns a "0" index to the first replica and

increments the index by one for each additional replica requested. Using

the ordinals field requires the StatefulSetStartOrdinal feature gate to be

enabled, which is beta.

func (*StatefulSetSpecDie) OrdinalsDie added in v0.7.0

func (d *StatefulSetSpecDie) OrdinalsDie(fn func(d *StatefulSetOrdinalsDie)) *StatefulSetSpecDie

func (*StatefulSetSpecDie) PersistentVolumeClaimRetentionPolicy added in v0.2.0

persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent

volume claims created from volumeClaimTemplates. By default, all persistent

volume claims are created as needed and retained until manually deleted. This

policy allows the lifecycle to be altered, for example by deleting persistent

volume claims when their stateful set is deleted, or when their pod is scaled

down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled,

which is alpha. +optional

func (*StatefulSetSpecDie) PersistentVolumeClaimRetentionPolicyDie added in v0.2.0

func (d *StatefulSetSpecDie) PersistentVolumeClaimRetentionPolicyDie(fn func(d *StatefulSetPersistentVolumeClaimRetentionPolicyDie)) *StatefulSetSpecDie

func (*StatefulSetSpecDie) PodManagementPolicy

podManagementPolicy controls how pods are created during initial scale up,

when replacing pods on nodes, or when scaling down. The default policy is

`OrderedReady`, where pods are created in increasing order (pod-0, then

pod-1, etc) and the controller will wait until each pod is ready before

continuing. When scaling down, the pods are removed in the opposite order.

The alternative policy is `Parallel` which will create pods in parallel

to match the desired scale without waiting, and on scale down will delete

all pods at once.

func (*StatefulSetSpecDie) Replicas

func (d *StatefulSetSpecDie) Replicas(v *int32) *StatefulSetSpecDie

replicas is the desired number of replicas of the given Template.

These are replicas in the sense that they are instantiations of the

same Template, but individual replicas also have a consistent identity.

If unspecified, defaults to 1.

TODO: Consider a rename of this field.

func (*StatefulSetSpecDie) RevisionHistoryLimit

func (d *StatefulSetSpecDie) RevisionHistoryLimit(v *int32) *StatefulSetSpecDie

revisionHistoryLimit is the maximum number of revisions that will

be maintained in the StatefulSet's revision history. The revision history

consists of all revisions not represented by a currently applied

StatefulSetSpec version. The default value is 10.

func (*StatefulSetSpecDie) Selector

selector is a label query over pods that should match the replica count.

It must match the pod template's labels.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

func (*StatefulSetSpecDie) SelectorDie

func (d *StatefulSetSpecDie) SelectorDie(fn func(d *diemetav1.LabelSelectorDie)) *StatefulSetSpecDie

func (*StatefulSetSpecDie) ServiceName

func (d *StatefulSetSpecDie) ServiceName(v string) *StatefulSetSpecDie

serviceName is the name of the service that governs this StatefulSet.

This service must exist before the StatefulSet, and is responsible for

the network identity of the set. Pods get DNS/hostnames that follow the

pattern: pod-specific-string.serviceName.default.svc.cluster.local

where "pod-specific-string" is managed by the StatefulSet controller.

func (*StatefulSetSpecDie) Template

template is the object that describes the pod that will be created if

insufficient replicas are detected. Each pod stamped out by the StatefulSet

will fulfill this Template, but have a unique identity from the rest

of the StatefulSet. Each pod will be named with the format

<statefulsetname>-<podindex>. For example, a pod in a StatefulSet named

"web" with index number "3" would be named "web-3".

The only allowed template.spec.restartPolicy value is "Always".

func (*StatefulSetSpecDie) TemplateDie

func (*StatefulSetSpecDie) UpdateStrategy

updateStrategy indicates the StatefulSetUpdateStrategy that will be

employed to update Pods in the StatefulSet when a revision is made to

Template.

func (*StatefulSetSpecDie) UpdateStrategyDie

func (d *StatefulSetSpecDie) UpdateStrategyDie(fn func(d *StatefulSetUpdateStrategyDie)) *StatefulSetSpecDie

func (*StatefulSetSpecDie) VolumeClaimTemplates

func (d *StatefulSetSpecDie) VolumeClaimTemplates(v ...corev1.PersistentVolumeClaim) *StatefulSetSpecDie

volumeClaimTemplates is a list of claims that pods are allowed to reference.

The StatefulSet controller is responsible for mapping network identities to

claims in a way that maintains the identity of a pod. Every claim in

this list must have at least one matching (by name) volumeMount in one

container in the template. A claim in this list takes precedence over

any volumes in the template, with the same name.

TODO: Define the behavior if a claim already exists with the same name.

func (*StatefulSetSpecDie) VolumeClaimTemplatesDie

func (d *StatefulSetSpecDie) VolumeClaimTemplatesDie(volumeClaimTemplates ...*diecorev1.PersistentVolumeClaimDie) *StatefulSetSpecDie

type StatefulSetStatusDie

type StatefulSetStatusDie struct {
	// contains filtered or unexported fields
}

func (*StatefulSetStatusDie) AvailableReplicas

func (d *StatefulSetStatusDie) AvailableReplicas(v int32) *StatefulSetStatusDie

Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.

func (*StatefulSetStatusDie) CollisionCount

func (d *StatefulSetStatusDie) CollisionCount(v *int32) *StatefulSetStatusDie

collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller

uses this field as a collision avoidance mechanism when it needs to create the name for the

newest ControllerRevision.

func (*StatefulSetStatusDie) Conditions

Represents the latest available observations of a statefulset's current state.

func (*StatefulSetStatusDie) ConditionsDie

func (d *StatefulSetStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *StatefulSetStatusDie

func (*StatefulSetStatusDie) CurrentReplicas

func (d *StatefulSetStatusDie) CurrentReplicas(v int32) *StatefulSetStatusDie

currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version

indicated by currentRevision.

func (*StatefulSetStatusDie) CurrentRevision

func (d *StatefulSetStatusDie) CurrentRevision(v string) *StatefulSetStatusDie

currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the

sequence [0,currentReplicas).

func (*StatefulSetStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StatefulSetStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StatefulSetStatusDie) DieFeedJSON added in v0.8.0

func (d *StatefulSetStatusDie) DieFeedJSON(j []byte) *StatefulSetStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StatefulSetStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StatefulSetStatusDie) DieFeedRawExtension added in v0.5.0

func (d *StatefulSetStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *StatefulSetStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetStatusDie) DieFeedYAML added in v0.8.0

func (d *StatefulSetStatusDie) DieFeedYAML(y []byte) *StatefulSetStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StatefulSetStatusDie) DieFeedYAMLFile added in v0.8.0

func (d *StatefulSetStatusDie) DieFeedYAMLFile(name string) *StatefulSetStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StatefulSetStatusDie) DieImmutable

func (d *StatefulSetStatusDie) DieImmutable(immutable bool) *StatefulSetStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StatefulSetStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*StatefulSetStatusDie) DieReleaseJSON added in v0.8.0

func (d *StatefulSetStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StatefulSetStatusDie) DieReleasePtr

func (d *StatefulSetStatusDie) DieReleasePtr() *appsv1.StatefulSetStatus

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StatefulSetStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *StatefulSetStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetStatusDie) DieReleaseYAML added in v0.8.0

func (d *StatefulSetStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StatefulSetStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StatefulSetStatusDie) DieStampAt added in v0.8.0

func (d *StatefulSetStatusDie) DieStampAt(jp string, fn interface{}) *StatefulSetStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StatefulSetStatusDie) DieWith added in v0.9.0

func (d *StatefulSetStatusDie) DieWith(fns ...func(d *StatefulSetStatusDie)) *StatefulSetStatusDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StatefulSetStatusDie) ObservedGeneration

func (d *StatefulSetStatusDie) ObservedGeneration(v int64) *StatefulSetStatusDie

observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the

StatefulSet's generation, which is updated on mutation by the API Server.

func (*StatefulSetStatusDie) ReadyReplicas

func (d *StatefulSetStatusDie) ReadyReplicas(v int32) *StatefulSetStatusDie

readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.

func (*StatefulSetStatusDie) Replicas

replicas is the number of Pods created by the StatefulSet controller.

func (*StatefulSetStatusDie) UpdateRevision

func (d *StatefulSetStatusDie) UpdateRevision(v string) *StatefulSetStatusDie

updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence

[replicas-updatedReplicas,replicas)

func (*StatefulSetStatusDie) UpdatedReplicas

func (d *StatefulSetStatusDie) UpdatedReplicas(v int32) *StatefulSetStatusDie

updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version

indicated by updateRevision.

type StatefulSetUpdateStrategyDie

type StatefulSetUpdateStrategyDie struct {
	// contains filtered or unexported fields
}

func (*StatefulSetUpdateStrategyDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StatefulSetUpdateStrategyDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StatefulSetUpdateStrategyDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StatefulSetUpdateStrategyDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StatefulSetUpdateStrategyDie) DieRelease

DieRelease returns the resource managed by the die.

func (*StatefulSetUpdateStrategyDie) DieReleaseJSON added in v0.8.0

func (d *StatefulSetUpdateStrategyDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StatefulSetUpdateStrategyDie) DieReleaseRawExtension added in v0.5.0

func (d *StatefulSetUpdateStrategyDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieReleaseYAML added in v0.8.0

func (d *StatefulSetUpdateStrategyDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StatefulSetUpdateStrategyDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StatefulSetUpdateStrategyDie) DieStampAt added in v0.8.0

func (d *StatefulSetUpdateStrategyDie) DieStampAt(jp string, fn interface{}) *StatefulSetUpdateStrategyDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StatefulSetUpdateStrategyDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StatefulSetUpdateStrategyDie) OnDelete

func (*StatefulSetUpdateStrategyDie) RollingUpdate

RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.

func (*StatefulSetUpdateStrategyDie) RollingUpdateDie

func (*StatefulSetUpdateStrategyDie) Type

Type indicates the type of the StatefulSetUpdateStrategy.

Default is RollingUpdate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL