v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 44 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 PersistentVolumeClaimRegistration

func PersistentVolumeClaimRegistration[
	In PersistentVolumeClaimResource, Out *PersistentVolumeClaimResourceOutput, 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),
) persistentVolumeClaimRegistration[P]

PersistentVolumeClaimRegistration preserves explicit input/output types for schema extraction.

func PersistentVolumeRegistration

func PersistentVolumeRegistration[
	In PersistentVolumeResource, Out *PersistentVolumeResourceOutput, 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),
) persistentVolumeRegistration[P]

PersistentVolumeRegistration exposes schema types and uses the observed PV during planning.

func PodRegistration

func PodRegistration[In PodResource, Out *PodResourceOutput, 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),
) podRegistration[P]

PodRegistration uses saved and observed values to classify immutable changes.

func ReplicationControllerRegistration added in v0.2.0

func ReplicationControllerRegistration[
	In ReplicationControllerResource, Out *ReplicationControllerResourceOutput, 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),
) replicationControllerRegistration[P]

ReplicationControllerRegistration uses saved and observed values to classify immutable changes.

Types

type ConfigMapDataMetadata

type ConfigMapDataMetadata struct {
	Name      string
	Namespace *string
}

type ConfigMapDataMetadataOutput

type ConfigMapDataMetadataOutput struct {
	Name      string
	Namespace string
	UID       string
}

type ConfigMapDataObject

type ConfigMapDataObject struct {
	Metadata ConfigMapDataMetadata
	Data     map[string]string
}

type ConfigMapDataObjectOutput

type ConfigMapDataObjectOutput struct {
	Metadata ConfigMapDataMetadataOutput
	Data     map[string]string
}

type ConfigMapDataResource

type ConfigMapDataResource struct {
	Object       ConfigMapDataObject
	FieldManager *string
	Force        *bool
}

func (ConfigMapDataResource) Constraints

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

func (*ConfigMapDataResource) Create

func (ConfigMapDataResource) Defaults

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

func (*ConfigMapDataResource) Delete

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

func (*ConfigMapDataResource) Read

func (r *ConfigMapDataResource) Read(
	ctx context.Context, c *config.Configuration, p configMapDataPrior,
) (*ConfigMapDataResourceOutput, error)

func (*ConfigMapDataResource) Update

func (r *ConfigMapDataResource) Update(
	ctx context.Context, c *config.Configuration, p configMapDataPrior,
) (*ConfigMapDataResourceOutput, error)

type ConfigMapDataResourceOutput

type ConfigMapDataResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     ConfigMapDataObjectOutput
}

type ConfigMapDataSource

type ConfigMapDataSource struct {
	// Metadata selects only by namespace and name. Namespace defaults to default;
	// name is optional. Annotation and label maps do not select objects.
	Metadata ConfigMapLookupMetadata
	// Immutable does not affect the lookup; it is returned only for missing objects.
	Immutable *bool
}

ConfigMapDataSource reads one ConfigMap without changing it. Missing objects return lookup metadata, empty data maps, and the configured immutable value.

func (ConfigMapDataSource) Constraints

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

func (ConfigMapDataSource) Defaults

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

func (*ConfigMapDataSource) Read

type ConfigMapDataSourceOutput

type ConfigMapDataSourceOutput struct {
	Metadata ConfigMapLookupMetadataOutput
	Data     map[string]string
	// BinaryData contains standard padded-base64 encodings of remote bytes.
	BinaryData map[string]string
	Immutable  bool
}

ConfigMapDataSourceOutput contains live, unfiltered values. Changes between plan and apply require a new plan. Data and BinaryData are not sensitive.

type ConfigMapLookupMetadata

type ConfigMapLookupMetadata struct {
	Name        *string
	Namespace   *string
	Annotations *map[string]string
	Labels      *map[string]string
}

type ConfigMapLookupMetadataOutput

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

type ConfigMapMetadata

type ConfigMapMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]string
	Labels       *map[string]string
}

type ConfigMapMetadataOutput

type ConfigMapMetadataOutput struct {
	Name         string
	GenerateName string
	Namespace    string
	UID          string
	Annotations  map[string]string
	Labels       map[string]string
}

type ConfigMapObject

type ConfigMapObject struct {
	Metadata   ConfigMapMetadata
	Data       *map[string]string
	BinaryData *map[string]string
	Immutable  *bool
}

type ConfigMapObjectOutput

type ConfigMapObjectOutput struct {
	Metadata   ConfigMapMetadataOutput
	Data       map[string]string
	BinaryData map[string]string
	Immutable  bool
}

type ConfigMapResource

type ConfigMapResource struct {
	Object            ConfigMapObject
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
}

func (ConfigMapResource) Constraints

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

func (*ConfigMapResource) Create

func (*ConfigMapResource) Delete

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

func (*ConfigMapResource) Read

func (r *ConfigMapResource) Read(
	ctx context.Context, c *config.Configuration, p configMapPrior,
) (*ConfigMapResourceOutput, error)

func (*ConfigMapResource) Update

func (r *ConfigMapResource) Update(
	ctx context.Context, c *config.Configuration, p configMapPrior,
) (*ConfigMapResourceOutput, error)

type ConfigMapResourceOutput

type ConfigMapResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     ConfigMapObjectOutput
}

type CordonNodeAction added in v0.2.0

type CordonNodeAction struct {
	// Name identifies the existing cluster-scoped Node by its DNS subdomain name.
	Name string
	// ExpectedUID prevents changing a replacement Node with the same name.
	ExpectedUID string
	// Timeout bounds Kubernetes requests together and defaults to 10m.
	Timeout *string
}

CordonNodeAction marks one existing Node unschedulable. It does not evict Pods or wait for readiness. An unchanged action skips and retains its last result. Change @trigger to invoke it again. Removal does not undo the cordon.

func (CordonNodeAction) Constraints added in v0.2.0

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

func (CordonNodeAction) Defaults added in v0.2.0

func (a CordonNodeAction) Defaults() []defaults.Default

func (*CordonNodeAction) Run added in v0.2.0

type CordonNodeActionOutput added in v0.2.0

type CordonNodeActionOutput struct {
	Server          string
	APIVersion      string
	Kind            string
	Name            string
	UID             string
	ResourceVersion string
	Unschedulable   bool
}

CordonNodeActionOutput describes the last successful invocation, including after Skip.

type DefaultServiceAccountMetadata

type DefaultServiceAccountMetadata struct {
	Name        *string
	Namespace   *string
	Annotations *map[string]string
	Labels      *map[string]string
}

type DefaultServiceAccountMetadataOutput

type DefaultServiceAccountMetadataOutput struct {
	Name        string
	Namespace   string
	UID         string
	Annotations map[string]string
	Labels      map[string]string
}

type DefaultServiceAccountObject

type DefaultServiceAccountObject struct {
	Metadata                     DefaultServiceAccountMetadata
	ImagePullSecrets             *[]ServiceAccountReference
	Secrets                      *[]ServiceAccountReference
	AutomountServiceAccountToken *bool
}

type DefaultServiceAccountObjectOutput

type DefaultServiceAccountObjectOutput struct {
	Metadata                     DefaultServiceAccountMetadataOutput
	ImagePullSecrets             []ServiceAccountReferenceOutput
	Secrets                      []ServiceAccountReferenceOutput
	AutomountServiceAccountToken bool
}

type DefaultServiceAccountResource

type DefaultServiceAccountResource struct {
	// Object contains the account identity, metadata, and Secret settings.
	Object DefaultServiceAccountObject
	// CreateTimeout limits adoption and defaults to 30s.
	CreateTimeout *string
	// IgnoreAnnotations filters untracked annotation keys that match these regular expressions.
	IgnoreAnnotations *[]string
	// IgnoreLabels filters untracked label keys that match these regular expressions.
	IgnoreLabels *[]string
}

DefaultServiceAccountResource adopts the controller-created default ServiceAccount.

func (DefaultServiceAccountResource) Constraints

func (*DefaultServiceAccountResource) Create

func (DefaultServiceAccountResource) Defaults

func (*DefaultServiceAccountResource) Delete

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

func (*DefaultServiceAccountResource) Read

func (r *DefaultServiceAccountResource) Read(
	ctx context.Context, c *config.Configuration, prior defaultServiceAccountPrior,
) (*DefaultServiceAccountResourceOutput, error)

func (*DefaultServiceAccountResource) Update

func (r *DefaultServiceAccountResource) Update(
	ctx context.Context, c *config.Configuration, prior defaultServiceAccountPrior,
) (*DefaultServiceAccountResourceOutput, error)

type DefaultServiceAccountResourceOutput

type DefaultServiceAccountResourceOutput struct {
	Server            string
	APIVersion        string
	Kind              string
	DefaultSecretName string
	Object            DefaultServiceAccountObjectOutput
}

type DrainNodeAction added in v0.2.0

type DrainNodeAction struct {
	// Name identifies the existing cluster-scoped Node.
	Name string
	// ExpectedUID prevents adopting a replacement Node with the same name.
	ExpectedUID string
	// Timeout defaults to 10m for requests, retries and original-UID waits together.
	Timeout *string
}

DrainNodeAction cordons an expected Node and drains one complete Pod snapshot. Active unmanaged and emptyDir Pods block eviction. Mirror and live DaemonSet Pods remain. Failure never undoes cordon or earlier evictions. An unchanged action skips and retains its last result; removal does not uncordon the Node.

func (DrainNodeAction) Constraints added in v0.2.0

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

func (DrainNodeAction) Defaults added in v0.2.0

func (a DrainNodeAction) Defaults() []defaults.Default

func (*DrainNodeAction) Run added in v0.2.0

type DrainNodeActionOutput added in v0.2.0

type DrainNodeActionOutput struct {
	Server        string
	APIVersion    string
	Kind          string
	Name          string
	UID           string
	Unschedulable bool
	Drained       bool
	DrainedPods   []DrainPodIdentity
	SkippedPods   []DrainSkippedPod
}

DrainNodeActionOutput describes original UIDs from one post-cordon snapshot. Drained does not imply continuous emptiness or replacement workload readiness.

type DrainPodIdentity added in v0.2.0

type DrainPodIdentity struct {
	Namespace string
	Name      string
	UID       string
}

type DrainSkippedPod added in v0.2.0

type DrainSkippedPod struct {
	Namespace string
	Name      string
	UID       string
	Reason    string
}

type EndpointsAddress

type EndpointsAddress struct {
	IP       string
	Hostname *string
	NodeName *string
}

type EndpointsAddressOutput

type EndpointsAddressOutput struct {
	IP       string
	Hostname string
	NodeName string
}

type EndpointsDataSource

type EndpointsDataSource struct {
	Metadata EndpointsLookupMetadata
	Subset   *[]EndpointsLookupSubset
}

EndpointsDataSource reads one named Endpoints object.

func (EndpointsDataSource) Constraints

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

func (EndpointsDataSource) Defaults

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

func (*EndpointsDataSource) Read

type EndpointsDataSourceOutput

type EndpointsDataSourceOutput struct {
	Metadata EndpointsLookupMetadataOutput
	Subset   []EndpointsLookupSubsetOutput
}

type EndpointsLookupAddress

type EndpointsLookupAddress struct {
	IP       string
	Hostname *string
	NodeName *string
}

type EndpointsLookupAddressOutput

type EndpointsLookupAddressOutput struct {
	IP       string
	Hostname string
	NodeName string
}

type EndpointsLookupMetadata

type EndpointsLookupMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]*string
	Labels       *map[string]*string
}

type EndpointsLookupMetadataOutput

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

type EndpointsLookupPort

type EndpointsLookupPort struct {
	Name     *string
	Port     int64
	Protocol *string
}

type EndpointsLookupPortOutput

type EndpointsLookupPortOutput struct {
	Name     string
	Port     int64
	Protocol string
}

type EndpointsLookupSubset

type EndpointsLookupSubset struct {
	Address         *[]EndpointsLookupAddress
	NotReadyAddress *[]EndpointsLookupAddress
	Port            *[]EndpointsLookupPort
}

type EndpointsLookupSubsetOutput

type EndpointsLookupSubsetOutput struct {
	Address         []EndpointsLookupAddressOutput
	NotReadyAddress []EndpointsLookupAddressOutput
	Port            []EndpointsLookupPortOutput
}

type EndpointsMetadata

type EndpointsMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]*string
	Labels       *map[string]*string
}

type EndpointsMetadataOutput

type EndpointsMetadataOutput struct {
	Name         string
	GenerateName string
	Namespace    string
	Annotations  map[string]string
	Labels       map[string]string
}

type EndpointsPort

type EndpointsPort struct {
	Name     *string
	Port     int64
	Protocol *string
}

type EndpointsPortOutput

type EndpointsPortOutput struct {
	Name     string
	Port     int64
	Protocol string
}

type EndpointsResource

type EndpointsResource struct {
	Metadata          EndpointsMetadata
	Subset            *[]EndpointsSubset
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
}

func (EndpointsResource) Constraints

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

func (*EndpointsResource) Create

func (*EndpointsResource) Delete

func (*EndpointsResource) Delete(
	ctx context.Context, c *config.Configuration, p endpointsPrior,
) error

func (*EndpointsResource) Read

func (r *EndpointsResource) Read(ctx context.Context, c *config.Configuration, p endpointsPrior) (
	*EndpointsResourceOutput, error,
)

func (*EndpointsResource) Update

func (r *EndpointsResource) Update(ctx context.Context, c *config.Configuration, p endpointsPrior) (
	*EndpointsResourceOutput, error,
)

type EndpointsResourceOutput

type EndpointsResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Name       string
	Namespace  string
	UID        string
	Metadata   EndpointsMetadataOutput
	Subset     []EndpointsSubsetOutput
}

type EndpointsSubset

type EndpointsSubset struct {
	Address         *[]EndpointsAddress
	NotReadyAddress *[]EndpointsAddress
	Port            *[]EndpointsPort
}

type EndpointsSubsetOutput

