package
1.3.0-alpha.3
Repository: https://github.com/icedroid/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
AddGeneratorFlags adds flags common to resource generation commands TODO: need to take a pass at other generator commands to use this set of flags.
No description provided by the author
AddOutputFlagsForMutation adds output related flags to a command.
AddPrinterFlags adds printing related flags to a command (e.g.
AddCmdRecordFlag adds --record flag to command.
No description provided by the author
AddSourceToErr adds handleResourcePrefix and source string to error message.
No description provided by the author
BehaviorOnFatal allows you to override the default behavior when a fatal error occurs, which is call os.Exit(1).
ChangeResourcePatch creates a strategic merge patch between the origin input resource info and the annotated with change-cause input resource info.
CheckErr prints a user friendly error to STDERR and exits with a non-zero exit code.
containsChangeCause checks if input resource info contains change-cause annotation.
DefaultBehaviorOnFatal allows you to undo any previous override.
DefaultClientConfig creates a clientcmd.ClientConfig with the following hierarchy: 1.
DefaultGenerators returns the set of default generators for use in Factory instances.
DumpReaderToFile writes all data from the given io.Reader to the specified file (usually for temporary use).
GetFirstPod returns the first pod of an object from its namespace and selector and the number of matching pods.
No description provided by the author
No description provided by the author
Assumes the flag has a default value.
Assumes the flag has a default value.
No description provided by the author
GetFlagStringList can be used to accept multiple argument with flag repetition (e.g.
No description provided by the author
No description provided by the author
No description provided by the author
GetWideFlag is used to determine if "-o wide" is used.
Merge requires JSON serialization TODO: merge assumes JSON serialization, and does not properly abstract API retrieval.
MultilineError returns a string representing an error that splits sub errors into their own lines.
MultipleErrors returns a newline delimited string containing the prefix and referenced errors in standard form.
No description provided by the author
NewFactory creates a factory with the default Kubernetes resources defined if optionalClientConfig is nil, then flags will be bound to a new clientcmd.ClientConfig.
OutputVersion returns the preferred output version for generic content (JSON, YAML, or templates) defaultVersion is never mutated.
PrinterForCommand returns the default printer for this command.
PrintSuccess prints message after finishing mutating operations.
ReadConfigData reads the bytes from the specified filesystem or network location or from stdin if location == "-".
TODO: replace with resource.Builder.
No description provided by the author
RecordChangeCause annotate change-cause to input runtime object.
ShouldRecord checks if we should record current change cause.
StandardErrorMessage translates common errors into a human readable message, or returns false if the error is not one of the recognized types.
UpdateObject updates resource object with updateFn.
No description provided by the author
ValidateOutputArgs validates -o flag args for mutations.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ClientCache caches previously loaded clients for reuse, and ensures MatchServerVersion is invoked only once.
Factory provides abstractions that allow the Kubectl command to be extended across multiple types of resources and different API sets.