v1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatefulSetRegistration

func StatefulSetRegistration[In StatefulSetResource, Out *StatefulSetResourceOutput, P any](
	base runtime.ResourceRegistration,
	read func(context.Context, any, any, P) (any, error),
	known func(any, any, P, map[string][]string, bool) ([]string, error),
) statefulSetRegistration[P]

StatefulSetRegistration keeps the input and output models explicit for schema discovery.

Types

type AWSElasticBlockStoreVolume

type AWSElasticBlockStoreVolume struct {
	VolumeID  string  `json:"volumeID"`
	FSType    *string `json:"fsType"`
	Partition *int64  `json:"partition" format:"int32-cast"`
	ReadOnly  *bool   `json:"readOnly"`
}

type Affinity

type Affinity struct {
	NodeAffinity    *NodeAffinity `json:"nodeAffinity"`
	PodAffinity     *PodAffinity  `json:"podAffinity"`
	PodAntiAffinity *PodAffinity  `json:"podAntiAffinity"`
}

type AzureDiskVolume

type AzureDiskVolume struct {
	CachingMode string  `json:"cachingMode"`
	DataDiskURI string  `json:"diskURI"`
	DiskName    string  `json:"diskName"`
	FSType      *string `json:"fsType"`
	Kind        *string `json:"kind" computed:"true" omit:"true"`
	ReadOnly    *bool   `json:"readOnly"`
}

type AzureFileVolume

type AzureFileVolume struct {
	SecretName      string  `json:"secretName"`
	ShareName       string  `json:"shareName"`
	ReadOnly        *bool   `json:"readOnly"`
	SecretNamespace *string `json:"-" replace:"true"`
}

type CSILocalSecretRef

type CSILocalSecretRef struct {
	Name *string `json:"name"`
}

type CSIVolume

type CSIVolume struct {
	Driver               string             `json:"driver"`
	VolumeAttributes     *map[string]string `json:"volumeAttributes"`
	FSType               *string            `json:"fsType"`
	ReadOnly             *bool              `json:"readOnly"`
	NodePublishSecretRef *CSILocalSecretRef `json:"nodePublishSecretRef"`
}

type Capabilities

type Capabilities struct {
	Add  *[]string `json:"add"`
	Drop *[]string `json:"drop"`
}

type CephFSVolume

type CephFSVolume struct {
	Monitors   []string        `json:"monitors" set:"true"`
	Path       *string         `json:"path"`
	ReadOnly   *bool           `json:"readOnly"`
	SecretFile *string         `json:"secretFile"`
	SecretRef  *LocalSecretRef `json:"secretRef"`
	User       *string         `json:"user"`
}

type CinderVolume

type CinderVolume struct {
	VolumeID string  `json:"volumeID"`
	FSType   *string `json:"fsType"`
	ReadOnly *bool   `json:"readOnly"`
}

type ClaimMetadata

type ClaimMetadata struct {
	Annotations *map[string]string `json:"annotations"`
	Labels      *map[string]string `json:"labels"`
}

type ClaimResources

type ClaimResources struct {
	Limits   *map[string]string `json:"limits" format:"quantities" replace:"true"`
	Requests *map[string]string `json:"requests" format:"quantities"`
}

type ClaimSpec

type ClaimSpec struct {
	AccessModes      []string       `json:"accessModes" set:"true" enum:"ReadWriteOnce,ReadOnlyMany,ReadWriteMany,ReadWriteOncePod" replace:"true"`
	Resources        ClaimResources `json:"resources"`
	Selector         *Selector      `json:"selector" replace:"true"`
	VolumeName       *string        `json:"volumeName" computed:"true" replace:"true"`
	StorageClassName *string        `json:"storageClassName" computed:"true" omit:"true" replace:"true"`
	VolumeMode       *string        `json:"volumeMode" computed:"true" omit:"true" enum:"Block,Filesystem" replace:"true"`
}

type ConfigMapProjection

type ConfigMapProjection struct {
	Name     *string    `json:"name"`
	Items    *[]KeyPath `json:"items"`
	Optional *bool      `json:"optional" read:"omit"`
}

type ConfigMapVolume

type ConfigMapVolume struct {
	Name        *string    `json:"name"`
	Optional    *bool      `json:"optional"`
	DefaultMode *string    `json:"defaultMode" default:"0644" format:"mode"`
	Items       *[]KeyPath `json:"items"`
}

type Container

type Container struct {
	Name                     string                    `json:"name"`
	Image                    *string                   `json:"image"`
	Args                     *[]string                 `json:"args"`
	Command                  *[]string                 `json:"command"`
	Env                      *[]Env                    `json:"env"`
	EnvFrom                  *[]EnvFrom                `json:"envFrom"`
	ImagePullPolicy          *string                   `json:"imagePullPolicy" computed:"true"`
	Lifecycle                *Lifecycle                `json:"lifecycle"`
	LivenessProbe            *Probe                    `json:"livenessProbe"`
	ReadinessProbe           *Probe                    `json:"readinessProbe"`
	StartupProbe             *Probe                    `json:"startupProbe"`
	Port                     *[]Port                   `json:"ports"`
	Resources                *Resources                `json:"resources" computed:"true"`
	SecurityContext          *ContainerSecurityContext `json:"securityContext"`
	RestartPolicy            *string                   `json:"restartPolicy" computed:"true" enum:"Always"`
	Stdin                    *bool                     `json:"stdin"`
	StdinOnce                *bool                     `json:"stdinOnce"`
	TTY                      *bool                     `json:"tty"`
	TerminationMessagePath   *string                   `json:"terminationMessagePath" default:"/dev/termination-log"`
	TerminationMessagePolicy *string                   `json:"terminationMessagePolicy" computed:"true" enum:"File,FallbackToLogsOnError"`
	VolumeMount              *[]Mount                  `json:"volumeMounts"`
	VolumeDevice             *[]VolumeDevice           `json:"volumeDevices"`
	WorkingDir               *string                   `json:"workingDir"`
}

type ContainerSecurityContext

type ContainerSecurityContext struct {
	AllowPrivilegeEscalation *bool           `json:"allowPrivilegeEscalation" default:"true"`
	Capabilities             *Capabilities   `json:"capabilities"`
	Privileged               *bool           `json:"privileged"`
	ReadOnlyRootFilesystem   *bool           `json:"readOnlyRootFilesystem"`
	RunAsGroup               *string         `json:"runAsGroup" format:"int64"`
	RunAsNonRoot             *bool           `json:"runAsNonRoot"`
	RunAsUser                *string         `json:"runAsUser" format:"int64"`
	SeccompProfile           *SeccompProfile `json:"seccompProfile"`
	SELinuxOptions           *SELinuxOptions `json:"seLinuxOptions"`
}

type DNSConfig

type DNSConfig struct {
	Nameservers *[]string    `json:"nameservers" format:"ips"`
	Searches    *[]string    `json:"searches" format:"names"`
	Option      *[]DNSOption `json:"options"`
}

type DNSOption

type DNSOption struct {
	Name  string  `json:"name"`
	Value *string `json:"value"`
}

