Versions in this module Expand all Collapse all v1 v1.1.0 May 31, 2023 Changes in this version + func GetDevicePluginVersionLabelName(namespace, name string) string + func GetModuleLoaderVersionLabelName(namespace, name string) string + func GetModuleVersionLabelName(namespace, name string) string + func GetNamespaceNameFromVersionLabel(label string) (string, string, error) + func GetNodesVersionLabels(nodeLabels map[string]string) map[string]string + func IsDevicePluginVersionLabel(label string) bool + func IsModuleLoaderVersionLabel(label string) bool + func IsModuleVersionLabel(label string) bool + func IsVersionLabel(label string) bool v1.0.0 Jan 29, 2023 Changes in this version + const JobTypeBuild + const JobTypeSign + const StatusCompleted + const StatusCreated + const StatusFailed + const StatusInProgress + var ErrNoMatchingJob = errors.New("no matching job") + func KernelComponentsAsEnvVars(kernel string) []string + func MakeSecretVolume(secretRef *v1.LocalObjectReference, key string, path string) v1.Volume + func MakeSecretVolumeMount(secretRef *v1.LocalObjectReference, mountPath string) v1.VolumeMount + func ReplaceInTemplates(envvars []string, templates ...string) ([]string, error) + func WarnString(str string) string + type JobHelper interface + CreateJob func(ctx context.Context, jobTemplate *batchv1.Job) error + DeleteJob func(ctx context.Context, job *batchv1.Job) error + GetJobStatus func(job *batchv1.Job) (Status, bool, error) + GetModuleJobByKernel func(ctx context.Context, modName, namespace, targetKernel, jobType string, ...) (*batchv1.Job, error) + GetModuleJobs func(ctx context.Context, modName, namespace, jobType string, owner metav1.Object) ([]batchv1.Job, error) + IsJobChanged func(existingJob *batchv1.Job, newJob *batchv1.Job) (bool, error) + JobLabels func(modName string, targetKernel string, jobType string) map[string]string + func NewJobHelper(client client.Client) JobHelper + type MockJobHelper struct + func NewMockJobHelper(ctrl *gomock.Controller) *MockJobHelper + func (m *MockJobHelper) CreateJob(ctx context.Context, jobTemplate *v1.Job) error + func (m *MockJobHelper) DeleteJob(ctx context.Context, job *v1.Job) error + func (m *MockJobHelper) EXPECT() *MockJobHelperMockRecorder + func (m *MockJobHelper) GetJobStatus(job *v1.Job) (Status, bool, error) + func (m *MockJobHelper) GetModuleJobByKernel(ctx context.Context, modName, namespace, targetKernel, jobType string, ...) (*v1.Job, error) + func (m *MockJobHelper) GetModuleJobs(ctx context.Context, modName, namespace, jobType string, owner v10.Object) ([]v1.Job, error) + func (m *MockJobHelper) IsJobChanged(existingJob, newJob *v1.Job) (bool, error) + func (m *MockJobHelper) JobLabels(modName, targetKernel, jobType string) map[string]string + type MockJobHelperMockRecorder struct + func (mr *MockJobHelperMockRecorder) CreateJob(ctx, jobTemplate interface{}) *gomock.Call + func (mr *MockJobHelperMockRecorder) DeleteJob(ctx, job interface{}) *gomock.Call + func (mr *MockJobHelperMockRecorder) GetJobStatus(job interface{}) *gomock.Call + func (mr *MockJobHelperMockRecorder) GetModuleJobByKernel(ctx, modName, namespace, targetKernel, jobType, owner interface{}) *gomock.Call + func (mr *MockJobHelperMockRecorder) GetModuleJobs(ctx, modName, namespace, jobType, owner interface{}) *gomock.Call + func (mr *MockJobHelperMockRecorder) IsJobChanged(existingJob, newJob interface{}) *gomock.Call + func (mr *MockJobHelperMockRecorder) JobLabels(modName, targetKernel, jobType interface{}) *gomock.Call + type Result struct + Requeue bool + Status Status + type Status string