v1

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	pulumi.CustomResourceState

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"`
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrOutput `pulumi:"kind"`
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPtrOutput `pulumi:"metadata"`
	// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec JobSpecPtrOutput `pulumi:"spec"`
	// Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status JobStatusPtrOutput `pulumi:"status"`
}

Job represents the configuration of a single job.

func GetJob

func GetJob(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *JobState, opts ...pulumi.ResourceOption) (*Job, error)

GetJob gets an existing Job resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewJob

func NewJob(ctx *pulumi.Context,
	name string, args *JobArgs, opts ...pulumi.ResourceOption) (*Job, error)

NewJob registers a new resource with the given unique name, arguments, and options.

type JobArgs

type JobArgs struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrInput
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrInput
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPtrInput
	// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec JobSpecPtrInput
}

The set of arguments for constructing a Job resource.

func (JobArgs) ElementType

func (JobArgs) ElementType() reflect.Type

type JobCondition

type JobCondition struct {
	// Last time the condition was checked.
	LastProbeTime *string `pulumi:"lastProbeTime"`
	// Last time the condition transit from one status to another.
	LastTransitionTime *string `pulumi:"lastTransitionTime"`
	// Human readable message indicating details about last transition.
	Message *string `pulumi:"message"`
	// (brief) reason for the condition's last transition.
	Reason *string `pulumi:"reason"`
	// Status of the condition, one of True, False, Unknown.
	Status *string `pulumi:"status"`
	// Type of job condition, Complete or Failed.
	Type *string `pulumi:"type"`
}

JobCondition describes current state of a job.

type JobConditionArgs

type JobConditionArgs struct {
	// Last time the condition was checked.
	LastProbeTime pulumi.StringPtrInput `pulumi:"lastProbeTime"`
	// Last time the condition transit from one status to another.
	LastTransitionTime pulumi.StringPtrInput `pulumi:"lastTransitionTime"`
	// Human readable message indicating details about last transition.
	Message pulumi.StringPtrInput `pulumi:"message"`
	// (brief) reason for the condition's last transition.
	Reason pulumi.StringPtrInput `pulumi:"reason"`
	// Status of the condition, one of True, False, Unknown.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// Type of job condition, Complete or Failed.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

JobCondition describes current state of a job.

func (JobConditionArgs) ElementType

func (JobConditionArgs) ElementType() reflect.Type

func (JobConditionArgs) ToJobConditionOutput

func (i JobConditionArgs) ToJobConditionOutput() JobConditionOutput

func (JobConditionArgs) ToJobConditionOutputWithContext

func (i JobConditionArgs) ToJobConditionOutputWithContext(ctx context.Context) JobConditionOutput

type JobConditionArray

type JobConditionArray []JobConditionInput

func (JobConditionArray) ElementType

func (JobConditionArray) ElementType() reflect.Type

func (JobConditionArray) ToJobConditionArrayOutput

func (i JobConditionArray) ToJobConditionArrayOutput() JobConditionArrayOutput

func (JobConditionArray) ToJobConditionArrayOutputWithContext

func (i JobConditionArray) ToJobConditionArrayOutputWithContext(ctx context.Context) JobConditionArrayOutput

type JobConditionArrayInput

type JobConditionArrayInput interface {
	pulumi.Input

	ToJobConditionArrayOutput() JobConditionArrayOutput
	ToJobConditionArrayOutputWithContext(context.Context) JobConditionArrayOutput
}

type JobConditionArrayOutput

type JobConditionArrayOutput struct{ *pulumi.OutputState }

func (JobConditionArrayOutput) ElementType

func (JobConditionArrayOutput) ElementType() reflect.Type

func (JobConditionArrayOutput) Index

func (JobConditionArrayOutput) ToJobConditionArrayOutput

func (o JobConditionArrayOutput) ToJobConditionArrayOutput() JobConditionArrayOutput

func (JobConditionArrayOutput) ToJobConditionArrayOutputWithContext

func (o JobConditionArrayOutput) ToJobConditionArrayOutputWithContext(ctx context.Context) JobConditionArrayOutput

type JobConditionInput

type JobConditionInput interface {
	pulumi.Input

	ToJobConditionOutput() JobConditionOutput
	ToJobConditionOutputWithContext(context.Context) JobConditionOutput
}

type JobConditionOutput

type JobConditionOutput struct{ *pulumi.OutputState }

JobCondition describes current state of a job.

func (JobConditionOutput) ElementType

func (JobConditionOutput) ElementType() reflect.Type

func (JobConditionOutput) LastProbeTime

func (o JobConditionOutput) LastProbeTime() pulumi.StringPtrOutput

Last time the condition was checked.

func (JobConditionOutput) LastTransitionTime

func (o JobConditionOutput) LastTransitionTime() pulumi.StringPtrOutput

Last time the condition transit from one status to another.

func (JobConditionOutput) Message

Human readable message indicating details about last transition.

func (JobConditionOutput) Reason

(brief) reason for the condition's last transition.

func (JobConditionOutput) Status

Status of the condition, one of True, False, Unknown.

func (JobConditionOutput) ToJobConditionOutput

func (o JobConditionOutput) ToJobConditionOutput() JobConditionOutput

func (JobConditionOutput) ToJobConditionOutputWithContext

func (o JobConditionOutput) ToJobConditionOutputWithContext(ctx context.Context) JobConditionOutput

func (JobConditionOutput) Type

Type of job condition, Complete or Failed.

type JobList

type JobList struct {
	pulumi.CustomResourceState

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"`
	// items is the list of Jobs.
	Items JobTypeArrayOutput `pulumi:"items"`
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrOutput `pulumi:"kind"`
	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ListMetaPtrOutput `pulumi:"metadata"`
}

JobList is a collection of jobs.

func GetJobList

func GetJobList(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *JobListState, opts ...pulumi.ResourceOption) (*JobList, error)

GetJobList gets an existing JobList resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewJobList

func NewJobList(ctx *pulumi.Context,
	name string, args *JobListArgs, opts ...pulumi.ResourceOption) (*JobList, error)

NewJobList registers a new resource with the given unique name, arguments, and options.

type JobListArgs

type JobListArgs struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrInput
	// items is the list of Jobs.
	Items JobTypeArrayInput
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrInput
	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ListMetaPtrInput
}

