Documentation ¶
Index ¶
- func DiffConfig(pod *corev1.Pod, pv *corev1.PersistentVolume, ...) (bool, error)
- func GenUpgradeConfig(jobName string) string
- func GenUpgradeJobName() string
- func LabelSelectorOfMount(pv corev1.PersistentVolume) labels.Selector
- func Reverse(data sort.Interface) sort.Interface
- func SetJobAsConfigMapOwner(cm *corev1.ConfigMap, owner *batchv1.Job)
- type API
- type APIStatus
- type JobController
- type ListAppPodResult
- type ListJobResult
- type ListPVCPodResult
- type ListPVPodResult
- type ListSCResult
- type ListSysPodResult
- type LogPipe
- type PVCController
- type PVController
- type PodController
- type PodDiff
- type PodExtra
- type ReverseSort
- type SecretController
- type UpgradeJob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GenUpgradeConfig ¶ added in v0.26.0
func GenUpgradeJobName ¶ added in v0.26.0
func GenUpgradeJobName() string
func LabelSelectorOfMount ¶ added in v0.24.5
func LabelSelectorOfMount(pv corev1.PersistentVolume) labels.Selector
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) Handle ¶
func (api *API) Handle(group *gin.RouterGroup)
type APIStatus ¶
type APIStatus struct { SysNamespace string SysIndexes []types.NamespacedName AppIndexes []types.NamespacedName Nodeindex map[string]types.NamespacedName Events map[string]int PvIndexes []types.NamespacedName PvcIndexes []types.NamespacedName JobIndexes []types.NamespacedName Pairs map[string]types.NamespacedName }
type JobController ¶ added in v0.26.0
type JobController struct {
*API
}
func (*JobController) SetupWithManager ¶ added in v0.26.0
func (c *JobController) SetupWithManager(mgr manager.Manager) error
type ListAppPodResult ¶
type ListJobResult ¶ added in v0.26.0
type ListJobResult struct { Total int `json:"total"` 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 ListSysPodResult ¶
type PVCController ¶
type PVCController struct {
*API
}
func (*PVCController) SetupWithManager ¶
func (c *PVCController) SetupWithManager(mgr manager.Manager) error
type PVController ¶
type PVController struct {
*API
}
func (*PVController) SetupWithManager ¶
func (c *PVController) SetupWithManager(mgr manager.Manager) error
type PodController ¶
type PodController struct {
*API
}
func (*PodController) SetupWithManager ¶
func (c *PodController) SetupWithManager(mgr manager.Manager) error
type PodDiff ¶ added in v0.26.0
type PodDiff struct { Pod corev1.Pod `json:"pod"` OldConfig config.MountPodPatch `json:"oldConfig"` OldSetting *config.JfsSetting `json:"oldSetting,omitempty"` NewConfig config.MountPodPatch `json:"newConfig"` NewSetting *config.JfsSetting `json:"newSetting,omitempty"` }
type ReverseSort ¶ added in v0.24.2
func (*ReverseSort) Less ¶ added in v0.24.2
func (r *ReverseSort) Less(i, j int) bool
type SecretController ¶ added in v0.26.0
type SecretController struct {
*API
}
func (*SecretController) SetupWithManager ¶ added in v0.26.0
func (c *SecretController) SetupWithManager(mgr manager.Manager) error
type UpgradeJob ¶ added in v0.26.0
type UpgradeJob struct { Job *batchv1.Job `json:"job"` Config *config.BatchConfig `json:"config"` }
Click to show internal directories.
Click to hide internal directories.