Documentation ¶
Index ¶
- Constants
- func GenJobNameByVolumeId(volumeId string) string
- func SetJobAsOwner(secret *corev1.Secret, owner batchv1.Job)
- func SetPVCAsOwner(secret *corev1.Secret, owner *corev1.PersistentVolumeClaim)
- func SetPodAsOwner(secret *corev1.Secret, owner corev1.Pod)
- type Builder
- func (r *Builder) NewJobForCleanCache() *batchv1.Job
- func (r *Builder) NewJobForCreateVolume() *batchv1.Job
- func (r *Builder) NewJobForDeleteVolume() *batchv1.Job
- func (r *Builder) NewMountPod(podName string) *corev1.Pod
- func (r *Builder) NewMountSidecar() *corev1.Pod
- func (r *Builder) NewSecret() corev1.Secret
Constants ¶
View Source
const ( JfsDirName = "jfs-dir" JfsRootDirName = "jfs-root-dir" UpdateDBDirName = "updatedb" UpdateDBCfgFile = "/etc/updatedb.conf" )
View Source
const DefaultJobTTLSecond = int32(5)
Variables ¶
This section is empty.
Functions ¶
func GenJobNameByVolumeId ¶
func SetPVCAsOwner ¶ added in v0.18.0
func SetPVCAsOwner(secret *corev1.Secret, owner *corev1.PersistentVolumeClaim)
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(setting *config.JfsSetting, capacity int64) *Builder
func (*Builder) NewJobForCleanCache ¶ added in v0.14.1
func (*Builder) NewJobForCreateVolume ¶
func (*Builder) NewJobForDeleteVolume ¶
func (*Builder) NewMountSidecar ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.