The set of arguments for constructing a JobList resource.

func (JobListArgs) ElementType

func (JobListArgs) ElementType() reflect.Type

type JobListState

type JobListState struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrInput
	// items is the list of Jobs.
	Items JobTypeArrayInput
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrInput
	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ListMetaPtrInput
}

func (JobListState) ElementType

func (JobListState) ElementType() reflect.Type

type JobListType

type JobListType struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion *string `pulumi:"apiVersion"`
	// items is the list of Jobs.
	Items []JobType `pulumi:"items"`
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind *string `pulumi:"kind"`
	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *metav1.ListMeta `pulumi:"metadata"`
}

JobList is a collection of jobs.

type JobListTypeArgs

type JobListTypeArgs struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
	// items is the list of Jobs.
	Items JobTypeArrayInput `pulumi:"items"`
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrInput `pulumi:"kind"`
	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}

JobList is a collection of jobs.

func (JobListTypeArgs) ElementType

func (JobListTypeArgs) ElementType() reflect.Type

func (JobListTypeArgs) ToJobListTypeOutput

func (i JobListTypeArgs) ToJobListTypeOutput() JobListTypeOutput

func (JobListTypeArgs) ToJobListTypeOutputWithContext

func (i JobListTypeArgs) ToJobListTypeOutputWithContext(ctx context.Context) JobListTypeOutput

type JobListTypeInput

type JobListTypeInput interface {
	pulumi.Input

	ToJobListTypeOutput() JobListTypeOutput
	ToJobListTypeOutputWithContext(context.Context) JobListTypeOutput
}

type JobListTypeOutput

type JobListTypeOutput struct{ *pulumi.OutputState }

JobList is a collection of jobs.

func (JobListTypeOutput) ApiVersion

func (o JobListTypeOutput) ApiVersion() pulumi.StringPtrOutput

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (JobListTypeOutput) ElementType

func (JobListTypeOutput) ElementType() reflect.Type

func (JobListTypeOutput) Items

