install

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ManifestsEncodingGzipBase64 = "gzip+base64"

Variables

This section is empty.

Functions

func DumpInstallStrategyToConfigMap

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

func NewInstallStrategyConfigMap

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

Types

type APIServiceInterface

type APIServiceInterface interface {
	Get(ctx context.Context, name string, options metav1.GetOptions) (*apiregv1.APIService, error)
	Create(ctx context.Context, apiService *apiregv1.APIService, opts metav1.CreateOptions) (*apiregv1.APIService, error)
	Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *apiregv1.APIService, err error)
}

type MockAPIServiceInterface

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

Mock of APIServiceInterface interface

func NewMockAPIServiceInterface

func NewMockAPIServiceInterface(ctrl *gomock.Controller) *MockAPIServiceInterface

func (*MockAPIServiceInterface) Create

func (_m *MockAPIServiceInterface) Create(ctx context.Context, apiService *v18.APIService, opts v17.CreateOptions) (*v18.APIService, error)

func (*MockAPIServiceInterface) Delete

func (_m *MockAPIServiceInterface) Delete(ctx context.Context, name string, options v17.DeleteOptions) error

func (*MockAPIServiceInterface) EXPECT

func (_m *MockAPIServiceInterface) EXPECT() *_MockAPIServiceInterfaceRecorder

func (*MockAPIServiceInterface) Get

func (*MockAPIServiceInterface) Patch

func (_m *MockAPIServiceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v17.PatchOptions, subresources ...string) (*v18.APIService, error)

type MockStrategyInterface added in v1.3.1

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

Mock of StrategyInterface interface

func NewMockStrategyInterface added in v1.3.1

func NewMockStrategyInterface(ctrl *gomock.Controller) *MockStrategyInterface

func (*MockStrategyInterface) APIServices added in v1.3.1

func (_m *MockStrategyInterface) APIServices() []*v18.APIService

func (*MockStrategyInterface) ApiDeployments added in v1.3.1

func (_m *MockStrategyInterface) ApiDeployments() []*v13.Deployment

func (*MockStrategyInterface) CRDs added in v1.3.1

func (*MockStrategyInterface) CertificateSecrets added in v1.3.1

func (_m *MockStrategyInterface) CertificateSecrets() []*v14.Secret

func (*MockStrategyInterface) ClusterRoleBindings added in v1.3.1

func (_m *MockStrategyInterface) ClusterRoleBindings() []*v15.ClusterRoleBinding

func (*MockStrategyInterface) ClusterRoles added in v1.3.1

func (_m *MockStrategyInterface) ClusterRoles() []*v15.ClusterRole

func (*MockStrategyInterface) ConfigMaps added in v1.3.1

func (_m *MockStrategyInterface) ConfigMaps() []*v14.ConfigMap

func (*MockStrategyInterface) ControllerDeployments added in v1.3.1

func (_m *MockStrategyInterface) ControllerDeployments() []*v13.Deployment

func (*MockStrategyInterface) DaemonSets added in v1.3.1

func (_m *MockStrategyInterface) DaemonSets() []*v13.DaemonSet

func (*MockStrategyInterface) Deployments added in v1.3.1

func (_m *MockStrategyInterface) Deployments() []*v13.Deployment

func (*MockStrategyInterface) EXPECT added in v1.3.1

func (_m *MockStrategyInterface) EXPECT() *_MockStrategyInterfaceRecorder

func (*MockStrategyInterface) ExportProxyDeployments added in v1.3.1

func (_m *MockStrategyInterface) ExportProxyDeployments() []*v13.Deployment

func (*MockStrategyInterface) Instancetypes added in v1.3.1

func (*MockStrategyInterface) MutatingWebhookConfigurations added in v1.3.1

func (_m *MockStrategyInterface) MutatingWebhookConfigurations() []*v12.MutatingWebhookConfiguration

func (*MockStrategyInterface) Preferences added in v1.3.1

func (*MockStrategyInterface) PrometheusRules added in v1.3.1

func (_m *MockStrategyInterface) PrometheusRules() []*v11.PrometheusRule

func (*MockStrategyInterface) RoleBindings added in v1.3.1

func (_m *MockStrategyInterface) RoleBindings() []*v15.RoleBinding

func (*MockStrategyInterface) Roles added in v1.3.1

func (_m *MockStrategyInterface) Roles() []*v15.Role

func (*MockStrategyInterface) Routes added in v1.3.1

func (_m *MockStrategyInterface) Routes() []*v1.Route

func (*MockStrategyInterface) SCCs added in v1.3.1

func (*MockStrategyInterface) ServiceAccounts added in v1.3.1

func (_m *MockStrategyInterface) ServiceAccounts() []*v14.ServiceAccount

func (*MockStrategyInterface) ServiceMonitors added in v1.3.1

func (_m *MockStrategyInterface) ServiceMonitors() []*v11.ServiceMonitor

func (*MockStrategyInterface) Services added in v1.3.1

func (_m *MockStrategyInterface) Services() []*v14.Service

func (*MockStrategyInterface) ValidatingAdmissionPolicies added in v1.3.1

func (_m *MockStrategyInterface) ValidatingAdmissionPolicies() []*v12.ValidatingAdmissionPolicy

func (*MockStrategyInterface) ValidatingAdmissionPolicyBindings added in v1.3.1

func (_m *MockStrategyInterface) ValidatingAdmissionPolicyBindings() []*v12.ValidatingAdmissionPolicyBinding

