Documentation ¶
Index ¶
- Constants
- Variables
- func GardenerTimestampFromUnstructured(worker *unstructured.Unstructured) (gardenerTimeStamp time.Time, err error)
- func IsEqualQuantity(a, b resource.Quantity) bool
- func MachineDeploymentInfoFromUnstructured(mcd *unstructured.Unstructured, snapshotTime time.Time) (mcdInfo gsc.MachineDeploymentInfo, err error)
- func NodeInfoFromNode(n *corev1.Node, allocatableVolumes int) gsc.NodeInfo
- func ResourceListFromMap(input map[string]any) (corev1.ResourceList, error)
- func WorkerPoolInfosFromUnstructured(worker *unstructured.Unstructured) (map[string]gsc.WorkerPoolInfo, error)
- type ExecutionMode
- type FileInfo
- type FileInfos
- type MachineClassInfo
- type PodInfoKey
- type PoolZone
- type Recorder
- type RecorderParams
- type ReplayReport
- type Replayer
- type ReplayerParams
- type ResourceStats
- type ScalingResult
- type Scenario
Constants ¶
View Source
const PoolLabel = "worker.gardener.cloud/pool"
View Source
const PoolLabelAlt = "worker_gardener_cloud_pool"
View Source
const PoolLabelAlt1 = "worker.gardener.cloud_pool"
Variables ¶
View Source
var PoolLabels = []string{ PoolLabel, PoolLabelAlt, PoolLabelAlt1, }
Functions ¶
func GardenerTimestampFromUnstructured ¶
func GardenerTimestampFromUnstructured(worker *unstructured.Unstructured) (gardenerTimeStamp time.Time, err error)
func IsEqualQuantity ¶
func MachineDeploymentInfoFromUnstructured ¶
func MachineDeploymentInfoFromUnstructured(mcd *unstructured.Unstructured, snapshotTime time.Time) (mcdInfo gsc.MachineDeploymentInfo, err error)
func NodeInfoFromNode ¶
func ResourceListFromMap ¶
func ResourceListFromMap(input map[string]any) (corev1.ResourceList, error)
func WorkerPoolInfosFromUnstructured ¶
func WorkerPoolInfosFromUnstructured(worker *unstructured.Unstructured) (map[string]gsc.WorkerPoolInfo, error)
Types ¶
type ExecutionMode ¶
type ExecutionMode string
var ( InUtilityClusterMode ExecutionMode = "in-utility-cluster" LocalMode ExecutionMode = "local" )
type MachineClassInfo ¶
type MachineClassInfo struct { gsc.SnapshotMeta // Instance type of the node belonging to nodeGroup InstanceType string // PoolName is the name of the gardener shoot worker pool that this machine class belongs to PoolName string // Region of the node belonging to nodeGroup Region string // Zone of the node that will be associated with this machine class Zone string // Labels is the machine class provider spec labels. Labels map[string]string // Capacity contains subfields to track all node resources required to scale nodegroup from zero Capacity corev1.ResourceList DeletionTimestamp time.Time Hash string }
func MachineClassInfoFromUnstructured ¶
func MachineClassInfoFromUnstructured(mcc *unstructured.Unstructured, snapshotTime time.Time) (mccInfo MachineClassInfo, err error)
func (MachineClassInfo) GetHash ¶
func (m MachineClassInfo) GetHash() string
func (MachineClassInfo) String ¶
func (m MachineClassInfo) String() string
type PodInfoKey ¶
type Recorder ¶
Recorder monitors the cluster denoted by given kubeconfig and records events and cluster data into cluster database
type RecorderParams ¶
type RecorderParams struct { Mode ExecutionMode Landscape string ProjectName string ShootName string SeedName string ShootNameSpace string ShootKubeConfigPath string SeedKubeConfigPath string DBDir string // contains filtered or unexported fields }
func (RecorderParams) ShootLabel ¶
func (rp RecorderParams) ShootLabel() string
func (RecorderParams) String ¶
func (rp RecorderParams) String() string
type ReplayReport ¶
type ReplayerParams ¶
type ResourceStats ¶
type ScalingResult ¶
type Scenario ¶
type Scenario struct { BeginTime time.Time ClusterSnapshot gsc.ClusterSnapshot ScalingResult ScalingResult }
func (Scenario) GetResourceStat ¶
func (report Scenario) GetResourceStat() (stats ResourceStats, err error)
Click to show internal directories.
Click to hide internal directories.