Documentation ¶
Index ¶
- Constants
- type ImageBuilderJobManager
- func (m *ImageBuilderJobManager) Create(ctx context.Context, owner *kubernetesupgraderv1.MachineImage, ...) (*corev1.ObjectReference, error)
- func (m *ImageBuilderJobManager) Delete(ctx context.Context, ref *corev1.ObjectReference) error
- func (m *ImageBuilderJobManager) Latest(ctx context.Context, owner *kubernetesupgraderv1.MachineImage) (*corev1.ObjectReference, error)
- func (m *ImageBuilderJobManager) Status(ctx context.Context, ref *corev1.ObjectReference) (*batchv1.JobStatus, string, error)
- type Manager
Constants ¶
View Source
const ( MachineImageNameLabel = "kubernetesupgraded.dimitrikoshkin.com/machine-image-name" IDAnnotation = "kubernetesupgraded.dimitrikoshkin.com/image-id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageBuilderJobManager ¶
type ImageBuilderJobManager struct {
// contains filtered or unexported fields
}
func (*ImageBuilderJobManager) Create ¶
func (m *ImageBuilderJobManager) Create( ctx context.Context, owner *kubernetesupgraderv1.MachineImage, spec *corev1.PodSpec, ) (*corev1.ObjectReference, error)
func (*ImageBuilderJobManager) Delete ¶
func (m *ImageBuilderJobManager) Delete( ctx context.Context, ref *corev1.ObjectReference, ) error
func (*ImageBuilderJobManager) Latest ¶ added in v0.6.0
func (m *ImageBuilderJobManager) Latest( ctx context.Context, owner *kubernetesupgraderv1.MachineImage, ) (*corev1.ObjectReference, error)
Latest will return the latest job (using createdAt timestamp) for the given owner. Returns nil if no jobs exist.
type Manager ¶ added in v0.3.0
type Manager interface { Create( ctx context.Context, owner *kubernetesupgraderv1.MachineImage, spec *corev1.PodSpec, ) (*corev1.ObjectReference, error) Latest( ctx context.Context, owner *kubernetesupgraderv1.MachineImage, ) (*corev1.ObjectReference, error) Status(ctx context.Context, ref *corev1.ObjectReference) (*batchv1.JobStatus, string, error) Delete(ctx context.Context, ref *corev1.ObjectReference) error }
Click to show internal directories.
Click to hide internal directories.