Documentation
¶
Index ¶
- func NameFromCommandArgs(cmd *cobra.Command, args []string) (string, error)
- func NewCmdCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateClusterRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateClusterRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateConfigMap(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateNamespace(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreatePodDisruptionBudget(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreatePriorityClass(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateQuota(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateSecret(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateSecretDockerRegistry(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateSecretGeneric(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateSecretTLS(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateService(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateServiceAccount(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateServiceClusterIP(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateServiceExternalName(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateServiceLoadBalancer(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateServiceNodePort(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func RunEditOnCreate(f cmdutil.Factory, printFlags *genericclioptions.PrintFlags, ...) error
- type ClusterRoleBindingOpts
- type ConfigMapOpts
- type CreateClusterRoleOptions
- type CreateJobOptions
- type CreateOptions
- type CreateRoleOptions
- type CreateSubcommandOptions
- type DeploymentOpts
- type NamespaceOpts
- type PodDisruptionBudgetOpts
- type PriorityClassOpts
- type QuotaOpts
- type ResourceOptions
- type RoleBindingOpts
- type SecretDockerRegistryOpts
- type SecretGenericOpts
- type SecretTLSOpts
- type ServiceAccountOpts
- type ServiceClusterIPOpts
- type ServiceExternalNameOpts
- type ServiceLoadBalancerOpts
- type ServiceNodePortOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NameFromCommandArgs ¶
func NameFromCommandArgs(cmd *cobra.Command, args []string) (string, error)
NameFromCommandArgs is a utility function for commands that assume the first argument is a resource name
func NewCmdCreate ¶
func NewCmdCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdCreateClusterRole ¶
func NewCmdCreateClusterRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
ClusterRole is a command to ease creating ClusterRoles.
func NewCmdCreateClusterRoleBinding ¶
func NewCmdCreateClusterRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
ClusterRoleBinding is a command to ease creating ClusterRoleBindings.
func NewCmdCreateConfigMap ¶
func NewCmdCreateConfigMap(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
ConfigMap is a command to ease creating ConfigMaps.
func NewCmdCreateDeployment ¶
func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateDeployment is a macro command to create a new deployment. This command is better known to users as `kubectl create deployment`. Note that this command overlaps significantly with the `kubectl run` command.
func NewCmdCreateJob ¶
func NewCmdCreateJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateJob is a command to ease creating Jobs from CronJobs.
func NewCmdCreateNamespace ¶
func NewCmdCreateNamespace(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateNamespace is a macro command to create a new namespace
func NewCmdCreatePodDisruptionBudget ¶
func NewCmdCreatePodDisruptionBudget(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreatePodDisruptionBudget is a macro command to create a new pod disruption budget.
func NewCmdCreatePriorityClass ¶
func NewCmdCreatePriorityClass(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreatePriorityClass is a macro command to create a new priorityClass.
func NewCmdCreateQuota ¶
func NewCmdCreateQuota(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateQuota is a macro command to create a new quota
func NewCmdCreateRole ¶
func NewCmdCreateRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
Role is a command to ease creating Roles.
func NewCmdCreateRoleBinding ¶
func NewCmdCreateRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
RoleBinding is a command to ease creating RoleBindings.
func NewCmdCreateSecret ¶
func NewCmdCreateSecret(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateSecret groups subcommands to create various types of secrets
func NewCmdCreateSecretDockerRegistry ¶
func NewCmdCreateSecretDockerRegistry(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateSecretDockerRegistry is a macro command for creating secrets to work with Docker registries
func NewCmdCreateSecretGeneric ¶
func NewCmdCreateSecretGeneric(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateSecretGeneric is a command to create generic secrets from files, directories, or literal values
func NewCmdCreateSecretTLS ¶
func NewCmdCreateSecretTLS(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateSecretTLS is a macro command for creating secrets to work with Docker registries
func NewCmdCreateService ¶
func NewCmdCreateService(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateService is a macro command to create a new service
func NewCmdCreateServiceAccount ¶
func NewCmdCreateServiceAccount(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateServiceAccount is a macro command to create a new service account
func NewCmdCreateServiceClusterIP ¶
func NewCmdCreateServiceClusterIP(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateServiceClusterIP is a command to create a ClusterIP service
func NewCmdCreateServiceExternalName ¶
func NewCmdCreateServiceExternalName(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateServiceExternalName is a macro command for creating an ExternalName service
func NewCmdCreateServiceLoadBalancer ¶
func NewCmdCreateServiceLoadBalancer(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateServiceLoadBalancer is a macro command for creating a LoadBalancer service
func NewCmdCreateServiceNodePort ¶
func NewCmdCreateServiceNodePort(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateServiceNodePort is a macro command for creating a NodePort service
func RunEditOnCreate ¶
func RunEditOnCreate(f cmdutil.Factory, printFlags *genericclioptions.PrintFlags, recordFlags *genericclioptions.RecordFlags, ioStreams genericclioptions.IOStreams, cmd *cobra.Command, options *resource.FilenameOptions) error
Types ¶
type ClusterRoleBindingOpts ¶
type ClusterRoleBindingOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ConfigMapOpts ¶
type ConfigMapOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type CreateClusterRoleOptions ¶
type CreateClusterRoleOptions struct {
*CreateRoleOptions
NonResourceURLs []string
AggregationRule map[string]string
}
func (*CreateClusterRoleOptions) Complete ¶
func (c *CreateClusterRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error
func (*CreateClusterRoleOptions) RunCreateRole ¶
func (c *CreateClusterRoleOptions) RunCreateRole() error
type CreateJobOptions ¶
type CreateJobOptions struct {
PrintFlags *genericclioptions.PrintFlags
PrintObj func(obj runtime.Object) error
Name string
Image string
From string
Command []string
Namespace string
Client batchv1client.BatchV1Interface
DryRun bool
Builder *resource.Builder
Cmd *cobra.Command
genericclioptions.IOStreams
}
func NewCreateJobOptions ¶
func NewCreateJobOptions(ioStreams genericclioptions.IOStreams) *CreateJobOptions
type CreateOptions ¶
type CreateOptions struct {
PrintFlags *genericclioptions.PrintFlags
RecordFlags *genericclioptions.RecordFlags
DryRun bool
FilenameOptions resource.FilenameOptions
Selector string
EditBeforeCreate bool
Raw string
Recorder genericclioptions.Recorder
PrintObj func(obj kruntime.Object) error
genericclioptions.IOStreams
}
func NewCreateOptions ¶
func NewCreateOptions(ioStreams genericclioptions.IOStreams) *CreateOptions
func (*CreateOptions) Complete ¶
func (o *CreateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error
func (*CreateOptions) RunCreate ¶
func (o *CreateOptions) RunCreate(f cmdutil.Factory, cmd *cobra.Command) error
func (*CreateOptions) ValidateArgs ¶
func (o *CreateOptions) ValidateArgs(cmd *cobra.Command, args []string) error
type CreateRoleOptions ¶
type CreateRoleOptions struct {
PrintFlags *genericclioptions.PrintFlags
Name string
Verbs []string
Resources []ResourceOptions
ResourceNames []string
DryRun bool
OutputFormat string
Namespace string
Client clientgorbacv1.RbacV1Interface
Mapper meta.RESTMapper
PrintObj func(obj runtime.Object) error
genericclioptions.IOStreams
}
func NewCreateRoleOptions ¶
func NewCreateRoleOptions(ioStreams genericclioptions.IOStreams) *CreateRoleOptions
func (*CreateRoleOptions) Complete ¶
func (o *CreateRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error
func (*CreateRoleOptions) RunCreateRole ¶
func (o *CreateRoleOptions) RunCreateRole() error
type CreateSubcommandOptions ¶
type CreateSubcommandOptions struct {
// PrintFlags holds options necessary for obtaining a printer
PrintFlags *genericclioptions.PrintFlags
// Name of resource being created
Name string
// StructuredGenerator is the resource generator for the object being created
StructuredGenerator generate.StructuredGenerator
// DryRun is true if the command should be simulated but not run against the server
DryRun bool
CreateAnnotation bool
Namespace string
EnforceNamespace bool
Mapper meta.RESTMapper
DynamicClient dynamic.Interface
PrintObj printers.ResourcePrinterFunc
genericclioptions.IOStreams
}
CreateSubcommandOptions is an options struct to support create subcommands
func NewCreateSubcommandOptions ¶
func NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions
type DeploymentOpts ¶
type DeploymentOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type NamespaceOpts ¶
type NamespaceOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type PodDisruptionBudgetOpts ¶
type PodDisruptionBudgetOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type PriorityClassOpts ¶
type PriorityClassOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type QuotaOpts ¶
type QuotaOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ResourceOptions ¶
type ResourceOptions struct {
Group string
Resource string
SubResource string
}
type RoleBindingOpts ¶
type RoleBindingOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type SecretDockerRegistryOpts ¶
type SecretDockerRegistryOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type SecretGenericOpts ¶
type SecretGenericOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type SecretTLSOpts ¶
type SecretTLSOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ServiceAccountOpts ¶
type ServiceAccountOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ServiceClusterIPOpts ¶
type ServiceClusterIPOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ServiceExternalNameOpts ¶
type ServiceExternalNameOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ServiceLoadBalancerOpts ¶
type ServiceLoadBalancerOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}
type ServiceNodePortOpts ¶
type ServiceNodePortOpts struct {
CreateSubcommandOptions *CreateSubcommandOptions
}