checkup

package
v0.0.0-...-4e41282 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VMIUnderTestNamePrefix = "vmi-under-test"

	AnnDefaultStorageClass = "storageclass.kubernetes.io/is-default-class"

	ErrNoDefaultStorageClass         = "no default storage class"
	ErrMultipleDefaultStorageClasses = "there are multiple default storage classes"
	ErrEmptyClaimPropertySets        = "there are StorageProfiles with empty ClaimPropertySets (unknown provisioners)"
	// FIXME: need to decide of we want to return errors in this cases
	// errMissingVolumeSnapshotClass    = "there are StorageProfiles missing VolumeSnapshotClass"
	// errVMsWithNonVirtRbdStorageClass = "there are VMs using the plain RBD storageclass when the virtualization storageclass exists"
	ErrVMsWithUnsetEfsStorageClass = "there are VMs using an EFS storageclass where the gid and uid are not set in the storageclass"
	ErrGoldenImagesNotUpToDate     = "there are golden images whose DataImportCron is not up to date or DataSource is not ready"
	ErrGoldenImageNoDataSource     = "dataSource has no PVC or Snapshot source"
	MessageSkipNoGoldenImage       = "Skip check - no golden image PVC or Snapshot"
	MessageSkipNoVMI               = "Skip check - no VMI"
)

Variables

View Source
var UnsupportedProvisioners = map[string]struct{}{
	"kubernetes.io/no-provisioner": {},

	"openshift-storage.ceph.rook.io/bucket": {},

	"openshift-storage.noobaa.io/obc": {},
}

UnsupportedProvisioners is a hash of provisioners which are known not to work with CDI

Functions

This section is empty.

Types

type Checkup

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

func New

func New(client kubeVirtStorageClient, namespace string, checkupConfig config.Config) *Checkup

func (*Checkup) Results

func (c *Checkup) Results() status.Results

func (*Checkup) Run

func (c *Checkup) Run(ctx context.Context) error

func (*Checkup) Setup

func (c *Checkup) Setup(ctx context.Context) error

func (*Checkup) Teardown

func (c *Checkup) Teardown(ctx context.Context) error

Directories

Path Synopsis
* This file is part of the kiagnose project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* This file is part of the kiagnose project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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