deployment

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019, 2021 The Multi-Cluster App Dispatcher Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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 NewQueueJobResDeployment

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

NewQueueJobResDeployment returns a new deployment controller

func Register

func Register(regs *queuejobresources.RegisteredResources)

Register registers a queue job resource type

Types

type QueueJobResDeployment

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

QueueJobResDeployment contains the resources of this queuejob

func (*QueueJobResDeployment) Cleanup

func (qjrDeployment *QueueJobResDeployment) Cleanup(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error

Cleanup deletes all services

func (*QueueJobResDeployment) GetAggregatedResources

func (qjrDeployment *QueueJobResDeployment) GetAggregatedResources(job *arbv1.AppWrapper) *clusterstateapi.Resource

func (*QueueJobResDeployment) GetAggregatedResourcesByPriority

func (qjrDeployment *QueueJobResDeployment) GetAggregatedResourcesByPriority(priority float64, job *arbv1.AppWrapper) *clusterstateapi.Resource

func (*QueueJobResDeployment) GetPodTemplate

func (qjrDeployment *QueueJobResDeployment) GetPodTemplate(qjobRes *arbv1.AppWrapperResource) (*v1.PodTemplateSpec, int32, error)

func (*QueueJobResDeployment) Run

func (qjrDeployment *QueueJobResDeployment) Run(stopCh <-chan struct{})

Run the main goroutine responsible for watching and deployments.

func (*QueueJobResDeployment) SyncQueueJob

func (qjrDeployment *QueueJobResDeployment) SyncQueueJob(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error

func (*QueueJobResDeployment) UpdateQueueJobStatus

func (qjrDeployment *QueueJobResDeployment) UpdateQueueJobStatus(queuejob *arbv1.AppWrapper) error

Jump to

Keyboard shortcuts

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