func (*MockStrategyInterface) ValidatingWebhookConfigurations added in v1.3.1

func (_m *MockStrategyInterface) ValidatingWebhookConfigurations() []*v12.ValidatingWebhookConfiguration

type Strategy

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

func GenerateCurrentInstallStrategy

func GenerateCurrentInstallStrategy(config *operatorutil.KubeVirtDeploymentConfig, monitorNamespace string, operatorNamespace string) (*Strategy, error)

func LoadInstallStrategyFromCache

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

func (*Strategy) APIServices

func (ins *Strategy) APIServices() []*apiregv1.APIService

func (*Strategy) ApiDeployments

func (ins *Strategy) ApiDeployments() []*appsv1.Deployment

func (*Strategy) CRDs

func (ins *Strategy) CRDs() []*extv1.CustomResourceDefinition

func (*Strategy) CertificateSecrets

func (ins *Strategy) CertificateSecrets() []*corev1.Secret

func (*Strategy) ClusterRoleBindings

func (ins *Strategy) ClusterRoleBindings() []*rbacv1.ClusterRoleBinding

func (*Strategy) ClusterRoles

func (ins *Strategy) ClusterRoles() []*rbacv1.ClusterRole

func (*Strategy) ConfigMaps

func (ins *Strategy) ConfigMaps() []*corev1.ConfigMap

func (*Strategy) ControllerDeployments

func (ins *Strategy) ControllerDeployments() []*appsv1.Deployment

func (*Strategy) DaemonSets

func (ins *Strategy) DaemonSets() []*appsv1.DaemonSet

func (*Strategy) Deployments

func (ins *Strategy) Deployments() []*appsv1.Deployment

func (*Strategy) ExportProxyDeployments added in v0.55.0

func (ins *Strategy) ExportProxyDeployments() []*appsv1.Deployment

func (*Strategy) Instancetypes added in v1.1.0

func (*Strategy) MutatingWebhookConfigurations

func (ins *Strategy) MutatingWebhookConfigurations() []*admissionregistrationv1.MutatingWebhookConfiguration

func (*Strategy) Preferences added in v1.1.0

func (*Strategy) PrometheusRules

func (ins *Strategy) PrometheusRules() []*promv1.PrometheusRule

func (*Strategy) RoleBindings

func (ins *Strategy) RoleBindings() []*rbacv1.RoleBinding

func (*Strategy) Roles

func (ins *Strategy) Roles() []*rbacv1.Role

func (*Strategy) Routes added in v0.55.0

func (ins *Strategy) Routes() []*routev1.Route

func (*Strategy) SCCs

func (ins *Strategy) SCCs() []*secv1.SecurityContextConstraints

func (*Strategy) ServiceAccounts

func (ins *Strategy) ServiceAccounts() []*corev1.ServiceAccount

func (*Strategy) ServiceMonitors

func (ins *Strategy) ServiceMonitors() []*promv1.ServiceMonitor

func (*Strategy) Services

func (ins *Strategy) Services() []*corev1.Service

func (*Strategy) ValidatingAdmissionPolicies added in v1.3.0

func (ins *Strategy) ValidatingAdmissionPolicies() []*admissionregistrationv1.ValidatingAdmissionPolicy

func (*Strategy) ValidatingAdmissionPolicyBindings added in v1.3.0

func (ins *Strategy) ValidatingAdmissionPolicyBindings() []*admissionregistrationv1.ValidatingAdmissionPolicyBinding

func (*Strategy) ValidatingWebhookConfigurations

func (ins *Strategy) ValidatingWebhookConfigurations() []*admissionregistrationv1.ValidatingWebhookConfiguration

type StrategyInterface added in v1.3.1

type StrategyInterface interface {
	ServiceAccounts() []*corev1.ServiceAccount
	ClusterRoles() []*rbacv1.ClusterRole
	ClusterRoleBindings() []*rbacv1.ClusterRoleBinding
	Roles() []*rbacv1.Role
	RoleBindings() []*rbacv1.RoleBinding
	Services() []*corev1.Service
	Deployments() []*appsv1.Deployment
	ApiDeployments() []*appsv1.Deployment
	ControllerDeployments() []*appsv1.Deployment
	ExportProxyDeployments() []*appsv1.Deployment
	DaemonSets() []*appsv1.DaemonSet
	ValidatingWebhookConfigurations() []*admissionregistrationv1.ValidatingWebhookConfiguration
	MutatingWebhookConfigurations() []*admissionregistrationv1.MutatingWebhookConfiguration
	APIServices() []*apiregv1.APIService
	CertificateSecrets() []*corev1.Secret
	SCCs() []*secv1.SecurityContextConstraints
	ServiceMonitors() []*promv1.ServiceMonitor
	PrometheusRules() []*promv1.PrometheusRule
	ConfigMaps() []*corev1.ConfigMap
	CRDs() []*extv1.CustomResourceDefinition
	Routes() []*routev1.Route
	Instancetypes() []*instancetypev1beta1.VirtualMachineClusterInstancetype
	Preferences() []*instancetypev1beta1.VirtualMachineClusterPreference
	ValidatingAdmissionPolicyBindings() []*admissionregistrationv1.ValidatingAdmissionPolicyBinding
	ValidatingAdmissionPolicies() []*admissionregistrationv1.ValidatingAdmissionPolicy
}

Jump to

Keyboard shortcuts

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