items is the list of Jobs.

func (JobListTypeOutput) Kind

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (JobListTypeOutput) ToJobListTypeOutput

func (o JobListTypeOutput) ToJobListTypeOutput() JobListTypeOutput

func (JobListTypeOutput) ToJobListTypeOutputWithContext

func (o JobListTypeOutput) ToJobListTypeOutputWithContext(ctx context.Context) JobListTypeOutput

type JobSpec

type JobSpec struct {
	// Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
	ActiveDeadlineSeconds *int `pulumi:"activeDeadlineSeconds"`
	// Specifies the number of retries before marking this job failed. Defaults to 6
	BackoffLimit *int `pulumi:"backoffLimit"`
	// Specifies the desired number of successfully finished pods the job should be run with.  Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value.  Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Completions *int `pulumi:"completions"`
	// manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template.  When true, the user is responsible for picking unique labels and specifying the selector.  Failure to pick a unique label may cause this and other jobs to not function correctly.  However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
	ManualSelector *bool `pulumi:"manualSelector"`
	// Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Parallelism *int `pulumi:"parallelism"`
	// A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	Selector *metav1.LabelSelector `pulumi:"selector"`
	// Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Template *corev1.PodTemplateSpec `pulumi:"template"`
	// ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.
	TtlSecondsAfterFinished *int `pulumi:"ttlSecondsAfterFinished"`
}

JobSpec describes how the job execution will look like.

type JobSpecArgs

type JobSpecArgs struct {
	// Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
	ActiveDeadlineSeconds pulumi.IntPtrInput `pulumi:"activeDeadlineSeconds"`
	// Specifies the number of retries before marking this job failed. Defaults to 6
	BackoffLimit pulumi.IntPtrInput `pulumi:"backoffLimit"`
	// Specifies the desired number of successfully finished pods the job should be run with.  Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value.  Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Completions pulumi.IntPtrInput `pulumi:"completions"`
	// manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template.  When true, the user is responsible for picking unique labels and specifying the selector.  Failure to pick a unique label may cause this and other jobs to not function correctly.  However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
	ManualSelector pulumi.BoolPtrInput `pulumi:"manualSelector"`
	// Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Parallelism pulumi.IntPtrInput `pulumi:"parallelism"`
	// A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	Selector metav1.LabelSelectorPtrInput `pulumi:"selector"`
	// Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Template corev1.PodTemplateSpecPtrInput `pulumi:"template"`
	// ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.
	TtlSecondsAfterFinished pulumi.IntPtrInput `pulumi:"ttlSecondsAfterFinished"`
}

JobSpec describes how the job execution will look like.

func (JobSpecArgs) ElementType

func (JobSpecArgs) ElementType() reflect.Type

func (JobSpecArgs) ToJobSpecOutput

func (i JobSpecArgs) ToJobSpecOutput() JobSpecOutput

func (JobSpecArgs) ToJobSpecOutputWithContext

func (i JobSpecArgs) ToJobSpecOutputWithContext(ctx context.Context) JobSpecOutput

func (JobSpecArgs) ToJobSpecPtrOutput

func (i JobSpecArgs) ToJobSpecPtrOutput() JobSpecPtrOutput

func (JobSpecArgs) ToJobSpecPtrOutputWithContext

func (i JobSpecArgs) ToJobSpecPtrOutputWithContext(ctx context.Context) JobSpecPtrOutput

type JobSpecInput

type JobSpecInput interface {
	pulumi.Input

	ToJobSpecOutput() JobSpecOutput
	ToJobSpecOutputWithContext(context.Context) JobSpecOutput
}

type JobSpecOutput

type JobSpecOutput struct{ *pulumi.OutputState }

JobSpec describes how the job execution will look like.

func (JobSpecOutput) ActiveDeadlineSeconds

func (o JobSpecOutput) ActiveDeadlineSeconds() pulumi.IntPtrOutput

Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer

func (JobSpecOutput) BackoffLimit

func (o JobSpecOutput) BackoffLimit() pulumi.IntPtrOutput

Specifies the number of retries before marking this job failed. Defaults to 6

func (JobSpecOutput) Completions

func (o JobSpecOutput) Completions() pulumi.IntPtrOutput

Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobSpecOutput) ElementType

