Documentation ¶
Index ¶
- Constants
- func DumpInstallStrategyToConfigMap(clientset kubecli.KubevirtClient, operatorNamespace string) error
- func NewInstallStrategyConfigMap(config *operatorutil.KubeVirtDeploymentConfig, monitorNamespace string, ...) (*corev1.ConfigMap, error)
- type APIServiceInterface
- type MockAPIServiceInterface
- func (_m *MockAPIServiceInterface) Create(ctx context.Context, apiService *v18.APIService, opts v17.CreateOptions) (*v18.APIService, error)
- func (_m *MockAPIServiceInterface) Delete(ctx context.Context, name string, options v17.DeleteOptions) error
- func (_m *MockAPIServiceInterface) EXPECT() *_MockAPIServiceInterfaceRecorder
- func (_m *MockAPIServiceInterface) Get(ctx context.Context, name string, options v17.GetOptions) (*v18.APIService, error)
- func (_m *MockAPIServiceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*v18.APIService, error)
- type MockStrategyInterface
- func (_m *MockStrategyInterface) APIServices() []*v18.APIService
- func (_m *MockStrategyInterface) ApiDeployments() []*v13.Deployment
- func (_m *MockStrategyInterface) CRDs() []*v16.CustomResourceDefinition
- func (_m *MockStrategyInterface) CertificateSecrets() []*v14.Secret
- func (_m *MockStrategyInterface) ClusterRoleBindings() []*v15.ClusterRoleBinding
- func (_m *MockStrategyInterface) ClusterRoles() []*v15.ClusterRole
- func (_m *MockStrategyInterface) ConfigMaps() []*v14.ConfigMap
- func (_m *MockStrategyInterface) ControllerDeployments() []*v13.Deployment
- func (_m *MockStrategyInterface) DaemonSets() []*v13.DaemonSet
- func (_m *MockStrategyInterface) Deployments() []*v13.Deployment
- func (_m *MockStrategyInterface) EXPECT() *_MockStrategyInterfaceRecorder
- func (_m *MockStrategyInterface) ExportProxyDeployments() []*v13.Deployment
- func (_m *MockStrategyInterface) Instancetypes() []*v1beta1.VirtualMachineClusterInstancetype
- func (_m *MockStrategyInterface) MutatingWebhookConfigurations() []*v12.MutatingWebhookConfiguration
- func (_m *MockStrategyInterface) Preferences() []*v1beta1.VirtualMachineClusterPreference
- func (_m *MockStrategyInterface) PrometheusRules() []*v11.PrometheusRule
- func (_m *MockStrategyInterface) RoleBindings() []*v15.RoleBinding
- func (_m *MockStrategyInterface) Roles() []*v15.Role
- func (_m *MockStrategyInterface) Routes() []*v1.Route
- func (_m *MockStrategyInterface) SCCs() []*v10.SecurityContextConstraints
- func (_m *MockStrategyInterface) ServiceAccounts() []*v14.ServiceAccount
- func (_m *MockStrategyInterface) ServiceMonitors() []*v11.ServiceMonitor
- func (_m *MockStrategyInterface) Services() []*v14.Service
- func (_m *MockStrategyInterface) ValidatingAdmissionPolicies() []*v12.ValidatingAdmissionPolicy
- func (_m *MockStrategyInterface) ValidatingAdmissionPolicyBindings() []*v12.ValidatingAdmissionPolicyBinding
- func (_m *MockStrategyInterface) ValidatingWebhookConfigurations() []*v12.ValidatingWebhookConfiguration
- type Strategy
- func (ins *Strategy) APIServices() []*apiregv1.APIService
- func (ins *Strategy) ApiDeployments() []*appsv1.Deployment
- func (ins *Strategy) CRDs() []*extv1.CustomResourceDefinition
- func (ins *Strategy) CertificateSecrets() []*corev1.Secret
- func (ins *Strategy) ClusterRoleBindings() []*rbacv1.ClusterRoleBinding
- func (ins *Strategy) ClusterRoles() []*rbacv1.ClusterRole
- func (ins *Strategy) ConfigMaps() []*corev1.ConfigMap
- func (ins *Strategy) ControllerDeployments() []*appsv1.Deployment
- func (ins *Strategy) DaemonSets() []*appsv1.DaemonSet
- func (ins *Strategy) Deployments() []*appsv1.Deployment
- func (ins *Strategy) ExportProxyDeployments() []*appsv1.Deployment
- func (ins *Strategy) Instancetypes() []*instancetypev1beta1.VirtualMachineClusterInstancetype
- func (ins *Strategy) MutatingWebhookConfigurations() []*admissionregistrationv1.MutatingWebhookConfiguration
- func (ins *Strategy) Preferences() []*instancetypev1beta1.VirtualMachineClusterPreference
- func (ins *Strategy) PrometheusRules() []*promv1.PrometheusRule
- func (ins *Strategy) RoleBindings() []*rbacv1.RoleBinding
- func (ins *Strategy) Roles() []*rbacv1.Role
- func (ins *Strategy) Routes() []*routev1.Route
- func (ins *Strategy) SCCs() []*secv1.SecurityContextConstraints
- func (ins *Strategy) ServiceAccounts() []*corev1.ServiceAccount
- func (ins *Strategy) ServiceMonitors() []*promv1.ServiceMonitor
- func (ins *Strategy) Services() []*corev1.Service
- func (ins *Strategy) ValidatingAdmissionPolicies() []*admissionregistrationv1.ValidatingAdmissionPolicy
- func (ins *Strategy) ValidatingAdmissionPolicyBindings() []*admissionregistrationv1.ValidatingAdmissionPolicyBinding
- func (ins *Strategy) ValidatingWebhookConfigurations() []*admissionregistrationv1.ValidatingWebhookConfiguration
- type StrategyInterface
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 (_m *MockAPIServiceInterface) Get(ctx context.Context, name string, options v17.GetOptions) (*v18.APIService, error)
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 (_m *MockStrategyInterface) CRDs() []*v16.CustomResourceDefinition
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 (_m *MockStrategyInterface) Instancetypes() []*v1beta1.VirtualMachineClusterInstancetype
func (*MockStrategyInterface) MutatingWebhookConfigurations ¶ added in v1.3.1
func (_m *MockStrategyInterface) MutatingWebhookConfigurations() []*v12.MutatingWebhookConfiguration
func (*MockStrategyInterface) Preferences ¶ added in v1.3.1
func (_m *MockStrategyInterface) Preferences() []*v1beta1.VirtualMachineClusterPreference
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 (_m *MockStrategyInterface) SCCs() []*v10.SecurityContextConstraints
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 (*Strategy) ClusterRoleBindings ¶
func (ins *Strategy) ClusterRoleBindings() []*rbacv1.ClusterRoleBinding
func (*Strategy) ClusterRoles ¶
func (ins *Strategy) ClusterRoles() []*rbacv1.ClusterRole
func (*Strategy) ConfigMaps ¶
func (*Strategy) ControllerDeployments ¶
func (ins *Strategy) ControllerDeployments() []*appsv1.Deployment
func (*Strategy) DaemonSets ¶
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 (ins *Strategy) Instancetypes() []*instancetypev1beta1.VirtualMachineClusterInstancetype
func (*Strategy) MutatingWebhookConfigurations ¶
func (ins *Strategy) MutatingWebhookConfigurations() []*admissionregistrationv1.MutatingWebhookConfiguration
func (*Strategy) Preferences ¶ added in v1.1.0
func (ins *Strategy) Preferences() []*instancetypev1beta1.VirtualMachineClusterPreference
func (*Strategy) PrometheusRules ¶
func (ins *Strategy) PrometheusRules() []*promv1.PrometheusRule
func (*Strategy) RoleBindings ¶
func (ins *Strategy) RoleBindings() []*rbacv1.RoleBinding
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) 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 }
Click to show internal directories.
Click to hide internal directories.