api

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJobOwnerReference added in v1.5.2

func GetJobOwnerReference(job *batchv1.Job) metav1.OwnerReference

GetJobOwnerReference Gets job as an OwnerReference

Types

type Model

type Model struct {
	Kube                   *kube.Kube
	Env                    *models.Env
	KubeClient             kubernetes.Interface
	RadixClient            versioned.Interface
	SecurityContextBuilder deployment.SecurityContextBuilder
}

func (*Model) CreateBatchScheduleDescriptionSecret

func (model *Model) CreateBatchScheduleDescriptionSecret(batchName string, jobComponent *v1.RadixDeployJobComponent, rd *v1.RadixDeployment, batchScheduleDescription *models.BatchScheduleDescription) (*corev1.Secret, error)

CreateBatchScheduleDescriptionSecret Create a secret for the batch schedule description

func (*Model) CreatePayloadSecret

func (model *Model) CreatePayloadSecret(jobName string, jobComponent *v1.RadixDeployJobComponent,
	rd *v1.RadixDeployment, jobScheduleDescription *models.JobScheduleDescription) (*corev1.Secret, error)

CreatePayloadSecret Create a secret for the job payload

func (*Model) CreateService

func (model *Model) CreateService(jobName string, jobComponent *v1.RadixDeployJobComponent,
	rd *v1.RadixDeployment) error

CreateService Create a service for the job API

func (*Model) DeleteSecret

func (model *Model) DeleteSecret(secret *corev1.Secret) error

DeleteSecret Delete the service for the job

func (*Model) DeleteService

func (model *Model) DeleteService(service *corev1.Service) error

DeleteService Delete the service for the job

func (*Model) GetJob added in v1.5.2

func (model *Model) GetJob(name string) (*batchv1.Job, error)

GetJob Gets a job ba its name

func (*Model) GetPodsForLabelSelector added in v1.5.2

func (model *Model) GetPodsForLabelSelector(labelSelector string) ([]corev1.Pod, error)

func (*Model) GetSecretsForJob

func (model *Model) GetSecretsForJob(jobName string) (*corev1.SecretList, error)

GetSecretsForJob Get secrets for the job

func (*Model) GetServiceForJob

func (model *Model) GetServiceForJob(jobName string) (*corev1.ServiceList, error)

GetServiceForJob Get the service for the job

func (*Model) UpdateOwnerReferenceOfConfigMaps

func (model *Model) UpdateOwnerReferenceOfConfigMaps(ownerJob *batchv1.Job, configMaps ...*corev1.ConfigMap) error

UpdateOwnerReferenceOfConfigMaps Update owner reference of a config-map

func (*Model) UpdateOwnerReferenceOfSecret

func (model *Model) UpdateOwnerReferenceOfSecret(ownerJob *batchv1.Job,
	secrets ...*corev1.Secret) error

UpdateOwnerReferenceOfSecret Update owner reference of a secret

Directories

Path Synopsis
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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