kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/create Index | Files

package create

import "k8s.io/kubernetes/pkg/kubectl/cmd/create"

Index

Package Files

create.go create_clusterrole.go create_clusterrolebinding.go create_configmap.go create_cronjob.go create_deployment.go create_job.go create_namespace.go create_pdb.go create_priorityclass.go create_quota.go create_role.go create_rolebinding.go create_secret.go create_service.go create_serviceaccount.go

func NameFromCommandArgs Uses

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 Uses

func NewCmdCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreate returns new initialized instance of create sub command

func NewCmdCreateClusterRole Uses

func NewCmdCreateClusterRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateClusterRole initializes and returns new ClusterRoles command

func NewCmdCreateClusterRoleBinding Uses

func NewCmdCreateClusterRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateClusterRoleBinding returns an initialized command instance of ClusterRoleBinding

func NewCmdCreateConfigMap Uses

func NewCmdCreateConfigMap(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateConfigMap initializes and returns ConfigMapOpts

func NewCmdCreateCronJob Uses

func NewCmdCreateCronJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateCronJob is a command to to create CronJobs.

func NewCmdCreateDeployment Uses

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 Uses

func NewCmdCreateJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateJob is a command to ease creating Jobs from CronJobs.

func NewCmdCreateNamespace Uses

func NewCmdCreateNamespace(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateNamespace is a macro command to create a new namespace

func NewCmdCreatePodDisruptionBudget Uses

func NewCmdCreatePodDisruptionBudget(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreatePodDisruptionBudget is a macro command to create a new pod disruption budget.

func NewCmdCreatePriorityClass Uses

func NewCmdCreatePriorityClass(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreatePriorityClass is a macro command to create a new priorityClass.

func NewCmdCreateQuota Uses

func NewCmdCreateQuota(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateQuota is a macro command to create a new quota

func NewCmdCreateRole Uses

func NewCmdCreateRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateRole returnns an initialized Command instance for 'create role' sub command

func NewCmdCreateRoleBinding Uses

func NewCmdCreateRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateRoleBinding returns an initialized Command instance for 'create rolebinding' sub command

func NewCmdCreateSecret Uses

func NewCmdCreateSecret(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateSecret groups subcommands to create various types of secrets

func NewCmdCreateSecretDockerRegistry Uses

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 Uses

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 Uses

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 Uses

func NewCmdCreateService(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateService is a macro command to create a new service

func NewCmdCreateServiceAccount Uses

func NewCmdCreateServiceAccount(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateServiceAccount is a macro command to create a new service account

func NewCmdCreateServiceClusterIP Uses

func NewCmdCreateServiceClusterIP(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateServiceClusterIP is a command to create a ClusterIP service

func NewCmdCreateServiceExternalName Uses

func NewCmdCreateServiceExternalName(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateServiceExternalName is a macro command for creating an ExternalName service

func NewCmdCreateServiceLoadBalancer Uses

func NewCmdCreateServiceLoadBalancer(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateServiceLoadBalancer is a macro command for creating a LoadBalancer service

func NewCmdCreateServiceNodePort Uses

func NewCmdCreateServiceNodePort(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreateServiceNodePort is a macro command for creating a NodePort service

func RunEditOnCreate Uses

func RunEditOnCreate(f cmdutil.Factory, printFlags *genericclioptions.PrintFlags, recordFlags *genericclioptions.RecordFlags, ioStreams genericclioptions.IOStreams, cmd *cobra.Command, options *resource.FilenameOptions) error

RunEditOnCreate performs edit on creation

type ClusterRoleBindingOpts Uses

type ClusterRoleBindingOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ClusterRoleBindingOpts is returned by NewCmdCreateClusterRoleBinding

func (*ClusterRoleBindingOpts) Complete Uses

func (o *ClusterRoleBindingOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ClusterRoleBindingOpts) Run Uses

func (o *ClusterRoleBindingOpts) Run() error

Run calls the CreateSubcommandOptions.Run in ClusterRoleBindingOpts instance

type ConfigMapOpts Uses

type ConfigMapOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ConfigMapOpts holds properties for create configmap sub-command

func (*ConfigMapOpts) Complete Uses

func (o *ConfigMapOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ConfigMapOpts) Run Uses

func (o *ConfigMapOpts) Run() error

Run performs the execution of 'create' sub command options

type CreateClusterRoleOptions Uses

type CreateClusterRoleOptions struct {
    *CreateRoleOptions
    NonResourceURLs []string
    AggregationRule map[string]string
}

CreateClusterRoleOptions is returned by NewCmdCreateClusterRole

func (*CreateClusterRoleOptions) Complete Uses

func (c *CreateClusterRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*CreateClusterRoleOptions) RunCreateRole Uses

func (c *CreateClusterRoleOptions) RunCreateRole() error

RunCreateRole creates a new clusterRole

func (*CreateClusterRoleOptions) Validate Uses

func (c *CreateClusterRoleOptions) Validate() error

Validate makes sure there is no discrepency in CreateClusterRoleOptions

type CreateCronJobOptions Uses

type CreateCronJobOptions struct {
    PrintFlags *genericclioptions.PrintFlags

    PrintObj func(obj runtime.Object) error

    Name     string
    Image    string
    Schedule string
    Command  []string
    Restart  string

    Namespace string
    Client    batchv1beta1client.BatchV1beta1Interface
    DryRun    bool
    Builder   *resource.Builder
    Cmd       *cobra.Command

    genericclioptions.IOStreams
}

func NewCreateCronJobOptions Uses

func NewCreateCronJobOptions(ioStreams genericclioptions.IOStreams) *CreateCronJobOptions

func (*CreateCronJobOptions) Complete Uses

func (o *CreateCronJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (*CreateCronJobOptions) Run Uses

func (o *CreateCronJobOptions) Run() error

func (*CreateCronJobOptions) Validate Uses

func (o *CreateCronJobOptions) Validate() error

type CreateJobOptions Uses

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
}

CreateJobOptions is the command line options for 'create job'

func NewCreateJobOptions Uses

func NewCreateJobOptions(ioStreams genericclioptions.IOStreams) *CreateJobOptions

NewCreateJobOptions initializes and returns new CreateJobOptions instance

func (*CreateJobOptions) Complete Uses

func (o *CreateJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*CreateJobOptions) Run Uses

func (o *CreateJobOptions) Run() error

Run performs the execution of 'create job' sub command

func (*CreateJobOptions) Validate Uses

func (o *CreateJobOptions) Validate() error

Validate makes sure provided values and valid Job options

type CreateOptions Uses

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
}

CreateOptions is the commandline options for 'create' sub command

func NewCreateOptions Uses

func NewCreateOptions(ioStreams genericclioptions.IOStreams) *CreateOptions

NewCreateOptions returns an initialized CreateOptions instance

func (*CreateOptions) Complete Uses

func (o *CreateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error

Complete completes all the required options

func (*CreateOptions) RunCreate Uses

func (o *CreateOptions) RunCreate(f cmdutil.Factory, cmd *cobra.Command) error

RunCreate performs the creation

func (*CreateOptions) ValidateArgs Uses

func (o *CreateOptions) ValidateArgs(cmd *cobra.Command, args []string) error

ValidateArgs makes sure there is no discrepency in command options

type CreateRoleOptions Uses

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
}

CreateRoleOptions holds the options for 'create role' sub command

func NewCreateRoleOptions Uses

func NewCreateRoleOptions(ioStreams genericclioptions.IOStreams) *CreateRoleOptions

NewCreateRoleOptions returns an initialized CreateRoleOptions instance

func (*CreateRoleOptions) Complete Uses

func (o *CreateRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*CreateRoleOptions) RunCreateRole Uses

func (o *CreateRoleOptions) RunCreateRole() error

RunCreateRole performs the execution of 'create role' sub command

func (*CreateRoleOptions) Validate Uses

func (o *CreateRoleOptions) Validate() error

Validate makes sure there is no discrepency in provided option values

type CreateSubcommandOptions Uses

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 Uses

func NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions

NewCreateSubcommandOptions returns initialized CreateSubcommandOptions

func (*CreateSubcommandOptions) Complete Uses

func (o *CreateSubcommandOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string, generator generate.StructuredGenerator) error

Complete completes all the required options

func (*CreateSubcommandOptions) Run Uses

func (o *CreateSubcommandOptions) Run() error

Run executes a create subcommand using the specified options

type DeploymentOpts Uses

type DeploymentOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

DeploymentOpts is returned by NewCmdCreateDeployment

func (*DeploymentOpts) Complete Uses

func (o *DeploymentOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the options

func (*DeploymentOpts) Run Uses

func (o *DeploymentOpts) Run() error

Run performs the execution of 'create deployment' sub command

type NamespaceOpts Uses

type NamespaceOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

NamespaceOpts is the options for 'create namespare' sub command

func (*NamespaceOpts) Complete Uses

func (o *NamespaceOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*NamespaceOpts) Run Uses

func (o *NamespaceOpts) Run() error

Run calls the CreateSubcommandOptions.Run in NamespaceOpts instance

type PodDisruptionBudgetOpts Uses

type PodDisruptionBudgetOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

PodDisruptionBudgetOpts holds the command-line options for poddisruptionbudget sub command

func (*PodDisruptionBudgetOpts) Complete Uses

func (o *PodDisruptionBudgetOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*PodDisruptionBudgetOpts) Run Uses

func (o *PodDisruptionBudgetOpts) Run() error

Run calls the CreateSubcommandOptions.Run in PodDisruptionBudgetOpts instance

type PriorityClassOpts Uses

type PriorityClassOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

PriorityClassOpts holds the options for 'create priorityclass' sub command

func (*PriorityClassOpts) Complete Uses

func (o *PriorityClassOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*PriorityClassOpts) Run Uses

func (o *PriorityClassOpts) Run() error

Run calls the CreateSubcommandOptions.Run in the PriorityClassOpts instance

type QuotaOpts Uses

type QuotaOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

QuotaOpts holds the command-line options for 'create quota' sub command

func (*QuotaOpts) Complete Uses

func (o *QuotaOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*QuotaOpts) Run Uses

func (o *QuotaOpts) Run() error

Run calls the CreateSubcommandOptions.Run in QuotaOpts instance

type ResourceOptions Uses

type ResourceOptions struct {
    Group       string
    Resource    string
    SubResource string
}

ResourceOptions holds the related options for '--resource' option

type RoleBindingOpts Uses

type RoleBindingOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

RoleBindingOpts holds the options for 'create rolebinding' sub command

func (*RoleBindingOpts) Complete Uses

func (o *RoleBindingOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*RoleBindingOpts) Run Uses

func (o *RoleBindingOpts) Run() error

Run calls the CreateSubcommandOptions.Run in RoleBindingOpts instance

type SecretDockerRegistryOpts Uses

type SecretDockerRegistryOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

SecretDockerRegistryOpts holds the options for 'create secret docker-registry' sub command

func (*SecretDockerRegistryOpts) Complete Uses

func (o *SecretDockerRegistryOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*SecretDockerRegistryOpts) Run Uses

func (o *SecretDockerRegistryOpts) Run() error

Run calls CreateSubcommandOptions.Run in SecretDockerRegistryOpts instance

type SecretGenericOpts Uses

type SecretGenericOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

SecretGenericOpts holds the options for 'create secret' sub command

func (*SecretGenericOpts) Complete Uses

func (o *SecretGenericOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*SecretGenericOpts) Run Uses

func (o *SecretGenericOpts) Run() error

Run calls the CreateSubcommandOptions.Run in SecretGenericOpts instance

type SecretTLSOpts Uses

type SecretTLSOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

SecretTLSOpts holds the options for 'create secret tls' sub command

func (*SecretTLSOpts) Complete Uses

func (o *SecretTLSOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*SecretTLSOpts) Run Uses

func (o *SecretTLSOpts) Run() error

Run calls CreateSubcommandOptions.Run in the SecretTLSOpts instance

type ServiceAccountOpts Uses

type ServiceAccountOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ServiceAccountOpts holds the options for 'create serviceaccount' sub command

func (*ServiceAccountOpts) Complete Uses

func (o *ServiceAccountOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ServiceAccountOpts) Run Uses

func (o *ServiceAccountOpts) Run() error

Run calls the CreateSubcommandOptions.Run in ServiceAccountOpts instance

type ServiceClusterIPOpts Uses

type ServiceClusterIPOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ServiceClusterIPOpts holds the options for 'create service clusterip' sub command

func (*ServiceClusterIPOpts) Complete Uses

func (o *ServiceClusterIPOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ServiceClusterIPOpts) Run Uses

func (o *ServiceClusterIPOpts) Run() error

Run calls the CreateSubcommandOptions.Run in ServiceClusterIPOpts instance

type ServiceExternalNameOpts Uses

type ServiceExternalNameOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ServiceExternalNameOpts holds the options for 'create service externalname' sub command

func (*ServiceExternalNameOpts) Complete Uses

func (o *ServiceExternalNameOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ServiceExternalNameOpts) Run Uses

func (o *ServiceExternalNameOpts) Run() error

Run calls the CreateSubcommandOptions.Run in ServiceExternalNameOpts instance

type ServiceLoadBalancerOpts Uses

type ServiceLoadBalancerOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ServiceLoadBalancerOpts holds the options for 'create service loadbalancer' sub command

func (*ServiceLoadBalancerOpts) Complete Uses

func (o *ServiceLoadBalancerOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ServiceLoadBalancerOpts) Run Uses

func (o *ServiceLoadBalancerOpts) Run() error

Run calls the CreateSubcommandOptions.Run in ServiceLoadBalancerOpts instance

type ServiceNodePortOpts Uses

type ServiceNodePortOpts struct {
    CreateSubcommandOptions *CreateSubcommandOptions
}

ServiceNodePortOpts holds the options for 'create service nodeport' sub command

func (*ServiceNodePortOpts) Complete Uses

func (o *ServiceNodePortOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ServiceNodePortOpts) Run Uses

func (o *ServiceNodePortOpts) Run() error

Run calls the CreateSubcommandOptions.Run in ServiceNodePortOpts instance

Package create imports 35 packages (graph) and is imported by 11 packages. Updated 2019-07-19. Refresh now. Tools for package owners.