type EndpointsSubsetOutput struct {
	Address         []EndpointsAddressOutput
	NotReadyAddress []EndpointsAddressOutput
	Port            []EndpointsPortOutput
}

type LimitRangeItem

type LimitRangeItem struct {
	Type                 *string
	Default              *map[string]string
	DefaultRequest       *map[string]string
	Max                  *map[string]string
	MaxLimitRequestRatio *map[string]string
	Min                  *map[string]string
}

type LimitRangeItemOutput

type LimitRangeItemOutput struct {
	Type                 string
	Default              map[string]string
	DefaultRequest       map[string]string
	Max                  map[string]string
	MaxLimitRequestRatio map[string]string
	Min                  map[string]string
}

type LimitRangeObject

type LimitRangeObject struct {
	Metadata ConfigMapMetadata
	Spec     *LimitRangeSpec
}

type LimitRangeObjectOutput

type LimitRangeObjectOutput struct {
	Metadata ConfigMapMetadataOutput
	Spec     *LimitRangeSpecOutput
}

type LimitRangeResource

type LimitRangeResource struct {
	Object            LimitRangeObject
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
}

func (LimitRangeResource) Constraints

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

func (*LimitRangeResource) Create

func (*LimitRangeResource) Delete

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

func (*LimitRangeResource) Read

func (r *LimitRangeResource) Read(
	ctx context.Context, c *config.Configuration, p limitRangePrior,
) (*LimitRangeResourceOutput, error)

func (*LimitRangeResource) Update

func (r *LimitRangeResource) Update(
	ctx context.Context, c *config.Configuration, p limitRangePrior,
) (*LimitRangeResourceOutput, error)

type LimitRangeResourceOutput

type LimitRangeResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     LimitRangeObjectOutput
}

type LimitRangeSpec

type LimitRangeSpec struct {
	Limit *[]LimitRangeItem
}

type LimitRangeSpecOutput

type LimitRangeSpecOutput struct {
	Limit []LimitRangeItemOutput
}

type NamespaceDataSource

type NamespaceDataSource struct{ Metadata NamespaceLookupMetadata }

NamespaceDataSource reads one cluster-scoped Namespace without changing it. A missing Namespace returns lookup metadata and null spec.

func (NamespaceDataSource) Constraints

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

func (*NamespaceDataSource) Read

type NamespaceDataSourceOutput

type NamespaceDataSourceOutput struct {
	Metadata NamespaceLookupMetadataOutput
	Spec     *NamespaceLookupSpec
}

NamespaceDataSourceOutput contains live metadata and ordered finalizers. Existing Namespaces have a non-null spec, including when finalizers is empty.

type NamespaceLookupMetadata

type NamespaceLookupMetadata struct {
	Name        string
	Annotations *map[string]*string
	Labels      *map[string]*string
}

NamespaceLookupMetadata selects only by name. Configured maps are returned on absence, with null entries omitted; successful reads return all remote keys.

type NamespaceLookupMetadataOutput

type NamespaceLookupMetadataOutput struct {
	Name            string
	Annotations     map[string]string
	Labels          map[string]string
	Generation      int64
	ResourceVersion string
	UID             string
}

type NamespaceLookupSpec

type NamespaceLookupSpec struct{ Finalizers []string }

type NamespaceMetadata

type NamespaceMetadata struct {
	Name         *string
	GenerateName *string
	Annotations  *map[string]string
	Labels       *map[string]string
}

type NamespaceMetadataOutput

type NamespaceMetadataOutput struct {
	Name         string
	GenerateName string
	UID          string
	Annotations  map[string]string
	Labels       map[string]string
}

type NamespaceObject

type NamespaceObject struct {
	Metadata NamespaceMetadata
}

type NamespaceObjectOutput

type NamespaceObjectOutput struct {
	Metadata NamespaceMetadataOutput
}

type NamespaceResource

type NamespaceResource struct {
	// Object contains the required metadata object. Its writable fields are
	// name, generate-name, annotations, and labels. Exactly one nonempty name
	// or generate-name is required. Changing either configured identity field replaces the
	// Namespace. A generated actual name is returned in object.metadata.name.
	//
	// Annotations and labels accept string values, including empty strings.
	// Omitted and empty maps are equivalent. Updates use the latest observed
	// maps, or saved outputs when no observation exists. If that baseline map
	// is empty, adding its first key replaces the entire remote map, including
	// hidden keys. With a nonempty baseline, updates change individual keys and
	// preserve unrelated remote keys.
	//
	// Successful create and update outputs preserve the requested maps. Later
	// reads return API values, filter internal Kubernetes keys and ignore
	// patterns, and retain keys from prior outputs with their current values.
	// Other nonignored remote keys remain visible; missing API keys disappear.
	Object NamespaceObject
	// WaitForDefaultServiceAccount defaults to false. When true, create waits
	// for the default ServiceAccount in the actual created Namespace. It retries
	// only not-found responses and completes when the account exists; it does
	// not create an account or wait for a token. Read and update do not wait.
	//
	// Create, including this wait, has a 20-minute budget bounded by caller
	// cancellation. If the wait fails, create returns an error and the Namespace
	// can remain. The resource does not roll back or adopt it on retry. Manual
	// cleanup can be required before retrying.
	WaitForDefaultServiceAccount *bool
	// DeleteTimeout is a positive Go duration, such as 5m or 30s, and defaults
	// to 5m. Deletion uses the prior input's timeout, bounded by caller
	// cancellation, for both the delete request and the wait for removal.
	DeleteTimeout *string
	// IgnoreAnnotations lists regular expressions matched anywhere in
	// annotation keys during reads. Keys present in prior outputs remain
	// visible with their actual API values even when a pattern matches. These
	// patterns do not prevent explicitly configured annotations from being
	// created or updated. Invalid expressions fail validation before mutation.
	IgnoreAnnotations *[]string
	// IgnoreLabels applies the same regular-expression and prior-output rules
	// as ignore-annotations to label keys. It does not prevent explicitly
	// configured labels from being created or updated.
	IgnoreLabels *[]string
}

NamespaceResource manages a cluster-scoped Kubernetes Namespace. The library's namespace configuration has no effect on this resource. Kubernetes controls Namespace status and finalizers.

Reads, updates, and deletion use the saved server, name, and UID with current credentials. A Namespace with the same name and a different UID is never adopted. Updates change annotations and labels with JSON Patch and do not wait for the Namespace to become Active.

Deletion uses a UID precondition and waits for removal. A different UID means that the managed instance is gone. Only the Terminating phase is pending; other phases and API errors fail deletion. The resource does not clear finalizers or force finalization.

func (NamespaceResource) Constraints

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

func (*NamespaceResource) Create

func (*NamespaceResource) Delete

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

func (*NamespaceResource) Read

func (r *NamespaceResource) Read(
	ctx context.Context, c *config.Configuration, p namespacePrior,
) (*NamespaceResourceOutput, error)

func (*NamespaceResource) Update

func (r *NamespaceResource) Update(
	ctx context.Context, c *config.Configuration, p namespacePrior,
) (*NamespaceResourceOutput, error)

type NamespaceResourceOutput

type NamespaceResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     NamespaceObjectOutput
}

type NamespacesDataSource

type NamespacesDataSource struct{}

NamespacesDataSource lists the names of cluster-scoped Namespaces.

func (*NamespacesDataSource) Read

type NamespacesDataSourceOutput

type NamespacesDataSourceOutput struct {
	Namespaces []string
}

type NodeConditionOutput added in v0.2.0

type NodeConditionOutput struct {
	Type               string
	Status             string
	LastHeartbeatTime  *string
	LastTransitionTime *string
	Reason             string
	Message            string
}

type NodeConfigMapOutput added in v0.2.0

type NodeConfigMapOutput struct {
	Namespace        string
	Name             string
	UID              string
	ResourceVersion  string
	KubeletConfigKey string
}

type NodeConfigSourceOutput added in v0.2.0

type NodeConfigSourceOutput struct{ ConfigMap *NodeConfigMapOutput }

type NodeConfigStatusOutput added in v0.2.0

type NodeConfigStatusOutput struct {
	Assigned      *NodeConfigSourceOutput
	Active        *NodeConfigSourceOutput
	LastKnownGood *NodeConfigSourceOutput
	Error         string
}

type NodeDaemonEndpointsOutput added in v0.2.0

type NodeDaemonEndpointsOutput struct{ KubeletEndpoint NodeEndpointOutput }

type NodeDataSource added in v0.2.0

type NodeDataSource struct{ Metadata NodeIdentity }

func (NodeDataSource) Constraints added in v0.2.0

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

func (*NodeDataSource) Read added in v0.2.0

type NodeDataSourceOutput added in v0.2.0

type NodeDataSourceOutput struct {
	Metadata NodeMetadataOutput
	Spec     *NodeSpecOutput
	Status   *NodeStatusOutput
}

type NodeEndpointOutput added in v0.2.0

type NodeEndpointOutput struct{ Port int64 }

type NodeFeaturesOutput added in v0.2.0

type NodeFeaturesOutput struct{ SupplementalGroupsPolicy *bool }

type NodeIdentity added in v0.2.0

type NodeIdentity struct{ Name string }

type NodeImageOutput added in v0.2.0

type NodeImageOutput struct {
	Names     []string
	SizeBytes int64
}

type NodeLookupAddress

type NodeLookupAddress struct {
	Type    string
	Address string
}

type NodeLookupCondition

type NodeLookupCondition struct {
	Type               string
	Status             string
	LastHeartbeatTime  string
	LastTransitionTime string
	Reason             string
	Message            string
}

type NodeLookupMetadata

type NodeLookupMetadata struct {
	Name            string
	ResourceVersion string
	UID             string
	Generation      int64
	Annotations     map[string]string
	Labels          map[string]string
}

type NodeLookupResult

type NodeLookupResult struct {
	Metadata NodeLookupMetadata
	Spec     NodeLookupSpec
	Status   NodeLookupStatus
}

type NodeLookupSpec

type NodeLookupSpec struct {
	PodCIDR       string
	PodCidrs      []string
	ProviderID    string
	Unschedulable bool
	Taints        []NodeLookupTaint
}

type NodeLookupStatus

type NodeLookupStatus struct {
	Allocatable map[string]string
	Capacity    map[string]string
	Addresses   []NodeLookupAddress
	Conditions  []NodeLookupCondition
	NodeInfo    NodeLookupSystemInfo
}

type NodeLookupSystemInfo

type NodeLookupSystemInfo struct {
	MachineID               string
	SystemUUID              string
	BootID                  string
	KernelVersion           string
	OSImage                 string
	ContainerRuntimeVersion string
	KubeletVersion          string
	KubeProxyVersion        string
	OperatingSystem         string
	Architecture            string
}

type NodeLookupTaint

type NodeLookupTaint struct {
	Key    string
	Value  string
	Effect string
}

type NodeMetadataOutput added in v0.2.0

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

type NodeRuntimeFeaturesOutput added in v0.2.0

type NodeRuntimeFeaturesOutput struct {
	RecursiveReadOnlyMounts *bool
	UserNamespaces          *bool
}

type NodeRuntimeHandlerOutput added in v0.2.0

type NodeRuntimeHandlerOutput struct {
	Name     string
	Features *NodeRuntimeFeaturesOutput
}

type NodeSpecOutput added in v0.2.0

type NodeSpecOutput struct {
	PodCIDR       string
	PodCidrs      []string
	ProviderID    string
	Unschedulable bool
	Taints        []NodeTaintOutput
	ConfigSource  *NodeConfigSourceOutput
	ExternalID    string
}

type NodeStatusOutput added in v0.2.0

type NodeStatusOutput struct {
	Capacity        map[string]string
	Allocatable     map[string]string
	Phase           string
	Conditions      []NodeConditionOutput
	Addresses       []NodeLookupAddress
	DaemonEndpoints NodeDaemonEndpointsOutput
	NodeInfo        NodeSystemInfoOutput
	Images          []NodeImageOutput
	VolumesInUse    []string
	VolumesAttached []NodeVolumeOutput
	Config          *NodeConfigStatusOutput
	RuntimeHandlers []NodeRuntimeHandlerOutput
	Features        *NodeFeaturesOutput
}

type NodeSwapOutput added in v0.2.0

type NodeSwapOutput struct{ Capacity *int64 }

type NodeSystemInfoOutput added in v0.2.0

type NodeSystemInfoOutput struct {
	MachineID               string
	SystemUUID              string
	BootID                  string
	KernelVersion           string
	OSImage                 string
	ContainerRuntimeVersion string
	KubeletVersion          string
	KubeProxyVersion        string
	OperatingSystem         string
	Architecture            string
	Swap                    *NodeSwapOutput
}

type NodeTaint

type NodeTaint struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Effect string `json:"effect"`
}

type NodeTaintMetadata

type NodeTaintMetadata struct {
	Name string
}

type NodeTaintMetadataOutput

type NodeTaintMetadataOutput struct {
	Name string
	UID  string
}

type NodeTaintObject

type NodeTaintObject struct {
	Metadata NodeTaintMetadata
	Spec     NodeTaintSpec
}

type NodeTaintObjectOutput

type NodeTaintObjectOutput struct {
	Metadata NodeTaintMetadataOutput
	Spec     NodeTaintSpec
}

type NodeTaintOutput added in v0.2.0

type NodeTaintOutput struct {
	Key       string
	Value     string
	Effect    string
	TimeAdded *string
}

type NodeTaintResource

type NodeTaintResource struct {
	Object       NodeTaintObject
	FieldManager *string
	Force        *bool
}

func (NodeTaintResource) Constraints

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

func (*NodeTaintResource) Create

func (NodeTaintResource) Defaults

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

func (*NodeTaintResource) Delete

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

func (*NodeTaintResource) Read

func (r *NodeTaintResource) Read(
	ctx context.Context, c *config.Configuration, p nodeTaintPrior,
) (*NodeTaintResourceOutput, error)

func (*NodeTaintResource) Update