type DaemonSetDataSource added in v0.2.0

type DaemonSetDataSource struct {
	Metadata DeploymentLookupMetadata
}

func (DaemonSetDataSource) Constraints added in v0.2.0

func (r DaemonSetDataSource) Constraints() []constraint.Constraint

func (DaemonSetDataSource) Defaults added in v0.2.0

func (r DaemonSetDataSource) Defaults() []defaults.Default

func (*DaemonSetDataSource) Read added in v0.2.0

type DaemonSetDataSourceOutput added in v0.2.0

type DaemonSetDataSourceOutput struct {
	Metadata DeploymentLookupMetadataOutput
	Spec     *DaemonSetLookupSpec
	Status   *DaemonSetLookupStatus
}

type DaemonSetLookupCondition added in v0.2.0

type DaemonSetLookupCondition struct {
	Type               string
	Status             string
	Reason             string
	Message            string
	LastTransitionTime *string
}

type DaemonSetLookupRollingUpdate added in v0.2.0

type DaemonSetLookupRollingUpdate struct {
	MaxSurge       *string
	MaxUnavailable *string
}

type DaemonSetLookupSpec added in v0.2.0

type DaemonSetLookupSpec struct {
	MinReadySeconds      int64
	RevisionHistoryLimit *int64
	Selector             *Selector
	UpdateStrategy       DaemonSetLookupUpdateStrategy
	Template             StatefulSetPodTemplate
}

type DaemonSetLookupStatus added in v0.2.0

type DaemonSetLookupStatus struct {
	CurrentNumberScheduled int64
	NumberMisscheduled     int64
	DesiredNumberScheduled int64
	NumberReady            int64
	ObservedGeneration     int64
	UpdatedNumberScheduled int64
	NumberAvailable        int64
	NumberUnavailable      int64
	CollisionCount         *int64
	Conditions             []DaemonSetLookupCondition
}

type DaemonSetLookupUpdateStrategy added in v0.2.0

type DaemonSetLookupUpdateStrategy struct {
	Type          string
	RollingUpdate *DaemonSetLookupRollingUpdate
}

type DaemonSetPodTemplate

type DaemonSetPodTemplate struct {
	Metadata Metadata `json:"metadata"`
	Spec     *PodSpec `json:"spec"`
}

DaemonSetPodTemplate requires metadata and permits omission of the Pod spec.

type DaemonSetResource

type DaemonSetResource struct {
	// Metadata selects the object identity and managed labels and annotations.
	Metadata Metadata
	// Spec defines the DaemonSet selector, strategy, and Pod template.
	Spec DaemonSetSpec
	// WaitForRollout defaults to true for create and every update. With RollingUpdate,
	// the waiter also requires the new revision to be scheduled and available.
	WaitForRollout *bool
	// CreateTimeout bounds creation and rollout; the default is ten minutes.
	CreateTimeout *string
	// UpdateTimeout bounds updates and rollout; the default is ten minutes.
	UpdateTimeout *string
	// DeleteTimeout bounds deletion completion; the default is ten minutes.
	DeleteTimeout *string
	// IgnoreAnnotations filters unconfigured annotation keys by regular expression.
	IgnoreAnnotations *[]string
	// IgnoreLabels filters unconfigured label keys by regular expression.
	IgnoreLabels *[]string
}

DaemonSetResource manages a namespaced DaemonSet and waits for rollout by default.

func (DaemonSetResource) Constraints

func (r DaemonSetResource) Constraints() []constraint.Constraint

func (*DaemonSetResource) Create

func (*DaemonSetResource) Delete

func (r *DaemonSetResource) Delete(
	ctx context.Context, c *config.Configuration, p daemonSetPrior,
) error

func (*DaemonSetResource) Read

func (r *DaemonSetResource) Read(
	ctx context.Context, c *config.Configuration, p daemonSetPrior,
) (*DaemonSetResourceOutput, error)

func (*DaemonSetResource) Update

func (r *DaemonSetResource) Update(
	ctx context.Context, c *config.Configuration, p daemonSetPrior,
) (*DaemonSetResourceOutput, error)

type DaemonSetResourceOutput

type DaemonSetResourceOutput struct {
	// Server is the saved Kubernetes API server.
	Server string
	// APIVersion is apps/v1.
	APIVersion string
	// Kind is DaemonSet.
	Kind string
	// Name is the API-returned object name.
	Name string
	// Namespace is the saved object namespace.
	Namespace string
	// UID identifies the managed object across reads and mutations.
	UID string
	// Metadata contains normalized writable metadata with outer key filtering.
	Metadata Metadata
	// Spec contains supported writable values without volatile status.
	Spec DaemonSetSpec
}

DaemonSetResourceOutput contains saved identity and normalized managed values.

type DaemonSetRollingUpdate

type DaemonSetRollingUpdate struct {
	MaxSurge       *string `json:"maxSurge" default:"0" format:"threshold"`
	MaxUnavailable *string `json:"maxUnavailable" default:"1" format:"threshold"`
}

type DaemonSetSpec

type DaemonSetSpec struct {
	MinReadySeconds *int64 `json:"minReadySeconds" default:"0" format:"int32-cast"`

	RevisionHistoryLimit *int64 `json:"revisionHistoryLimit" default:"10" format:"int32-cast"`

	Selector *Selector            `json:"selector" replace:"true"`
	Strategy *DaemonSetStrategy   `json:"updateStrategy" computed:"true"`
	Template DaemonSetPodTemplate `json:"template"`
}

DaemonSetSpec defines the mutable settings and immutable selector and template identity.

type DaemonSetStrategy

type DaemonSetStrategy struct {
	Type          *string                 `json:"type" default:"RollingUpdate"`
	RollingUpdate *DaemonSetRollingUpdate `json:"rollingUpdate" computed:"true"`
}

DaemonSetStrategy permits remote defaults when omitted.

type DeploymentDataSource added in v0.2.0

type DeploymentDataSource struct {
	Metadata DeploymentLookupMetadata
}

func (DeploymentDataSource) Constraints added in v0.2.0

func (r DeploymentDataSource) Constraints() []constraint.Constraint

func (DeploymentDataSource) Defaults added in v0.2.0

func (r DeploymentDataSource) Defaults() []defaults.Default

func (*DeploymentDataSource) Read added in v0.2.0

type DeploymentDataSourceOutput added in v0.2.0

type DeploymentDataSourceOutput struct {
	Metadata DeploymentLookupMetadataOutput
	Spec     *DeploymentLookupSpec
	Status   *DeploymentLookupStatus
}

type DeploymentLookupCondition added in v0.2.0

type DeploymentLookupCondition struct {
	Type               string
	Status             string
	Reason             string
	Message            string
	LastUpdateTime     *string
	LastTransitionTime *string
}

type DeploymentLookupMetadata added in v0.2.0

type DeploymentLookupMetadata struct {
	Name      string
	Namespace *string
}

type DeploymentLookupMetadataOutput added in v0.2.0

type DeploymentLookupMetadataOutput struct {
	Name            string
	Namespace       string
	GenerateName    string
	UID             string
	ResourceVersion string
	Generation      int64
	Labels          map[string]string
	Annotations     map[string]string
}