func (JobSpecOutput) ElementType() reflect.Type

func (JobSpecOutput) ManualSelector

func (o JobSpecOutput) ManualSelector() pulumi.BoolPtrOutput

manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector

func (JobSpecOutput) Parallelism

func (o JobSpecOutput) Parallelism() pulumi.IntPtrOutput

Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobSpecOutput) Selector

A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

func (JobSpecOutput) Template

Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobSpecOutput) ToJobSpecOutput

func (o JobSpecOutput) ToJobSpecOutput() JobSpecOutput

func (JobSpecOutput) ToJobSpecOutputWithContext

func (o JobSpecOutput) ToJobSpecOutputWithContext(ctx context.Context) JobSpecOutput

func (JobSpecOutput) ToJobSpecPtrOutput

func (o JobSpecOutput) ToJobSpecPtrOutput() JobSpecPtrOutput

func (JobSpecOutput) ToJobSpecPtrOutputWithContext

func (o JobSpecOutput) ToJobSpecPtrOutputWithContext(ctx context.Context) JobSpecPtrOutput

func (JobSpecOutput) TtlSecondsAfterFinished

func (o JobSpecOutput) TtlSecondsAfterFinished() pulumi.IntPtrOutput

ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.

type JobSpecPtrInput

type JobSpecPtrInput interface {
	pulumi.Input

	ToJobSpecPtrOutput() JobSpecPtrOutput
	ToJobSpecPtrOutputWithContext(context.Context) JobSpecPtrOutput
}

func JobSpecPtr

func JobSpecPtr(v *JobSpecArgs) JobSpecPtrInput

type JobSpecPtrOutput

type JobSpecPtrOutput struct{ *pulumi.OutputState }

func (JobSpecPtrOutput) ActiveDeadlineSeconds

func (o JobSpecPtrOutput) ActiveDeadlineSeconds() pulumi.IntPtrOutput

Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer

func (JobSpecPtrOutput) BackoffLimit

func (o JobSpecPtrOutput) BackoffLimit() pulumi.IntPtrOutput

Specifies the number of retries before marking this job failed. Defaults to 6

func (JobSpecPtrOutput) Completions

func (o JobSpecPtrOutput) Completions() pulumi.IntPtrOutput

Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobSpecPtrOutput) Elem

func (JobSpecPtrOutput) ElementType

func (JobSpecPtrOutput) ElementType() reflect.Type

func (JobSpecPtrOutput) ManualSelector

func (o JobSpecPtrOutput) ManualSelector() pulumi.BoolPtrOutput

manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector

func (JobSpecPtrOutput) Parallelism

func (o JobSpecPtrOutput) Parallelism() pulumi.IntPtrOutput

Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobSpecPtrOutput) Selector

A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

func (JobSpecPtrOutput) Template

Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobSpecPtrOutput) ToJobSpecPtrOutput

func (o JobSpecPtrOutput) ToJobSpecPtrOutput() JobSpecPtrOutput

func (JobSpecPtrOutput) ToJobSpecPtrOutputWithContext

func (o JobSpecPtrOutput) ToJobSpecPtrOutputWithContext(ctx context.Context) JobSpecPtrOutput

func (JobSpecPtrOutput) TtlSecondsAfterFinished

func (o JobSpecPtrOutput) TtlSecondsAfterFinished() pulumi.IntPtrOutput

ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.

type JobState

type JobState struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrInput
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrInput
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPtrInput
	// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec JobSpecPtrInput
	// Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status JobStatusPtrInput
}

func (JobState) ElementType

func (JobState) ElementType() reflect.Type

type JobStatus

type JobStatus struct {
	// The number of actively running pods.
	Active *int `pulumi:"active"`
	// Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
	CompletionTime *string `pulumi:"completionTime"`
	// The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Conditions []JobCondition `pulumi:"conditions"`
	// The number of pods which reached phase Failed.
	Failed *int `pulumi:"failed"`
	// Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
	StartTime *string `pulumi:"startTime"`
	// The number of pods which reached phase Succeeded.
	Succeeded *int `pulumi:"succeeded"`
}

JobStatus represents the current state of a Job.

type JobStatusArgs

