components

package
v0.28.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

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

Constants

View Source
const (
	KUBEVIRT_PROMETHEUS_RULE_NAME = "prometheus-kubevirt-rules"
)

Variables

This section is empty.

Functions

func AddVersionSeparatorPrefix added in v0.20.0

func AddVersionSeparatorPrefix(version string) string

func GetAllSCC added in v0.20.0

func GetAllSCC(namespace string) []*secv1.SecurityContextConstraints

func NewApiServerDeployment

func NewApiServerDeployment(namespace string, repository string, imagePrefix string, version string, pullPolicy corev1.PullPolicy, verbosity string) (*appsv1.Deployment, error)

func NewApiServerService

func NewApiServerService(namespace string) *corev1.Service

func NewControllerDeployment

func NewControllerDeployment(namespace string, repository string, imagePrefix string, controllerVersion string, launcherVersion string, pullPolicy corev1.PullPolicy, verbosity string) (*appsv1.Deployment, error)

func NewHandlerDaemonSet

func NewHandlerDaemonSet(namespace string, repository string, imagePrefix string, version string, pullPolicy corev1.PullPolicy, verbosity string) (*appsv1.DaemonSet, error)

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 NewKubeVirtPriorityClassCR added in v0.29.0

func NewKubeVirtPriorityClassCR() *schedulingv1.PriorityClass

NewKubeVirtPriorityClassCR is used for manifest generation

func NewOperatorDeployment added in v0.16.0

func NewOperatorDeployment(namespace string, repository string, imagePrefix 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 NewPrometheusRuleCR added in v0.26.0

func NewPrometheusRuleCR(namespace string) *promv1.PrometheusRule

NewPrometheusRuleCR returns a PrometheusRule with a group of alerts for the KubeVirt deployment.

func NewPrometheusRuleSpec added in v0.26.0

func NewPrometheusRuleSpec(ns string) *promv1.PrometheusRuleSpec

NewPrometheusRuleSpec makes a prometheus rule spec for kubevirt

func NewPrometheusService

func NewPrometheusService(namespace string) *corev1.Service

func NewReplicaSetCrd

func NewReplicaSetCrd() *extv1beta1.CustomResourceDefinition

func NewServiceMonitorCR added in v0.20.6

func NewServiceMonitorCR(namespace string, monitorNamespace string, insecureSkipVerify bool) *promv1.ServiceMonitor

func NewValidatingWebhookConfiguration added in v0.26.0

func NewValidatingWebhookConfiguration(operatorNamespace string) *v1beta1.ValidatingWebhookConfiguration

func NewVirtualMachineCrd

func NewVirtualMachineCrd() *extv1beta1.CustomResourceDefinition

func NewVirtualMachineInstanceCrd

func NewVirtualMachineInstanceCrd() *extv1beta1.CustomResourceDefinition

func NewVirtualMachineInstanceMigrationCrd

func NewVirtualMachineInstanceMigrationCrd() *extv1beta1.CustomResourceDefinition

func NewWebhookService added in v0.26.0

func NewWebhookService(operatorNamespace string) *corev1.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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