type DeploymentLookupRollingUpdate added in v0.2.0

type DeploymentLookupRollingUpdate struct {
	MaxSurge       *string
	MaxUnavailable *string
}

type DeploymentLookupSpec added in v0.2.0

type DeploymentLookupSpec struct {
	Replicas                *int64
	MinReadySeconds         int64
	Paused                  bool
	ProgressDeadlineSeconds *int64
	RevisionHistoryLimit    *int64
	Selector                *Selector
	Strategy                DeploymentLookupStrategy
	Template                PodTemplate
}

type DeploymentLookupStatus added in v0.2.0

type DeploymentLookupStatus struct {
	ObservedGeneration  int64
	Replicas            int64
	UpdatedReplicas     int64
	ReadyReplicas       int64
	AvailableReplicas   int64
	UnavailableReplicas int64
	TerminatingReplicas *int64
	CollisionCount      *int64
	Conditions          []DeploymentLookupCondition
}

type DeploymentLookupStrategy added in v0.2.0

type DeploymentLookupStrategy struct {
	Type          string
	RollingUpdate *DeploymentLookupRollingUpdate
}

type DeploymentResource

type DeploymentResource struct {
	Metadata          Metadata
	Spec              DeploymentSpec
	WaitForRollout    *bool
	CreateTimeout     *string
	UpdateTimeout     *string
	DeleteTimeout     *string
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
}

func (DeploymentResource) Constraints

func (r DeploymentResource) Constraints() []constraint.Constraint

func (*DeploymentResource) Create

func (*DeploymentResource) Delete

func (r *DeploymentResource) Delete(ctx context.Context, c *config.Configuration, p prior) error

func (*DeploymentResource) Read

func (*DeploymentResource) Update

type DeploymentResourceOutput

type DeploymentResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Name       string
	Namespace  string
	UID        string
	Metadata   Metadata
	Spec       DeploymentSpec
}

type DeploymentSpec

type DeploymentSpec struct {
	MinReadySeconds         *int64      `json:"minReadySeconds" default:"0" format:"int32-cast"`
	Paused                  *bool       `json:"paused" default:"false" read:"omit"`
	ProgressDeadlineSeconds *int64      `json:"progressDeadlineSeconds" default:"600" format:"int32-cast"`
	Replicas                *string     `json:"replicas" format:"int32" computed:"true"`
	RevisionHistoryLimit    *int64      `json:"revisionHistoryLimit" default:"10" format:"int32-cast"`
	Selector                *Selector   `json:"selector" replace:"true"`
	Strategy                *Strategy   `json:"strategy" computed:"true"`
	Template                PodTemplate `json:"template"`
}

type DownwardAPIProjection

type DownwardAPIProjection struct {
	Items *[]ProjectedDownwardItem `json:"items"`
}

type DownwardAPIVolume

type DownwardAPIVolume struct {
	DefaultMode *string         `json:"defaultMode" default:"0644" format:"mode"`
	Items       *[]DownwardItem `json:"items"`
}

type DownwardItem

type DownwardItem struct {
	FieldRef         FieldRef             `json:"fieldRef"`
	Path             string               `json:"path" format:"relative-path"`
	Mode             *string              `json:"mode" format:"mode"`
	ResourceFieldRef *DownwardResourceRef `json:"resourceFieldRef"`
}

type DownwardResourceRef

type DownwardResourceRef struct {
	ContainerName string  `json:"containerName"`
	Divisor       *string `json:"divisor" default:"1" format:"quantity"`
	Resource      string  `json:"resource"`
}

type EmptyDirVolume

type EmptyDirVolume struct {
	Medium    *string `json:"medium" enum:",Memory,HugePages,HugePages-2Mi,HugePages-1Gi"`
	SizeLimit *string `json:"sizeLimit" format:"quantity" omit:"true"`
}

type Env

type Env struct {
	Name      string        `json:"name"`
	Value     *string       `json:"value"`
	ValueFrom *EnvValueFrom `json:"valueFrom"`
}

type EnvFrom

type EnvFrom struct {
	Prefix       *string     `json:"prefix"`
	ConfigMapRef *EnvFromRef `json:"configMapRef"`
	SecretRef    *EnvFromRef `json:"secretRef"`
}

type EnvFromRef

type EnvFromRef struct {
	Name     string `json:"name"`
	Optional *bool  `json:"optional"`
}

type EnvValueFrom

type EnvValueFrom struct {
	ConfigMapKeyRef  *KeyRef      `json:"configMapKeyRef"`
	SecretKeyRef     *KeyRef      `json:"secretKeyRef"`
	FieldRef         *FieldRef    `json:"fieldRef"`
	ResourceFieldRef *ResourceRef `json:"resourceFieldRef"`
}

type EphemeralVolume

type EphemeralVolume struct {
	VolumeClaimTemplate VolumeClaimTemplate `json:"volumeClaimTemplate"`
}

type Exec

type Exec struct {
	Command *[]string `json:"command"`
}

type FCVolume

type FCVolume struct {
	LUN        int64    `json:"lun" format:"int32-cast"`
	TargetWWNs []string `json:"targetWWNs" set:"true"`
	FSType     *string  `json:"fsType"`
	ReadOnly   *bool    `json:"readOnly"`
}

type FieldRef

type FieldRef struct {
	APIVersion *string `json:"apiVersion" default:"v1"`
	FieldPath  *string `json:"fieldPath"`
}

type FlexVolume

type FlexVolume struct {
	Driver    string             `json:"driver"`
	FSType    *string            `json:"fsType"`
	Options   *map[string]string `json:"options"`
	ReadOnly  *bool              `json:"readOnly"`
	SecretRef *LocalSecretRef    `json:"secretRef"`
}

type FlockerVolume

type FlockerVolume struct {
	DatasetName *string `json:"datasetName"`
	DatasetUUID *string `json:"datasetUUID"`
}

type GCEPersistentDiskVolume

type GCEPersistentDiskVolume struct {
	PDName    string  `json:"pdName"`
	FSType    *string `json:"fsType"`
	Partition *int64  `json:"partition" format:"int32-cast"`
	ReadOnly  *bool   `json:"readOnly"`
}

type GRPC

type GRPC struct {
	Port    int64   `json:"port" format:"port-number" cast:"int32"`
	Service *string `json:"service"`
}

type GitRepoVolume

type GitRepoVolume struct {
	Directory  *string `json:"directory" format:"relative-path"`
	Repository *string `json:"repository"`
	Revision   *string `json:"revision"`
}

type GlusterfsVolume

type GlusterfsVolume struct {
	EndpointsName string `json:"endpoints"`
	Path          string `json:"path"`
	ReadOnly      *bool  `json:"readOnly"`
}

type HTTPGet

type HTTPGet struct {
	Host       *string       `json:"host"`
	Path       *string       `json:"path"`
	Scheme     *string       `json:"scheme" default:"HTTP" enum:"HTTP,HTTPS"`
	Port       *string       `json:"port" format:"port"`
	HTTPHeader *[]HTTPHeader `json:"httpHeaders"`
}

