Documentation
¶
Index ¶
- func StatefulSetRegistration[In StatefulSetResource, Out *StatefulSetResourceOutput, P any](base runtime.ResourceRegistration, ...) statefulSetRegistration[P]
- type AWSElasticBlockStoreVolume
- type Affinity
- type AzureDiskVolume
- type AzureFileVolume
- type CSILocalSecretRef
- type CSIVolume
- type Capabilities
- type CephFSVolume
- type CinderVolume
- type ClaimMetadata
- type ClaimResources
- type ClaimSpec
- type ConfigMapProjection
- type ConfigMapVolume
- type Container
- type ContainerSecurityContext
- type DNSConfig
- type DNSOption
- type DaemonSetDataSource
- type DaemonSetDataSourceOutput
- type DaemonSetLookupCondition
- type DaemonSetLookupRollingUpdate
- type DaemonSetLookupSpec
- type DaemonSetLookupStatus
- type DaemonSetLookupUpdateStrategy
- type DaemonSetPodTemplate
- type DaemonSetResource
- func (r DaemonSetResource) Constraints() []constraint.Constraint
- func (r *DaemonSetResource) Create(ctx context.Context, c *config.Configuration) (*DaemonSetResourceOutput, error)
- func (r *DaemonSetResource) Delete(ctx context.Context, c *config.Configuration, p daemonSetPrior) error
- func (r *DaemonSetResource) Read(ctx context.Context, c *config.Configuration, p daemonSetPrior) (*DaemonSetResourceOutput, error)
- func (r *DaemonSetResource) ResourceDefinition() ...
- func (r *DaemonSetResource) Update(ctx context.Context, c *config.Configuration, p daemonSetPrior) (*DaemonSetResourceOutput, error)
- type DaemonSetResourceOutput
- type DaemonSetRollingUpdate
- type DaemonSetSpec
- type DaemonSetStrategy
- type DeploymentDataSource
- type DeploymentDataSourceOutput
- type DeploymentLookupCondition
- type DeploymentLookupMetadata
- type DeploymentLookupMetadataOutput
- type DeploymentLookupRollingUpdate
- type DeploymentLookupSpec
- type DeploymentLookupStatus
- type DeploymentLookupStrategy
- type DeploymentResource
- func (r DeploymentResource) Constraints() []constraint.Constraint
- func (r *DeploymentResource) Create(ctx context.Context, c *config.Configuration) (*DeploymentResourceOutput, error)
- func (r *DeploymentResource) Delete(ctx context.Context, c *config.Configuration, p prior) error
- func (r *DeploymentResource) Read(ctx context.Context, c *config.Configuration, p prior) (*DeploymentResourceOutput, error)
- func (r *DeploymentResource) ResourceDefinition() ...
- func (r *DeploymentResource) Update(ctx context.Context, c *config.Configuration, p prior) (*DeploymentResourceOutput, error)
- type DeploymentResourceOutput
- type DeploymentSpec
- type DownwardAPIProjection
- type DownwardAPIVolume
- type DownwardItem
- type DownwardResourceRef
- type EmptyDirVolume
- type Env
- type EnvFrom
- type EnvFromRef
- type EnvValueFrom
- type EphemeralVolume
- type Exec
- type FCVolume
- type FieldRef
- type FlexVolume
- type FlockerVolume
- type GCEPersistentDiskVolume
- type GRPC
- type GitRepoVolume
- type GlusterfsVolume
- type HTTPGet
- type HTTPHeader
- type Handler
- type HostAlias
- type HostPathVolume
- type ISCSIVolume
- type KeyPath
- type KeyRef
- type Lifecycle
- type LocalSecretRef
- type LocalVolume
- type Metadata
- type Mount
- type NFSVolume
- type NamedReference
- type NodeAffinity
- type NodeExpression
- type NodeField
- type NodeSelector
- type NodeTerm
- type PersistentVolumeClaimVolume
- type PhotonPersistentDiskVolume
- type PodAffinity
- type PodAffinityTerm
- type PodOS
- type PodSecurityContext
- type PodSpec
- type PodTemplate
- type Port
- type PreferredSchedulingTerm
- type Probe
- type ProjectedDownwardItem
- type ProjectedVolume
- type ProjectionGroup
- type QuobyteVolume
- type RBDVolume
- type ReadinessGate
- type ResourceRef
- type Resources
- type RollingUpdate
- type RolloutRestartAction
- type RolloutRestartActionOutput
- type RolloutStatusAction
- type RolloutStatusActionOutput
- type SELinuxOptions
- type ScaleAction
- type ScaleActionOutput
- type SeccompProfile
- type SecretProjection
- type SecretVolume
- type Selector
- type SelectorRequirement
- type ServiceAccountTokenProjection
- type StatefulSetClaimRetentionPolicy
- type StatefulSetClaimTemplate
- type StatefulSetDataSource
- type StatefulSetDataSourceOutput
- type StatefulSetLookupCondition
- type StatefulSetLookupOrdinals
- type StatefulSetLookupRetentionPolicy
- type StatefulSetLookupRollingUpdate
- type StatefulSetLookupSpec
- type StatefulSetLookupStatus
- type StatefulSetLookupUpdateStrategy
- type StatefulSetPodSpec
- type StatefulSetPodTemplate
- type StatefulSetResource
- func (r StatefulSetResource) Constraints() []constraint.Constraint
- func (r *StatefulSetResource) Create(ctx context.Context, c *config.Configuration) (*StatefulSetResourceOutput, error)
- func (r *StatefulSetResource) Delete(ctx context.Context, c *config.Configuration, p statefulSetPrior) error
- func (r *StatefulSetResource) Read(ctx context.Context, c *config.Configuration, p statefulSetPrior) (*StatefulSetResourceOutput, error)
- func (r *StatefulSetResource) ResourceDefinition() ...
- func (r *StatefulSetResource) Update(ctx context.Context, c *config.Configuration, p statefulSetPrior) (*StatefulSetResourceOutput, error)
- type StatefulSetResourceOutput
- type StatefulSetRollingUpdate
- type StatefulSetSpec
- type StatefulSetUpdateStrategy
- type Strategy
- type Sysctl
- type TCPSocket
- type Toleration
- type TopologySpreadConstraint
- type Volume
- type VolumeClaimTemplate
- type VolumeDevice
- type VsphereVolume
- type WeightedPodAffinityTerm
- type WindowsOptions
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 Affinity ¶
type Affinity struct {
NodeAffinity *NodeAffinity `json:"nodeAffinity"`
PodAffinity *PodAffinity `json:"podAffinity"`
PodAntiAffinity *PodAffinity `json:"podAntiAffinity"`
}
type AzureDiskVolume ¶
type AzureFileVolume ¶
type CSILocalSecretRef ¶
type CSILocalSecretRef struct {
Name *string `json:"name"`
}
type Capabilities ¶
type CephFSVolume ¶
type CinderVolume ¶
type ClaimMetadata ¶
type ClaimResources ¶
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 ConfigMapVolume ¶
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 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
func (r *DaemonSetDataSource) Read( ctx context.Context, c *config.Configuration, ) (*DaemonSetDataSourceOutput, error)
type DaemonSetDataSourceOutput ¶ added in v0.2.0
type DaemonSetDataSourceOutput struct {
Metadata DeploymentLookupMetadataOutput
Spec *DaemonSetLookupSpec
Status *DaemonSetLookupStatus
}
type DaemonSetLookupCondition ¶ added in v0.2.0
type DaemonSetLookupRollingUpdate ¶ added in v0.2.0
type DaemonSetLookupRollingUpdate struct {
MaxSurge *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 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 (r *DaemonSetResource) Create( ctx context.Context, c *config.Configuration, ) (*DaemonSetResourceOutput, error)
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) ResourceDefinition ¶
func (r *DaemonSetResource) ResourceDefinition() runtime.ResourceDefinition[ DaemonSetResource, *DaemonSetResourceOutput, *config.Configuration, ]
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"`
}
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
func (r *DeploymentDataSource) Read( ctx context.Context, c *config.Configuration, ) (*DeploymentDataSourceOutput, error)
type DeploymentDataSourceOutput ¶ added in v0.2.0
type DeploymentDataSourceOutput struct {
Metadata DeploymentLookupMetadataOutput
Spec *DeploymentLookupSpec
Status *DeploymentLookupStatus
}
type DeploymentLookupCondition ¶ added in v0.2.0
type DeploymentLookupMetadata ¶ added in v0.2.0
type DeploymentLookupMetadataOutput ¶ added in v0.2.0
type DeploymentLookupRollingUpdate ¶ added in v0.2.0
type DeploymentLookupRollingUpdate struct {
MaxSurge *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 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 (r *DeploymentResource) Create( ctx context.Context, c *config.Configuration, ) (*DeploymentResourceOutput, error)
func (*DeploymentResource) Delete ¶
func (r *DeploymentResource) Delete(ctx context.Context, c *config.Configuration, p prior) error
func (*DeploymentResource) Read ¶
func (r *DeploymentResource) Read( ctx context.Context, c *config.Configuration, p prior, ) (*DeploymentResourceOutput, error)
func (*DeploymentResource) ResourceDefinition ¶
func (r *DeploymentResource) ResourceDefinition() runtime.ResourceDefinition[ DeploymentResource, *DeploymentResourceOutput, *config.Configuration, ]
func (*DeploymentResource) Update ¶
func (r *DeploymentResource) Update( ctx context.Context, c *config.Configuration, p prior, ) (*DeploymentResourceOutput, error)
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 EmptyDirVolume ¶
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 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 FlexVolume ¶
type FlockerVolume ¶
type GCEPersistentDiskVolume ¶
type GitRepoVolume ¶
type GlusterfsVolume ¶
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 HostPathVolume ¶
type ISCSIVolume ¶
type LocalSecretRef ¶
type LocalVolume ¶
type LocalVolume struct {
Path *string `json:"path"`
}
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 NodeSelector ¶
type NodeSelector struct {
NodeSelectorTerm *[]NodeTerm `json:"nodeSelectorTerms"`
}
type NodeTerm ¶
type NodeTerm struct {
MatchExpressions *[]NodeExpression `json:"matchExpressions"`
MatchFields *[]NodeField `json:"matchFields" replace:"true"`
}
type PodAffinity ¶
type PodAffinity struct {
RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution"`
PreferredDuringSchedulingIgnoredDuringExecution *[]WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution"`
}
type PodAffinityTerm ¶
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"`
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 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 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 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 RollingUpdate ¶
type RollingUpdate struct {
MaxSurge *string `json:"maxSurge" 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
func (a *RolloutRestartAction) Run( ctx context.Context, c *config.Configuration, ) (out *RolloutRestartActionOutput, err error)
type RolloutRestartActionOutput ¶ added in v0.2.0
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
func (a *RolloutStatusAction) Run( ctx context.Context, c *config.Configuration, ) (out *RolloutStatusActionOutput, err error)
type RolloutStatusActionOutput ¶ added in v0.2.0
type SELinuxOptions ¶
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 SeccompProfile ¶
type SecretProjection ¶
type SecretVolume ¶
type Selector ¶
type Selector struct {
MatchLabels *map[string]string `json:"matchLabels"`
MatchExpressions *[]SelectorRequirement `json:"matchExpressions"`
}
type SelectorRequirement ¶
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
func (r *StatefulSetDataSource) Read( ctx context.Context, c *config.Configuration, ) (*StatefulSetDataSourceOutput, error)
type StatefulSetDataSourceOutput ¶ added in v0.2.0
type StatefulSetDataSourceOutput struct {
Metadata DeploymentLookupMetadataOutput
Spec *StatefulSetLookupSpec
Status *StatefulSetLookupStatus
}
type StatefulSetLookupCondition ¶ added in v0.2.0
type StatefulSetLookupOrdinals ¶ added in v0.2.0
type StatefulSetLookupOrdinals struct{ Start int64 }
type StatefulSetLookupRetentionPolicy ¶ added in v0.2.0
type StatefulSetLookupRollingUpdate ¶ added in v0.2.0
type StatefulSetLookupRollingUpdate struct {
Partition *int64
}
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 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"`
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 (r *StatefulSetResource) Create( ctx context.Context, c *config.Configuration, ) (*StatefulSetResourceOutput, error)
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) ResourceDefinition ¶
func (r *StatefulSetResource) ResourceDefinition() runtime.ResourceDefinition[ StatefulSetResource, *StatefulSetResourceOutput, *config.Configuration, ]
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 Toleration ¶
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 VsphereVolume ¶
type WeightedPodAffinityTerm ¶
type WeightedPodAffinityTerm struct {
Weight int64 `json:"weight" format:"int32-cast"`
PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm"`
}
Source Files
¶
- conversion.go
- daemon_set_conversion.go
- daemon_set_definition.go
- daemon_set_dsrc.go
- daemon_set_patch.go
- daemon_set_rsrc.go
- definition.go
- deployment_dsrc.go
- deployment_lookup_conversion.go
- deployment_rsrc.go
- models.go
- normalize.go
- rollout_annotation.go
- rollout_restart_action.go
- rollout_status.go
- rollout_status_action.go
- scale_action.go
- stateful_set_conversion.go
- stateful_set_definition.go
- stateful_set_dsrc.go
- stateful_set_lookup_conversion.go
- stateful_set_models.go
- stateful_set_registration.go
- stateful_set_rsrc.go