type JobStatusArgs struct {
	// The number of actively running pods.
	Active pulumi.IntPtrInput `pulumi:"active"`
	// Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
	CompletionTime pulumi.StringPtrInput `pulumi:"completionTime"`
	// The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Conditions JobConditionArrayInput `pulumi:"conditions"`
	// The number of pods which reached phase Failed.
	Failed pulumi.IntPtrInput `pulumi:"failed"`
	// Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
	StartTime pulumi.StringPtrInput `pulumi:"startTime"`
	// The number of pods which reached phase Succeeded.
	Succeeded pulumi.IntPtrInput `pulumi:"succeeded"`
}

JobStatus represents the current state of a Job.

func (JobStatusArgs) ElementType

func (JobStatusArgs) ElementType() reflect.Type

func (JobStatusArgs) ToJobStatusOutput

func (i JobStatusArgs) ToJobStatusOutput() JobStatusOutput

func (JobStatusArgs) ToJobStatusOutputWithContext

func (i JobStatusArgs) ToJobStatusOutputWithContext(ctx context.Context) JobStatusOutput

func (JobStatusArgs) ToJobStatusPtrOutput

func (i JobStatusArgs) ToJobStatusPtrOutput() JobStatusPtrOutput

func (JobStatusArgs) ToJobStatusPtrOutputWithContext

func (i JobStatusArgs) ToJobStatusPtrOutputWithContext(ctx context.Context) JobStatusPtrOutput

type JobStatusInput

type JobStatusInput interface {
	pulumi.Input

	ToJobStatusOutput() JobStatusOutput
	ToJobStatusOutputWithContext(context.Context) JobStatusOutput
}

type JobStatusOutput

type JobStatusOutput struct{ *pulumi.OutputState }

JobStatus represents the current state of a Job.

func (JobStatusOutput) Active

func (o JobStatusOutput) Active() pulumi.IntPtrOutput

The number of actively running pods.

func (JobStatusOutput) CompletionTime

func (o JobStatusOutput) CompletionTime() pulumi.StringPtrOutput

Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.

func (JobStatusOutput) Conditions

The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobStatusOutput) ElementType

func (JobStatusOutput) ElementType() reflect.Type

func (JobStatusOutput) Failed

func (o JobStatusOutput) Failed() pulumi.IntPtrOutput

The number of pods which reached phase Failed.

func (JobStatusOutput) StartTime

func (o JobStatusOutput) StartTime() pulumi.StringPtrOutput

Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.

func (JobStatusOutput) Succeeded

func (o JobStatusOutput) Succeeded() pulumi.IntPtrOutput

The number of pods which reached phase Succeeded.

func (JobStatusOutput) ToJobStatusOutput

func (o JobStatusOutput) ToJobStatusOutput() JobStatusOutput

func (JobStatusOutput) ToJobStatusOutputWithContext

func (o JobStatusOutput) ToJobStatusOutputWithContext(ctx context.Context) JobStatusOutput

func (JobStatusOutput) ToJobStatusPtrOutput

func (o JobStatusOutput) ToJobStatusPtrOutput() JobStatusPtrOutput

func (JobStatusOutput) ToJobStatusPtrOutputWithContext

func (o JobStatusOutput) ToJobStatusPtrOutputWithContext(ctx context.Context) JobStatusPtrOutput

type JobStatusPtrInput

type JobStatusPtrInput interface {
	pulumi.Input

	ToJobStatusPtrOutput() JobStatusPtrOutput
	ToJobStatusPtrOutputWithContext(context.Context) JobStatusPtrOutput
}

func JobStatusPtr

func JobStatusPtr(v *JobStatusArgs) JobStatusPtrInput

type JobStatusPtrOutput

type JobStatusPtrOutput struct{ *pulumi.OutputState }

func (JobStatusPtrOutput) Active

The number of actively running pods.

func (JobStatusPtrOutput) CompletionTime

func (o JobStatusPtrOutput) CompletionTime() pulumi.StringPtrOutput

Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.

func (JobStatusPtrOutput) Conditions

The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

func (JobStatusPtrOutput) Elem

func (JobStatusPtrOutput) ElementType

func (JobStatusPtrOutput) ElementType() reflect.Type

func (JobStatusPtrOutput) Failed

The number of pods which reached phase Failed.

func (JobStatusPtrOutput) StartTime

Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.

func (JobStatusPtrOutput) Succeeded

func (o JobStatusPtrOutput) Succeeded() pulumi.IntPtrOutput

The number of pods which reached phase Succeeded.

func (JobStatusPtrOutput) ToJobStatusPtrOutput

func (o JobStatusPtrOutput) ToJobStatusPtrOutput() JobStatusPtrOutput

func (JobStatusPtrOutput) ToJobStatusPtrOutputWithContext

func (o JobStatusPtrOutput) ToJobStatusPtrOutputWithContext(ctx context.Context) JobStatusPtrOutput

type JobType

type JobType struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion *string `pulumi:"apiVersion"`
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind *string `pulumi:"kind"`
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *metav1.ObjectMeta `pulumi:"metadata"`
	// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *JobSpec `pulumi:"spec"`
	// Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *JobStatus `pulumi:"status"`
}

Job represents the configuration of a single job.

type JobTypeArgs

type JobTypeArgs struct {
	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind pulumi.StringPtrInput `pulumi:"kind"`
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
	// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec JobSpecPtrInput `pulumi:"spec"`
	// Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status JobStatusPtrInput `pulumi:"status"`
}

Job represents the configuration of a single job.

func (JobTypeArgs) ElementType

func (JobTypeArgs) ElementType() reflect.Type

func (JobTypeArgs) ToJobTypeOutput

func (i JobTypeArgs) ToJobTypeOutput() JobTypeOutput

func (JobTypeArgs) ToJobTypeOutputWithContext

func (i JobTypeArgs) ToJobTypeOutputWithContext(ctx context.Context) JobTypeOutput

type JobTypeArray

type JobTypeArray []JobTypeInput

func (JobTypeArray) ElementType

func (JobTypeArray) ElementType() reflect.Type

func (JobTypeArray) ToJobTypeArrayOutput

func (i JobTypeArray) ToJobTypeArrayOutput() JobTypeArrayOutput

func (JobTypeArray) ToJobTypeArrayOutputWithContext

func (i JobTypeArray) ToJobTypeArrayOutputWithContext(ctx context.Context) JobTypeArrayOutput

type JobTypeArrayInput

type JobTypeArrayInput interface {
	pulumi.Input

	ToJobTypeArrayOutput() JobTypeArrayOutput
	ToJobTypeArrayOutputWithContext(context.Context) JobTypeArrayOutput
}

type JobTypeArrayOutput

type JobTypeArrayOutput struct{ *pulumi.OutputState }

func (JobTypeArrayOutput) ElementType

func (JobTypeArrayOutput) ElementType() reflect.Type

func (JobTypeArrayOutput) Index

func (JobTypeArrayOutput) ToJobTypeArrayOutput

func (o JobTypeArrayOutput) ToJobTypeArrayOutput() JobTypeArrayOutput

func (JobTypeArrayOutput) ToJobTypeArrayOutputWithContext

func (o JobTypeArrayOutput) ToJobTypeArrayOutputWithContext(ctx context.Context) JobTypeArrayOutput

type JobTypeInput

type JobTypeInput interface {
	pulumi.Input

	ToJobTypeOutput() JobTypeOutput
	ToJobTypeOutputWithContext(context.Context) JobTypeOutput
}

type JobTypeOutput

type JobTypeOutput struct{ *pulumi.OutputState }

Job represents the configuration of a single job.

func (JobTypeOutput) ApiVersion

func (o JobTypeOutput) ApiVersion() pulumi.StringPtrOutput

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (JobTypeOutput) ElementType

func (JobTypeOutput) ElementType() reflect.Type

func (JobTypeOutput) Kind

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (JobTypeOutput) Spec

Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (JobTypeOutput) ToJobTypeOutput

func (o JobTypeOutput) ToJobTypeOutput() JobTypeOutput

func (JobTypeOutput) ToJobTypeOutputWithContext

func (o JobTypeOutput) ToJobTypeOutputWithContext(ctx context.Context) JobTypeOutput

Jump to

Keyboard shortcuts

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