karmada

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeInitDataJob

func NewDeInitDataJob(opt *DeInitOptions) *workflow.Job

NewDeInitDataJob initializes a deInit job with a list of sub tasks. and build deinit runData object

func NewInitJob

func NewInitJob(opt *InitOptions) *workflow.Job

NewInitJob initializes a job with list of init sub-task. and build init runData object.

Types

type DeInitOpt

type DeInitOpt func(o *DeInitOptions)

DeInitOpt defines a type of function to set DeInitOptions values.

func NewDeInitOptWithKarmada

func NewDeInitOptWithKarmada(karmada *operatorv1alpha1.Karmada) DeInitOpt

NewDeInitOptWithKarmada returns a DeInitOpt function to initialize DeInitOptions with karmada resource

func NewDeInitOptWithKubeconfig

func NewDeInitOptWithKubeconfig(config *rest.Config) DeInitOpt

NewDeInitOptWithKubeconfig returns a DeInitOpt function to set kubeconfig to DeInitOptions with rest config

type DeInitOptions

type DeInitOptions struct {
	Name        string
	Namespace   string
	Kubeconfig  *rest.Config
	HostCluster *operatorv1alpha1.HostCluster
}

DeInitOptions defines all the Deinit workflow options.

func NewJobDeInitOptions

func NewJobDeInitOptions(opts ...DeInitOpt) *DeInitOptions

NewJobDeInitOptions calls all of DeInitOpt func to initialize a DeInitOptions. if there is not DeInitOpt functions, it will return a default DeInitOptions.

type InitOpt

type InitOpt func(o *InitOptions)

InitOpt defines a type of function to set InitOptions values.

func NewInitOptWithKarmada

func NewInitOptWithKarmada(karmada *operatorv1alpha1.Karmada) InitOpt

NewInitOptWithKarmada returns a InitOpt function to initialize InitOptions with karmada resource

func NewInitOptWithKubeconfig

func NewInitOptWithKubeconfig(config *rest.Config) InitOpt

NewInitOptWithKubeconfig returns a InitOpt function to set kubeconfig to InitOptions with rest config

type InitOptions

type InitOptions struct {
	Name           string
	Namespace      string
	Kubeconfig     *rest.Config
	KarmadaVersion string
	CRDTarball     operatorv1alpha1.CRDTarball
	KarmadaDataDir string
	Karmada        *operatorv1alpha1.Karmada
}

InitOptions defines all the init workflow options.

func NewJobInitOptions

func NewJobInitOptions(opts ...InitOpt) *InitOptions

NewJobInitOptions calls all of InitOpt func to initialize a InitOptions. if there is not InitOpt functions, it will return a default InitOptions.

func (*InitOptions) Validate added in v1.8.0

func (opt *InitOptions) Validate() error

Validate is used to validate the initOptions before creating initJob.

Directories

Path Synopsis
apis
controller
generated
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/operator/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/operator/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
karmadaresource
tasks

Jump to

Keyboard shortcuts

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