upgradelog

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpgradeLogPvcName

func GetUpgradeLogPvcName(upgradeLog *harvesterv1.UpgradeLog) string

Returns the name of the log-archive PVC, which is created by the fluentd StatefulSet.

The name will look like: <upgradelog>-infra-log-archive-<upgradelog>-infra-fluentd-0
For instance: hvst-upgrade-bczl4-upgradelog-infra-log-archive-hvst-upgrade-bczl4-upgradelog-infra-fluentd-0.

TODO: As of rancher-logging v4.4.0, we use the PVC created by the fluentd StatefulSet, not making it ourselves. After v4.6.0, we need to revisit here and perhaps update the implementation because the upstream behavior changes.

func Register

func Register(ctx context.Context, management *config.Management, options config.Options) error

func SetUpgradeLogArchive

func SetUpgradeLogArchive(upgradeLog *harvesterv1.UpgradeLog, archiveName string, archiveSize int64, generatedTime string)

Types

type Image added in v1.2.0

type Image struct {
	Repository string `mapstructure:"repository"`
	Tag        string `mapstructure:"tag"`
}

type Values added in v1.2.0

type Values struct {
	Images map[string]Image `mapstructure:"images"`
}

Jump to

Keyboard shortcuts

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