# Packages
Package apiutil contains utilities for working with raw Kubernetes API machinery, such as creating RESTMappers and raw REST clients, and extracting the GVK of an object.
Package config contains libraries for initializing REST configs for talking to the Kubernetes API.
Package fake provides a fake client for testing.
No description provided by the author
# Functions
IgnoreAlreadyExists returns nil on AlreadyExists errors.
IgnoreNotFound returns nil on NotFound errors.
MergeFrom creates a Patch that patches using the merge-patch strategy with the given object as base.
MergeFromWithOptions creates a Patch that patches using the merge-patch strategy with the given object as base.
New returns a new Client using the provided config and Options.
NewDryRunClient wraps an existing client and enforces DryRun mode on all mutating api calls.
NewNamespacedClient wraps an existing client enforcing the namespace value.
NewWithWatch returns a new WithWatch.
ObjectKeyFromObject returns the ObjectKey given a runtime.Object.
RawPatch constructs a new Patch with the given PatchType and data.
StrategicMergeFrom creates a Patch that patches using the strategic-merge-patch strategy with the given object as base.
WithFieldOwner wraps a Client and adds the fieldOwner as the field manager to all write requests from this client.
WithFieldValidation wraps a Client and configures field validation, by default, for all write requests from this client.
WithSubResourceBody returns an option that uses the given body for a subresource Update or Patch operation.
# Constants
UnsafeDisableDeepCopy indicates not to deep copy objects during list objects.
# Variables
Apply uses server-side apply to patch the given object.
DryRunAll sets the "dry run" option to "all", executing all validation, etc without persisting the change to storage.
ForceOwnership indicates that in case of conflicts with server-side apply, the client should acquire ownership of the conflicting field.
Merge uses the raw object as a merge patch, without modifications.
# Structs
CacheOptions are options for creating a cache-backed client.
CreateOptions contains options for create requests.
DeleteAllOfOptions contains options for deletecollection (deleteallof) requests.
DeleteOptions contains options for delete requests.
GetOptions contains options for get operation.
ListOptions contains options for limiting or filtering results.
MatchingFieldsSelector filters the list/delete operation on the given field selector (or index in the case of cached lists).
MatchingLabelsSelector filters the list/delete operation on the given label selector (or index in the case of cached lists).
MergeFromOptions contains options to generate a merge-from patch data.
MergeFromWithOptimisticLock can be used if clients want to make sure a patch is being applied to the latest resource version of an object.
Options are creation options for a Client.
PatchOptions contains options for patch requests.
SubResourceCreateOptions are all the possible configurations for a subresource create request.
SubResourceGetOptions holds all the possible configuration for a subresource Get request.
SubResourcePatchOptions holds all possible configurations for a subresource patch request.
SubResourceUpdateOptions holds all the possible configuration for a subresource update request.
UpdateOptions contains options for create requests.
# Interfaces
Client knows how to perform CRUD operations on Kubernetes objects.
CreateOption is some configuration that modifies options for a create request.
DeleteAllOfOption is some configuration that modifies options for a delete request.
DeleteOption is some configuration that modifies options for a delete request.
FieldIndexer knows how to index over a particular "field" such that it can later be used by a field selector.
GetOption is some configuration that modifies options for a get request.
ListOption is some configuration that modifies options for a list request.
MergeFromOption is some configuration that modifies options for a merge-from patch data.
Object is a Kubernetes object, allows functions to work indistinctly with any resource that implements both Object interfaces.
ObjectList is a Kubernetes object list, allows functions to work indistinctly with any resource that implements both runtime.Object and metav1.ListInterface interfaces.
Patch is a patch that can be applied to a Kubernetes object.
PatchOption is some configuration that modifies options for a patch request.
Reader knows how to read and list Kubernetes objects.
StatusClient knows how to create a client which can update status subresource for kubernetes objects.
SubResourceClient knows how to perform CRU operations on Kubernetes objects.
SubResourceClientConstructor knows how to create a client which can update subresource for kubernetes objects.
SubResourceCreateOption is some configuration that modifies options for a create request.
SubResourceGetOption modifies options for a SubResource Get request.
SubResourcePatchOption configures a subresource patch request.
SubResourceReader knows how to read SubResources.
SubResourceUpdateAndPatchOption is an option that can be used for either a subresource update or patch request.
SubResourceUpdateOption is some configuration that modifies options for a update request.
SubResourceWriter knows how to update subresource of a Kubernetes object.
UpdateOption is some configuration that modifies options for a update request.
WithWatch supports Watch on top of the CRUD operations supported by the normal Client.
Writer knows how to create, delete, and update Kubernetes objects.
# Type aliases
Continue sets a continuation token to retrieve chunks of results when using limit.
FieldOwner set the field manager name for the given server-side apply patch.
FieldValidation configures field validation for the given requests.
GracePeriodSeconds sets the grace period for the deletion to the given number of seconds.
HasLabels filters the list/delete operation checking if the set of labels exists without checking their values.
IndexerFunc knows how to take an object and turn it into a series of non-namespaced keys.
InNamespace restricts the list/delete operation to the given namespace.
Limit specifies the maximum number of results to return from the server.
MatchingFields filters the list/delete operation on the given field Set (or index in the case of cached lists).
MatchingLabels filters the list/delete operation on the given set of labels.
NewClientFunc allows a user to define how to create a client.
ObjectKey identifies a Kubernetes Object.
Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
PropagationPolicy determined whether and how garbage collection will be performed.
StatusWriter is kept for backward compatibility.
UnsafeDisableDeepCopyOption indicates not to deep copy objects during list objects.