func (r *NodeTaintResource) Update(
	ctx context.Context, c *config.Configuration, p nodeTaintPrior,
) (*NodeTaintResourceOutput, error)

type NodeTaintResourceOutput

type NodeTaintResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     NodeTaintObjectOutput
}

type NodeTaintSpec

type NodeTaintSpec struct {
	Taints []NodeTaint
}

type NodeVolumeOutput added in v0.2.0

type NodeVolumeOutput struct{ Name, DevicePath string }

type NodesDataSource

type NodesDataSource struct {
	Metadata *NodesLookupMetadata
}

NodesDataSource lists cluster-scoped Nodes that match all supplied labels.

func (NodesDataSource) Constraints

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

func (*NodesDataSource) Read

type NodesDataSourceOutput

type NodesDataSourceOutput struct {
	// Nodes is null when the API returns NotFound and empty when no Nodes match.
	Nodes *[]NodeLookupResult
}

type NodesLookupMetadata

type NodesLookupMetadata struct {
	Labels map[string]string
}

type PersistentVolumeAWSElasticBlockStore

type PersistentVolumeAWSElasticBlockStore struct {
	VolumeID  string
	FSType    *string
	Partition *int64
	ReadOnly  *bool
}

type PersistentVolumeAzureDisk

type PersistentVolumeAzureDisk struct {
	CachingMode string
	DataDiskURI string
	DiskName    string
	FSType      *string
	Kind        *string
	ReadOnly    *bool
}

type PersistentVolumeAzureFile

type PersistentVolumeAzureFile struct {
	SecretName      string
	ShareName       string
	SecretNamespace *string
	ReadOnly        *bool
}

type PersistentVolumeCSI

type PersistentVolumeCSI struct {
	Driver                     string
	VolumeHandle               string
	FSType                     *string
	VolumeAttributes           *map[string]string
	ReadOnly                   *bool
	ControllerPublishSecretRef *PersistentVolumeSecretReference
	NodeStageSecretRef         *PersistentVolumeSecretReference
	NodePublishSecretRef       *PersistentVolumeSecretReference
	ControllerExpandSecretRef  *PersistentVolumeSecretReference
}

type PersistentVolumeCephFS

type PersistentVolumeCephFS struct {
	Monitors   []string
	Path       *string
	User       *string
	SecretFile *string
	SecretRef  *PersistentVolumeSecretReference
	ReadOnly   *bool
}

type PersistentVolumeCinder

type PersistentVolumeCinder struct {
	VolumeID string
	FSType   *string
	ReadOnly *bool
}

type PersistentVolumeClaimDataSource

type PersistentVolumeClaimDataSource struct {
	Metadata PersistentVolumeClaimLookupMetadata
}

PersistentVolumeClaimDataSource reads a namespaced claim by its exact name.

func (PersistentVolumeClaimDataSource) Constraints

func (*PersistentVolumeClaimDataSource) Read

type PersistentVolumeClaimDataSourceOutput

type PersistentVolumeClaimDataSourceOutput struct {
	Metadata PersistentVolumeClaimLookupMetadataOutput
	Spec     *PersistentVolumeClaimSpecOutput
}

PersistentVolumeClaimDataSourceOutput contains live claim data. A missing claim returns lookup metadata and a null spec.

type PersistentVolumeClaimExpression

type PersistentVolumeClaimExpression struct {
	Key      *string
	Operator *string
	Values   *[]string
}

type PersistentVolumeClaimLookupMetadata

type PersistentVolumeClaimLookupMetadata struct {
	Name        *string
	Namespace   *string
	Annotations *map[string]string
	Labels      *map[string]string
}

type PersistentVolumeClaimLookupMetadataOutput

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

type PersistentVolumeClaimObject

type PersistentVolumeClaimObject struct {
	Metadata ConfigMapMetadata
	Spec     PersistentVolumeClaimSpec
}

type PersistentVolumeClaimObjectOutput

type PersistentVolumeClaimObjectOutput struct {
	Metadata ConfigMapMetadataOutput
	Spec     PersistentVolumeClaimSpecOutput
}

type PersistentVolumeClaimReference

type PersistentVolumeClaimReference struct {
	Name      string
	Namespace *string
}

type PersistentVolumeClaimResource

type PersistentVolumeClaimResource struct {
	// Object contains required metadata and spec. Exactly one nonempty name or generate-name is
	// required. Namespace defaults to default. Spec quantities use Kubernetes quantity syntax.
	// Access modes and selector values are sets. Immutable spec edits and storage decreases replace.
	// Omitted volume-name, storage-class-name and volume-mode retain API assigned values.
	Object PersistentVolumeClaimObject
	// WaitUntilBound defaults to true and affects create only. Only Pending is retried.
	WaitUntilBound *bool
	// CreateTimeout is a Go duration, defaults to 5m, and bounds the entire create operation.
	// Zero and negative durations expire immediately. Caller cancellation always takes precedence.
	CreateTimeout *string
	// IgnoreAnnotations contains unanchored key regexes used during reads. Tracked keys override
	// internal-key and regex filters. Updates still write explicitly configured keys.
	IgnoreAnnotations *[]string
	// IgnoreLabels applies the annotation filtering rules independently to label keys.
	IgnoreLabels *[]string
	// contains filtered or unexported fields
}

PersistentVolumeClaimResource manages a PVC, with JSON Patch updates and saved UID identity. Create waits for Bound by default. A failed create can leave a PVC requiring manual cleanup. Deletion waits for removal and never clears finalizers or deletes a backing volume.

func (PersistentVolumeClaimResource) Constraints

func (*PersistentVolumeClaimResource) Create

func (*PersistentVolumeClaimResource) Delete

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

func (*PersistentVolumeClaimResource) Read

func (r *PersistentVolumeClaimResource) Read(
	ctx context.Context, c *config.Configuration, p persistentVolumeClaimPrior,
) (*PersistentVolumeClaimResourceOutput, error)

func (*PersistentVolumeClaimResource) Update

func (r *PersistentVolumeClaimResource) Update(
	ctx context.Context, c *config.Configuration, p persistentVolumeClaimPrior,
) (*PersistentVolumeClaimResourceOutput, error)

type PersistentVolumeClaimResourceOutput

type PersistentVolumeClaimResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     PersistentVolumeClaimObjectOutput
}

type PersistentVolumeClaimResources

type PersistentVolumeClaimResources struct {
	Limits   *map[string]string
	Requests *map[string]string
}

type PersistentVolumeClaimResourcesOutput

type PersistentVolumeClaimResourcesOutput struct {
	Limits   map[string]string
	Requests map[string]string
}

type PersistentVolumeClaimSelector

type PersistentVolumeClaimSelector struct {
	MatchLabels      *map[string]string
	MatchExpressions *[]PersistentVolumeClaimExpression
}

type PersistentVolumeClaimSpec

type PersistentVolumeClaimSpec struct {
	AccessModes      []string
	Resources        PersistentVolumeClaimResources
	Selector         *PersistentVolumeClaimSelector
	VolumeName       *string
	StorageClassName *string
	VolumeMode       *string
}

type PersistentVolumeClaimSpecOutput

type PersistentVolumeClaimSpecOutput struct {
	AccessModes      []string
	Resources        PersistentVolumeClaimResourcesOutput
	Selector         *PersistentVolumeClaimSelector
	VolumeName       string
	StorageClassName string
	VolumeMode       string
}

type PersistentVolumeDataSource

type PersistentVolumeDataSource struct {
	Metadata PersistentVolumeLookupMetadata
}

func (PersistentVolumeDataSource) Constraints

func (*PersistentVolumeDataSource) Read

type PersistentVolumeDataSourceOutput

type PersistentVolumeDataSourceOutput struct {
	Metadata PersistentVolumeLookupMetadataOutput
	Spec     PersistentVolumeSpecOutput
}

type PersistentVolumeFC

type PersistentVolumeFC struct {
	Lun        int64
	TargetWWNs []string
	FSType     *string
	ReadOnly   *bool
}

type PersistentVolumeFlexVolume

type PersistentVolumeFlexVolume struct {
	Driver    string
	FSType    *string
	Options   *map[string]string
	SecretRef *PersistentVolumeSecretReference
	ReadOnly  *bool
}

type PersistentVolumeFlocker

type PersistentVolumeFlocker struct {
	DatasetName *string
	DatasetUUID *string
}

type PersistentVolumeGCEPersistentDisk

type PersistentVolumeGCEPersistentDisk struct {
	PDName    string
	FSType    *string
	Partition *int64
	ReadOnly  *bool
}

type PersistentVolumeGlusterfs

type PersistentVolumeGlusterfs struct {
	EndpointsName string
	Path          string
	ReadOnly      *bool
}

type PersistentVolumeHostPath

type PersistentVolumeHostPath struct {
	Path *string
	Type *string
}

type PersistentVolumeISCSI

type PersistentVolumeISCSI struct {
	IQN            string
	TargetPortal   string
	FSType         *string
	ISCSIInterface *string
	Lun            *int64
	ReadOnly       *bool
}

type PersistentVolumeLocal

type PersistentVolumeLocal struct {
	Path *string
}

type PersistentVolumeLookupMetadata

type PersistentVolumeLookupMetadata struct {
	Name        string
	Annotations *map[string]string
	Labels      *map[string]string
}

type PersistentVolumeLookupMetadataOutput

type PersistentVolumeLookupMetadataOutput struct {
	Name            string
	Annotations     map[string]string
	Labels          map[string]string
	Generation      int64
	ResourceVersion string
	UID             string
}

type PersistentVolumeNFS

type PersistentVolumeNFS struct {
	Path     string
	Server   string
	ReadOnly *bool
}

type PersistentVolumeNodeAffinity

type PersistentVolumeNodeAffinity struct {
	Required *PersistentVolumeNodeSelector
}

type PersistentVolumeNodeSelector

type PersistentVolumeNodeSelector struct {
	NodeSelectorTerms []PersistentVolumeNodeSelectorTerm
}

type PersistentVolumeNodeSelectorRequirement

type PersistentVolumeNodeSelectorRequirement struct {
	Key      string
	Operator string
	Values   *[]string
}

type PersistentVolumeNodeSelectorTerm

type PersistentVolumeNodeSelectorTerm struct {
	MatchExpressions *[]PersistentVolumeNodeSelectorRequirement
	MatchFields      *[]PersistentVolumeNodeSelectorRequirement
}

type PersistentVolumeObject

type PersistentVolumeObject struct {
	Metadata NamespaceMetadata
	Spec     PersistentVolumeSpec
}

type PersistentVolumeObjectOutput

type PersistentVolumeObjectOutput struct {
	Metadata NamespaceMetadataOutput
	Spec     PersistentVolumeSpecOutput
}

type PersistentVolumePhotonPersistentDisk

type PersistentVolumePhotonPersistentDisk struct {
	PdID   string
	FSType *string
}

type PersistentVolumeQuobyte

type PersistentVolumeQuobyte struct {
	Registry string
	Volume   string
	Group    *string
	User     *string
	ReadOnly *bool
}

type PersistentVolumeRBD

type PersistentVolumeRBD struct {
	CephMonitors []string
	RBDImage     string
	FSType       *string
	Keyring      *string
	RadosUser    *string
	RBDPool      *string
	ReadOnly     *bool
	SecretRef    *PersistentVolumeSecretReference
}

type PersistentVolumeResource

type PersistentVolumeResource struct {
	Object PersistentVolumeObject
	// CreateTimeout is a Go duration and defaults to 5m.
	CreateTimeout *string
	// IgnoreAnnotations and IgnoreLabels match untracked metadata keys.
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
	// contains filtered or unexported fields
}

PersistentVolumeResource manages a cluster-scoped PersistentVolume. Create waits for Available or Bound. Backing-source edits replace the PV.

func (PersistentVolumeResource) Constraints

func (*PersistentVolumeResource) Create

func (*PersistentVolumeResource) Delete

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

func (*PersistentVolumeResource) Read

func (r *PersistentVolumeResource) Read(
	ctx context.Context, c *config.Configuration, p persistentVolumePrior,
) (*PersistentVolumeResourceOutput, error)

func (*PersistentVolumeResource) Update

func (r *PersistentVolumeResource) Update(
	ctx context.Context, c *config.Configuration, p persistentVolumePrior,
) (*PersistentVolumeResourceOutput, error)

type PersistentVolumeResourceOutput

type PersistentVolumeResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     PersistentVolumeObjectOutput
}

type PersistentVolumeSecretReference

type PersistentVolumeSecretReference struct {
	Name      *string
	Namespace *string
}

type PersistentVolumeSpec

type PersistentVolumeSpec struct {
	AccessModes                   []string
	Capacity                      map[string]string
	PersistentVolumeSource        PersistentVolumeSource
	PersistentVolumeReclaimPolicy *string
	VolumeMode                    *string
	StorageClassName              *string
	MountOptions                  *[]string
	ClaimRef                      *PersistentVolumeClaimReference
	NodeAffinity                  *PersistentVolumeNodeAffinity
}

type PersistentVolumeSpecOutput

type PersistentVolumeSpecOutput struct {
	AccessModes                   []string
	Capacity                      map[string]string
	PersistentVolumeSource        PersistentVolumeSource
	PersistentVolumeReclaimPolicy string
	VolumeMode                    string
	StorageClassName              string
	MountOptions                  []string
	ClaimRef                      *PersistentVolumeClaimReference
	NodeAffinity                  *PersistentVolumeNodeAffinity
}

type PersistentVolumeVsphereVolume

type PersistentVolumeVsphereVolume struct {
	VolumePath string
	FSType     *string
}

type PodAWSElasticBlockStoreVolume

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

type PodAffinity

type PodAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution  *[]PodAffinityTerm
	PreferredDuringSchedulingIgnoredDuringExecution *[]PodWeightedPodAffinityTerm
}

type PodAffinityTerm

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

type PodAzureDiskVolume

type PodAzureDiskVolume 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 PodAzureFileVolume

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

type PodAzureFileVolumeOutput

