util

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 14 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 2019 Red Hat, Inc. *

Index

Constants

View Source
const (
	KubeVirtFinalizer string = "foregroundDeleteKubeVirt"
)
View Source
const (
	// Name of env var containing the operator's image name
	OperatorImageEnvName = "OPERATOR_IMAGE"
)

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(kv *virtv1.KubeVirt)

func IsStoreEmpty

func IsStoreEmpty(store cache.Store) bool

func SetVersions

func SetVersions(kv *virtv1.KubeVirt, config KubeVirtDeploymentConfig)

func UpdateCondition

func UpdateCondition(kv *virtv1.KubeVirt, conditionType virtv1.KubeVirtConditionType, status k8sv1.ConditionStatus, reason string, message string)

func UpdateScc

func UpdateScc(clientset kubecli.KubevirtClient, kv *virtv1.KubeVirt, add bool) error

Types

type KubeVirtDeploymentConfig

type KubeVirtDeploymentConfig struct {
	ImageRegistry string
	ImageTag      string
}

func GetConfig

func GetConfig() KubeVirtDeploymentConfig

type Stores

type Stores struct {
	ServiceAccountCache     cache.Store
	ClusterRoleCache        cache.Store
	ClusterRoleBindingCache cache.Store
	RoleCache               cache.Store
	RoleBindingCache        cache.Store
	CrdCache                cache.Store
	ServiceCache            cache.Store
	DeploymentCache         cache.Store
	DaemonSetCache          cache.Store
}

func (*Stores) AllEmpty

func (s *Stores) AllEmpty() bool

Jump to

Keyboard shortcuts

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