type HTTPHeader

type HTTPHeader struct {
	Name  *string `json:"name"`
	Value *string `json:"value"`
}

type Handler

type Handler struct {
	Exec      *Exec      `json:"exec"`
	HTTPGet   *HTTPGet   `json:"httpGet"`
	TCPSocket *TCPSocket `json:"tcpSocket"`
}

type HostAlias

type HostAlias struct {
	IP        string   `json:"ip" format:"ip"`
	Hostnames []string `json:"hostnames"`
}

type HostPathVolume

type HostPathVolume struct {
	Path *string `json:"path"`
	Type *string `json:"type" enum:",DirectoryOrCreate,Directory,FileOrCreate,File,Socket,CharDevice,BlockDevice"`
}

type ISCSIVolume

type ISCSIVolume struct {
	IQN            string  `json:"iqn"`
	TargetPortal   string  `json:"targetPortal"`
	ISCSIInterface *string `json:"iscsiInterface" default:"default"`
	LUN            *int64  `json:"lun" format:"int32-cast"`
	FSType         *string `json:"fsType"`
	ReadOnly       *bool   `json:"readOnly"`
}

type KeyPath

type KeyPath struct {
	Key  *string `json:"key"`
	Path *string `json:"path" format:"relative-path"`
	Mode *string `json:"mode" format:"mode"`
}

type KeyRef

type KeyRef struct {
	Key      *string `json:"key"`
	Name     *string `json:"name"`
	Optional *bool   `json:"optional"`
}

type Lifecycle

type Lifecycle struct {
	PostStart *Handler `json:"postStart"`
	PreStop   *Handler `json:"preStop"`
}

type LocalSecretRef

type LocalSecretRef struct {
	Name      *string `json:"name"`
	Namespace *string `json:"-" computed:"true"`
}

type LocalVolume

type LocalVolume struct {
	Path *string `json:"path"`
}

type Metadata

type Metadata struct {
	Annotations  *map[string]string `json:"annotations"`
	Labels       *map[string]string `json:"labels"`
	Name         *string            `json:"name" computed:"true"`
	GenerateName *string            `json:"generateName"`
	Namespace    *string            `json:"namespace"`
}

type Mount

type Mount struct {
	MountPath        string  `json:"mountPath"`
	Name             string  `json:"name"`
	ReadOnly         *bool   `json:"readOnly"`
	SubPath          *string `json:"subPath"`
	SubPathExpr      *string `json:"subPathExpr"`
	MountPropagation *string `json:"mountPropagation" default:"None" enum:"None,HostToContainer,Bidirectional"`
}

type NFSVolume

type NFSVolume struct {
	Path     string `json:"path"`
	Server   string `json:"server"`
	ReadOnly *bool  `json:"readOnly"`
}

type NamedReference

type NamedReference struct {
	Name string `json:"name"`
}

type NodeAffinity

type NodeAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution  *NodeSelector              `json:"requiredDuringSchedulingIgnoredDuringExecution"`
	PreferredDuringSchedulingIgnoredDuringExecution *[]PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution"`
}

type NodeExpression

type NodeExpression struct {
	Key      *string   `json:"key"`
	Operator *string   `json:"operator" enum:"In,NotIn,Exists,DoesNotExist,Gt,Lt"`
	Values   *[]string `json:"values" set:"true"`
}

type NodeField

type NodeField struct {
	Key      string    `json:"key"`
	Operator string    `json:"operator"`
	Values   *[]string `json:"values" set:"true"`
}

type NodeSelector

type NodeSelector struct {
	NodeSelectorTerm *[]NodeTerm `json:"nodeSelectorTerms"`
}

type NodeTerm

type NodeTerm struct {
	MatchExpressions *[]NodeExpression `json:"matchExpressions"`
	MatchFields      *[]NodeField      `json:"matchFields" replace:"true"`
}

type PersistentVolumeClaimVolume

type PersistentVolumeClaimVolume struct {
	ClaimName *string `json:"claimName"`
	ReadOnly  *bool   `json:"readOnly"`
}

type PhotonPersistentDiskVolume

type PhotonPersistentDiskVolume struct {
	PDID   string  `json:"pdID"`
	FSType *string `json:"fsType"`
}

type PodAffinity

type PodAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution  *[]PodAffinityTerm         `json:"requiredDuringSchedulingIgnoredDuringExecution"`
	PreferredDuringSchedulingIgnoredDuringExecution *[]WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution"`
}

type PodAffinityTerm

type PodAffinityTerm struct {
	LabelSelector     *Selector `json:"labelSelector"`
	NamespaceSelector *Selector `json:"namespaceSelector"`
	Namespaces        *[]string `json:"namespaces" set:"true"`
	TopologyKey       string    `json:"topologyKey"`
}

type PodOS

type PodOS struct {
	Name string `json:"name" enum:"linux,windows"`
}

type PodSecurityContext

type PodSecurityContext struct {
	FSGroup             *string         `json:"fsGroup" format:"int64"`
	RunAsGroup          *string         `json:"runAsGroup" format:"int64"`
	RunAsNonRoot        *bool           `json:"runAsNonRoot"`
	RunAsUser           *string         `json:"runAsUser" format:"int64"`
	SeccompProfile      *SeccompProfile `json:"seccompProfile"`
	SELinuxOptions      *SELinuxOptions `json:"seLinuxOptions"`
	FSGroupChangePolicy *string         `json:"fsGroupChangePolicy" enum:"Always,OnRootMismatch" omit:"true"`
	SupplementalGroups  *[]int64        `json:"supplementalGroups" set:"true"`
	WindowsOptions      *WindowsOptions `json:"windowsOptions"`
	Sysctl              *[]Sysctl       `json:"sysctls"`
}

type PodSpec

type PodSpec struct {
	ActiveDeadlineSeconds         *int64                      `json:"activeDeadlineSeconds" min:"1" omit:"true"`
	AutomountServiceAccountToken  *bool                       `json:"automountServiceAccountToken" default:"true"`
	DNSPolicy                     *string                     `json:"dnsPolicy" default:"ClusterFirst" enum:"ClusterFirst,ClusterFirstWithHostNet,Default,None"`
	EnableServiceLinks            *bool                       `json:"enableServiceLinks" default:"true"`
	HostIPC                       *bool                       `json:"hostIPC"`
	HostNetwork                   *bool                       `json:"hostNetwork"`
	HostPID                       *bool                       `json:"hostPID"`
	Hostname                      *string                     `json:"hostname" computed:"true"`
	NodeName                      *string                     `json:"nodeName" computed:"true"`
	NodeSelector                  *map[string]string          `json:"nodeSelector"`
	RuntimeClassName              *string                     `json:"runtimeClassName" omit:"true"`
	PriorityClassName             *string                     `json:"priorityClassName"`
	RestartPolicy                 *string                     `json:"restartPolicy" default:"Always" enum:"Always"`
	SchedulerName                 *string                     `json:"schedulerName" computed:"true"`
	ServiceAccountName            *string                     `json:"serviceAccountName" computed:"true"`
	ShareProcessNamespace         *bool                       `json:"shareProcessNamespace"`
	Subdomain                     *string                     `json:"subdomain"`
	TerminationGracePeriodSeconds *int64                      `json:"terminationGracePeriodSeconds" default:"30" min:"0"`
	Container                     *[]Container                `json:"containers"`
	InitContainer                 *[]Container                `json:"initContainers"`
	ReadinessGate                 *[]ReadinessGate            `json:"readinessGates" computed:"true"`
	ImagePullSecrets              *[]NamedReference           `json:"imagePullSecrets" computed:"true"`
	HostAliases                   *[]HostAlias                `json:"hostAliases"`
	DNSConfig                     *DNSConfig                  `json:"dnsConfig"`
	SecurityContext               *PodSecurityContext         `json:"securityContext"`
	OS                            *PodOS                      `json:"os"`
	Toleration                    *[]Toleration               `json:"tolerations"`
	TopologySpreadConstraint      *[]TopologySpreadConstraint `json:"topologySpreadConstraints"`
	Affinity                      *Affinity                   `json:"affinity"`
	Volume                        *[]Volume                   `json:"volumes"`
}