type PodAzureFileVolumeOutput struct {
	SecretName string `json:"secretName"`
	ShareName  string `json:"shareName"`
	ReadOnly   *bool  `json:"readOnly"`
}

type PodCSILocalSecretRef

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

type PodCSIVolume

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

type PodCapabilities

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

type PodCephFSVolume

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

type PodCinderVolume

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

type PodClaimMetadata

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

type PodClaimResources

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

type PodClaimSpec

type PodClaimSpec struct {
	AccessModes []string          `json:"accessModes" set:"true" replace:"true"`
	Resources   PodClaimResources `json:"resources"`
	Selector    *PodSelector      `json:"selector" replace:"true"`
	VolumeName  *string           `json:"volumeName" computed:"true" replace:"true"`

	StorageClassName *string `computed:"true" omit:"true" replace:"true" preserve-live-empty:"true"`
	VolumeMode       *string `json:"volumeMode" computed:"true" omit:"true" replace:"true"`
}

type PodConfigMapProjection

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

type PodConfigMapProjectionOutput

type PodConfigMapProjectionOutput struct {
	Name  *string       `json:"name"`
	Items *[]PodKeyPath `json:"items"`
}

type PodConfigMapVolume

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

type PodContainer

type PodContainer struct {
	Name    string        `json:"name" replace:"true"`
	Image   *string       `json:"image" replace:"true"`
	Args    *[]string     `json:"args" replace:"true"`
	Command *[]string     `json:"command" replace:"true"`
	Env     *[]PodEnv     `json:"env"`
	EnvFrom *[]PodEnvFrom `json:"envFrom"`

	ImagePullPolicy *string                      `computed:"true" replace:"true"`
	Lifecycle       *PodLifecycle                `json:"lifecycle"`
	LivenessProbe   *PodProbe                    `json:"livenessProbe" replace:"count"`
	ReadinessProbe  *PodProbe                    `json:"readinessProbe" replace:"count"`
	StartupProbe    *PodProbe                    `json:"startupProbe" replace:"count"`
	Port            *[]PodPort                   `json:"ports"`
	Resources       *PodResources                `json:"resources" computed:"true" replace:"count"`
	SecurityContext *PodContainerSecurityContext `json:"securityContext" replace:"count"`
	RestartPolicy   *string                      `computed:"true" replace:"true"`
	Stdin           *bool                        `json:"stdin" replace:"true"`
	StdinOnce       *bool                        `json:"stdinOnce" replace:"true"`
	TTY             *bool                        `json:"tty" replace:"true"`

	TerminationMessagePath   *string `default:"/dev/termination-log" replace:"true"`
	TerminationMessagePolicy *string `computed:"true" replace:"true"`

	VolumeMount  *[]PodMount        `json:"volumeMounts" replace:"count"`
	VolumeDevice *[]PodVolumeDevice `json:"volumeDevices" replace:"count"`
	WorkingDir   *string            `json:"workingDir" replace:"true"`
}

type PodContainerSecurityContext

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

type PodDNSConfig

type PodDNSConfig struct {
	Nameservers *[]string       `json:"nameservers" replace:"true"`
	Searches    *[]string       `json:"searches"`
	Option      *[]PodDNSOption `json:"options"`
}

type PodDNSOption

type PodDNSOption struct {
	Name  string  `json:"name" replace:"true"`
	Value *string `json:"value" replace:"true"`
}

type PodDataSource

type PodDataSource struct{ Metadata PodLookupMetadata }

PodDataSource reads the spec, phase and metadata of one named Pod.

func (PodDataSource) Constraints

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

func (PodDataSource) Defaults

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

func (*PodDataSource) Read

type PodDataSourceOutput

type PodDataSourceOutput struct {
	Metadata PodLookupMetadataOutput
	Spec     *PodLookupSpec
	Status   *string
}

type PodDownwardAPIProjection

type PodDownwardAPIProjection struct {
	Items *[]PodProjectedDownwardItem `json:"items"`
}

type PodDownwardAPIVolume

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

type PodDownwardAPIVolumeOutput

type PodDownwardAPIVolumeOutput struct {
	DefaultMode *string                     `json:"defaultMode" format:"mode"`
	Items       *[]PodProjectedDownwardItem `json:"items"`
}

type PodDownwardItem

type PodDownwardItem struct {
	FieldRef         PodFieldRef             `json:"fieldRef"`
	Path             string                  `json:"path"`
	Mode             *string                 `json:"mode" format:"mode"`
	ResourceFieldRef *PodDownwardResourceRef `json:"resourceFieldRef"`
}

type PodDownwardResourceRef

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

type PodEmptyDirVolume

type PodEmptyDirVolume struct {
	Medium    *string `json:"medium" replace:"true"`
	SizeLimit *string `json:"sizeLimit" format:"quantity" omit:"true" replace:"true"`
}

type PodEnv

type PodEnv struct {
	Name      string           `json:"name" replace:"true"`
	Value     *string          `json:"value" replace:"true"`
	ValueFrom *PodEnvValueFrom `json:"valueFrom"`
}

type PodEnvFieldRef

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

type PodEnvFrom

type PodEnvFrom struct {
	Prefix       *string        `json:"prefix" replace:"true"`
	ConfigMapRef *PodEnvFromRef `json:"configMapRef"`
	SecretRef    *PodEnvFromRef `json:"secretRef"`
}

type PodEnvFromRef

type PodEnvFromRef struct {
	Name     string `json:"name" replace:"true"`
	Optional *bool  `json:"optional" replace:"true"`
}

type PodEnvValueFrom

type PodEnvValueFrom struct {
	ConfigMapKeyRef  *PodKeyRef      `json:"configMapKeyRef"`
	SecretKeyRef     *PodKeyRef      `json:"secretKeyRef"`
	FieldRef         *PodEnvFieldRef `json:"fieldRef"`
	ResourceFieldRef *PodResourceRef `json:"resourceFieldRef"`
}

type PodEphemeralVolume

type PodEphemeralVolume struct {
	VolumeClaimTemplate PodVolumeClaimTemplate `json:"volumeClaimTemplate"`
}

type PodExec

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

type PodFCVolume

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

type PodFieldRef

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

type PodFlexVolume

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

type PodFlexVolumeOutput

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

type PodFlockerVolume

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

type PodGCEPersistentDiskVolume

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

type PodGRPC

type PodGRPC struct {
	Port    int64   `json:"port" cast:"int32"`
	Service *string `json:"service"`
}

type PodGitRepoVolume

type PodGitRepoVolume struct {
	Directory  *string `json:"directory"`
	Repository *string `json:"repository"`
	Revision   *string `json:"revision"`
}

type PodGlusterfsVolume

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

type PodHTTPGet

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

type PodHTTPHeader

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

type PodHandler

type PodHandler struct {
	Exec      *PodExec      `json:"exec"`
	HTTPGet   *PodHTTPGet   `json:"httpGet"`
	TCPSocket *PodTCPSocket `json:"tcpSocket"`
}

type PodHostAlias

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

type PodHostPathVolume

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

type PodISCSIVolume

type PodISCSIVolume 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 PodKeyPath

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

type PodKeyRef

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

type PodLifecycle

type PodLifecycle struct {
	PostStart *PodHandler `json:"postStart" replace:"count"`
	PreStop   *PodHandler `json:"preStop" replace:"count"`
}

type PodLocalSecretRef

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

type PodLocalVolume

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

type PodLookupAWSElasticBlockStoreVolume

type PodLookupAWSElasticBlockStoreVolume struct {
	VolumeID  string `json:"volumeID"`
	FSType    string `json:"fsType"`
	Partition int64  `json:"partition"`
	ReadOnly  bool   `json:"readOnly"`
}

type PodLookupAffinity

type PodLookupAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution  []PodLookupAffinityTerm
	PreferredDuringSchedulingIgnoredDuringExecution []PodLookupWeightedPodAffinityTerm
}

type PodLookupAffinityTerm

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

type PodLookupAzureDiskVolume

type PodLookupAzureDiskVolume struct {
	CachingMode string `json:"cachingMode"`
	DataDiskURI string `json:"diskURI"`
	DiskName    string `json:"diskName"`
	FSType      string `json:"fsType"`
	Kind        string `json:"kind"`
	ReadOnly    bool   `json:"readOnly"`
}

type PodLookupAzureFileVolume

type PodLookupAzureFileVolume struct {
	SecretName string `json:"secretName"`
	ShareName  string `json:"shareName"`
	ReadOnly   bool   `json:"readOnly"`
}

type PodLookupCSILocalSecretRef

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

type PodLookupCSIVolume

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

type PodLookupCapabilities

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

type PodLookupCinderVolume

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

type PodLookupClaimMetadata

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

type PodLookupClaimSpec

type PodLookupClaimSpec struct {
	AccessModes []string           `json:"accessModes" set:"true"`
	Resources   PodLookupResources `json:"resources"`
	Selector    *PodLookupSelector `json:"selector"`
	VolumeName  string             `json:"volumeName"`

	StorageClassName string
	VolumeMode       string `json:"volumeMode"`
}

type PodLookupConfigMapProjection

type PodLookupConfigMapProjection struct {
	Name     string             `json:"name"`
	Items    []PodLookupKeyPath `json:"items"`
	Optional bool               `json:"-"`
}

type PodLookupConfigMapVolume

type PodLookupConfigMapVolume struct {
	Name        string             `json:"name"`
	Optional    bool               `json:"optional"`
	DefaultMode string             `json:"defaultMode" format:"mode"`
	Items       []PodLookupKeyPath `json:"items"`
}

type PodLookupContainer

type PodLookupContainer struct {
	Name    string             `json:"name"`
	Image   string             `json:"image"`
	Args    []string           `json:"args"`
	Command []string           `json:"command"`
	Env     []PodLookupEnv     `json:"env"`
	EnvFrom []PodLookupEnvFrom `json:"envFrom"`

	ImagePullPolicy string
	Lifecycle       *PodLookupLifecycle                `json:"lifecycle"`
	LivenessProbe   *PodLookupProbe                    `json:"livenessProbe"`
	ReadinessProbe  *PodLookupProbe                    `json:"readinessProbe"`
	StartupProbe    *PodLookupProbe                    `json:"startupProbe"`
	Port            []PodLookupPort                    `json:"ports"`
	Resources       PodLookupResources                 `json:"resources"`
	SecurityContext *PodLookupContainerSecurityContext `json:"securityContext"`
	RestartPolicy   string
	Stdin           bool `json:"stdin"`
	StdinOnce       bool `json:"stdinOnce"`
	TTY             bool `json:"tty"`

	TerminationMessagePath   string
	TerminationMessagePolicy string

	VolumeMount  []PodLookupMount  `json:"volumeMounts"`
	VolumeDevice []PodVolumeDevice `json:"volumeDevices"`
	WorkingDir   string            `json:"workingDir"`
}

type PodLookupContainerSecurityContext

type PodLookupContainerSecurityContext struct {
	AllowPrivilegeEscalation bool
	Capabilities             *PodLookupCapabilities   `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           *PodLookupSeccompProfile `json:"seccompProfile"`
	SELinuxOptions           *PodLookupSELinuxOptions `json:"seLinuxOptions"`
}

type PodLookupDNSConfig

type PodLookupDNSConfig struct {
	Nameservers []string             `json:"nameservers"`
	Searches    []string             `json:"searches"`
	Option      []PodLookupDNSOption `json:"options"`
}

type PodLookupDNSOption

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

type PodLookupDownwardAPIProjection

type PodLookupDownwardAPIProjection struct {
	Items []PodLookupProjectedDownwardItem `json:"items"`
}

type PodLookupDownwardAPIVolume

type PodLookupDownwardAPIVolume struct {
	DefaultMode string                           `json:"defaultMode" format:"mode"`
	Items       []PodLookupProjectedDownwardItem `json:"items"`
}

type PodLookupEmptyDirVolume

type PodLookupEmptyDirVolume struct {
	Medium    string `json:"medium"`
	SizeLimit string `json:"sizeLimit"`
}

type PodLookupEnv

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

type PodLookupEnvFrom

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

type PodLookupEnvFromRef

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

type PodLookupEnvValueFrom

type PodLookupEnvValueFrom struct {
	ConfigMapKeyRef  *PodLookupKeyRef      `json:"configMapKeyRef"`
	SecretKeyRef     *PodLookupKeyRef      `json:"secretKeyRef"`
	FieldRef         *PodLookupFieldRef    `json:"fieldRef"`
	ResourceFieldRef *PodLookupResourceRef `json:"resourceFieldRef"`
}

type PodLookupEphemeralVolume

type PodLookupEphemeralVolume struct {
	VolumeClaimTemplate PodLookupVolumeClaimTemplate `json:"volumeClaimTemplate"`
}

type PodLookupExec

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

type PodLookupFCVolume

type PodLookupFCVolume struct {
	LUN        int64    `json:"lun"`
	TargetWWNs []string `json:"targetWWNs" set:"true"`
	FSType     string   `json:"fsType"`
	ReadOnly   bool     `json:"readOnly"`
}

type PodLookupFieldRef

type PodLookupFieldRef struct {
	APIVersion string `json:"apiVersion"`
	FieldPath  string `json:"fieldPath"`
}

type PodLookupFlexVolume

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

type PodLookupFlockerVolume

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

type PodLookupGCEPersistentDiskVolume

type PodLookupGCEPersistentDiskVolume struct {
	PDName    string `json:"pdName"`
	FSType    string `json:"fsType"`
	Partition int64  `json:"partition"`
	ReadOnly  bool   `json:"readOnly"`
}

type PodLookupGRPC

type PodLookupGRPC struct {
	Port    int64  `json:"port"`
	Service string `json:"service"`
}

type PodLookupGitRepoVolume

type PodLookupGitRepoVolume struct {
	Directory  string `json:"directory"`
	Repository string `json:"repository"`
	Revision   string `json:"revision"`
}

type PodLookupGlusterfsVolume

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

type PodLookupHTTPGet

type PodLookupHTTPGet struct {
	Host       string                `json:"host"`
	Path       string                `json:"path"`
	Scheme     string                `json:"scheme"`
	Port       string                `json:"port"`
	HTTPHeader []PodLookupHTTPHeader `json:"httpHeaders"`
}

type PodLookupHTTPHeader

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

type PodLookupHandler

type PodLookupHandler struct {
	Exec      *PodLookupExec    `json:"exec"`
	HTTPGet   *PodLookupHTTPGet `json:"httpGet"`
	TCPSocket *PodTCPSocket     `json:"tcpSocket"`
}

type PodLookupHostPathVolume

type PodLookupHostPathVolume struct {
	Path string `json:"path"`
	Type string `json:"type"`
}

type PodLookupISCSIVolume

type PodLookupISCSIVolume struct {
	IQN            string `json:"iqn"`
	TargetPortal   string `json:"targetPortal"`
	ISCSIInterface string `json:"iscsiInterface"`
	LUN            int64  `json:"lun"`
	FSType         string `json:"fsType"`
	ReadOnly       bool   `json:"readOnly"`
}

type PodLookupKeyPath

type PodLookupKeyPath struct {
	Key  string `json:"key"`
	Path string `json:"path"`
	Mode string `json:"mode" format:"mode"`
}

type PodLookupKeyRef

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

type PodLookupLifecycle

type PodLookupLifecycle struct {
	PostStart *PodLookupHandler `json:"postStart"`
	PreStop   *PodLookupHandler `json:"preStop"`
}

type PodLookupMetadata

type PodLookupMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]*string
	Labels       *map[string]*string
}

type PodLookupMetadataOutput

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

type PodLookupMount

type PodLookupMount 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"`
}

