create

package
v0.9.0-devel Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterQueueCmd added in v0.8.0

func NewClusterQueueCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command

func NewCreateCmd

func NewCreateCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command

func NewLocalQueueCmd

func NewLocalQueueCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command

func NewResourceFlavorCmd added in v0.8.0

func NewResourceFlavorCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command

Types

type ClusterQueueOptions added in v0.8.0

type ClusterQueueOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	DryRunStrategy               util.DryRunStrategy
	Name                         string
	Cohort                       string
	QueueingStrategy             v1beta1.QueueingStrategy
	NamespaceSelector            metav1.LabelSelector
	ReclaimWithinCohort          v1beta1.PreemptionPolicy
	PreemptionWithinClusterQueue v1beta1.PreemptionPolicy
	ResourceGroups               []v1beta1.ResourceGroup

	UserSpecifiedQueueingStrategy             string
	UserSpecifiedNamespaceSelector            map[string]string
	UserSpecifiedReclaimWithinCohort          string
	UserSpecifiedPreemptionWithinClusterQueue string
	UserSpecifiedNominalQuota                 []string
	UserSpecifiedBorrowingLimit               []string
	UserSpecifiedLendingLimit                 []string

	Client kueuev1beta1.KueueV1beta1Interface

	PrintObj printers.ResourcePrinterFunc

	genericiooptions.IOStreams
}

func NewClusterQueueOptions added in v0.8.0

func NewClusterQueueOptions(streams genericiooptions.IOStreams) *ClusterQueueOptions

func (*ClusterQueueOptions) Complete added in v0.8.0

func (o *ClusterQueueOptions) Complete(clientGetter util.ClientGetter, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ClusterQueueOptions) Run added in v0.8.0

Run create clusterqueue

type LocalQueueOptions

type LocalQueueOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	DryRunStrategy   util.DryRunStrategy
	Name             string
	Namespace        string
	EnforceNamespace bool
	ClusterQueue     v1beta1.ClusterQueueReference
	IgnoreUnknownCq  bool

	UserSpecifiedClusterQueue string

	Client kueuev1beta1.KueueV1beta1Interface

	PrintObj printers.ResourcePrinterFunc

	genericiooptions.IOStreams
}

func NewLocalQueueOptions

func NewLocalQueueOptions(streams genericiooptions.IOStreams) *LocalQueueOptions

func (*LocalQueueOptions) Complete

func (o *LocalQueueOptions) Complete(clientGetter util.ClientGetter, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*LocalQueueOptions) Run

func (o *LocalQueueOptions) Run(ctx context.Context) error

Run create localqueue

func (*LocalQueueOptions) Validate

func (o *LocalQueueOptions) Validate(ctx context.Context) error

Validate validates required fields are set to support structured generation

type ResourceFlavorOptions added in v0.8.0

type ResourceFlavorOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	DryRunStrategy util.DryRunStrategy
	Name           string
	NodeLabels     map[string]string
	NodeTaints     []corev1.Taint
	Tolerations    []corev1.Toleration

	UserSpecifiedNodeTaints  []string
	UserSpecifiedTolerations []string

	Client kueuev1beta1.KueueV1beta1Interface

	PrintObj printers.ResourcePrinterFunc

	genericiooptions.IOStreams
}

func NewResourceFlavorOptions added in v0.8.0

func NewResourceFlavorOptions(streams genericiooptions.IOStreams) *ResourceFlavorOptions

func (*ResourceFlavorOptions) Complete added in v0.8.0

func (o *ResourceFlavorOptions) Complete(clientGetter util.ClientGetter, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*ResourceFlavorOptions) Run added in v0.8.0

Run create a resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL