dashboard

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 46 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanDoAction added in v0.27.0

func CanDoAction(status config.UpgradeStatus, action string) bool

func DiffConfig added in v0.26.0

func DiffConfig(pod *corev1.Pod, pv *corev1.PersistentVolume, pvc *corev1.PersistentVolumeClaim, secret, custSecret *corev1.Secret) (bool, error)

func DownloadYaml added in v0.28.0

func DownloadYaml(in interface{}, saveFile string) error

func GenUpgradeConfig added in v0.26.0

func GenUpgradeConfig(jobName string) string

func GenUpgradeJobName added in v0.26.0

func GenUpgradeJobName() string

func IsPVCSelectorEmpty added in v0.27.0

func IsPVCSelectorEmpty(selector *config.PVCSelector) bool

func LabelSelectorOfMount added in v0.24.5

func LabelSelectorOfMount(pv corev1.PersistentVolume) labels.Selector

func NewUpgradeJob added in v0.27.0

func NewUpgradeJob(jobName string) *batchv1.Job

func Reverse added in v0.24.2

func Reverse(data sort.Interface) sort.Interface

func SetJobAsConfigMapOwner added in v0.26.0

func SetJobAsConfigMapOwner(cm *corev1.ConfigMap, owner *batchv1.Job)

func StripDir added in v0.28.0

func StripDir(dir string) string

func ZipDir added in v0.28.0

func ZipDir(source, target string) error

Types

type API

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

func NewAPI

func NewAPI(ctx context.Context, sysNamespace string, client client.Client, config *rest.Config, enableManager bool) *API

func (*API) Handle

func (api *API) Handle(group *gin.RouterGroup)

func (*API) StartManager

func (api *API) StartManager(ctx context.Context, mgr manager.Manager) error

type ListDiffPodResult added in v0.26.1

type ListDiffPodResult struct {
	Total int       `json:"total"`
	Pods  []PodDiff `json:"pods"`
}

type ListJobResult added in v0.26.0

type ListJobResult struct {
	Total    int           `json:"total"`
	Continue string        `json:"continue"`
	Jobs     []*UpgradeJob `json:"jobs"`
}

type ListPVCPodResult

type ListPVCPodResult struct {
	Total int                             `json:"total"`
	PVCs  []*corev1.PersistentVolumeClaim `json:"pvcs"`
}

type ListPVPodResult

type ListPVPodResult struct {
	Total int                        `json:"total"`
	PVs   []*corev1.PersistentVolume `json:"pvs"`
}

type ListSCResult added in v0.24.2

type ListSCResult struct {
	Total int                       `json:"total"`
	SCs   []*storagev1.StorageClass `json:"scs"`
}

func (ListSCResult) Len added in v0.24.2

func (r ListSCResult) Len() int

func (ListSCResult) Less added in v0.24.2

func (r ListSCResult) Less(i, j int) bool

func (ListSCResult) Swap added in v0.24.2

func (r ListSCResult) Swap(i, j int)

type PVCWithMountPod added in v0.27.0

type PVCWithMountPod struct {
	PVC       corev1.PersistentVolumeClaim `json:"PVC,omitempty"`
	MountPods []corev1.Pod                 `json:"MountPods,omitempty"`
}

type PodDiff added in v0.26.0

type PodDiff struct {
	Pod        corev1.Pod         `json:"pod"`
	OldSetting *config.JfsSetting `json:"oldSetting,omitempty"`
	NewSetting *config.JfsSetting `json:"newSetting,omitempty"`
}

func GenPodDiffs added in v0.27.0

func GenPodDiffs(mountPods []corev1.Pod, shouldDiff bool, pvs []corev1.PersistentVolume, pvcs []corev1.PersistentVolumeClaim, secrets []corev1.Secret) ([]corev1.Pod, []PodDiff, error)

type ReverseSort added in v0.24.2

type ReverseSort struct {
	sort.Interface
}

func (*ReverseSort) Less added in v0.24.2

func (r *ReverseSort) Less(i, j int) bool

type UpgradeJob added in v0.26.0

type UpgradeJob struct {
	Job    *batchv1.Job        `json:"job"`
	Config *config.BatchConfig `json:"config"`
}

Directories

Path Synopsis
services
pvs

Jump to

Keyboard shortcuts

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