type PodLookupNFSVolume

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

type PodLookupNodeAffinity

type PodLookupNodeAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution  *PodLookupNodeSelector
	PreferredDuringSchedulingIgnoredDuringExecution []PodLookupPreferredSchedulingTerm
}

type PodLookupNodeExpression

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

type PodLookupNodeSelector

type PodLookupNodeSelector struct {
	NodeSelectorTerm []PodLookupNodeTerm `json:"nodeSelectorTerms"`
}

type PodLookupNodeTerm

type PodLookupNodeTerm struct {
	MatchExpressions []PodLookupNodeExpression `json:"matchExpressions"`
	MatchFields      []PodLookupNodeExpression `json:"matchFields"`
}

type PodLookupPersistentVolumeClaimVolume

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

type PodLookupPhotonPersistentDiskVolume

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

type PodLookupPort

type PodLookupPort struct {
	ContainerPort int64  `json:"containerPort"`
	HostIP        string `json:"hostIP"`
	HostPort      int64  `json:"hostPort"`
	Name          string `json:"name"`
	Protocol      string `json:"protocol"`
}

type PodLookupPreferredSchedulingTerm

type PodLookupPreferredSchedulingTerm struct {
	Weight     int64             `json:"weight"`
	Preference PodLookupNodeTerm `json:"preference"`
}

type PodLookupProbe

type PodLookupProbe struct {
	Exec                *PodLookupExec    `json:"exec"`
	HTTPGet             *PodLookupHTTPGet `json:"httpGet"`
	TCPSocket           *PodTCPSocket     `json:"tcpSocket"`
	GRPC                *PodLookupGRPC    `json:"grpc"`
	FailureThreshold    int64             `json:"failureThreshold"`
	InitialDelaySeconds int64             `json:"initialDelaySeconds"`
	PeriodSeconds       int64             `json:"periodSeconds"`
	SuccessThreshold    int64             `json:"successThreshold"`
	TimeoutSeconds      int64             `json:"timeoutSeconds"`
}

type PodLookupProjectedDownwardItem

type PodLookupProjectedDownwardItem struct {
	FieldRef         *PodLookupFieldRef    `json:"fieldRef"`
	Path             string                `json:"path"`
	Mode             string                `json:"mode" format:"mode"`
	ResourceFieldRef *PodLookupResourceRef `json:"resourceFieldRef"`
}

type PodLookupProjectedVolume

type PodLookupProjectedVolume struct {
	DefaultMode string                `json:"defaultMode" format:"mode"`
	Sources     []PodLookupProjection `json:"sources"`
}

type PodLookupProjection

type PodLookupProjection struct {
	Secret              *PodLookupSecretProjection              `json:"secret"`
	ConfigMap           *PodLookupConfigMapProjection           `json:"configMap"`
	DownwardAPI         *PodLookupDownwardAPIProjection         `json:"downwardAPI"`
	ServiceAccountToken *PodLookupServiceAccountTokenProjection `json:"serviceAccountToken"`
}

type PodLookupQuobyteVolume

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

type PodLookupRBDVolume

type PodLookupRBDVolume struct {
	CephMonitors []string                    `json:"monitors" set:"true"`
	RBDImage     string                      `json:"image"`
	FSType       string                      `json:"fsType"`
	Keyring      string                      `json:"keyring"`
	RadosUser    string                      `json:"user"`
	RBDPool      string                      `json:"pool"`
	ReadOnly     bool                        `json:"readOnly"`
	SecretRef    *PodLookupCSILocalSecretRef `json:"secretRef"`
}

type PodLookupResourceRef

type PodLookupResourceRef struct {
	ContainerName string `json:"containerName"`
	Divisor       string `json:"divisor"`
	Resource      string `json:"resource"`
}

type PodLookupResources

type PodLookupResources struct {
	Limits   map[string]string `json:"limits"`
	Requests map[string]string `json:"requests"`
}

type PodLookupSELinuxOptions

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

type PodLookupSchedulingAffinity

type PodLookupSchedulingAffinity struct {
	NodeAffinity    *PodLookupNodeAffinity `json:"nodeAffinity"`
	PodAffinity     *PodLookupAffinity     `json:"podAffinity"`
	PodAntiAffinity *PodLookupAffinity     `json:"podAntiAffinity"`
}

type PodLookupSeccompProfile

type PodLookupSeccompProfile struct {
	Type             string `json:"type"`
	LocalhostProfile string `json:"localhostProfile"`
}

type PodLookupSecretProjection

type PodLookupSecretProjection struct {
	Name     string             `json:"name"`
	Items    []PodLookupKeyPath `json:"items"`
	Optional bool               `json:"optional"`
}

type PodLookupSecretVolume

type PodLookupSecretVolume struct {
	SecretName  string             `json:"secretName"`
	Optional    bool               `json:"optional"`
	DefaultMode string             `json:"defaultMode" format:"mode"`
	Items       []PodLookupKeyPath `json:"items"`
}

type PodLookupSecurityContext

type PodLookupSecurityContext struct {
	FSGroup             string                   `json:"fsGroup" format:"int64"`
	RunAsGroup          string                   `json:"runAsGroup" format:"int64"`
	RunAsNonRoot        bool                     `json:"runAsNonRoot"`
	RunAsUser           string                   `json:"runAsUser" format:"int64"`
	SeccompProfile      *PodLookupSeccompProfile `json:"seccompProfile"`
	SELinuxOptions      *PodLookupSELinuxOptions `json:"seLinuxOptions"`
	FSGroupChangePolicy string                   `json:"fsGroupChangePolicy"`
	SupplementalGroups  []int64                  `json:"supplementalGroups" set:"true"`
	WindowsOptions      *PodLookupWindowsOptions `json:"windowsOptions"`
	Sysctl              []PodSysctl              `json:"sysctls"`
}

type PodLookupSelector

type PodLookupSelector struct {
	MatchLabels      map[string]string              `json:"matchLabels"`
	MatchExpressions []PodLookupSelectorRequirement `json:"matchExpressions"`
}

type PodLookupSelectorRequirement

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

type PodLookupServiceAccountTokenProjection

type PodLookupServiceAccountTokenProjection struct {
	Audience          string `json:"audience"`
	ExpirationSeconds int64  `json:"expirationSeconds"`
	Path              string `json:"path"`
}

type PodLookupSpec

type PodLookupSpec struct {
	ActiveDeadlineSeconds         int64 `json:"activeDeadlineSeconds"`
	AutomountServiceAccountToken  bool
	DNSPolicy                     string `json:"dnsPolicy"`
	EnableServiceLinks            bool
	HostIPC                       bool              `json:"hostIPC"`
	HostNetwork                   bool              `json:"hostNetwork"`
	HostPID                       bool              `json:"hostPID"`
	Hostname                      string            `json:"hostname"`
	NodeName                      string            `json:"nodeName"`
	NodeSelector                  map[string]string `json:"nodeSelector"`
	RuntimeClassName              string
	PriorityClassName             string
	RestartPolicy                 string
	SchedulerName                 string
	ServiceAccountName            string
	ShareProcessNamespace         bool
	Subdomain                     string `json:"subdomain"`
	TerminationGracePeriodSeconds int64

	Container                []PodLookupContainer `json:"containers"`
	InitContainer            []PodLookupContainer `json:"initContainers"`
	ReadinessGate            []PodReadinessGate   `json:"readinessGates"`
	ImagePullSecrets         []PodNamedReference
	HostAliases              []PodHostAlias                      `json:"hostAliases"`
	DNSConfig                *PodLookupDNSConfig                 `json:"dnsConfig"`
	SecurityContext          *PodLookupSecurityContext           `json:"securityContext"`
	OS                       *PodOS                              `json:"os"`
	Toleration               []PodLookupToleration               `json:"tolerations"`
	TopologySpreadConstraint []PodLookupTopologySpreadConstraint `json:"topologySpreadConstraints"`

	Affinity *PodLookupSchedulingAffinity `json:"affinity"`
	Volume   []PodLookupVolume            `json:"volumes"`
}

type PodLookupToleration

type PodLookupToleration struct {
	Effect            string `json:"effect"`
	Key               string `json:"key"`
	Operator          string `json:"operator"`
	TolerationSeconds string `json:"tolerationSeconds" format:"int64"`
	Value             string `json:"value"`
}

type PodLookupTopologySpreadConstraint

type PodLookupTopologySpreadConstraint struct {
	MatchLabelKeys     []string           `json:"matchLabelKeys" set:"true"`
	MaxSkew            int64              `json:"maxSkew"`
	MinDomains         int64              `json:"minDomains"`
	NodeAffinityPolicy string             `json:"nodeAffinityPolicy"`
	NodeTaintsPolicy   string             `json:"nodeTaintsPolicy"`
	TopologyKey        string             `json:"topologyKey"`
	WhenUnsatisfiable  string             `json:"whenUnsatisfiable"`
	LabelSelector      *PodLookupSelector `json:"labelSelector"`
}

type PodLookupVolume

type PodLookupVolume struct {
	Name                  string                                `json:"name"`
	ConfigMap             *PodLookupConfigMapVolume             `json:"configMap"`
	Secret                *PodLookupSecretVolume                `json:"secret"`
	DownwardAPI           *PodLookupDownwardAPIVolume           `json:"downwardAPI"`
	EmptyDir              *PodLookupEmptyDirVolume              `json:"emptyDir"`
	GitRepo               *PodLookupGitRepoVolume               `json:"gitRepo"`
	PersistentVolumeClaim *PodLookupPersistentVolumeClaimVolume `json:"persistentVolumeClaim"`
	Projected             *PodLookupProjectedVolume             `json:"projected"`
	CSI                   *PodLookupCSIVolume                   `json:"csi"`
	Ephemeral             *PodLookupEphemeralVolume             `json:"ephemeral"`
	HostPath              *PodLookupHostPathVolume              `json:"hostPath"`
	AWSElasticBlockStore  *PodLookupAWSElasticBlockStoreVolume  `json:"awsElasticBlockStore"`
	AzureDisk             *PodLookupAzureDiskVolume             `json:"azureDisk"`
	AzureFile             *PodLookupAzureFileVolume             `json:"azureFile"`
	Cinder                *PodLookupCinderVolume                `json:"cinder"`
	FC                    *PodLookupFCVolume                    `json:"fc"`
	FlexVolume            *PodLookupFlexVolume                  `json:"flexVolume"`
	Flocker               *PodLookupFlockerVolume               `json:"flocker"`
	GCEPersistentDisk     *PodLookupGCEPersistentDiskVolume     `json:"gcePersistentDisk"`
	Glusterfs             *PodLookupGlusterfsVolume             `json:"glusterfs"`
	ISCSI                 *PodLookupISCSIVolume                 `json:"iscsi"`
	NFS                   *PodLookupNFSVolume                   `json:"nfs"`
	PhotonPersistentDisk  *PodLookupPhotonPersistentDiskVolume  `json:"photonPersistentDisk"`
	Quobyte               *PodLookupQuobyteVolume               `json:"quobyte"`
	RBD                   *PodLookupRBDVolume                   `json:"rbd"`
	VsphereVolume         *PodLookupVsphereVolume               `json:"vsphereVolume"`
}

type PodLookupVolumeClaimTemplate

type PodLookupVolumeClaimTemplate struct {
	Metadata *PodLookupClaimMetadata `json:"metadata"`
	Spec     PodLookupClaimSpec      `json:"spec"`
}

type PodLookupVsphereVolume

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

type PodLookupWeightedPodAffinityTerm

type PodLookupWeightedPodAffinityTerm struct {
	Weight          int64                 `json:"weight"`
	PodAffinityTerm PodLookupAffinityTerm `json:"podAffinityTerm"`
}

type PodLookupWindowsOptions

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

type PodMount

type PodMount 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"`
}

type PodNFSVolume

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

type PodNamedReference

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

type PodNodeAffinity

type PodNodeAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution  *PodNodeSelector
	PreferredDuringSchedulingIgnoredDuringExecution *[]PodPreferredSchedulingTerm
}

type PodNodeExpression

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

type PodNodeField

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

type PodNodeSelector

type PodNodeSelector struct {
	NodeSelectorTerm *[]PodNodeTerm `json:"nodeSelectorTerms"`
}

type PodNodeTerm

