storage_class_change

package
v1.77.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHook

func RegisterHook(args Args) bool

Types

type Args

type Args struct {
	ModuleName                    string `json:"moduleName"`
	Namespace                     string `json:"namespace"`
	LabelSelectorKey              string `json:"labelSelectorKey"`
	LabelSelectorValue            string `json:"labelSelectorValue"`
	ObjectKind                    string `json:"objectKind"`
	ObjectName                    string `json:"objectName"`
	InternalValuesSubPath         string `json:"internalValuesSubPath,omitempty"`
	D8ConfigStorageClassParamName string `json:"d8ConfigStorageClassParamName,omitempty"`
	AllowEmptyDir                 bool   `json:"allowEmptyDir,omitempty"`

	// if return value is false - hook will stop its execution
	// if return value is true - hook will continue
	BeforeHookCheck func(_ context.Context, input *go_hook.HookInput) bool
}

type DefaultStorageClass

type DefaultStorageClass struct {
	Name      string `json:"name"`
	IsDefault bool   `json:"isDefault"`
}

type PVC

type PVC struct {
	Name             string `json:"name"`
	Namespace        string `json:"namespace"`
	StorageClassName string `json:"storageClassName"`
	IsDeleted        bool   `json:"isDeleted"`
}

type Pod

type Pod struct {
	Name      string          `json:"name"`
	Namespace string          `json:"namespace"`
	PVCName   string          `json:"PVCName"`
	Phase     corev1.PodPhase `json:"phase"`
}

Jump to

Keyboard shortcuts

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