cnfclusterinfo

package
v0.0.0-...-0821b2d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PreUpgradeClusterInfo holds the cluster info pre upgrade.
	PreUpgradeClusterInfo = ClusterStruct{}

	// PostUpgradeClusterInfo holds the cluster info post upgrade.
	PostUpgradeClusterInfo = ClusterStruct{}
)

Functions

This section is empty.

Types

type ClusterStruct

type ClusterStruct struct {
	Version                  string
	ID                       string
	Name                     string
	Operators                []string
	NodeName                 string
	SriovNetworks            []string
	SriovNetworkNodePolicies []string
	WorkloadResources        []WorkloadStruct
	WorkloadPVs              WorkloadPV
}

ClusterStruct is a struct that holds the cluster info pre and post upgrade.

func (*ClusterStruct) SaveClusterInfo

func (upgradeVar *ClusterStruct) SaveClusterInfo() error

SaveClusterInfo is a dedicated func to save cluster info.

type WorkloadObjects

type WorkloadObjects struct {
	Deployment  []string
	StatefulSet []string
}

WorkloadObjects is a struct that holds the workload objects.

type WorkloadPV

type WorkloadPV struct {
	Namespace string
	PodName   string
	FilePath  string
	Digest    string
}

WorkloadPV struct holds the information to test that persistent volume content is not lost during upgrade.

type WorkloadStruct

type WorkloadStruct struct {
	Namespace string
	Objects   WorkloadObjects
}

WorkloadStruct is a struct that holds the workload info.

Jump to

Keyboard shortcuts

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