type PodNodeTerm struct {
	MatchExpressions *[]PodNodeExpression `json:"matchExpressions"`
	MatchFields      *[]PodNodeField      `json:"matchFields" replace:"true"`
}

type PodOS

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

type PodPersistentVolumeClaimVolume

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

type PodPhotonPersistentDiskVolume

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

type PodPort

type PodPort struct {
	ContainerPort int64   `json:"containerPort" cast:"int32" replace:"true"`
	HostIP        *string `json:"hostIP" replace:"true"`
	HostPort      *int64  `json:"hostPort" cast:"int32" omit:"true" replace:"true"`
	Name          *string `json:"name" replace:"true"`
	Protocol      *string `json:"protocol" default:"TCP" replace:"true"`
}

type PodPreferredSchedulingTerm

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

type PodProbe

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

type PodProjectedDownwardItem

type PodProjectedDownwardItem struct {
	FieldRef         *PodFieldRef            `json:"fieldRef"`
	Path             string                  `json:"path"`
	Mode             *string                 `json:"mode" format:"mode"`
	ResourceFieldRef *PodDownwardResourceRef `json:"resourceFieldRef"`
}

type PodProjectedVolume

type PodProjectedVolume struct {
	DefaultMode *string              `json:"defaultMode" default:"0644" format:"mode"`
	Sources     []PodProjectionGroup `json:"sources"`
}

type PodProjectedVolumeOutput

type PodProjectedVolumeOutput struct {
	DefaultMode *string                    `json:"defaultMode" default:"0644" format:"mode"`
	Sources     []PodProjectionGroupOutput `json:"sources"`
}

type PodProjectionGroup

type PodProjectionGroup struct {
	Secret              *[]PodSecretProjection            `json:"secret"`
	ConfigMap           *[]PodConfigMapProjection         `json:"configMap"`
	DownwardAPI         *PodDownwardAPIProjection         `json:"downwardAPI"`
	ServiceAccountToken *PodServiceAccountTokenProjection `json:"serviceAccountToken"`
}

type PodProjectionGroupOutput

type PodProjectionGroupOutput struct {
	Secret              *[]PodSecretProjection            `json:"secret"`
	ConfigMap           *[]PodConfigMapProjectionOutput   `json:"configMap"`
	DownwardAPI         *PodDownwardAPIProjection         `json:"downwardAPI"`
	ServiceAccountToken *PodServiceAccountTokenProjection `json:"serviceAccountToken"`
}

type PodQuobyteVolume

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

type PodRBDVolume

type PodRBDVolume 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    *PodLocalSecretRef `json:"secretRef"`
}

type PodRBDVolumeOutput

type PodRBDVolumeOutput 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    *PodCSILocalSecretRef `json:"secretRef"`
}

type PodReadinessGate

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

type PodResource

type PodResource struct {
	Metadata          ServiceMetadata
	Spec              PodSpec
	TargetState       *[]string
	CreateTimeout     *string
	DeleteTimeout     *string
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
	// contains filtered or unexported fields
}

PodResource manages a namespaced Pod and waits for a requested phase on creation.

func (PodResource) Constraints

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

func (*PodResource) Create

func (PodResource) Defaults

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

func (*PodResource) Delete

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

func (*PodResource) Read

func (r *PodResource) Read(
	ctx context.Context, c *config.Configuration, prior podPrior,
) (*PodResourceOutput, error)

func (*PodResource) ResourceDefinition

func (*PodResource) Update

func (r *PodResource) Update(
	ctx context.Context, c *config.Configuration, prior podPrior,
) (*PodResourceOutput, error)

type PodResourceOutput

type PodResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Namespace  string
	Name       string
	UID        string
	Metadata   ServiceMetadataOutput
	Spec       PodSpecOutput
}

type PodResourceRef

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

type PodResources

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

type PodSELinuxOptions

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

type PodSchedulingAffinity

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

type PodSeccompProfile

type PodSeccompProfile struct {
	Type             *string `json:"type" default:"Unconfined" replace:"true"`
	LocalhostProfile *string `json:"localhostProfile" replace:"true"`
}

type PodSecretProjection

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

type PodSecretVolume

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

type PodSecurityContext

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

type PodSelector

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

type PodSelectorRequirement

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

type PodServiceAccountTokenProjection

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

type PodSpec

type PodSpec struct {
	ActiveDeadlineSeconds        *int64 `json:"activeDeadlineSeconds" omit:"true"`
	AutomountServiceAccountToken *bool  `default:"true" replace:"true"`

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

	EnableServiceLinks            *bool              `default:"true" replace:"true"`
	HostIPC                       *bool              `json:"hostIPC" replace:"true"`
	HostNetwork                   *bool              `json:"hostNetwork" replace:"true"`
	HostPID                       *bool              `json:"hostPID" replace:"true"`
	Hostname                      *string            `json:"hostname" computed:"true" replace:"true"`
	NodeName                      *string            `json:"nodeName" computed:"true" replace:"true"`
	NodeSelector                  *map[string]string `json:"nodeSelector" replace:"true"`
	RuntimeClassName              *string            `omit:"true" replace:"true"`
	PriorityClassName             *string            `replace:"true"`
	RestartPolicy                 *string            `default:"Always" replace:"true"`
	SchedulerName                 *string            `computed:"true" replace:"true"`
	ServiceAccountName            *string            `computed:"true" replace:"true"`
	ShareProcessNamespace         *bool              `replace:"true"`
	Subdomain                     *string            `json:"subdomain" replace:"true"`
	TerminationGracePeriodSeconds *int64             `default:"30" replace:"true"`

	Container     *[]PodContainer `json:"containers"`
	InitContainer *[]PodContainer `json:"initContainers" replace:"count"`

	ReadinessGate *[]PodReadinessGate `json:"readinessGates" computed:"true" replace:"true"`

	ImagePullSecrets         *[]PodNamedReference           `computed:"true" replace:"true"`
	HostAliases              *[]PodHostAlias                `json:"hostAliases" replace:"true"`
	DNSConfig                *PodDNSConfig                  `json:"dnsConfig"`
	SecurityContext          *PodSecurityContext            `json:"securityContext"`
	OS                       *PodOS                         `json:"os"`
	Toleration               *[]PodToleration               `json:"tolerations"`
	TopologySpreadConstraint *[]PodTopologySpreadConstraint `json:"topologySpreadConstraints"`

	Affinity *PodSchedulingAffinity `json:"affinity" replace:"count"`
	Volume   *[]PodVolume           `json:"volumes"`
}

type PodSpecOutput

type PodSpecOutput struct {
	ActiveDeadlineSeconds         *int64 `json:"activeDeadlineSeconds"`
	AutomountServiceAccountToken  *bool
	DNSPolicy                     *string `json:"dnsPolicy"`
	EnableServiceLinks            *bool
	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            `omit:"true"`
	PriorityClassName             *string
	RestartPolicy                 *string
	SchedulerName                 *string `computed:"true"`
	ServiceAccountName            *string `computed:"true"`
	ShareProcessNamespace         *bool
	Subdomain                     *string `json:"subdomain"`
	TerminationGracePeriodSeconds *int64

	Container                *[]PodContainer                `json:"containers"`
	InitContainer            *[]PodContainer                `json:"initContainers"`
	ReadinessGate            *[]PodReadinessGate            `json:"readinessGates" computed:"true"`
	ImagePullSecrets         *[]PodNamedReference           `computed:"true"`
	HostAliases              *[]PodHostAlias                `json:"hostAliases"`
	DNSConfig                *PodDNSConfig                  `json:"dnsConfig"`
	SecurityContext          *PodSecurityContext            `json:"securityContext"`
	OS                       *PodOS                         `json:"os"`
	Toleration               *[]PodToleration               `json:"tolerations"`
	TopologySpreadConstraint *[]PodTopologySpreadConstraint `json:"topologySpreadConstraints"`

	Affinity *PodSchedulingAffinity `json:"affinity"`
	Volume   *[]PodVolumeOutput     `json:"volumes"`
}

type PodSysctl

type PodSysctl struct {
	Name  string `json:"name" replace:"true"`
	Value string `json:"value" replace:"true"`
}

type PodTCPSocket

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

type PodToleration

type PodToleration struct {
	Effect            *string `json:"effect" replace:"true"`
	Key               *string `json:"key" replace:"true"`
	Operator          *string `json:"operator" default:"Equal" replace:"true"`
	TolerationSeconds *string `json:"tolerationSeconds" format:"int64" replace:"true"`
	Value             *string `json:"value" replace:"true"`
}

type PodTopologySpreadConstraint

type PodTopologySpreadConstraint struct {
	MatchLabelKeys     *[]string    `json:"matchLabelKeys" set:"true" replace:"true"`
	MaxSkew            *int64       `json:"maxSkew" default:"1" format:"int32-cast"`
	MinDomains         *int64       `json:"minDomains" omit:"true" format:"int32-cast" replace:"true"`
	NodeAffinityPolicy *string      `json:"nodeAffinityPolicy" omit:"true" replace:"true"`
	NodeTaintsPolicy   *string      `json:"nodeTaintsPolicy" omit:"true" replace:"true"`
	TopologyKey        *string      `json:"topologyKey"`
	WhenUnsatisfiable  *string      `json:"whenUnsatisfiable" default:"DoNotSchedule"`
	LabelSelector      *PodSelector `json:"labelSelector"`
}

type PodVolume

type PodVolume struct {
	Name                  *string                         `json:"name"`
	ConfigMap             *PodConfigMapVolume             `json:"configMap"`
	Secret                *PodSecretVolume                `json:"secret"`
	DownwardAPI           *PodDownwardAPIVolume           `json:"downwardAPI"`
	EmptyDir              *PodEmptyDirVolume              `json:"emptyDir"`
	GitRepo               *PodGitRepoVolume               `json:"gitRepo"`
	PersistentVolumeClaim *PodPersistentVolumeClaimVolume `json:"persistentVolumeClaim"`
	Projected             *PodProjectedVolume             `json:"projected"`
	CSI                   *PodCSIVolume                   `json:"csi"`
	Ephemeral             *PodEphemeralVolume             `json:"ephemeral"`
	HostPath              *PodHostPathVolume              `json:"hostPath"`
	AWSElasticBlockStore  *PodAWSElasticBlockStoreVolume  `json:"awsElasticBlockStore"`
	AzureDisk             *PodAzureDiskVolume             `json:"azureDisk"`
	AzureFile             *PodAzureFileVolume             `json:"azureFile"`
	Cinder                *PodCinderVolume                `json:"cinder"`
	FC                    *PodFCVolume                    `json:"fc"`
	FlexVolume            *PodFlexVolume                  `json:"flexVolume"`
	Flocker               *PodFlockerVolume               `json:"flocker"`
	GCEPersistentDisk     *PodGCEPersistentDiskVolume     `json:"gcePersistentDisk"`
	Glusterfs             *PodGlusterfsVolume             `json:"glusterfs"`
	ISCSI                 *PodISCSIVolume                 `json:"iscsi"`
	NFS                   *PodNFSVolume                   `json:"nfs"`
	PhotonPersistentDisk  *PodPhotonPersistentDiskVolume  `json:"photonPersistentDisk"`
	Quobyte               *PodQuobyteVolume               `json:"quobyte"`
	RBD                   *PodRBDVolume                   `json:"rbd"`
	VsphereVolume         *PodVsphereVolume               `json:"vsphereVolume"`
	Local                 *PodLocalVolume                 `json:"-"`
	CephFS                *PodCephFSVolume                `json:"-"`
}

type PodVolumeClaimTemplate

type PodVolumeClaimTemplate struct {
	Metadata *PodClaimMetadata `json:"metadata"`
	Spec     PodClaimSpec      `json:"spec"`
}

type PodVolumeDevice

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

type PodVolumeOutput

type PodVolumeOutput struct {
	Name                  *string                         `json:"name"`
	ConfigMap             *PodConfigMapVolume             `json:"configMap"`
	Secret                *PodSecretVolume                `json:"secret"`
	DownwardAPI           *PodDownwardAPIVolumeOutput     `json:"downwardAPI"`
	EmptyDir              *PodEmptyDirVolume              `json:"emptyDir"`
	GitRepo               *PodGitRepoVolume               `json:"gitRepo"`
	PersistentVolumeClaim *PodPersistentVolumeClaimVolume `json:"persistentVolumeClaim"`
	Projected             *PodProjectedVolumeOutput       `json:"projected"`
	CSI                   *PodCSIVolume                   `json:"csi"`
	Ephemeral             *PodEphemeralVolume             `json:"ephemeral"`
	HostPath              *PodHostPathVolume              `json:"hostPath"`
	AWSElasticBlockStore  *PodAWSElasticBlockStoreVolume  `json:"awsElasticBlockStore"`
	AzureDisk             *PodAzureDiskVolume             `json:"azureDisk"`
	AzureFile             *PodAzureFileVolumeOutput       `json:"azureFile"`
	Cinder                *PodCinderVolume                `json:"cinder"`
	FC                    *PodFCVolume                    `json:"fc"`
	FlexVolume            *PodFlexVolumeOutput            `json:"flexVolume"`
	Flocker               *PodFlockerVolume               `json:"flocker"`
	GCEPersistentDisk     *PodGCEPersistentDiskVolume     `json:"gcePersistentDisk"`
	Glusterfs             *PodGlusterfsVolume             `json:"glusterfs"`
	ISCSI                 *PodISCSIVolume                 `json:"iscsi"`
	NFS                   *PodNFSVolume                   `json:"nfs"`
	PhotonPersistentDisk  *PodPhotonPersistentDiskVolume  `json:"photonPersistentDisk"`
	Quobyte               *PodQuobyteVolume               `json:"quobyte"`
	RBD                   *PodRBDVolumeOutput             `json:"rbd"`
	VsphereVolume         *PodVsphereVolume               `json:"vsphereVolume"`
}

type PodVsphereVolume

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

type PodWeightedPodAffinityTerm

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

type PodWindowsOptions

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

type ReplicationControllerPodSpec added in v0.2.0

