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 SetUpgradeLogArchive ¶
func SetUpgradeLogArchive(upgradeLog *harvesterv1.UpgradeLog, archiveName string, archiveSize int64, generatedTime string)
Types ¶
Click to show internal directories.
Click to hide internal directories.