installstrategy

package
v0.32.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const Duration1d = time.Hour * 24
View Source
const Duration7d = time.Hour * 24 * 7

Variables

This section is empty.

Functions

func DeleteAll added in v0.16.0

func DeleteAll(kv *v1.KubeVirt,
	strategy *InstallStrategy,
	stores util.Stores,
	clientset kubecli.KubevirtClient,
	aggregatorclient APIServiceInterface,
	expectations *util.Expectations) error

func DumpInstallStrategyToConfigMap

func DumpInstallStrategyToConfigMap(clientset kubecli.KubevirtClient, operatorNamespace string) error

func NewInstallStrategyConfigMap

func NewInstallStrategyConfigMap(config *operatorutil.KubeVirtDeploymentConfig, addMonitorServiceResources bool, operatorNamespace string) (*corev1.ConfigMap, error)

func SyncAll added in v0.16.0

func SyncAll(queue workqueue.RateLimitingInterface, kv *v1.KubeVirt, prevStrategy *InstallStrategy, targetStrategy *InstallStrategy, stores util.Stores, clientset kubecli.KubevirtClient, aggregatorclient APIServiceInterface, expectations *util.Expectations) (bool, error)

Types

type APIServiceInterface added in v0.29.0

type APIServiceInterface interface {
	Get(name string, options metav1.GetOptions) (*v1beta1.APIService, error)
	Create(*v1beta1.APIService) (*v1beta1.APIService, error)
	Delete(name string, options *metav1.DeleteOptions) error
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.APIService, err error)
}

type InstallStrategy

type InstallStrategy struct {
	// contains filtered or unexported fields
}

func GenerateCurrentInstallStrategy

func GenerateCurrentInstallStrategy(config *operatorutil.KubeVirtDeploymentConfig, addMonitorServiceResources bool, operatorNamespace string) (*InstallStrategy, error)

func LoadInstallStrategyFromCache

func LoadInstallStrategyFromCache(stores util.Stores, config *operatorutil.KubeVirtDeploymentConfig) (*InstallStrategy, error)

type MockAPIServiceInterface added in v0.29.0

type MockAPIServiceInterface struct {
	// contains filtered or unexported fields
}

Mock of APIServiceInterface interface

func NewMockAPIServiceInterface added in v0.29.0

func NewMockAPIServiceInterface(ctrl *gomock.Controller) *MockAPIServiceInterface

func (*MockAPIServiceInterface) Create added in v0.29.0

func (*MockAPIServiceInterface) Delete added in v0.29.0

func (_m *MockAPIServiceInterface) Delete(name string, options *v1.DeleteOptions) error

func (*MockAPIServiceInterface) EXPECT added in v0.29.0

func (_m *MockAPIServiceInterface) EXPECT() *_MockAPIServiceInterfaceRecorder

func (*MockAPIServiceInterface) Get added in v0.29.0

func (_m *MockAPIServiceInterface) Get(name string, options v1.GetOptions) (*v1beta1.APIService, error)

func (*MockAPIServiceInterface) Patch added in v0.29.0

func (_m *MockAPIServiceInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1beta1.APIService, error)

Jump to

Keyboard shortcuts

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