type ReplicationControllerPodSpec struct {
	ActiveDeadlineSeconds        *int64 `json:"activeDeadlineSeconds" computed:"true"`
	AutomountServiceAccountToken *bool  `default:"true" replace:"true"`

	DNSPolicy *string `json:"dnsPolicy" replace:"true" computed:"true"`

	EnableServiceLinks *bool `default:"true" replace:"true"`
	HostIPC            *bool `json:"hostIPC" replace:"true" computed:"true"`

	HostNetwork *bool `json:"hostNetwork" replace:"true" computed:"true"`

	HostPID  *bool   `json:"hostPID" replace:"true" computed:"true"`
	Hostname *string `json:"hostname" computed:"true" replace:"true"`
	NodeName *string `json:"nodeName" computed:"true" replace:"true"`

	NodeSelector *map[string]string `json:"nodeSelector" replace:"true" computed:"true"`

	RuntimeClassName              *string `replace:"true" computed:"true" omit:"true"`
	PriorityClassName             *string `replace:"true" computed:"true"`
	RestartPolicy                 *string `replace:"true" computed:"true"`
	SchedulerName                 *string `computed:"true" replace:"true"`
	ServiceAccountName            *string `computed:"true" replace:"true"`
	ShareProcessNamespace         *bool   `default:"false" replace:"true"`
	Subdomain                     *string `json:"subdomain" replace:"true" computed:"true"`
	TerminationGracePeriodSeconds *int64  `replace:"true" computed:"true"`

	Container     *[]PodContainer `json:"containers"`
	InitContainer *[]PodContainer `json:"initContainers" replace:"true"`

	ReadinessGate *[]PodReadinessGate `json:"readinessGates" computed:"true" replace:"true"`

	ImagePullSecrets *[]PodNamedReference `computed:"true" replace:"true"`

	HostAliases *[]PodHostAlias `json:"hostAliases" replace:"true" computed:"true"`

	DNSConfig                *PodDNSConfig                  `json:"dnsConfig"`
	SecurityContext          *PodSecurityContext            `json:"securityContext" computed:"true"`
	OS                       *PodOS                         `json:"os"`
	Toleration               *[]PodToleration               `json:"tolerations"`
	TopologySpreadConstraint *[]PodTopologySpreadConstraint `json:"topologySpreadConstraints"`

	Affinity *PodSchedulingAffinity `json:"affinity" replace:"true"`
	Volume   *[]PodVolume           `json:"volumes"`
}

type ReplicationControllerResource added in v0.2.0

type ReplicationControllerResource struct {
	Metadata          ServiceMetadata
	Spec              ReplicationControllerSpec
	CreateTimeout     *string
	UpdateTimeout     *string
	DeleteTimeout     *string
	IgnoreLabels      *[]string
	IgnoreAnnotations *[]string
	// contains filtered or unexported fields
}

func (ReplicationControllerResource) Constraints added in v0.2.0

func (*ReplicationControllerResource) Create added in v0.2.0

func (ReplicationControllerResource) Defaults added in v0.2.0

func (*ReplicationControllerResource) Delete added in v0.2.0

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

func (*ReplicationControllerResource) Read added in v0.2.0

func (r *ReplicationControllerResource) Read(
	ctx context.Context, c *config.Configuration, prior replicationControllerPrior,
) (*ReplicationControllerResourceOutput, error)

func (*ReplicationControllerResource) Update added in v0.2.0

func (r *ReplicationControllerResource) Update(
	ctx context.Context, c *config.Configuration, prior replicationControllerPrior,
) (*ReplicationControllerResourceOutput, error)

type ReplicationControllerResourceOutput added in v0.2.0

type ReplicationControllerResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Namespace  string
	Name       string
	UID        string
	Metadata   ServiceMetadataOutput
	Spec       ReplicationControllerSpecOutput
}

type ReplicationControllerSpec added in v0.2.0

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

	Replicas *int64                        `json:"replicas" default:"1" format:"int32-cast"`
	Selector map[string]string             `json:"selector"`
	Template ReplicationControllerTemplate `json:"template"`
}

type ReplicationControllerSpecOutput added in v0.2.0

type ReplicationControllerSpecOutput struct {
	MinReadySeconds int64 `json:"minReadySeconds"`

	Replicas *int64                              `json:"replicas"`
	Selector map[string]string                   `json:"selector"`
	Template ReplicationControllerTemplateOutput `json:"template"`
}

type ReplicationControllerTemplate added in v0.2.0

type ReplicationControllerTemplate struct {
	Metadata ReplicationControllerTemplateMetadata `json:"metadata"`
	Spec     ReplicationControllerPodSpec          `json:"spec"`
}

type ReplicationControllerTemplateMetadata added in v0.2.0

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

type ReplicationControllerTemplateOutput added in v0.2.0

type ReplicationControllerTemplateOutput struct {
	Metadata ServiceMetadataOutput `json:"metadata"`
	Spec     PodSpecOutput         `json:"spec"`
}

type ResourceQuotaResource

type ResourceQuotaResource struct {
	Metadata          ServiceMetadata
	Spec              *ResourceQuotaSpec
	IgnoreAnnotations *[]string
	IgnoreLabels      *[]string
	CreateTimeout     *string
	UpdateTimeout     *string
}

ResourceQuotaResource manages a namespaced quota and waits for hard limits on create and spec updates. A change to identity, cluster, or scopes replaces it.

func (ResourceQuotaResource) Constraints

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

func (*ResourceQuotaResource) Create

func (*ResourceQuotaResource) Delete

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

func (*ResourceQuotaResource) Read

func (r *ResourceQuotaResource) Read(
	ctx context.Context, c *config.Configuration, p resourceQuotaPrior,
) (*ResourceQuotaResourceOutput, error)

func (*ResourceQuotaResource) Update

func (r *ResourceQuotaResource) Update(
	ctx context.Context, c *config.Configuration, p resourceQuotaPrior,
) (*ResourceQuotaResourceOutput, error)

type ResourceQuotaResourceOutput

type ResourceQuotaResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Name       string
	Namespace  string
	UID        string
	Metadata   ServiceMetadataOutput
	Spec       ResourceQuotaSpecOutput
}

type ResourceQuotaScopeExpression

type ResourceQuotaScopeExpression struct {
	ScopeName string
	Operator  string
	Values    *[]string
}

type ResourceQuotaScopeSelector

type ResourceQuotaScopeSelector struct {
	MatchExpressions *[]ResourceQuotaScopeExpression
}

type ResourceQuotaScopeSelectorOutput

type ResourceQuotaScopeSelectorOutput struct {
	MatchExpressions []ResourceQuotaScopeExpression
}

type ResourceQuotaSpec

type ResourceQuotaSpec struct {
	Hard          *map[string]string
	Scopes        *[]string
	ScopeSelector *ResourceQuotaScopeSelector
}

type ResourceQuotaSpecOutput

type ResourceQuotaSpecOutput struct {
	Hard          map[string]string
	Scopes        []string
	ScopeSelector *ResourceQuotaScopeSelectorOutput
}

type SecretDataMetadata

type SecretDataMetadata struct {
	Name      string
	Namespace *string
}

type SecretDataMetadataOutput

type SecretDataMetadataOutput struct {
	Name      string
	Namespace string
	UID       string
}

type SecretDataObject

type SecretDataObject struct {
	Metadata SecretDataMetadata
	Data     map[string]string
}

type SecretDataObjectOutput

type SecretDataObjectOutput struct {
	Metadata SecretDataMetadataOutput
	Data     map[string]string
}

type SecretDataResource

type SecretDataResource struct {
	Object       SecretDataObject `ub:",sensitive"`
	FieldManager *string
	Force        *bool
}

func (SecretDataResource) Constraints

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

func (*SecretDataResource) Create

func (SecretDataResource) Defaults

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

func (*SecretDataResource) Delete

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

func (*SecretDataResource) Read

func (r *SecretDataResource) Read(
	ctx context.Context, c *config.Configuration, p secretDataPrior,
) (*SecretDataResourceOutput, error)

func (*SecretDataResource) Update

func (r *SecretDataResource) Update(
	ctx context.Context, c *config.Configuration, p secretDataPrior,
) (*SecretDataResourceOutput, error)

type SecretDataResourceOutput

type SecretDataResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Object     SecretDataObjectOutput `ub:",sensitive"`
}

type SecretDataSource

type SecretDataSource struct {
	Metadata SecretLookupMetadata
	// BinaryData selects live keys by presence of a non-null value.
	BinaryData *map[string]*string `ub:",sensitive"`
}

SecretDataSource reads one named Secret and partitions its payload by key.

func (SecretDataSource) Constraints

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

func (SecretDataSource) Defaults

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

func (*SecretDataSource) Read

type SecretDataSourceOutput

type SecretDataSourceOutput struct {
	Metadata   SecretLookupMetadataOutput
	Data       map[string]string `ub:",sensitive"`
	BinaryData map[string]string `ub:",sensitive"`
	Type       string
	Immutable  bool
}

type SecretLookupMetadata

type SecretLookupMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]*string
	Labels       *map[string]*string
}

type SecretLookupMetadataOutput

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

type SecretMetadata

type SecretMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]string
	Labels       *map[string]string
}

SecretMetadata contains writable Secret metadata.

type SecretMetadataOutput

type SecretMetadataOutput struct {
	Name         string
	GenerateName string
	Namespace    string
	UID          string
	Annotations  map[string]string
	Labels       map[string]string
}

SecretMetadataOutput contains stable identity and filtered metadata.

type SecretObject

type SecretObject struct {
	Metadata   SecretMetadata
	Data       *map[string]string
	BinaryData *map[string]string
	Immutable  *bool
	Type       *string
}

SecretObject contains the desired metadata and payload partitions.

type SecretObjectOutput

type SecretObjectOutput struct {
	Metadata   SecretMetadataOutput
	Data       map[string]string
	BinaryData map[string]string
	Immutable  bool
	Type       string
}

SecretObjectOutput contains the observed stable Secret fields.

type SecretResource

type SecretResource struct {
	// Object contains required metadata, optional text data, base64 binary-data,
	// immutable, and type. Metadata accepts name or generate-name, namespace,
	// annotations, and labels; name conflicts with generate-name. The server
	// returns the generated name. Omitted namespace defaults to default and type
	// to Opaque. Omitted data preserves computed text; explicit empty data clears
	// it. Selected binary keys form a separate read partition. Create sends text
	// through stringData, which wins overlaps; complete data updates favor binary
	// values. Sensitivity masks this object; ordinary values persist in state.
	// Mark outputs that select nested values with @sensitive in the factory.
	Object SecretObject `ub:",sensitive"`
	// WaitForServiceAccountToken defaults to true and waits only during creation
	// of a returned service-account-token Secret until its token key exists.
	WaitForServiceAccountToken *bool
	// CreateTimeout is a positive Go duration, default 1m, for the entire create.
	CreateTimeout *string
	// IgnoreAnnotations filters untracked annotation keys with regular expressions.
	IgnoreAnnotations *[]string
	// IgnoreLabels filters untracked label keys with regular expressions.
	IgnoreLabels *[]string
}

SecretResource manages a namespaced Secret with sensitive ordinary state values. Name, namespace, generate-name, and type changes replace the object. Changes to payloads or immutability also replace a previously immutable Secret.

func (SecretResource) Constraints

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

func (*SecretResource) Create

func (*SecretResource) Delete

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

func (*SecretResource) Read

func (r *SecretResource) Read(
	ctx context.Context, c *config.Configuration, p secretPrior,
) (*SecretResourceOutput, error)

func (*SecretResource) Update

func (r *SecretResource) Update(
	ctx context.Context, c *config.Configuration, p secretPrior,
) (*SecretResourceOutput, error)

type SecretResourceOutput

type SecretResourceOutput struct {
	// Server is the saved API server used with current credentials.
	Server string
	// APIVersion is v1.
	APIVersion string
	// Kind is Secret.
	Kind string
	// Object contains saved metadata, observed type and immutability, selected
	// binary-data in standard base64, and remaining data as text. The entire
	// object is masked as sensitive and persists normally in state.
	Object SecretObjectOutput `ub:",sensitive"`
}

SecretResourceOutput contains saved identity and stable observed Secret values.

type ServerVersionDataSource

type ServerVersionDataSource struct{}

func (*ServerVersionDataSource) Read

type ServerVersionDataSourceOutput

type ServerVersionDataSourceOutput struct {
	Version      string
	BuildDate    string
	Compiler     string
	GitCommit    string
	GitTreeState string
	GitVersion   string
	GoVersion    string
	Major        string
	Minor        string
	Platform     string
}

type ServiceAccountDataSource

type ServiceAccountDataSource struct {
	Metadata ServiceAccountLookupMetadata
}

ServiceAccountDataSource reads one ServiceAccount and its Secret references.

func (ServiceAccountDataSource) Constraints

func (ServiceAccountDataSource) Defaults

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

func (*ServiceAccountDataSource) Read

type ServiceAccountDataSourceOutput

type ServiceAccountDataSourceOutput struct {
	Metadata                     ConfigMapLookupMetadataOutput
	ImagePullSecrets             []ServiceAccountReferenceOutput
	Secrets                      []ServiceAccountReferenceOutput
	AutomountServiceAccountToken bool
	DefaultSecretName            string
}

type ServiceAccountLookupMetadata

type ServiceAccountLookupMetadata struct {
	Name        *string
	Namespace   *string
	Annotations *map[string]*string
	Labels      *map[string]*string
}

type ServiceAccountMetadata

type ServiceAccountMetadata = ConfigMapMetadata

ServiceAccountMetadata contains writable namespaced object metadata.

type ServiceAccountObject

type ServiceAccountObject struct {
	// Metadata selects the object identity and managed labels and annotations.
	Metadata ServiceAccountMetadata
	// ImagePullSecrets is a set of image-pull Secret names in the same namespace.
	ImagePullSecrets *[]ServiceAccountReference
	// Secrets is a set of Secret names; the discovered default token is managed separately.
	Secrets *[]ServiceAccountReference
	// AutomountServiceAccountToken defaults to true, including when unset during an update.
	AutomountServiceAccountToken *bool
}