type PodTemplate

type PodTemplate struct {
	Metadata Metadata `json:"metadata"`
	Spec     PodSpec  `json:"spec"`
}

type Port

type Port struct {
	ContainerPort int64   `json:"containerPort" format:"port-number" cast:"int32"`
	HostIP        *string `json:"hostIP"`
	HostPort      *int64  `json:"hostPort" format:"port-number" cast:"int32"`
	Name          *string `json:"name" format:"port-name"`
	Protocol      *string `json:"protocol" default:"TCP" enum:"TCP,UDP"`
}

type PreferredSchedulingTerm

type PreferredSchedulingTerm struct {
	Weight     int64    `json:"weight" format:"int32-cast"`
	Preference NodeTerm `json:"preference"`
}

type Probe

type Probe struct {
	Exec                *Exec      `json:"exec"`
	HTTPGet             *HTTPGet   `json:"httpGet"`
	TCPSocket           *TCPSocket `json:"tcpSocket"`
	GRPC                *GRPC      `json:"grpc"`
	FailureThreshold    *int64     `json:"failureThreshold" default:"3" min:"1" format:"int32-cast"`
	InitialDelaySeconds *int64     `json:"initialDelaySeconds" default:"0" format:"int32-cast"`
	PeriodSeconds       *int64     `json:"periodSeconds" default:"10" min:"1" format:"int32-cast"`
	SuccessThreshold    *int64     `json:"successThreshold" default:"1" min:"1" format:"int32-cast"`
	TimeoutSeconds      *int64     `json:"timeoutSeconds" default:"1" min:"1" format:"int32-cast"`
}

type ProjectedDownwardItem

type ProjectedDownwardItem struct {
	FieldRef         *FieldRef            `json:"fieldRef"`
	Path             string               `json:"path" format:"relative-path"`
	Mode             *string              `json:"mode" format:"mode"`
	ResourceFieldRef *DownwardResourceRef `json:"resourceFieldRef"`
}

type ProjectedVolume

type ProjectedVolume struct {
	DefaultMode *string           `json:"defaultMode" default:"0644" format:"mode"`
	Sources     []ProjectionGroup `json:"sources" min:"1"`
}

type ProjectionGroup

type ProjectionGroup struct {
	Secret              *[]SecretProjection            `json:"secret"`
	ConfigMap           *[]ConfigMapProjection         `json:"configMap"`
	DownwardAPI         *DownwardAPIProjection         `json:"downwardAPI"`
	ServiceAccountToken *ServiceAccountTokenProjection `json:"serviceAccountToken"`
}

type QuobyteVolume

type QuobyteVolume struct {
	Registry string  `json:"registry"`
	Volume   string  `json:"volume"`
	Group    *string `json:"group"`
	User     *string `json:"user"`
	ReadOnly *bool   `json:"readOnly"`
}

type RBDVolume

type RBDVolume struct {
	CephMonitors []string        `json:"monitors" set:"true"`
	RBDImage     string          `json:"image"`
	FSType       *string         `json:"fsType"`
	Keyring      *string         `json:"keyring" computed:"true"`
	RadosUser    *string         `json:"user" default:"admin"`
	RBDPool      *string         `json:"pool" default:"rbd"`
	ReadOnly     *bool           `json:"readOnly"`
	SecretRef    *LocalSecretRef `json:"secretRef"`
}

type ReadinessGate

type ReadinessGate struct {
	ConditionType string `json:"conditionType"`
}

type ResourceRef

type ResourceRef struct {
	ContainerName *string `json:"containerName"`
	Divisor       *string `json:"divisor" default:"1" format:"quantity"`
	Resource      string  `json:"resource"`
}

type Resources

type Resources struct {
	Limits   *map[string]string `json:"limits" format:"quantities" computed:"true" replace:"claim"`
	Requests *map[string]string `json:"requests" format:"quantities" computed:"true"`
}

type RollingUpdate

type RollingUpdate struct {
	MaxSurge       *string `json:"maxSurge" default:"25%" format:"threshold"`
	MaxUnavailable *string `json:"maxUnavailable" default:"25%" format:"threshold"`
}

type RolloutRestartAction added in v0.2.0

type RolloutRestartAction struct {
	Kind string
	Name string
	// Namespace defaults to the configured kubeconfig or library namespace.
	Namespace *string
	// ExpectedUID guards against restarting a replacement object.
	ExpectedUID string
	// RestartAt is an explicit RFC3339 invocation timestamp, normalized to UTC.
	RestartAt string
	// WaitForRollout defaults true. False returns after the template change and
	// permits OnDelete staging. Paused Deployments are rejected in either mode.
	WaitForRollout *bool
	// Timeout bounds Kubernetes HTTP requests and polling; defaults to 10m.
	Timeout *string
}

RolloutRestartAction changes the standard pod-template restart annotation on one Deployment, StatefulSet or DaemonSet. Repeating the same timestamp does not make another change; a newer live timestamp supersedes an older request. A conflicting write fails the attempt. Retrying the same timestamp can recognize an accepted change and resume observation. Removing the action does not undo it.

Leave kubectl.kubernetes.io/restartedAt unconfigured in the typed resource so its updates preserve the marker. Explicit resource configuration retains authority over that value. Changing only @trigger does not request a new restart.

StatefulSet partitions and starting ordinals limit which replicas update. Completion can cover zero replicas or a subset, without claiming that every Pod restarted. Outputs describe the last successful invocation on Skip.

func (RolloutRestartAction) Constraints added in v0.2.0

func (a RolloutRestartAction) Constraints() []constraint.Constraint

func (*RolloutRestartAction) Run added in v0.2.0

type RolloutRestartActionOutput added in v0.2.0

type RolloutRestartActionOutput struct {
	Server           string
	APIVersion       string
	Kind             string
	Name             string
	Namespace        string
	UID              string
	RestartAt        string
	Generation       int64
	Waited           bool
	Strategy         string
	Partition        *int64
	SelectedReplicas *int64
}

