Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + const ApplyAnnotationsFlag + const ClusterRoleBindingV1GeneratorName + const ClusterV1Beta1GeneratorName + const ConfigMapV1GeneratorName + const CronJobV1Beta1GeneratorName + const CronJobV2Alpha1GeneratorName + const DefaultErrorExitCode + const DeploymentAppsV1Beta1GeneratorName + const DeploymentBasicAppsV1Beta1GeneratorName + const DeploymentBasicV1Beta1GeneratorName + const DeploymentV1Beta1GeneratorName + const FlagMatchBinaryVersion + const HorizontalPodAutoscalerV1GeneratorName + const IncludeUninitializedFlag + const JobV1GeneratorName + const NamespaceV1GeneratorName + const PodDisruptionBudgetV1GeneratorName + const PodDisruptionBudgetV2GeneratorName + const ResourceQuotaV1GeneratorName + const RoleBindingV1GeneratorName + const RunPodV1GeneratorName + const RunV1GeneratorName + const SecretForDockerRegistryV1GeneratorName + const SecretForTLSV1GeneratorName + const SecretV1GeneratorName + const ServiceAccountV1GeneratorName + const ServiceClusterIPGeneratorV1Name + const ServiceExternalNameGeneratorV1Name + const ServiceLoadBalancerGeneratorV1Name + const ServiceNodePortGeneratorV1Name + const ServiceV1GeneratorName + const ServiceV2GeneratorName + var ErrExit = fmt.Errorf("exit") + var FlagHTTPCacheDir = "cache-dir" + func AddApplyAnnotationFlags(cmd *cobra.Command) + func AddApplyAnnotationVarFlags(cmd *cobra.Command, applyAnnotation *bool) + func AddDryRunFlag(cmd *cobra.Command) + func AddFilenameOptionFlags(cmd *cobra.Command, options *resource.FilenameOptions, usage string) + func AddGeneratorFlags(cmd *cobra.Command, defaultGenerator string) + func AddInclude3rdPartyFlags(cmd *cobra.Command) + func AddInclude3rdPartyVarFlags(cmd *cobra.Command, include3rdParty *bool) + func AddIncludeUninitializedFlag(cmd *cobra.Command) + func AddNoHeadersFlags(cmd *cobra.Command) + func AddNonDeprecatedPrinterFlags(cmd *cobra.Command) + func AddOutputFlags(cmd *cobra.Command) + func AddOutputFlagsForMutation(cmd *cobra.Command) + func AddOutputVarFlagsForMutation(cmd *cobra.Command, output *string) + func AddPodRunningTimeoutFlag(cmd *cobra.Command, defaultTimeout time.Duration) + func AddPrinterFlags(cmd *cobra.Command) + func AddRecordFlag(cmd *cobra.Command) + func AddRecordVarFlag(cmd *cobra.Command, record *bool) + func AddSourceToErr(verb string, source string, err error) error + func AddValidateFlags(cmd *cobra.Command) + func AddValidateOptionFlags(cmd *cobra.Command, options *ValidateOptions) + func BehaviorOnFatal(f func(string, int)) + func ChangeResourcePatch(info *resource.Info, changeCause string) ([]byte, types.PatchType, error) + func CheckErr(err error) + func Contains(resourcesList []*metav1.APIResourceList, resource schema.GroupVersionResource) bool + func ContainsChangeCause(info *resource.Info) bool + func DefaultBehaviorOnFatal() + func DefaultClientConfig(flags *pflag.FlagSet) clientcmd.ClientConfig + func DefaultGenerators(cmdName string) map[string]kubectl.Generator + func DefaultSubCommandRun(out io.Writer) func(c *cobra.Command, args []string) + func DumpReaderToFile(reader io.Reader, filename string) error + func FallbackGeneratorNameIfNecessary(generatorName string, discoveryClient discovery.DiscoveryInterface, ...) (string, error) + func FilterResourceList(obj runtime.Object, filterFuncs kubectl.Filters, ...) (int, []runtime.Object, error) + func GetDryRunFlag(cmd *cobra.Command) bool + func GetFirstPod(client coreclient.PodsGetter, namespace string, selector string, ...) (*api.Pod, int, error) + func GetFlagBool(cmd *cobra.Command, flag string) bool + func GetFlagDuration(cmd *cobra.Command, flag string) time.Duration + func GetFlagInt(cmd *cobra.Command, flag string) int + func GetFlagInt64(cmd *cobra.Command, flag string) int64 + func GetFlagString(cmd *cobra.Command, flag string) string + func GetFlagStringArray(cmd *cobra.Command, flag string) []string + func GetFlagStringSlice(cmd *cobra.Command, flag string) []string + func GetPodRunningTimeoutFlag(cmd *cobra.Command) (time.Duration, error) + func GetRecordFlag(cmd *cobra.Command) bool + func GetResourcesAndPairs(args []string, pairType string) (resources []string, pairArgs []string, err error) + func GetWideFlag(cmd *cobra.Command) bool + func HasResource(client discovery.DiscoveryInterface, resource schema.GroupVersionResource) (bool, error) + func IsFilenameSliceEmpty(filenames []string) bool + func IsSiblingCommandExists(cmd *cobra.Command, targetCmdName string) bool + func ManualStrip(file []byte) []byte + func Merge(codec runtime.Codec, dst runtime.Object, fragment string) (runtime.Object, error) + func MultilineError(prefix string, err error) string + func MultipleErrors(prefix string, errs []error) string + func MustPrintWithKinds(objs []runtime.Object, infos []*resource.Info, sorter *kubectl.RuntimeSort) bool + func NewShortcutExpander(delegate meta.RESTMapper, client discovery.DiscoveryInterface) (shortcutExpander, error) + func OutputsRawFormat(cmd *cobra.Command) bool + func ParsePairs(pairArgs []string, pairType string, supportRemove bool) (newPairs map[string]string, removePairs []string, err error) + func PrintErrorWithCauses(err error, errOut io.Writer) bool + func PrintFilterCount(out io.Writer, found, hidden, errors int, options *printers.PrintOptions, ...) + func PrintResourceInfoForCommand(cmd *cobra.Command, info *resource.Info, f Factory, out io.Writer) error + func PrintSuccess(mapper meta.RESTMapper, shortOutput bool, out io.Writer, resource string, ...) + func PrinterForCommand(cmd *cobra.Command, outputOpts *printers.OutputOptions, mapper meta.RESTMapper, ...) (printers.ResourcePrinter, error) + func ReadConfigDataFromReader(reader io.Reader, source string) ([]byte, error) + func RecordChangeCause(obj runtime.Object, changeCause string) error + func RequireNoArguments(c *cobra.Command, args []string) + func ShouldIncludeUninitialized(cmd *cobra.Command, includeUninitialized bool) bool + func ShouldRecord(cmd *cobra.Command, info *resource.Info) bool + func StandardErrorMessage(err error) (string, bool) + func StripComments(file []byte) []byte + func UpdateObject(info *resource.Info, codec runtime.Codec, updateFn func(runtime.Object) error) (runtime.Object, error) + func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error + func ValidateOutputArgs(cmd *cobra.Command) error + type BuilderFactory interface + NewBuilder func() *resource.Builder + PluginLoader func() plugins.PluginLoader + PluginRunner func() plugins.PluginRunner + PrintObject func(cmd *cobra.Command, isLocal bool, mapper meta.RESTMapper, obj runtime.Object, ...) error + PrinterForCommand func(cmd *cobra.Command, isLocal bool, outputOpts *printers.OutputOptions, ...) (printers.ResourcePrinter, error) + PrinterForMapping func(cmd *cobra.Command, isLocal bool, outputOpts *printers.OutputOptions, ...) (printers.ResourcePrinter, error) + func NewBuilderFactory(clientAccessFactory ClientAccessFactory, ...) BuilderFactory + type CachedDiscoveryClient struct + func NewCachedDiscoveryClient(delegate discovery.DiscoveryInterface, cacheDirectory string, ...) *CachedDiscoveryClient + func (d *CachedDiscoveryClient) Fresh() bool + func (d *CachedDiscoveryClient) Invalidate() + func (d *CachedDiscoveryClient) OpenAPISchema() (*openapi_v2.Document, error) + func (d *CachedDiscoveryClient) RESTClient() restclient.Interface + func (d *CachedDiscoveryClient) ServerGroups() (*metav1.APIGroupList, error) + func (d *CachedDiscoveryClient) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error) + func (d *CachedDiscoveryClient) ServerPreferredResources() ([]*metav1.APIResourceList, error) + func (d *CachedDiscoveryClient) ServerResources() ([]*metav1.APIResourceList, error) + func (d *CachedDiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error) + func (d *CachedDiscoveryClient) ServerVersion() (*version.Info, error) + type ClientAccessFactory interface + BareClientConfig func() (*restclient.Config, error) + BindExternalFlags func(flags *pflag.FlagSet) + BindFlags func(flags *pflag.FlagSet) + CanBeAutoscaled func(kind schema.GroupKind) error + CanBeExposed func(kind schema.GroupKind) error + ClientConfig func() (*restclient.Config, error) + ClientConfigForVersion func(requiredVersion *schema.GroupVersion) (*restclient.Config, error) + ClientSet func() (internalclientset.Interface, error) + ClientSetForVersion func(requiredVersion *schema.GroupVersion) (internalclientset.Interface, error) + Command func(cmd *cobra.Command, showSecrets bool) string + Decoder func(toInternal bool) runtime.Decoder + DefaultNamespace func() (string, bool, error) + DefaultResourceFilterFunc func() kubectl.Filters + DefaultResourceFilterOptions func(cmd *cobra.Command, withNamespace bool) *printers.PrintOptions + DiscoveryClient func() (discovery.CachedDiscoveryInterface, error) + EditorEnvs func() []string + FederationClientForVersion func(version *schema.GroupVersion) (*restclient.RESTClient, error) + FederationClientSetForVersion func(version *schema.GroupVersion) (fedclientset.Interface, error) + FlagSet func() *pflag.FlagSet + Generators func(cmdName string) map[string]kubectl.Generator + JSONEncoder func() runtime.Encoder + KubernetesClientSet func() (*kubernetes.Clientset, error) + LabelsForObject func(object runtime.Object) (map[string]string, error) + MapBasedSelectorForObject func(object runtime.Object) (string, error) + Pauser func(info *resource.Info) ([]byte, error) + PortsForObject func(object runtime.Object) ([]string, error) + PrintObjectSpecificMessage func(obj runtime.Object, out io.Writer) + Printer func(mapping *meta.RESTMapping, options printers.PrintOptions) (printers.ResourcePrinter, error) + ProtocolsForObject func(object runtime.Object) (map[string]string, error) + RESTClient func() (*restclient.RESTClient, error) + ResolveImage func(imageName string) (string, error) + Resumer func(info *resource.Info) ([]byte, error) + SuggestedPodTemplateResources func() []schema.GroupResource + UpdatePodSpecForObject func(obj runtime.Object, fn func(*api.PodSpec) error) (bool, error) + func NewClientAccessFactory(optionalClientConfig clientcmd.ClientConfig) ClientAccessFactory + func NewClientAccessFactoryFromDiscovery(flags *pflag.FlagSet, clientConfig clientcmd.ClientConfig, ...) ClientAccessFactory + type ClientCache struct + func NewClientCache(loader clientcmd.ClientConfig, discoveryClientFactory DiscoveryClientFactory) *ClientCache + func (c *ClientCache) ClientConfigForVersion(requiredVersion *schema.GroupVersion) (*restclient.Config, error) + func (c *ClientCache) ClientSetForVersion(requiredVersion *schema.GroupVersion) (internalclientset.Interface, error) + func (c *ClientCache) FederationClientForVersion(version *schema.GroupVersion) (*restclient.RESTClient, error) + func (c *ClientCache) FederationClientSetForVersion(version *schema.GroupVersion) (fedclientset.Interface, error) + func (c *ClientCache) KubernetesClientSetForVersion(requiredVersion *schema.GroupVersion) (*kubernetes.Clientset, error) + type DiscoveryClientFactory interface + BindFlags func(flags *pflag.FlagSet) + DiscoveryClient func() (discovery.CachedDiscoveryInterface, error) + type Factory interface + func NewFactory(optionalClientConfig clientcmd.ClientConfig) Factory + type ObjectMappingFactory interface + ApproximatePodTemplateForObject func(runtime.Object) (*api.PodTemplateSpec, error) + AttachablePodForObject func(object runtime.Object, timeout time.Duration) (*api.Pod, error) + CategoryExpander func() resource.CategoryExpander + ClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) + Describer func(mapping *meta.RESTMapping) (printers.Describer, error) + HistoryViewer func(mapping *meta.RESTMapping) (kubectl.HistoryViewer, error) + LogsForObject func(object, options runtime.Object, timeout time.Duration) (*restclient.Request, error) + Object func() (meta.RESTMapper, runtime.ObjectTyper) + OpenAPISchema func() (openapi.Resources, error) + Reaper func(mapping *meta.RESTMapping) (kubectl.Reaper, error) + Rollbacker func(mapping *meta.RESTMapping) (kubectl.Rollbacker, error) + Scaler func(mapping *meta.RESTMapping) (kubectl.Scaler, error) + StatusViewer func(mapping *meta.RESTMapping) (kubectl.StatusViewer, error) + UnstructuredClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) + UnstructuredObject func() (meta.RESTMapper, runtime.ObjectTyper, error) + Validator func(validate bool) (validation.Schema, error) + func NewObjectMappingFactory(clientAccessFactory ClientAccessFactory) ObjectMappingFactory + type ValidateOptions struct + EnableValidation bool