ServiceAccountObject contains the writable ServiceAccount fields.

type ServiceAccountObjectOutput

type ServiceAccountObjectOutput struct {
	Metadata                     ConfigMapMetadataOutput
	ImagePullSecrets             []ServiceAccountReferenceOutput
	Secrets                      []ServiceAccountReferenceOutput
	AutomountServiceAccountToken bool
}

ServiceAccountObjectOutput contains metadata, Secret references, and the observed automount value.

type ServiceAccountReference

type ServiceAccountReference struct {
	// Name defaults to an empty string when omitted.
	Name *string
}

ServiceAccountReference names a Secret in the ServiceAccount namespace.

type ServiceAccountReferenceOutput

type ServiceAccountReferenceOutput struct {
	Name string
}

ServiceAccountReferenceOutput contains only a referenced Secret name.

type ServiceAccountResource

type ServiceAccountResource struct {
	// Object contains metadata, Secret references, and the token automount setting.
	Object ServiceAccountObject
	// CreateTimeout is a positive Go duration, defaulting to 30s, for creation and token discovery.
	CreateTimeout *string
	// IgnoreAnnotations excludes untracked annotation keys that match these regular expressions.
	IgnoreAnnotations *[]string
	// IgnoreLabels excludes untracked label keys that match these regular expressions.
	IgnoreLabels *[]string
}

ServiceAccountResource manages a namespaced Kubernetes ServiceAccount.

func (ServiceAccountResource) Constraints

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

func (*ServiceAccountResource) Create

func (*ServiceAccountResource) Delete

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

func (*ServiceAccountResource) Read

func (r *ServiceAccountResource) Read(
	ctx context.Context, c *config.Configuration, p serviceAccountPrior,
) (*ServiceAccountResourceOutput, error)

func (*ServiceAccountResource) Update

func (r *ServiceAccountResource) Update(
	ctx context.Context, c *config.Configuration, p serviceAccountPrior,
) (*ServiceAccountResourceOutput, error)

type ServiceAccountResourceOutput

type ServiceAccountResourceOutput struct {
	// Server is the saved API server used for subsequent operations.
	Server string
	// APIVersion is v1.
	APIVersion string
	// Kind is ServiceAccount.
	Kind string
	// DefaultSecretName is the legacy controller token name, or empty on current servers.
	DefaultSecretName string
	// Object contains stable metadata and the current mutable values.
	Object ServiceAccountObjectOutput
}

ServiceAccountResourceOutput contains stable identity and current managed values.

type ServiceAffinityConfig

type ServiceAffinityConfig struct{ ClientIP *ServiceClientIP }

type ServiceAffinityConfigOutput

type ServiceAffinityConfigOutput struct{ ClientIP *ServiceClientIPOutput }

type ServiceClientIP

type ServiceClientIP struct{ TimeoutSeconds *int64 }

type ServiceClientIPOutput

type ServiceClientIPOutput struct{ TimeoutSeconds *int32 }

type ServiceDataSource

type ServiceDataSource struct {
	// Metadata selects the Service. Namespace defaults to default independently
	// of configuration. Optional annotations and labels are validated metadata,
	// not selectors. An omitted name reaches the native empty-name error.
	Metadata ServiceLookupMetadata
}

ServiceDataSource reads one Service by name without changing it. A missing Service returns lookup metadata with absent spec and status.

func (ServiceDataSource) Constraints

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

func (*ServiceDataSource) Read

type ServiceDataSourceOutput

type ServiceDataSourceOutput struct {
	// Metadata uses the API response on success and lookup values on NotFound.
	Metadata ServiceLookupMetadataOutput
	// Spec is absent on NotFound. Ordered lists retain response order; external
	// addresses and source ranges are sorted unique strings. Allocation defaults
	// to true unless a LoadBalancer explicitly returns false.
	Spec *ServiceLookupSpec
	// Status is absent on NotFound. Empty ingress succeeds without a wait.
	Status *ServiceLookupStatus
}

ServiceDataSourceOutput contains live, unfiltered metadata, spec, and ingress. Changes to these values between plan and apply require a new plan.

type ServiceIngress

type ServiceIngress struct {
	IP       string
	Hostname string
	IPMode   *string
}

type ServiceLoadBalancer

type ServiceLoadBalancer struct{ Ingress []ServiceIngress }

type ServiceLookupAffinityConfig

type ServiceLookupAffinityConfig struct{ ClientIP *ServiceLookupClientIP }

type ServiceLookupClientIP

type ServiceLookupClientIP struct{ TimeoutSeconds int32 }

type ServiceLookupIngress

type ServiceLookupIngress struct {
	IP       string
	Hostname string
	IPMode   string
}

type ServiceLookupLoadBalancer

type ServiceLookupLoadBalancer struct{ Ingress []ServiceLookupIngress }

type ServiceLookupMetadata

type ServiceLookupMetadata struct {
	Name        *string
	Namespace   *string
	Annotations *map[string]string
	Labels      *map[string]string
}

type ServiceLookupMetadataOutput

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

type ServiceLookupSpec

type ServiceLookupSpec struct {
	Type                          string
	AllocateLoadBalancerNodePorts bool
	ClusterIP                     string
	ClusterIps                    []string
	ExternalIps                   []string
	ExternalName                  string
	ExternalTrafficPolicy         string
	InternalTrafficPolicy         string
	IPFamilies                    []string
	IPFamilyPolicy                string
	LoadBalancerClass             string
	LoadBalancerIP                string
	LoadBalancerSourceRanges      []string
	HealthCheckNodePort           int32
	PublishNotReadyAddresses      bool
	Selector                      map[string]string
	SessionAffinity               string
	SessionAffinityConfig         *ServiceLookupAffinityConfig
	Port                          []ServicePortOutput
}

type ServiceLookupStatus

type ServiceLookupStatus struct{ LoadBalancer ServiceLookupLoadBalancer }

type ServiceMetadata

type ServiceMetadata struct {
	Name         *string
	GenerateName *string
	Namespace    *string
	Annotations  *map[string]string
	Labels       *map[string]string
}

type ServiceMetadataOutput

type ServiceMetadataOutput struct {
	Name         string
	GenerateName string
	Namespace    string
	Annotations  map[string]string
	Labels       map[string]string
}

type ServicePort

type ServicePort struct {
	Port        int64
	Name        *string
	AppProtocol *string
	Protocol    *string
	NodePort    *int64
	TargetPort  *string
}

type ServicePortOutput

type ServicePortOutput struct {
	Port        int32
	Name        string
	AppProtocol string
	Protocol    string
	NodePort    int32
	TargetPort  string
}

type ServiceResource

type ServiceResource struct {
	// Metadata is required. Exactly one nonempty name or generate-name is required.
	// Namespace defaults to default. Changes to name, generate-name,
	// or effective namespace replace the Service. Generated names come from the
	// API response. Annotation and label maps contain strings. Tracked keys use
	// actual API values even when an internal-key or ignore filter matches.
	// Updates from a nonempty projected map change individual keys and preserve
	// hidden keys. The first insertion into an empty projected map replaces the
	// whole map, including hidden keys.
	Metadata ServiceMetadata
	// Spec is required. Type defaults to ClusterIP, protocol to TCP, affinity to
	// None, allocation to true, and publish-not-ready-addresses to false.
	// Cluster addresses, traffic policies, IP families and policy, target ports,
	// node ports, and affinity timeout are computed after omission. Ordered
	// port, cluster-ips, and ip-families lists retain order. External-ips and
	// load-balancer-source-ranges are sets. Omitted or empty port lists create
	// no ports and clear old ports on update; each entry requires port 1–65535.
	// Target-port is a string: int32 text becomes a number in Kubernetes JSON.
	// Protocol is case-sensitive TCP, UDP, or SCTP. Node-port accepts 0–65535;
	// configured health-check-node-port accepts 1–65535. Cluster-ip and each
	// cluster-ips member accept an IP or None. Cluster-ips and ip-families have
	// at most two ordered entries. Families are IPv4 or IPv6. Family policy is
	// SingleStack, PreferDualStack, or RequireDualStack. Traffic policies are
	// Cluster or Local. External IPs and source CIDRs are validated locally.
	// Explicit node-port zero requests allocation. Omitted computed port values
	// survive list updates. Empty app-protocol is omitted.
	// Configured cluster-ip, cluster-ips, load-balancer-class, and
	// health-check-node-port changes replace the Service. Omitted computed
	// values retain allocations. Allocation and class are sent on creation only
	// for LoadBalancer. IP-family changes remain subject to API validation.
	// Affinity configuration preserves absent and explicit nested objects;
	// an explicit empty client-ip requests timeout zero, while configured
	// timeout-seconds must be 1–86400. Kubernetes applies its remote default.
	Spec ServiceSpec
	// WaitForLoadBalancer defaults to true. Only creation of a returned
	// LoadBalancer waits, until its ingress list has at least one entry. Update
	// never waits. Wait API errors are terminal. Failure returns an error and
	// the latest three unique Service Warning messages, without rollback.
	WaitForLoadBalancer *bool
	// CreateTimeout is a positive Go duration and defaults to 10m. Read, update,
	// and deletion use 20m. Earlier caller cancellation bounds every operation.
	// Deletion waits until the managed UID disappears and preserves finalizers.
	CreateTimeout *string
	// IgnoreAnnotations contains regexes matched against untracked annotation
	// keys. Tracked keys retain their actual remote values. Internal Kubernetes
	// keys are hidden except the app.kubernetes.io and
	// service.beta.kubernetes.io hosts; ignore regexes still apply to them.
	IgnoreAnnotations *[]string
	// IgnoreLabels applies the same rules as ignore-annotations to label keys.
	IgnoreLabels *[]string
}

ServiceResource manages a namespaced Kubernetes Service. It creates with POST, updates individual fields with JSON Patch, and deletes with a UID precondition. Reads, updates, and deletion use the saved server and identity with current credentials. Kubernetes validates cross-field restrictions and port names. Live load-balancer endpoints remain available in status. Endpoint changes can cause reconciliation, which refreshes outputs without a mutation.

func (ServiceResource) Constraints

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

func (*ServiceResource) Create

func (*ServiceResource) Delete

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

func (*ServiceResource) Read

func (r *ServiceResource) Read(
	ctx context.Context, c *config.Configuration, p servicePrior,
) (*ServiceResourceOutput, error)

func (*ServiceResource) Update

func (r *ServiceResource) Update(
	ctx context.Context, c *config.Configuration, p servicePrior,
) (*ServiceResourceOutput, error)

type ServiceResourceOutput

type ServiceResourceOutput struct {
	Server     string
	APIVersion string
	Kind       string
	Name       string
	Namespace  string
	UID        string
	Metadata   ServiceMetadataOutput
	Spec       ServiceSpecOutput
	// Status exposes ordered ingress IPs, hostnames, and optional IP modes.
	// Reconciliation of endpoint changes refreshes outputs without mutation.
	Status ServiceStatus
}

ServiceResourceOutput contains the saved target, resolved specification, and current load-balancer ingress. It excludes volatile server metadata.

type ServiceSpec

type ServiceSpec struct {
	Type                          *string
	AllocateLoadBalancerNodePorts *bool
	ClusterIP                     *string
	ClusterIps                    *[]string
	ExternalIps                   *[]string
	ExternalName                  *string
	ExternalTrafficPolicy         *string
	InternalTrafficPolicy         *string
	IPFamilies                    *[]string
	IPFamilyPolicy                *string
	LoadBalancerClass             *string
	LoadBalancerIP                *string
	LoadBalancerSourceRanges      *[]string
	HealthCheckNodePort           *int64
	PublishNotReadyAddresses      *bool
	Selector                      *map[string]string
	SessionAffinity               *string
	SessionAffinityConfig         *ServiceAffinityConfig
	Port                          *[]ServicePort
}

type ServiceSpecOutput

type ServiceSpecOutput struct {
	Type                          string
	AllocateLoadBalancerNodePorts bool
	ClusterIP                     string
	ClusterIps                    []string
	ExternalIps                   []string
	ExternalName                  string
	ExternalTrafficPolicy         string
	InternalTrafficPolicy         string
	IPFamilies                    []string
	IPFamilyPolicy                string
	LoadBalancerClass             string
	LoadBalancerIP                string
	LoadBalancerSourceRanges      []string
	HealthCheckNodePort           int32
	PublishNotReadyAddresses      bool
	Selector                      map[string]string
	SessionAffinity               string
	SessionAffinityConfig         *ServiceAffinityConfigOutput
	Port                          []ServicePortOutput
}

type ServiceStatus

type ServiceStatus struct{ LoadBalancer ServiceLoadBalancer }

type UncordonNodeAction added in v0.2.0

type UncordonNodeAction struct {
	// Name identifies the existing cluster-scoped Node by its DNS subdomain name.
	Name string
	// ExpectedUID prevents changing a replacement Node with the same name.
	ExpectedUID string
	// Timeout bounds Kubernetes requests together and defaults to 10m.
	Timeout *string
}

UncordonNodeAction marks one existing Node schedulable. It does not evict Pods or wait for readiness. An unchanged action skips and retains its last result. Change @trigger to invoke it again. Removal does not re-cordon the Node.

func (UncordonNodeAction) Constraints added in v0.2.0

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

func (UncordonNodeAction) Defaults added in v0.2.0

func (a UncordonNodeAction) Defaults() []defaults.Default

func (*UncordonNodeAction) Run added in v0.2.0

type UncordonNodeActionOutput added in v0.2.0

type UncordonNodeActionOutput struct {
	Server          string
	APIVersion      string
	Kind            string
	Name            string
	UID             string
	ResourceVersion string
	Unschedulable   bool
}

UncordonNodeActionOutput describes the last successful invocation, including after Skip.

Source Files

Jump to

Keyboard shortcuts

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