type RolloutStatusAction added in v0.2.0

type RolloutStatusAction struct {
	Kind string
	Name string
	// Namespace defaults to the configured kubeconfig or library namespace.
	Namespace *string
	// ExpectedUID optionally constrains the first observed object.
	ExpectedUID *string
	// ExpectedGeneration optionally constrains the first generation; accepts
	// positive integers through 9007199254740991 for exact JSON decoding.
	ExpectedGeneration *int64
	// Timeout bounds Kubernetes HTTP requests and polling; defaults to 10m.
	Timeout *string
}

RolloutStatusAction observes one Deployment, StatefulSet or DaemonSet without changing it. It pins the first UID and generation; deletion, replacement, termination or a newer generation fails instead of following another rollout. Paused Deployments and OnDelete strategies are rejected.

StatefulSet partition and starting ordinal limit which replicas must update. Zero eligible replicas or zero DaemonSet nodes can complete without running Pods. This action does not replace the waits of resource create or update operations.

Unchanged actions can skip and retain historical outputs. Use @trigger or an always trigger to request another observation. Planning does not wait.

func (RolloutStatusAction) Constraints added in v0.2.0

func (a RolloutStatusAction) Constraints() []constraint.Constraint

func (*RolloutStatusAction) Run added in v0.2.0

type RolloutStatusActionOutput added in v0.2.0

type RolloutStatusActionOutput struct {
	Server             string
	APIVersion         string
	Kind               string
	Name               string
	Namespace          string
	UID                string
	Generation         int64
	ObservedGeneration int64
}

type SELinuxOptions

type SELinuxOptions struct {
	Level *string `json:"level"`
	Role  *string `json:"role"`
	Type  *string `json:"type"`
	User  *string `json:"user"`
}

type ScaleAction added in v0.2.0

type ScaleAction struct {
	Kind        string
	Name        string
	Replicas    int32
	Namespace   *string
	ExpectedUID *string
	Timeout     *string
}

ScaleAction sets desired replicas and returns when the API accepts the update. Skip retains the last successful output. Removing the action does not undo it.

func (ScaleAction) Constraints added in v0.2.0

func (a ScaleAction) Constraints() []constraint.Constraint

func (*ScaleAction) Run added in v0.2.0

func (a *ScaleAction) Run(
	ctx context.Context, c *config.Configuration,
) (out *ScaleActionOutput, err error)

type ScaleActionOutput added in v0.2.0

type ScaleActionOutput struct {
	Server          string
	APIVersion      string
	Kind            string
	Name            string
	Namespace       string
	UID             string
	ResourceVersion string
	Replicas        int32
}

type SeccompProfile

type SeccompProfile struct {
	Type             *string `json:"type" default:"Unconfined" enum:"Localhost,RuntimeDefault,Unconfined"`
	LocalhostProfile *string `json:"localhostProfile"`
}

type SecretProjection

type SecretProjection struct {
	Name     *string    `json:"name"`
	Items    *[]KeyPath `json:"items"`
	Optional *bool      `json:"optional"`
}

type SecretVolume

type SecretVolume struct {
	SecretName  *string    `json:"secretName"`
	Optional    *bool      `json:"optional"`
	DefaultMode *string    `json:"defaultMode" default:"0644" format:"mode"`
	Items       *[]KeyPath `json:"items"`
}

type Selector

type Selector struct {
	MatchLabels      *map[string]string     `json:"matchLabels"`
	MatchExpressions *[]SelectorRequirement `json:"matchExpressions"`
}

type SelectorRequirement

type SelectorRequirement struct {
	Key      *string   `json:"key"`
	Operator *string   `json:"operator"`
	Values   *[]string `json:"values" set:"true"`
}

type ServiceAccountTokenProjection

type ServiceAccountTokenProjection struct {
	Audience          *string `json:"audience"`
	ExpirationSeconds *int64  `json:"expirationSeconds" default:"3600" min:"600"`
	Path              string  `json:"path"`
}

type StatefulSetClaimRetentionPolicy

type StatefulSetClaimRetentionPolicy struct {
	WhenDeleted *string `json:"whenDeleted" default:"Retain"`
	WhenScaled  *string `json:"whenScaled" default:"Retain"`
}

StatefulSetClaimRetentionPolicy defaults both actions to Retain when configured. Omission retains observed actions during updates.

type StatefulSetClaimTemplate

type StatefulSetClaimTemplate struct {
	Metadata Metadata  `json:"metadata"`
	Spec     ClaimSpec `json:"spec"`
}

StatefulSetClaimTemplate has full metadata with namespace default default. Templates form an ordered immutable list; effective nested edits require replacement.

type StatefulSetDataSource added in v0.2.0

type StatefulSetDataSource struct{ Metadata DeploymentLookupMetadata }

func (StatefulSetDataSource) Constraints added in v0.2.0

func (r StatefulSetDataSource) Constraints() []constraint.Constraint

func (*StatefulSetDataSource) Read added in v0.2.0

type StatefulSetDataSourceOutput added in v0.2.0

type StatefulSetDataSourceOutput struct {
	Metadata DeploymentLookupMetadataOutput
	Spec     *StatefulSetLookupSpec
	Status   *StatefulSetLookupStatus
}

type StatefulSetLookupCondition added in v0.2.0

type StatefulSetLookupCondition struct {
	Type               string
	Status             string
	Reason             string
	Message            string
	LastTransitionTime *string
}

type StatefulSetLookupOrdinals added in v0.2.0

type StatefulSetLookupOrdinals struct{ Start int64 }

type StatefulSetLookupRetentionPolicy added in v0.2.0

type StatefulSetLookupRetentionPolicy struct {
	WhenDeleted string
	WhenScaled  string
}

type StatefulSetLookupRollingUpdate added in v0.2.0

type StatefulSetLookupRollingUpdate struct {
	Partition      *int64
	MaxUnavailable *string
}

type StatefulSetLookupSpec added in v0.2.0

type StatefulSetLookupSpec struct {
	Replicas                             *int64
	RevisionHistoryLimit                 *int64
	PodManagementPolicy                  string
	ServiceName                          string
	MinReadySeconds                      int64
	Selector                             *Selector
	Template                             StatefulSetPodTemplate
	UpdateStrategy                       StatefulSetLookupUpdateStrategy
	VolumeClaimTemplate                  []StatefulSetClaimTemplate
	PersistentVolumeClaimRetentionPolicy *StatefulSetLookupRetentionPolicy
	Ordinals                             *StatefulSetLookupOrdinals
}

type StatefulSetLookupStatus added in v0.2.0

type StatefulSetLookupStatus struct {
	ObservedGeneration int64
	Replicas           int64
	ReadyReplicas      int64
	CurrentReplicas    int64
	UpdatedReplicas    int64
	AvailableReplicas  int64
	CurrentRevision    string
	UpdateRevision     string
	CollisionCount     *int64
	Conditions         []StatefulSetLookupCondition
}

type StatefulSetLookupUpdateStrategy added in v0.2.0

