namespace

package
v0.0.0-...-50759bc Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// QueueJobNameLabel label string for queuejob name
	QueueJobNameLabel string = "appwrapper-name"

	// ControllerUIDLabel label string for queuejob controller uid
	ControllerUIDLabel string = "controller-uid"
)

Variables

This section is empty.

Functions

func NewQueueJobResNamespace

func NewQueueJobResNamespace(config *rest.Config) queuejobresources.Interface

NewQueueJobResService creates a service controller

func Register

func Register(regs *queuejobresources.RegisteredResources)

Register registers a queue job resource type

Types

type QueueJobResNamespace

type QueueJobResNamespace struct {
	// contains filtered or unexported fields
}

QueueJobResService contains service info

func (*QueueJobResNamespace) Cleanup

func (qjrNamespace *QueueJobResNamespace) Cleanup(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error

Cleanup deletes all services

func (*QueueJobResNamespace) GetAggregatedResources

func (qjrNamespace *QueueJobResNamespace) GetAggregatedResources(job *arbv1.AppWrapper) *clusterstateapi.Resource

func (*QueueJobResNamespace) GetAggregatedResourcesByPriority

func (qjrNamespace *QueueJobResNamespace) GetAggregatedResourcesByPriority(priority float64, job *arbv1.AppWrapper) *clusterstateapi.Resource

func (*QueueJobResNamespace) Run

func (qjrNamespace *QueueJobResNamespace) Run(stopCh <-chan struct{})

Run the main goroutine responsible for watching and services.

func (*QueueJobResNamespace) SyncQueueJob

func (qjrNamespace *QueueJobResNamespace) SyncQueueJob(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error

SyncQueueJob syncs the services

func (*QueueJobResNamespace) UpdateQueueJobStatus

func (qjrNamespace *QueueJobResNamespace) UpdateQueueJobStatus(queuejob *arbv1.AppWrapper) error

Jump to

Keyboard shortcuts

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