Documentation
¶
Overview ¶
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2018 Red Hat, Inc. *
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2018 Red Hat, Inc. *
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2019 Red Hat, Inc. *
Index ¶
- func AddVersionSeparatorPrefix(version string) string
- func GetAllSCC(namespace string) []*secv1.SecurityContextConstraints
- func NewApiServerDeployment(namespace string, repository string, version string, ...) (*appsv1.Deployment, error)
- func NewApiServerService(namespace string) *corev1.Service
- func NewControllerDeployment(namespace string, repository string, controllerVersion string, ...) (*appsv1.Deployment, error)
- func NewHandlerDaemonSet(namespace string, repository string, version string, ...) (*appsv1.DaemonSet, error)
- func NewKubeVirtCR(namespace string, pullPolicy corev1.PullPolicy) *virtv1.KubeVirt
- func NewKubeVirtControllerSCC(namespace string) *secv1.SecurityContextConstraints
- func NewKubeVirtCrd() *extv1beta1.CustomResourceDefinition
- func NewKubeVirtHandlerSCC(namespace string) *secv1.SecurityContextConstraints
- func NewOperatorDeployment(namespace string, repository string, version string, ...) (*appsv1.Deployment, error)
- func NewPodDisruptionBudgetForDeployment(deployment *appsv1.Deployment) *v1beta1.PodDisruptionBudget
- func NewPresetCrd() *extv1beta1.CustomResourceDefinition
- func NewPrometheusService(namespace string) *corev1.Service
- func NewReplicaSetCrd() *extv1beta1.CustomResourceDefinition
- func NewVirtualMachineCrd() *extv1beta1.CustomResourceDefinition
- func NewVirtualMachineInstanceCrd() *extv1beta1.CustomResourceDefinition
- func NewVirtualMachineInstanceMigrationCrd() *extv1beta1.CustomResourceDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVersionSeparatorPrefix ¶ added in v0.20.0
func GetAllSCC ¶ added in v0.20.0
func GetAllSCC(namespace string) []*secv1.SecurityContextConstraints
func NewApiServerDeployment ¶
func NewApiServerDeployment(namespace string, repository string, version string, pullPolicy corev1.PullPolicy, verbosity string) (*appsv1.Deployment, error)
func NewApiServerService ¶
func NewControllerDeployment ¶
func NewControllerDeployment(namespace string, repository string, controllerVersion string, launcherVersion string, pullPolicy corev1.PullPolicy, verbosity string) (*appsv1.Deployment, error)
func NewHandlerDaemonSet ¶
func NewKubeVirtCR ¶
func NewKubeVirtCR(namespace string, pullPolicy corev1.PullPolicy) *virtv1.KubeVirt
Used by manifest generation
func NewKubeVirtControllerSCC ¶ added in v0.20.0
func NewKubeVirtControllerSCC(namespace string) *secv1.SecurityContextConstraints
func NewKubeVirtCrd ¶
func NewKubeVirtCrd() *extv1beta1.CustomResourceDefinition
Used by manifest generation If you change something here, you probably need to change the CSV manifest too, see /manifests/release/kubevirt.VERSION.csv.yaml.in
func NewKubeVirtHandlerSCC ¶ added in v0.20.0
func NewKubeVirtHandlerSCC(namespace string) *secv1.SecurityContextConstraints
func NewOperatorDeployment ¶ added in v0.16.0
func NewOperatorDeployment(namespace string, repository string, version string, pullPolicy corev1.PullPolicy, verbosity string, kubeVirtVersionEnv string, virtApiShaEnv string, virtControllerShaEnv string, virtHandlerShaEnv string, virtLauncherShaEnv string) (*appsv1.Deployment, error)
Used for manifest generation only
func NewPodDisruptionBudgetForDeployment ¶ added in v0.20.0
func NewPodDisruptionBudgetForDeployment(deployment *appsv1.Deployment) *v1beta1.PodDisruptionBudget
func NewPresetCrd ¶
func NewPresetCrd() *extv1beta1.CustomResourceDefinition
func NewPrometheusService ¶
func NewReplicaSetCrd ¶
func NewReplicaSetCrd() *extv1beta1.CustomResourceDefinition
func NewVirtualMachineCrd ¶
func NewVirtualMachineCrd() *extv1beta1.CustomResourceDefinition
func NewVirtualMachineInstanceCrd ¶
func NewVirtualMachineInstanceCrd() *extv1beta1.CustomResourceDefinition
func NewVirtualMachineInstanceMigrationCrd ¶
func NewVirtualMachineInstanceMigrationCrd() *extv1beta1.CustomResourceDefinition
Types ¶
This section is empty.