Documentation ¶
Index ¶
- func GetJobOwnerReference(job *batchv1.Job) metav1.OwnerReference
- type Model
- func (model *Model) CreateBatchScheduleDescriptionSecret(batchName string, jobComponent *v1.RadixDeployJobComponent, ...) (*corev1.Secret, error)
- func (model *Model) CreatePayloadSecret(jobName string, jobComponent *v1.RadixDeployJobComponent, ...) (*corev1.Secret, error)
- func (model *Model) CreateService(jobName string, jobComponent *v1.RadixDeployJobComponent, ...) error
- func (model *Model) DeleteSecret(secret *corev1.Secret) error
- func (model *Model) DeleteService(service *corev1.Service) error
- func (model *Model) GetJob(name string) (*batchv1.Job, error)
- func (model *Model) GetPodsForLabelSelector(labelSelector string) ([]corev1.Pod, error)
- func (model *Model) GetSecretsForJob(jobName string) (*corev1.SecretList, error)
- func (model *Model) GetServiceForJob(jobName string) (*corev1.ServiceList, error)
- func (model *Model) UpdateOwnerReferenceOfConfigMaps(ownerJob *batchv1.Job, configMaps ...*corev1.ConfigMap) error
- func (model *Model) UpdateOwnerReferenceOfSecret(ownerJob *batchv1.Job, secrets ...*corev1.Secret) error
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 ¶
DeleteSecret Delete the service for the job
func (*Model) DeleteService ¶
DeleteService Delete the service for the job
func (*Model) GetPodsForLabelSelector ¶ added in v1.5.2
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.