Documentation ¶
Index ¶
- type CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) GetName() *string
- func (b *CronJobApplyConfiguration) WithAPIVersion(value string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithAnnotations(entries map[string]string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithFinalizers(values ...string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithGenerateName(value string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithGeneration(value int64) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithKind(value string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithLabels(entries map[string]string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithName(value string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithNamespace(value string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithResourceVersion(value string) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithSpec(value *CronJobSpecApplyConfiguration) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithStatus(value *CronJobStatusApplyConfiguration) *CronJobApplyConfiguration
- func (b *CronJobApplyConfiguration) WithUID(value types.UID) *CronJobApplyConfiguration
- type CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value batchv1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithFailedJobsHistoryLimit(value int32) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithJobTemplate(value *JobTemplateSpecApplyConfiguration) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithSchedule(value string) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds(value int64) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithSuccessfulJobsHistoryLimit(value int32) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithSuspend(value bool) *CronJobSpecApplyConfiguration
- func (b *CronJobSpecApplyConfiguration) WithTimeZone(value string) *CronJobSpecApplyConfiguration
- type CronJobStatusApplyConfiguration
- func (b *CronJobStatusApplyConfiguration) WithActive(values ...*corev1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration
- func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value metav1.Time) *CronJobStatusApplyConfiguration
- func (b *CronJobStatusApplyConfiguration) WithLastSuccessfulTime(value metav1.Time) *CronJobStatusApplyConfiguration
- type JobApplyConfiguration
- func (b *JobApplyConfiguration) GetName() *string
- func (b *JobApplyConfiguration) WithAPIVersion(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithAnnotations(entries map[string]string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithFinalizers(values ...string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithGenerateName(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithGeneration(value int64) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithKind(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithLabels(entries map[string]string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithName(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithNamespace(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithResourceVersion(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithUID(value types.UID) *JobApplyConfiguration
- type JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithLastProbeTime(value metav1.Time) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithMessage(value string) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithReason(value string) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithType(value batchv1.JobConditionType) *JobConditionApplyConfiguration
- type JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithActiveDeadlineSeconds(value int64) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithBackoffLimit(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithBackoffLimitPerIndex(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithCompletionMode(value batchv1.CompletionMode) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithCompletions(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithManagedBy(value string) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithManualSelector(value bool) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithMaxFailedIndexes(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithParallelism(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithPodFailurePolicy(value *PodFailurePolicyApplyConfiguration) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithPodReplacementPolicy(value batchv1.PodReplacementPolicy) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithSuccessPolicy(value *SuccessPolicyApplyConfiguration) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithSuspend(value bool) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithTemplate(value *corev1.PodTemplateSpecApplyConfiguration) *JobSpecApplyConfiguration
- type JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithActive(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithCompletedIndexes(value string) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithCompletionTime(value metav1.Time) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithConditions(values ...*JobConditionApplyConfiguration) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithFailedIndexes(value string) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithReady(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithStartTime(value metav1.Time) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithSucceeded(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithTerminating(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithUncountedTerminatedPods(value *UncountedTerminatedPodsApplyConfiguration) *JobStatusApplyConfiguration
- type JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) GetName() *string
- func (b *JobTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithFinalizers(values ...string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithGenerateName(value string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithGeneration(value int64) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithLabels(entries map[string]string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithName(value string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithNamespace(value string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithResourceVersion(value string) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobTemplateSpecApplyConfiguration
- func (b *JobTemplateSpecApplyConfiguration) WithUID(value types.UID) *JobTemplateSpecApplyConfiguration
- type PodFailurePolicyApplyConfiguration
- type PodFailurePolicyOnExitCodesRequirementApplyConfiguration
- func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithContainerName(value string) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
- func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithOperator(value batchv1.PodFailurePolicyOnExitCodesOperator) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
- func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithValues(values ...int32) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
- type PodFailurePolicyOnPodConditionsPatternApplyConfiguration
- func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithStatus(value corev1.ConditionStatus) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration
- func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithType(value corev1.PodConditionType) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration
- type PodFailurePolicyRuleApplyConfiguration
- func (b *PodFailurePolicyRuleApplyConfiguration) WithAction(value batchv1.PodFailurePolicyAction) *PodFailurePolicyRuleApplyConfiguration
- func (b *PodFailurePolicyRuleApplyConfiguration) WithOnExitCodes(value *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) *PodFailurePolicyRuleApplyConfiguration
- func (b *PodFailurePolicyRuleApplyConfiguration) WithOnPodConditions(values ...*PodFailurePolicyOnPodConditionsPatternApplyConfiguration) *PodFailurePolicyRuleApplyConfiguration
- type SuccessPolicyApplyConfiguration
- type SuccessPolicyRuleApplyConfiguration
- type UncountedTerminatedPodsApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJobApplyConfiguration ¶
type CronJobApplyConfiguration struct { metav1.TypeMetaApplyConfiguration `json:",inline"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` }
CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use with apply.
func CronJob ¶
func CronJob(name, namespace string) *CronJobApplyConfiguration
CronJob constructs a declarative configuration of the CronJob type for use with apply.
func ExtractCronJob ¶
func ExtractCronJob(cronJob *batchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error)
ExtractCronJob extracts the applied configuration owned by fieldManager from cronJob. If no managedFields are found in cronJob for fieldManager, a CronJobApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. cronJob must be a unmodified CronJob API object that was retrieved from the Kubernetes API. ExtractCronJob provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractCronJobStatus ¶ added in v0.22.0
func ExtractCronJobStatus(cronJob *batchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error)
ExtractCronJobStatus is the same as ExtractCronJob except that it extracts the status subresource applied configuration. Experimental!
func (*CronJobApplyConfiguration) GetName ¶ added in v0.31.0
func (b *CronJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*CronJobApplyConfiguration) WithAPIVersion ¶
func (b *CronJobApplyConfiguration) WithAPIVersion(value string) *CronJobApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithAnnotations ¶
func (b *CronJobApplyConfiguration) WithAnnotations(entries map[string]string) *CronJobApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*CronJobApplyConfiguration) WithCreationTimestamp ¶
func (b *CronJobApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CronJobApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *CronJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CronJobApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *CronJobApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CronJobApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithFinalizers ¶
func (b *CronJobApplyConfiguration) WithFinalizers(values ...string) *CronJobApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*CronJobApplyConfiguration) WithGenerateName ¶
func (b *CronJobApplyConfiguration) WithGenerateName(value string) *CronJobApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithGeneration ¶
func (b *CronJobApplyConfiguration) WithGeneration(value int64) *CronJobApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithKind ¶
func (b *CronJobApplyConfiguration) WithKind(value string) *CronJobApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithLabels ¶
func (b *CronJobApplyConfiguration) WithLabels(entries map[string]string) *CronJobApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*CronJobApplyConfiguration) WithName ¶
func (b *CronJobApplyConfiguration) WithName(value string) *CronJobApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithNamespace ¶
func (b *CronJobApplyConfiguration) WithNamespace(value string) *CronJobApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithOwnerReferences ¶
func (b *CronJobApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CronJobApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*CronJobApplyConfiguration) WithResourceVersion ¶
func (b *CronJobApplyConfiguration) WithResourceVersion(value string) *CronJobApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithSpec ¶
func (b *CronJobApplyConfiguration) WithSpec(value *CronJobSpecApplyConfiguration) *CronJobApplyConfiguration
WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithStatus ¶
func (b *CronJobApplyConfiguration) WithStatus(value *CronJobStatusApplyConfiguration) *CronJobApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*CronJobApplyConfiguration) WithUID ¶
func (b *CronJobApplyConfiguration) WithUID(value types.UID) *CronJobApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type CronJobSpecApplyConfiguration ¶
type CronJobSpecApplyConfiguration struct { Schedule *string `json:"schedule,omitempty"` TimeZone *string `json:"timeZone,omitempty"` StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` ConcurrencyPolicy *batchv1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` Suspend *bool `json:"suspend,omitempty"` JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"` SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` }
CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use with apply.
func CronJobSpec ¶
func CronJobSpec() *CronJobSpecApplyConfiguration
CronJobSpecApplyConfiguration constructs a declarative configuration of the CronJobSpec type for use with apply.
func (*CronJobSpecApplyConfiguration) WithConcurrencyPolicy ¶
func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value batchv1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration
WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ConcurrencyPolicy field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithFailedJobsHistoryLimit ¶
func (b *CronJobSpecApplyConfiguration) WithFailedJobsHistoryLimit(value int32) *CronJobSpecApplyConfiguration
WithFailedJobsHistoryLimit sets the FailedJobsHistoryLimit field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FailedJobsHistoryLimit field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithJobTemplate ¶
func (b *CronJobSpecApplyConfiguration) WithJobTemplate(value *JobTemplateSpecApplyConfiguration) *CronJobSpecApplyConfiguration
WithJobTemplate sets the JobTemplate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the JobTemplate field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithSchedule ¶
func (b *CronJobSpecApplyConfiguration) WithSchedule(value string) *CronJobSpecApplyConfiguration
WithSchedule sets the Schedule field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Schedule field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds ¶
func (b *CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds(value int64) *CronJobSpecApplyConfiguration
WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the StartingDeadlineSeconds field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithSuccessfulJobsHistoryLimit ¶
func (b *CronJobSpecApplyConfiguration) WithSuccessfulJobsHistoryLimit(value int32) *CronJobSpecApplyConfiguration
WithSuccessfulJobsHistoryLimit sets the SuccessfulJobsHistoryLimit field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SuccessfulJobsHistoryLimit field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithSuspend ¶
func (b *CronJobSpecApplyConfiguration) WithSuspend(value bool) *CronJobSpecApplyConfiguration
WithSuspend sets the Suspend field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Suspend field is set to the value of the last call.
func (*CronJobSpecApplyConfiguration) WithTimeZone ¶ added in v0.24.0
func (b *CronJobSpecApplyConfiguration) WithTimeZone(value string) *CronJobSpecApplyConfiguration
WithTimeZone sets the TimeZone field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TimeZone field is set to the value of the last call.
type CronJobStatusApplyConfiguration ¶
type CronJobStatusApplyConfiguration struct { Active []corev1.ObjectReferenceApplyConfiguration `json:"active,omitempty"` LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty"` }
CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use with apply.
func CronJobStatus ¶
func CronJobStatus() *CronJobStatusApplyConfiguration
CronJobStatusApplyConfiguration constructs a declarative configuration of the CronJobStatus type for use with apply.
func (*CronJobStatusApplyConfiguration) WithActive ¶
func (b *CronJobStatusApplyConfiguration) WithActive(values ...*corev1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration
WithActive adds the given value to the Active field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Active field.
func (*CronJobStatusApplyConfiguration) WithLastScheduleTime ¶
func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value metav1.Time) *CronJobStatusApplyConfiguration
WithLastScheduleTime sets the LastScheduleTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastScheduleTime field is set to the value of the last call.
func (*CronJobStatusApplyConfiguration) WithLastSuccessfulTime ¶
func (b *CronJobStatusApplyConfiguration) WithLastSuccessfulTime(value metav1.Time) *CronJobStatusApplyConfiguration
WithLastSuccessfulTime sets the LastSuccessfulTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastSuccessfulTime field is set to the value of the last call.
type JobApplyConfiguration ¶
type JobApplyConfiguration struct { metav1.TypeMetaApplyConfiguration `json:",inline"` *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
JobApplyConfiguration represents a declarative configuration of the Job type for use with apply.
func ExtractJob ¶
func ExtractJob(job *batchv1.Job, fieldManager string) (*JobApplyConfiguration, error)
ExtractJob extracts the applied configuration owned by fieldManager from job. If no managedFields are found in job for fieldManager, a JobApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. job must be a unmodified Job API object that was retrieved from the Kubernetes API. ExtractJob provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractJobStatus ¶ added in v0.22.0
func ExtractJobStatus(job *batchv1.Job, fieldManager string) (*JobApplyConfiguration, error)
ExtractJobStatus is the same as ExtractJob except that it extracts the status subresource applied configuration. Experimental!
func Job ¶
func Job(name, namespace string) *JobApplyConfiguration
Job constructs a declarative configuration of the Job type for use with apply.
func (*JobApplyConfiguration) GetName ¶ added in v0.31.0
func (b *JobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*JobApplyConfiguration) WithAPIVersion ¶
func (b *JobApplyConfiguration) WithAPIVersion(value string) *JobApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*JobApplyConfiguration) WithAnnotations ¶
func (b *JobApplyConfiguration) WithAnnotations(entries map[string]string) *JobApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*JobApplyConfiguration) WithCreationTimestamp ¶
func (b *JobApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *JobApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*JobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *JobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*JobApplyConfiguration) WithDeletionTimestamp ¶
func (b *JobApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *JobApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*JobApplyConfiguration) WithFinalizers ¶
func (b *JobApplyConfiguration) WithFinalizers(values ...string) *JobApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*JobApplyConfiguration) WithGenerateName ¶
func (b *JobApplyConfiguration) WithGenerateName(value string) *JobApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*JobApplyConfiguration) WithGeneration ¶
func (b *JobApplyConfiguration) WithGeneration(value int64) *JobApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*JobApplyConfiguration) WithKind ¶
func (b *JobApplyConfiguration) WithKind(value string) *JobApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*JobApplyConfiguration) WithLabels ¶
func (b *JobApplyConfiguration) WithLabels(entries map[string]string) *JobApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*JobApplyConfiguration) WithName ¶
func (b *JobApplyConfiguration) WithName(value string) *JobApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*JobApplyConfiguration) WithNamespace ¶
func (b *JobApplyConfiguration) WithNamespace(value string) *JobApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*JobApplyConfiguration) WithOwnerReferences ¶
func (b *JobApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *JobApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*JobApplyConfiguration) WithResourceVersion ¶
func (b *JobApplyConfiguration) WithResourceVersion(value string) *JobApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*JobApplyConfiguration) WithSpec ¶
func (b *JobApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobApplyConfiguration
WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.
func (*JobApplyConfiguration) WithStatus ¶
func (b *JobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JobApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*JobApplyConfiguration) WithUID ¶
func (b *JobApplyConfiguration) WithUID(value types.UID) *JobApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type JobConditionApplyConfiguration ¶
type JobConditionApplyConfiguration struct { Type *batchv1.JobConditionType `json:"type,omitempty"` Status *corev1.ConditionStatus `json:"status,omitempty"` LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"` LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` }
JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use with apply.
func JobCondition ¶
func JobCondition() *JobConditionApplyConfiguration
JobConditionApplyConfiguration constructs a declarative configuration of the JobCondition type for use with apply.
func (*JobConditionApplyConfiguration) WithLastProbeTime ¶
func (b *JobConditionApplyConfiguration) WithLastProbeTime(value metav1.Time) *JobConditionApplyConfiguration
WithLastProbeTime sets the LastProbeTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastProbeTime field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithLastTransitionTime ¶
func (b *JobConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *JobConditionApplyConfiguration
WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithMessage ¶
func (b *JobConditionApplyConfiguration) WithMessage(value string) *JobConditionApplyConfiguration
WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithReason ¶
func (b *JobConditionApplyConfiguration) WithReason(value string) *JobConditionApplyConfiguration
WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithStatus ¶
func (b *JobConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *JobConditionApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithType ¶
func (b *JobConditionApplyConfiguration) WithType(value batchv1.JobConditionType) *JobConditionApplyConfiguration
WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.
type JobSpecApplyConfiguration ¶
type JobSpecApplyConfiguration struct { Parallelism *int32 `json:"parallelism,omitempty"` Completions *int32 `json:"completions,omitempty"` ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` PodFailurePolicy *PodFailurePolicyApplyConfiguration `json:"podFailurePolicy,omitempty"` SuccessPolicy *SuccessPolicyApplyConfiguration `json:"successPolicy,omitempty"` BackoffLimit *int32 `json:"backoffLimit,omitempty"` BackoffLimitPerIndex *int32 `json:"backoffLimitPerIndex,omitempty"` MaxFailedIndexes *int32 `json:"maxFailedIndexes,omitempty"` Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"` ManualSelector *bool `json:"manualSelector,omitempty"` Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"` TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` CompletionMode *batchv1.CompletionMode `json:"completionMode,omitempty"` Suspend *bool `json:"suspend,omitempty"` PodReplacementPolicy *batchv1.PodReplacementPolicy `json:"podReplacementPolicy,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` }
JobSpecApplyConfiguration represents a declarative configuration of the JobSpec type for use with apply.
func JobSpec ¶
func JobSpec() *JobSpecApplyConfiguration
JobSpecApplyConfiguration constructs a declarative configuration of the JobSpec type for use with apply.
func (*JobSpecApplyConfiguration) WithActiveDeadlineSeconds ¶
func (b *JobSpecApplyConfiguration) WithActiveDeadlineSeconds(value int64) *JobSpecApplyConfiguration
WithActiveDeadlineSeconds sets the ActiveDeadlineSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ActiveDeadlineSeconds field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithBackoffLimit ¶
func (b *JobSpecApplyConfiguration) WithBackoffLimit(value int32) *JobSpecApplyConfiguration
WithBackoffLimit sets the BackoffLimit field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the BackoffLimit field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithBackoffLimitPerIndex ¶ added in v0.28.0
func (b *JobSpecApplyConfiguration) WithBackoffLimitPerIndex(value int32) *JobSpecApplyConfiguration
WithBackoffLimitPerIndex sets the BackoffLimitPerIndex field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the BackoffLimitPerIndex field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithCompletionMode ¶
func (b *JobSpecApplyConfiguration) WithCompletionMode(value batchv1.CompletionMode) *JobSpecApplyConfiguration
WithCompletionMode sets the CompletionMode field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CompletionMode field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithCompletions ¶
func (b *JobSpecApplyConfiguration) WithCompletions(value int32) *JobSpecApplyConfiguration
WithCompletions sets the Completions field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Completions field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithManagedBy ¶ added in v0.30.0
func (b *JobSpecApplyConfiguration) WithManagedBy(value string) *JobSpecApplyConfiguration
WithManagedBy sets the ManagedBy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ManagedBy field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithManualSelector ¶
func (b *JobSpecApplyConfiguration) WithManualSelector(value bool) *JobSpecApplyConfiguration
WithManualSelector sets the ManualSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ManualSelector field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithMaxFailedIndexes ¶ added in v0.28.0
func (b *JobSpecApplyConfiguration) WithMaxFailedIndexes(value int32) *JobSpecApplyConfiguration
WithMaxFailedIndexes sets the MaxFailedIndexes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxFailedIndexes field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithParallelism ¶
func (b *JobSpecApplyConfiguration) WithParallelism(value int32) *JobSpecApplyConfiguration
WithParallelism sets the Parallelism field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Parallelism field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithPodFailurePolicy ¶ added in v0.25.0
func (b *JobSpecApplyConfiguration) WithPodFailurePolicy(value *PodFailurePolicyApplyConfiguration) *JobSpecApplyConfiguration
WithPodFailurePolicy sets the PodFailurePolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodFailurePolicy field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithPodReplacementPolicy ¶ added in v0.28.0
func (b *JobSpecApplyConfiguration) WithPodReplacementPolicy(value batchv1.PodReplacementPolicy) *JobSpecApplyConfiguration
WithPodReplacementPolicy sets the PodReplacementPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodReplacementPolicy field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithSelector ¶
func (b *JobSpecApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *JobSpecApplyConfiguration
WithSelector sets the Selector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Selector field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithSuccessPolicy ¶ added in v0.30.0
func (b *JobSpecApplyConfiguration) WithSuccessPolicy(value *SuccessPolicyApplyConfiguration) *JobSpecApplyConfiguration
WithSuccessPolicy sets the SuccessPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SuccessPolicy field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithSuspend ¶
func (b *JobSpecApplyConfiguration) WithSuspend(value bool) *JobSpecApplyConfiguration
WithSuspend sets the Suspend field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Suspend field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithTTLSecondsAfterFinished ¶
func (b *JobSpecApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *JobSpecApplyConfiguration
WithTTLSecondsAfterFinished sets the TTLSecondsAfterFinished field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TTLSecondsAfterFinished field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithTemplate ¶
func (b *JobSpecApplyConfiguration) WithTemplate(value *corev1.PodTemplateSpecApplyConfiguration) *JobSpecApplyConfiguration
WithTemplate sets the Template field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Template field is set to the value of the last call.
type JobStatusApplyConfiguration ¶
type JobStatusApplyConfiguration struct { Conditions []JobConditionApplyConfiguration `json:"conditions,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` Active *int32 `json:"active,omitempty"` Succeeded *int32 `json:"succeeded,omitempty"` Failed *int32 `json:"failed,omitempty"` Terminating *int32 `json:"terminating,omitempty"` CompletedIndexes *string `json:"completedIndexes,omitempty"` FailedIndexes *string `json:"failedIndexes,omitempty"` UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"` Ready *int32 `json:"ready,omitempty"` }
JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use with apply.
func JobStatus ¶
func JobStatus() *JobStatusApplyConfiguration
JobStatusApplyConfiguration constructs a declarative configuration of the JobStatus type for use with apply.
func (*JobStatusApplyConfiguration) WithActive ¶
func (b *JobStatusApplyConfiguration) WithActive(value int32) *JobStatusApplyConfiguration
WithActive sets the Active field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Active field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithCompletedIndexes ¶
func (b *JobStatusApplyConfiguration) WithCompletedIndexes(value string) *JobStatusApplyConfiguration
WithCompletedIndexes sets the CompletedIndexes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CompletedIndexes field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithCompletionTime ¶
func (b *JobStatusApplyConfiguration) WithCompletionTime(value metav1.Time) *JobStatusApplyConfiguration
WithCompletionTime sets the CompletionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CompletionTime field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithConditions ¶
func (b *JobStatusApplyConfiguration) WithConditions(values ...*JobConditionApplyConfiguration) *JobStatusApplyConfiguration
WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.
func (*JobStatusApplyConfiguration) WithFailed ¶
func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyConfiguration
WithFailed sets the Failed field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Failed field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithFailedIndexes ¶ added in v0.28.0
func (b *JobStatusApplyConfiguration) WithFailedIndexes(value string) *JobStatusApplyConfiguration
WithFailedIndexes sets the FailedIndexes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FailedIndexes field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithReady ¶ added in v0.23.0
func (b *JobStatusApplyConfiguration) WithReady(value int32) *JobStatusApplyConfiguration
WithReady sets the Ready field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Ready field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithStartTime ¶
func (b *JobStatusApplyConfiguration) WithStartTime(value metav1.Time) *JobStatusApplyConfiguration
WithStartTime sets the StartTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the StartTime field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithSucceeded ¶
func (b *JobStatusApplyConfiguration) WithSucceeded(value int32) *JobStatusApplyConfiguration
WithSucceeded sets the Succeeded field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Succeeded field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithTerminating ¶ added in v0.28.0
func (b *JobStatusApplyConfiguration) WithTerminating(value int32) *JobStatusApplyConfiguration
WithTerminating sets the Terminating field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Terminating field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithUncountedTerminatedPods ¶ added in v0.22.0
func (b *JobStatusApplyConfiguration) WithUncountedTerminatedPods(value *UncountedTerminatedPodsApplyConfiguration) *JobStatusApplyConfiguration
WithUncountedTerminatedPods sets the UncountedTerminatedPods field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UncountedTerminatedPods field is set to the value of the last call.
type JobTemplateSpecApplyConfiguration ¶
type JobTemplateSpecApplyConfiguration struct { *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` }
JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use with apply.
func JobTemplateSpec ¶
func JobTemplateSpec() *JobTemplateSpecApplyConfiguration
JobTemplateSpecApplyConfiguration constructs a declarative configuration of the JobTemplateSpec type for use with apply.
func (*JobTemplateSpecApplyConfiguration) GetName ¶ added in v0.31.0
func (b *JobTemplateSpecApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*JobTemplateSpecApplyConfiguration) WithAnnotations ¶
func (b *JobTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]string) *JobTemplateSpecApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*JobTemplateSpecApplyConfiguration) WithCreationTimestamp ¶
func (b *JobTemplateSpecApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *JobTemplateSpecApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *JobTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobTemplateSpecApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithDeletionTimestamp ¶
func (b *JobTemplateSpecApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *JobTemplateSpecApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithFinalizers ¶
func (b *JobTemplateSpecApplyConfiguration) WithFinalizers(values ...string) *JobTemplateSpecApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*JobTemplateSpecApplyConfiguration) WithGenerateName ¶
func (b *JobTemplateSpecApplyConfiguration) WithGenerateName(value string) *JobTemplateSpecApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithGeneration ¶
func (b *JobTemplateSpecApplyConfiguration) WithGeneration(value int64) *JobTemplateSpecApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithLabels ¶
func (b *JobTemplateSpecApplyConfiguration) WithLabels(entries map[string]string) *JobTemplateSpecApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*JobTemplateSpecApplyConfiguration) WithName ¶
func (b *JobTemplateSpecApplyConfiguration) WithName(value string) *JobTemplateSpecApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithNamespace ¶
func (b *JobTemplateSpecApplyConfiguration) WithNamespace(value string) *JobTemplateSpecApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithOwnerReferences ¶
func (b *JobTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *JobTemplateSpecApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*JobTemplateSpecApplyConfiguration) WithResourceVersion ¶
func (b *JobTemplateSpecApplyConfiguration) WithResourceVersion(value string) *JobTemplateSpecApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithSpec ¶
func (b *JobTemplateSpecApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobTemplateSpecApplyConfiguration
WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.
func (*JobTemplateSpecApplyConfiguration) WithUID ¶
func (b *JobTemplateSpecApplyConfiguration) WithUID(value types.UID) *JobTemplateSpecApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type PodFailurePolicyApplyConfiguration ¶ added in v0.25.0
type PodFailurePolicyApplyConfiguration struct {
Rules []PodFailurePolicyRuleApplyConfiguration `json:"rules,omitempty"`
}
PodFailurePolicyApplyConfiguration represents a declarative configuration of the PodFailurePolicy type for use with apply.
func PodFailurePolicy ¶ added in v0.25.0
func PodFailurePolicy() *PodFailurePolicyApplyConfiguration
PodFailurePolicyApplyConfiguration constructs a declarative configuration of the PodFailurePolicy type for use with apply.
func (*PodFailurePolicyApplyConfiguration) WithRules ¶ added in v0.25.0
func (b *PodFailurePolicyApplyConfiguration) WithRules(values ...*PodFailurePolicyRuleApplyConfiguration) *PodFailurePolicyApplyConfiguration
WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.
type PodFailurePolicyOnExitCodesRequirementApplyConfiguration ¶ added in v0.25.0
type PodFailurePolicyOnExitCodesRequirementApplyConfiguration struct { ContainerName *string `json:"containerName,omitempty"` Operator *batchv1.PodFailurePolicyOnExitCodesOperator `json:"operator,omitempty"` Values []int32 `json:"values,omitempty"` }
PodFailurePolicyOnExitCodesRequirementApplyConfiguration represents a declarative configuration of the PodFailurePolicyOnExitCodesRequirement type for use with apply.
func PodFailurePolicyOnExitCodesRequirement ¶ added in v0.25.0
func PodFailurePolicyOnExitCodesRequirement() *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
PodFailurePolicyOnExitCodesRequirementApplyConfiguration constructs a declarative configuration of the PodFailurePolicyOnExitCodesRequirement type for use with apply.
func (*PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithContainerName ¶ added in v0.25.0
func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithContainerName(value string) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
WithContainerName sets the ContainerName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ContainerName field is set to the value of the last call.
func (*PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithOperator ¶ added in v0.25.0
func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithOperator(value batchv1.PodFailurePolicyOnExitCodesOperator) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
WithOperator sets the Operator field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Operator field is set to the value of the last call.
func (*PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithValues ¶ added in v0.25.0
func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithValues(values ...int32) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration
WithValues adds the given value to the Values field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Values field.
type PodFailurePolicyOnPodConditionsPatternApplyConfiguration ¶ added in v0.25.0
type PodFailurePolicyOnPodConditionsPatternApplyConfiguration struct { Type *corev1.PodConditionType `json:"type,omitempty"` Status *corev1.ConditionStatus `json:"status,omitempty"` }
PodFailurePolicyOnPodConditionsPatternApplyConfiguration represents a declarative configuration of the PodFailurePolicyOnPodConditionsPattern type for use with apply.
func PodFailurePolicyOnPodConditionsPattern ¶ added in v0.25.0
func PodFailurePolicyOnPodConditionsPattern() *PodFailurePolicyOnPodConditionsPatternApplyConfiguration
PodFailurePolicyOnPodConditionsPatternApplyConfiguration constructs a declarative configuration of the PodFailurePolicyOnPodConditionsPattern type for use with apply.
func (*PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithStatus ¶ added in v0.25.0
func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithStatus(value corev1.ConditionStatus) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithType ¶ added in v0.25.0
func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithType(value corev1.PodConditionType) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration
WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.
type PodFailurePolicyRuleApplyConfiguration ¶ added in v0.25.0
type PodFailurePolicyRuleApplyConfiguration struct { Action *batchv1.PodFailurePolicyAction `json:"action,omitempty"` OnExitCodes *PodFailurePolicyOnExitCodesRequirementApplyConfiguration `json:"onExitCodes,omitempty"` OnPodConditions []PodFailurePolicyOnPodConditionsPatternApplyConfiguration `json:"onPodConditions,omitempty"` }
PodFailurePolicyRuleApplyConfiguration represents a declarative configuration of the PodFailurePolicyRule type for use with apply.
func PodFailurePolicyRule ¶ added in v0.25.0
func PodFailurePolicyRule() *PodFailurePolicyRuleApplyConfiguration
PodFailurePolicyRuleApplyConfiguration constructs a declarative configuration of the PodFailurePolicyRule type for use with apply.
func (*PodFailurePolicyRuleApplyConfiguration) WithAction ¶ added in v0.25.0
func (b *PodFailurePolicyRuleApplyConfiguration) WithAction(value batchv1.PodFailurePolicyAction) *PodFailurePolicyRuleApplyConfiguration
WithAction sets the Action field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Action field is set to the value of the last call.
func (*PodFailurePolicyRuleApplyConfiguration) WithOnExitCodes ¶ added in v0.25.0
func (b *PodFailurePolicyRuleApplyConfiguration) WithOnExitCodes(value *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) *PodFailurePolicyRuleApplyConfiguration
WithOnExitCodes sets the OnExitCodes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OnExitCodes field is set to the value of the last call.
func (*PodFailurePolicyRuleApplyConfiguration) WithOnPodConditions ¶ added in v0.25.0
func (b *PodFailurePolicyRuleApplyConfiguration) WithOnPodConditions(values ...*PodFailurePolicyOnPodConditionsPatternApplyConfiguration) *PodFailurePolicyRuleApplyConfiguration
WithOnPodConditions adds the given value to the OnPodConditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OnPodConditions field.
type SuccessPolicyApplyConfiguration ¶ added in v0.30.0
type SuccessPolicyApplyConfiguration struct {
Rules []SuccessPolicyRuleApplyConfiguration `json:"rules,omitempty"`
}
SuccessPolicyApplyConfiguration represents a declarative configuration of the SuccessPolicy type for use with apply.
func SuccessPolicy ¶ added in v0.30.0
func SuccessPolicy() *SuccessPolicyApplyConfiguration
SuccessPolicyApplyConfiguration constructs a declarative configuration of the SuccessPolicy type for use with apply.
func (*SuccessPolicyApplyConfiguration) WithRules ¶ added in v0.30.0
func (b *SuccessPolicyApplyConfiguration) WithRules(values ...*SuccessPolicyRuleApplyConfiguration) *SuccessPolicyApplyConfiguration
WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.
type SuccessPolicyRuleApplyConfiguration ¶ added in v0.30.0
type SuccessPolicyRuleApplyConfiguration struct { SucceededIndexes *string `json:"succeededIndexes,omitempty"` SucceededCount *int32 `json:"succeededCount,omitempty"` }
SuccessPolicyRuleApplyConfiguration represents a declarative configuration of the SuccessPolicyRule type for use with apply.
func SuccessPolicyRule ¶ added in v0.30.0
func SuccessPolicyRule() *SuccessPolicyRuleApplyConfiguration
SuccessPolicyRuleApplyConfiguration constructs a declarative configuration of the SuccessPolicyRule type for use with apply.
func (*SuccessPolicyRuleApplyConfiguration) WithSucceededCount ¶ added in v0.30.0
func (b *SuccessPolicyRuleApplyConfiguration) WithSucceededCount(value int32) *SuccessPolicyRuleApplyConfiguration
WithSucceededCount sets the SucceededCount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SucceededCount field is set to the value of the last call.
func (*SuccessPolicyRuleApplyConfiguration) WithSucceededIndexes ¶ added in v0.30.0
func (b *SuccessPolicyRuleApplyConfiguration) WithSucceededIndexes(value string) *SuccessPolicyRuleApplyConfiguration
WithSucceededIndexes sets the SucceededIndexes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SucceededIndexes field is set to the value of the last call.
type UncountedTerminatedPodsApplyConfiguration ¶ added in v0.22.0
type UncountedTerminatedPodsApplyConfiguration struct { Succeeded []types.UID `json:"succeeded,omitempty"` Failed []types.UID `json:"failed,omitempty"` }
UncountedTerminatedPodsApplyConfiguration represents a declarative configuration of the UncountedTerminatedPods type for use with apply.
func UncountedTerminatedPods ¶ added in v0.22.0
func UncountedTerminatedPods() *UncountedTerminatedPodsApplyConfiguration
UncountedTerminatedPodsApplyConfiguration constructs a declarative configuration of the UncountedTerminatedPods type for use with apply.
func (*UncountedTerminatedPodsApplyConfiguration) WithFailed ¶ added in v0.22.0
func (b *UncountedTerminatedPodsApplyConfiguration) WithFailed(values ...types.UID) *UncountedTerminatedPodsApplyConfiguration
WithFailed adds the given value to the Failed field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Failed field.
func (*UncountedTerminatedPodsApplyConfiguration) WithSucceeded ¶ added in v0.22.0
func (b *UncountedTerminatedPodsApplyConfiguration) WithSucceeded(values ...types.UID) *UncountedTerminatedPodsApplyConfiguration
WithSucceeded adds the given value to the Succeeded field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Succeeded field.
Source Files ¶
- cronjob.go
- cronjobspec.go
- cronjobstatus.go
- job.go
- jobcondition.go
- jobspec.go
- jobstatus.go
- jobtemplatespec.go
- podfailurepolicy.go
- podfailurepolicyonexitcodesrequirement.go
- podfailurepolicyonpodconditionspattern.go
- podfailurepolicyrule.go
- successpolicy.go
- successpolicyrule.go
- uncountedterminatedpods.go