type StatefulSetLookupUpdateStrategy struct {
	Type          string
	RollingUpdate *StatefulSetLookupRollingUpdate
}

type StatefulSetPodSpec

type StatefulSetPodSpec struct {
	ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds" omit:"true"`

	AutomountServiceAccountToken *bool `json:"automountServiceAccountToken" default:"true"`

	DNSPolicy *string `json:"dnsPolicy" default:"ClusterFirst"`

	EnableServiceLinks *bool `json:"enableServiceLinks" default:"true"`

	HostIPC           *bool              `json:"hostIPC"`
	HostNetwork       *bool              `json:"hostNetwork"`
	HostPID           *bool              `json:"hostPID"`
	Hostname          *string            `json:"hostname" computed:"true"`
	NodeName          *string            `json:"nodeName" computed:"true"`
	NodeSelector      *map[string]string `json:"nodeSelector"`
	RuntimeClassName  *string            `json:"runtimeClassName" omit:"true"`
	PriorityClassName *string            `json:"priorityClassName"`
	RestartPolicy     *string            `json:"restartPolicy" default:"Always"`
	SchedulerName     *string            `json:"schedulerName" computed:"true"`

	ServiceAccountName *string `json:"serviceAccountName" computed:"true"`

	ShareProcessNamespace *bool   `json:"shareProcessNamespace"`
	Subdomain             *string `json:"subdomain"`

	TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds" default:"30"`

	Container                *[]Container                `json:"containers"`
	InitContainer            *[]Container                `json:"initContainers"`
	ReadinessGate            *[]ReadinessGate            `json:"readinessGates" computed:"true"`
	ImagePullSecrets         *[]NamedReference           `json:"imagePullSecrets" computed:"true"`
	HostAliases              *[]HostAlias                `json:"hostAliases"`
	DNSConfig                *DNSConfig                  `json:"dnsConfig"`
	SecurityContext          *PodSecurityContext         `json:"securityContext"`
	OS                       *PodOS                      `json:"os"`
	Toleration               *[]Toleration               `json:"tolerations"`
	TopologySpreadConstraint *[]TopologySpreadConstraint `json:"topologySpreadConstraints"`
	Affinity                 *Affinity                   `json:"affinity"`
	Volume                   *[]Volume                   `json:"volumes"`
}

StatefulSetPodSpec defines supported pod settings. Kubernetes validates workload compatibility, including accepted Always, OnFailure and Never restart policies.

type StatefulSetPodTemplate

type StatefulSetPodTemplate struct {
	Metadata Metadata            `json:"metadata"`
	Spec     *StatefulSetPodSpec `json:"spec"`
}

StatefulSetPodTemplate requires metadata and permits an omitted pod spec.

type StatefulSetResource

type StatefulSetResource struct {

	// Metadata requires exactly one nonempty name or generate-name. Namespace defaults to
	// default. Identity changes require replacement.
	Metadata Metadata
	// Spec requires selector, service-name and template with metadata. Template spec is
	// optional; Kubernetes checks containers, selector compatibility and workload settings.
	// Policy, revision history, selector, service name, claim templates and inherited pod
	// identity fields require replacement for effective changes. Omitted computed members
	// retain remote values; removing optional-only immutable fields requires replacement.
	// Replicas is nullable signed decimal text with no default. Create requires int32 text;
	// updates send the parsed integer to Kubernetes. Revision history compares original integers
	// before the create int32 cast. Omitted revision history sends zero
	// on create; explicit values must be positive. Min-ready-seconds defaults to zero and
	// is ignored during create without claim templates.
	// Claim templates are an ordered immutable list with full metadata, default namespace
	// default, access-mode sets and quantity resources. Empty storage-class-name is omitted.
	// An omitted strategy uses API defaults and is excluded from outputs. A present strategy
	// defaults to RollingUpdate; a present rolling-update defaults partition to zero. OnDelete
	// and negative partitions reach API validation. Partition casts to int32 on create;
	// updates and equality use the original integer. Removing the configured strategy fails.
	// A present retention policy defaults both actions to Retain; omission retains observation.
	// Pod defaults include restart Always, DNS ClusterFirst, automount and service links true,
	// grace 30 seconds, and host/process flags false. OnFailure and Never are accepted for
	// API validation. Containers default termination path /dev/termination-log, boolean flags
	// false and mount propagation None, port protocol TCP, probe thresholds 3/1, period 10
	// and timeout 1. Image pull policy,
	// resources, termination policy and container restart policy retain observation on omission.
	// Present security blocks default allow-privilege-escalation true, privileged and read-only
	// root false, seccomp Unconfined and Windows host-process false. Volume modes default 0644;
	// projected token expiration defaults 3600. Local and ceph-fs volume settings and local
	// secret namespaces are accepted but ineffective. Azure File secret namespace still
	// requires replacement. Quantities compare numerically; sets ignore order and duplicates,
	// while lists retain order. Explicit zero, false and empty computed collections are kept.
	Spec StatefulSetSpec
	// WaitForRollout defaults to true for create and every update, including metadata changes.
	// Rollout first requires ready replicas to equal desired replicas, then RollingUpdate and
	// a nonzero observed generation at least equal to generation. Rolling partitions use
	// updated replicas; without a rolling object completion uses revision equality. False
	// skips polling and still performs the final GET. API errors stop polling immediately.
	WaitForRollout *bool
	// CreateTimeout is a positive Go duration, default 10m, shared by POST, wait and final GET.
	CreateTimeout *string
	// ReadTimeout is a positive Go duration, default 10m, for standalone reads.
	ReadTimeout *string
	// UpdateTimeout bounds the live read, PATCH, rollout wait and final GET; default 10m.
	UpdateTimeout *string
	// DeleteTimeout is a positive Go duration, default 10m, read from prior input on deletion.
	DeleteTimeout *string
	// IgnoreAnnotations filters only untracked outer read keys by regular expression.
	IgnoreAnnotations *[]string
	// IgnoreLabels filters only untracked outer read keys by regular expression.
	IgnoreLabels *[]string
	// contains filtered or unexported fields
}

StatefulSetResource manages one apps/v1 StatefulSet. It saves server, namespace, name and UID, and uses current credentials for that saved identity. Create and update wait for rollout by default. API or wait errors fail the operation; a completed write can remain remote after failure. This resource does not manage Services, Pods or PVCs.

func (StatefulSetResource) Constraints

func (r StatefulSetResource) Constraints() []constraint.Constraint

func (*StatefulSetResource) Create

func (*StatefulSetResource) Delete

func (r *StatefulSetResource) Delete(
	ctx context.Context, c *config.Configuration, p statefulSetPrior,
) error

func (*StatefulSetResource) Read

func (r *StatefulSetResource) Read(
	ctx context.Context, c *config.Configuration, p statefulSetPrior,
) (*StatefulSetResourceOutput, error)

func (*StatefulSetResource) Update

func (r *StatefulSetResource) Update(
	ctx context.Context, c *config.Configuration, p statefulSetPrior,
) (*StatefulSetResourceOutput, error)

type StatefulSetResourceOutput

type StatefulSetResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Name       string
	Namespace  string
	UID        string
	Metadata   Metadata
	Spec       StatefulSetSpec
}

StatefulSetResourceOutput contains normalized supported values and stable identity. Status and volatile metadata are excluded from drift comparison.

type StatefulSetRollingUpdate

type StatefulSetRollingUpdate struct {
	Partition *int64 `json:"partition" default:"0"`
}

StatefulSetRollingUpdate defaults partition to zero. Create casts the signed integer to int32; updates and equality preserve the original integer for API validation.

type StatefulSetSpec

type StatefulSetSpec struct {
	PodManagementPolicy *string `json:"podManagementPolicy" computed:"true"`

	Replicas *string `json:"replicas" computed:"true" format:"int64"`

	RevisionHistoryLimit *int64 `json:"revisionHistoryLimit" computed:"true"`

	Selector            Selector                    `json:"selector"`
	ServiceName         string                      `json:"serviceName"`
	Template            StatefulSetPodTemplate      `json:"template"`
	UpdateStrategy      *StatefulSetUpdateStrategy  `json:"updateStrategy"`
	VolumeClaimTemplate *[]StatefulSetClaimTemplate `json:"volumeClaimTemplates"`

	PersistentVolumeClaimRetentionPolicy *StatefulSetClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy" computed:"true"`

	MinReadySeconds *int64 `json:"minReadySeconds" default:"0" format:"int32-cast"`
}

StatefulSetSpec defines the supported StatefulSet values. Service, selector, policy, revision history, claim templates and inherited pod identity fields require replacement. Replicas and computed pod values retain remote values when omitted. Claim namespaces default to default. An omitted revision history sends zero during create. Without claim templates create leaves min-ready-seconds at zero. An omitted strategy uses API defaults; a present strategy defaults to RollingUpdate and its present rolling object to partition 0. A present retention policy defaults each action to Retain. The pod spec is optional and accepts Always, OnFailure and Never; Kubernetes validates workload compatibility.

type StatefulSetUpdateStrategy

type StatefulSetUpdateStrategy struct {
	Type          *string                   `json:"type" default:"RollingUpdate"`
	RollingUpdate *StatefulSetRollingUpdate `json:"rollingUpdate"`
}

StatefulSetUpdateStrategy defaults its omitted type to RollingUpdate. Removing the entire configured strategy fails an update; omitting its type restores the default.

type Strategy

type Strategy struct {
	Type          *string        `json:"type" default:"RollingUpdate" enum:"RollingUpdate,Recreate"`
	RollingUpdate *RollingUpdate `json:"rollingUpdate" computed:"true"`
}

type Sysctl

type Sysctl struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type TCPSocket

type TCPSocket struct {
	Port string `json:"port" format:"port"`
}

type Toleration

type Toleration struct {
	Effect            *string `json:"effect" enum:"NoSchedule,PreferNoSchedule,NoExecute"`
	Key               *string `json:"key"`
	Operator          *string `json:"operator" default:"Equal" enum:"Exists,Equal"`
	TolerationSeconds *string `json:"tolerationSeconds" format:"int64"`
	Value             *string `json:"value"`
}

type TopologySpreadConstraint

type TopologySpreadConstraint struct {
	MatchLabelKeys     *[]string `json:"matchLabelKeys" set:"true"`
	MaxSkew            *int64    `json:"maxSkew" default:"1" min:"1" format:"int32-cast"`
	MinDomains         *int64    `json:"minDomains" min:"1" omit:"true" format:"int32-cast"`
	NodeAffinityPolicy *string   `json:"nodeAffinityPolicy" enum:"Honor,Ignore" omit:"true"`
	NodeTaintsPolicy   *string   `json:"nodeTaintsPolicy" enum:"Honor,Ignore" omit:"true"`
	TopologyKey        *string   `json:"topologyKey"`
	WhenUnsatisfiable  *string   `json:"whenUnsatisfiable" default:"DoNotSchedule" enum:"DoNotSchedule,ScheduleAnyway"`
	LabelSelector      *Selector `json:"labelSelector"`
}

type Volume

type Volume struct {
	Name                  *string                      `json:"name"`
	ConfigMap             *ConfigMapVolume             `json:"configMap"`
	Secret                *SecretVolume                `json:"secret"`
	DownwardAPI           *DownwardAPIVolume           `json:"downwardAPI"`
	EmptyDir              *EmptyDirVolume              `json:"emptyDir"`
	GitRepo               *GitRepoVolume               `json:"gitRepo"`
	PersistentVolumeClaim *PersistentVolumeClaimVolume `json:"persistentVolumeClaim"`
	Projected             *ProjectedVolume             `json:"projected"`
	CSI                   *CSIVolume                   `json:"csi"`
	Ephemeral             *EphemeralVolume             `json:"ephemeral"`
	HostPath              *HostPathVolume              `json:"hostPath"`
	AWSElasticBlockStore  *AWSElasticBlockStoreVolume  `json:"awsElasticBlockStore"`
	AzureDisk             *AzureDiskVolume             `json:"azureDisk"`
	AzureFile             *AzureFileVolume             `json:"azureFile"`
	Cinder                *CinderVolume                `json:"cinder"`
	FC                    *FCVolume                    `json:"fc"`
	FlexVolume            *FlexVolume                  `json:"flexVolume"`
	Flocker               *FlockerVolume               `json:"flocker"`
	GCEPersistentDisk     *GCEPersistentDiskVolume     `json:"gcePersistentDisk"`
	Glusterfs             *GlusterfsVolume             `json:"glusterfs"`
	ISCSI                 *ISCSIVolume                 `json:"iscsi"`
	NFS                   *NFSVolume                   `json:"nfs"`
	PhotonPersistentDisk  *PhotonPersistentDiskVolume  `json:"photonPersistentDisk"`
	Quobyte               *QuobyteVolume               `json:"quobyte"`
	RBD                   *RBDVolume                   `json:"rbd"`
	VsphereVolume         *VsphereVolume               `json:"vsphereVolume"`
	Local                 *LocalVolume                 `json:"-"`
	CephFS                *CephFSVolume                `json:"-"`
}

type VolumeClaimTemplate

type VolumeClaimTemplate struct {
	Metadata *ClaimMetadata `json:"metadata"`
	Spec     ClaimSpec      `json:"spec"`
}

type VolumeDevice

type VolumeDevice struct {
	DevicePath string `json:"devicePath"`
	Name       string `json:"name"`
}

type VsphereVolume

type VsphereVolume struct {
	VolumePath string  `json:"volumePath"`
	FSType     *string `json:"fsType"`
}

type WeightedPodAffinityTerm

type WeightedPodAffinityTerm struct {
	Weight          int64           `json:"weight" format:"int32-cast"`
	PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm"`
}

type WindowsOptions

type WindowsOptions struct {
	GMSACredentialSpec     *string `json:"gmsaCredentialSpec"`
	GMSACredentialSpecName *string `json:"gmsaCredentialSpecName"`
	HostProcess            *bool   `json:"hostProcess"`
	RunAsUsername          *string `json:"runAsUserName"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL