api

package
v1.5.28 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 19 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

func GetLabelSelectorForBatches added in v1.5.8

func GetLabelSelectorForBatches(componentName string) string

GetLabelSelectorForBatches Gets a label selector for a batch scheduler job

func GetPodsToJobNameMap added in v1.5.8

func GetPodsToJobNameMap(pods []corev1.Pod) map[string][]corev1.Pod

GetPodsToJobNameMap Gets a map of pods to K8sJobNameLabel label as keys

Types

type Handler added in v1.5.8

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

func (*Handler) CreateBatchScheduleDescriptionSecret added in v1.5.8

func (handler *Handler) CreateBatchScheduleDescriptionSecret(appName, batchName, jobComponentName string,
	batchScheduleDescription *models.BatchScheduleDescription) (*corev1.Secret, error)

CreateBatchScheduleDescriptionSecret Create a secret for the batch schedule description

func (*Handler) CreateJob added in v1.5.8

func (handler *Handler) CreateJob(namespace string, job *batchv1.Job) (*batchv1.Job, error)

CreateJob Create a job

func (*Handler) CreatePayloadSecret added in v1.5.8

func (handler *Handler) CreatePayloadSecret(appName, jobName string, jobComponent *v1.RadixDeployJobComponent,
	jobScheduleDescription *models.JobScheduleDescription) (*corev1.Secret, error)

CreatePayloadSecret Create a secret for the job payload

func (*Handler) CreateService added in v1.5.8

func (handler *Handler) CreateService(appName, jobName string, jobComponent *v1.RadixDeployJobComponent) (*corev1.
	Service, error)

CreateService Create a service for the job API

func (*Handler) DeleteConfigMaps added in v1.5.8

func (handler *Handler) DeleteConfigMaps(configMap *corev1.ConfigMap) error

DeleteConfigMaps Deletes a configmap in a namespace

func (*Handler) DeleteSecret added in v1.5.8

func (handler *Handler) DeleteSecret(secret *corev1.Secret) error

DeleteSecret Delete the service for the job

func (*Handler) DeleteService added in v1.5.8

func (handler *Handler) DeleteService(service *corev1.Service) error

DeleteService Delete the service for the job

func (*Handler) GetBatch added in v1.5.8

func (handler *Handler) GetBatch(batchName string) (*batchv1.Job, error)

GetBatch Gets a job, running a batch

func (*Handler) GetPodsForLabelSelector added in v1.5.8

func (handler *Handler) GetPodsForLabelSelector(labelSelector string) ([]corev1.Pod, error)

func (*Handler) GetSecretsForJob added in v1.5.8

func (handler *Handler) GetSecretsForJob(jobName string) (*corev1.SecretList, error)

GetSecretsForJob Get secrets for the job

func (*Handler) GetServiceForJob added in v1.5.8

func (handler *Handler) GetServiceForJob(jobName string) (*corev1.ServiceList, error)

GetServiceForJob Get the service for the job

func (*Handler) UpdateOwnerReferenceOfConfigMaps added in v1.5.8

func (handler *Handler) UpdateOwnerReferenceOfConfigMaps(namespace string, ownerReference metav1.OwnerReference, configMaps ...*corev1.ConfigMap) error

UpdateOwnerReferenceOfConfigMaps Update owner reference of a config-map

func (*Handler) UpdateOwnerReferenceOfSecret added in v1.5.8

func (handler *Handler) UpdateOwnerReferenceOfSecret(namespace string, ownerReference metav1.OwnerReference, secrets ...*corev1.Secret) error

UpdateOwnerReferenceOfSecret Update owner reference of secrets

func (*Handler) UpdateOwnerReferenceOfService added in v1.5.8

func (handler *Handler) UpdateOwnerReferenceOfService(namespace string, ownerReference metav1.OwnerReference,
	services ...*corev1.Service) error

UpdateOwnerReferenceOfService Update owner reference of services

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