v1alpha2

package
v4.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaseCandidate

type LeaseCandidate 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.StringOutput `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.StringOutput `pulumi:"kind"`
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaOutput `pulumi:"metadata"`
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec LeaseCandidateSpecOutput `pulumi:"spec"`
}

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

func GetLeaseCandidate

func GetLeaseCandidate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LeaseCandidateState, opts ...pulumi.ResourceOption) (*LeaseCandidate, error)

GetLeaseCandidate gets an existing LeaseCandidate 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 NewLeaseCandidate

func NewLeaseCandidate(ctx *pulumi.Context,
	name string, args *LeaseCandidateArgs, opts ...pulumi.ResourceOption) (*LeaseCandidate, error)

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

func (*LeaseCandidate) ElementType

func (*LeaseCandidate) ElementType() reflect.Type

func (*LeaseCandidate) ToLeaseCandidateOutput

func (i *LeaseCandidate) ToLeaseCandidateOutput() LeaseCandidateOutput

func (*LeaseCandidate) ToLeaseCandidateOutputWithContext

func (i *LeaseCandidate) ToLeaseCandidateOutputWithContext(ctx context.Context) LeaseCandidateOutput

type LeaseCandidateArgs

type LeaseCandidateArgs 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
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPtrInput
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec LeaseCandidateSpecPtrInput
}

The set of arguments for constructing a LeaseCandidate resource.

func (LeaseCandidateArgs) ElementType

func (LeaseCandidateArgs) ElementType() reflect.Type

type LeaseCandidateArray

type LeaseCandidateArray []LeaseCandidateInput

func (LeaseCandidateArray) ElementType

func (LeaseCandidateArray) ElementType() reflect.Type

func (LeaseCandidateArray) ToLeaseCandidateArrayOutput

func (i LeaseCandidateArray) ToLeaseCandidateArrayOutput() LeaseCandidateArrayOutput

func (LeaseCandidateArray) ToLeaseCandidateArrayOutputWithContext

func (i LeaseCandidateArray) ToLeaseCandidateArrayOutputWithContext(ctx context.Context) LeaseCandidateArrayOutput

type LeaseCandidateArrayInput

type LeaseCandidateArrayInput interface {
	pulumi.Input

	ToLeaseCandidateArrayOutput() LeaseCandidateArrayOutput
	ToLeaseCandidateArrayOutputWithContext(context.Context) LeaseCandidateArrayOutput
}

LeaseCandidateArrayInput is an input type that accepts LeaseCandidateArray and LeaseCandidateArrayOutput values. You can construct a concrete instance of `LeaseCandidateArrayInput` via:

LeaseCandidateArray{ LeaseCandidateArgs{...} }

type LeaseCandidateArrayOutput

type LeaseCandidateArrayOutput struct{ *pulumi.OutputState }

func (LeaseCandidateArrayOutput) ElementType

func (LeaseCandidateArrayOutput) ElementType() reflect.Type

func (LeaseCandidateArrayOutput) Index

func (LeaseCandidateArrayOutput) ToLeaseCandidateArrayOutput

func (o LeaseCandidateArrayOutput) ToLeaseCandidateArrayOutput() LeaseCandidateArrayOutput

func (LeaseCandidateArrayOutput) ToLeaseCandidateArrayOutputWithContext

func (o LeaseCandidateArrayOutput) ToLeaseCandidateArrayOutputWithContext(ctx context.Context) LeaseCandidateArrayOutput

type LeaseCandidateInput

type LeaseCandidateInput interface {
	pulumi.Input

	ToLeaseCandidateOutput() LeaseCandidateOutput
	ToLeaseCandidateOutputWithContext(ctx context.Context) LeaseCandidateOutput
}

type LeaseCandidateList

type LeaseCandidateList 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.StringOutput `pulumi:"apiVersion"`
	// items is a list of schema objects.
	Items LeaseCandidateTypeArrayOutput `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.StringOutput `pulumi:"kind"`
	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ListMetaOutput `pulumi:"metadata"`
}

LeaseCandidateList is a list of Lease objects.

func GetLeaseCandidateList

func GetLeaseCandidateList(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LeaseCandidateListState, opts ...pulumi.ResourceOption) (*LeaseCandidateList, error)

GetLeaseCandidateList gets an existing LeaseCandidateList 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 NewLeaseCandidateList

func NewLeaseCandidateList(ctx *pulumi.Context,
	name string, args *LeaseCandidateListArgs, opts ...pulumi.ResourceOption) (*LeaseCandidateList, error)

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

func (*LeaseCandidateList) ElementType

func (*LeaseCandidateList) ElementType() reflect.Type

func (*LeaseCandidateList) ToLeaseCandidateListOutput

func (i *LeaseCandidateList) ToLeaseCandidateListOutput() LeaseCandidateListOutput

func (*LeaseCandidateList) ToLeaseCandidateListOutputWithContext

func (i *LeaseCandidateList) ToLeaseCandidateListOutputWithContext(ctx context.Context) LeaseCandidateListOutput

type LeaseCandidateListArgs

type LeaseCandidateListArgs 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 a list of schema objects.
	Items LeaseCandidateTypeArrayInput
	// 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 LeaseCandidateList resource.

func (LeaseCandidateListArgs) ElementType

func (LeaseCandidateListArgs) ElementType() reflect.Type

type LeaseCandidateListArray

type LeaseCandidateListArray []LeaseCandidateListInput

func (LeaseCandidateListArray) ElementType

func (LeaseCandidateListArray) ElementType() reflect.Type

func (LeaseCandidateListArray) ToLeaseCandidateListArrayOutput

func (i LeaseCandidateListArray) ToLeaseCandidateListArrayOutput() LeaseCandidateListArrayOutput

func (LeaseCandidateListArray) ToLeaseCandidateListArrayOutputWithContext

func (i LeaseCandidateListArray) ToLeaseCandidateListArrayOutputWithContext(ctx context.Context) LeaseCandidateListArrayOutput

type LeaseCandidateListArrayInput

type LeaseCandidateListArrayInput interface {
	pulumi.Input

	ToLeaseCandidateListArrayOutput() LeaseCandidateListArrayOutput
	ToLeaseCandidateListArrayOutputWithContext(context.Context) LeaseCandidateListArrayOutput
}

LeaseCandidateListArrayInput is an input type that accepts LeaseCandidateListArray and LeaseCandidateListArrayOutput values. You can construct a concrete instance of `LeaseCandidateListArrayInput` via:

LeaseCandidateListArray{ LeaseCandidateListArgs{...} }

type LeaseCandidateListArrayOutput

type LeaseCandidateListArrayOutput struct{ *pulumi.OutputState }

func (LeaseCandidateListArrayOutput) ElementType

func (LeaseCandidateListArrayOutput) Index

func (LeaseCandidateListArrayOutput) ToLeaseCandidateListArrayOutput

func (o LeaseCandidateListArrayOutput) ToLeaseCandidateListArrayOutput() LeaseCandidateListArrayOutput

func (LeaseCandidateListArrayOutput) ToLeaseCandidateListArrayOutputWithContext

func (o LeaseCandidateListArrayOutput) ToLeaseCandidateListArrayOutputWithContext(ctx context.Context) LeaseCandidateListArrayOutput

type LeaseCandidateListInput

type LeaseCandidateListInput interface {
	pulumi.Input

	ToLeaseCandidateListOutput() LeaseCandidateListOutput
	ToLeaseCandidateListOutputWithContext(ctx context.Context) LeaseCandidateListOutput
}

type LeaseCandidateListMap

type LeaseCandidateListMap map[string]LeaseCandidateListInput

func (LeaseCandidateListMap) ElementType

func (LeaseCandidateListMap) ElementType() reflect.Type

func (LeaseCandidateListMap) ToLeaseCandidateListMapOutput

func (i LeaseCandidateListMap) ToLeaseCandidateListMapOutput() LeaseCandidateListMapOutput

func (LeaseCandidateListMap) ToLeaseCandidateListMapOutputWithContext

func (i LeaseCandidateListMap) ToLeaseCandidateListMapOutputWithContext(ctx context.Context) LeaseCandidateListMapOutput

type LeaseCandidateListMapInput

type LeaseCandidateListMapInput interface {
	pulumi.Input

	ToLeaseCandidateListMapOutput() LeaseCandidateListMapOutput
	ToLeaseCandidateListMapOutputWithContext(context.Context) LeaseCandidateListMapOutput
}

LeaseCandidateListMapInput is an input type that accepts LeaseCandidateListMap and LeaseCandidateListMapOutput values. You can construct a concrete instance of `LeaseCandidateListMapInput` via:

LeaseCandidateListMap{ "key": LeaseCandidateListArgs{...} }

type LeaseCandidateListMapOutput

type LeaseCandidateListMapOutput struct{ *pulumi.OutputState }

func (LeaseCandidateListMapOutput) ElementType

func (LeaseCandidateListMapOutput) MapIndex

func (LeaseCandidateListMapOutput) ToLeaseCandidateListMapOutput

func (o LeaseCandidateListMapOutput) ToLeaseCandidateListMapOutput() LeaseCandidateListMapOutput

func (LeaseCandidateListMapOutput) ToLeaseCandidateListMapOutputWithContext

func (o LeaseCandidateListMapOutput) ToLeaseCandidateListMapOutputWithContext(ctx context.Context) LeaseCandidateListMapOutput

type LeaseCandidateListOutput

type LeaseCandidateListOutput struct{ *pulumi.OutputState }

func (LeaseCandidateListOutput) ApiVersion

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 (LeaseCandidateListOutput) ElementType

func (LeaseCandidateListOutput) ElementType() reflect.Type

func (LeaseCandidateListOutput) Items

items is a list of schema objects.

func (LeaseCandidateListOutput) 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 (LeaseCandidateListOutput) ToLeaseCandidateListOutput

func (o LeaseCandidateListOutput) ToLeaseCandidateListOutput() LeaseCandidateListOutput

func (LeaseCandidateListOutput) ToLeaseCandidateListOutputWithContext

func (o LeaseCandidateListOutput) ToLeaseCandidateListOutputWithContext(ctx context.Context) LeaseCandidateListOutput

type LeaseCandidateListState

type LeaseCandidateListState struct {
}

func (LeaseCandidateListState) ElementType

func (LeaseCandidateListState) ElementType() reflect.Type

type LeaseCandidateListType

type LeaseCandidateListType 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 a list of schema objects.
	Items []LeaseCandidateType `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"`
}

LeaseCandidateList is a list of Lease objects.

type LeaseCandidateListTypeArgs

type LeaseCandidateListTypeArgs 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 a list of schema objects.
	Items LeaseCandidateTypeArrayInput `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"`
}

LeaseCandidateList is a list of Lease objects.

func (LeaseCandidateListTypeArgs) ElementType

func (LeaseCandidateListTypeArgs) ElementType() reflect.Type

func (LeaseCandidateListTypeArgs) ToLeaseCandidateListTypeOutput

func (i LeaseCandidateListTypeArgs) ToLeaseCandidateListTypeOutput() LeaseCandidateListTypeOutput

func (LeaseCandidateListTypeArgs) ToLeaseCandidateListTypeOutputWithContext

func (i LeaseCandidateListTypeArgs) ToLeaseCandidateListTypeOutputWithContext(ctx context.Context) LeaseCandidateListTypeOutput

type LeaseCandidateListTypeInput

type LeaseCandidateListTypeInput interface {
	pulumi.Input

	ToLeaseCandidateListTypeOutput() LeaseCandidateListTypeOutput
	ToLeaseCandidateListTypeOutputWithContext(context.Context) LeaseCandidateListTypeOutput
}

LeaseCandidateListTypeInput is an input type that accepts LeaseCandidateListTypeArgs and LeaseCandidateListTypeOutput values. You can construct a concrete instance of `LeaseCandidateListTypeInput` via:

LeaseCandidateListTypeArgs{...}

type LeaseCandidateListTypeOutput

type LeaseCandidateListTypeOutput struct{ *pulumi.OutputState }

LeaseCandidateList is a list of Lease objects.

func (LeaseCandidateListTypeOutput) ApiVersion

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 (LeaseCandidateListTypeOutput) ElementType

func (LeaseCandidateListTypeOutput) Items

items is a list of schema objects.

func (LeaseCandidateListTypeOutput) 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 (LeaseCandidateListTypeOutput) ToLeaseCandidateListTypeOutput

func (o LeaseCandidateListTypeOutput) ToLeaseCandidateListTypeOutput() LeaseCandidateListTypeOutput

func (LeaseCandidateListTypeOutput) ToLeaseCandidateListTypeOutputWithContext

func (o LeaseCandidateListTypeOutput) ToLeaseCandidateListTypeOutputWithContext(ctx context.Context) LeaseCandidateListTypeOutput

type LeaseCandidateMap

type LeaseCandidateMap map[string]LeaseCandidateInput

func (LeaseCandidateMap) ElementType

func (LeaseCandidateMap) ElementType() reflect.Type

func (LeaseCandidateMap) ToLeaseCandidateMapOutput

func (i LeaseCandidateMap) ToLeaseCandidateMapOutput() LeaseCandidateMapOutput

func (LeaseCandidateMap) ToLeaseCandidateMapOutputWithContext

func (i LeaseCandidateMap) ToLeaseCandidateMapOutputWithContext(ctx context.Context) LeaseCandidateMapOutput

type LeaseCandidateMapInput

type LeaseCandidateMapInput interface {
	pulumi.Input

	ToLeaseCandidateMapOutput() LeaseCandidateMapOutput
	ToLeaseCandidateMapOutputWithContext(context.Context) LeaseCandidateMapOutput
}

LeaseCandidateMapInput is an input type that accepts LeaseCandidateMap and LeaseCandidateMapOutput values. You can construct a concrete instance of `LeaseCandidateMapInput` via:

LeaseCandidateMap{ "key": LeaseCandidateArgs{...} }

type LeaseCandidateMapOutput

type LeaseCandidateMapOutput struct{ *pulumi.OutputState }

func (LeaseCandidateMapOutput) ElementType

func (LeaseCandidateMapOutput) ElementType() reflect.Type

func (LeaseCandidateMapOutput) MapIndex

func (LeaseCandidateMapOutput) ToLeaseCandidateMapOutput

func (o LeaseCandidateMapOutput) ToLeaseCandidateMapOutput() LeaseCandidateMapOutput

func (LeaseCandidateMapOutput) ToLeaseCandidateMapOutputWithContext

func (o LeaseCandidateMapOutput) ToLeaseCandidateMapOutputWithContext(ctx context.Context) LeaseCandidateMapOutput

type LeaseCandidateOutput

type LeaseCandidateOutput struct{ *pulumi.OutputState }

func (LeaseCandidateOutput) ApiVersion

func (o LeaseCandidateOutput) ApiVersion() pulumi.StringOutput

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 (LeaseCandidateOutput) ElementType

func (LeaseCandidateOutput) ElementType() reflect.Type

func (LeaseCandidateOutput) 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 (LeaseCandidateOutput) Spec

spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (LeaseCandidateOutput) ToLeaseCandidateOutput

func (o LeaseCandidateOutput) ToLeaseCandidateOutput() LeaseCandidateOutput

func (LeaseCandidateOutput) ToLeaseCandidateOutputWithContext

func (o LeaseCandidateOutput) ToLeaseCandidateOutputWithContext(ctx context.Context) LeaseCandidateOutput

type LeaseCandidatePatch

type LeaseCandidatePatch 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"`
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPatchPtrOutput `pulumi:"metadata"`
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec LeaseCandidateSpecPatchPtrOutput `pulumi:"spec"`
}

Patch resources are used to modify existing Kubernetes resources by using Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource. Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi. LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

func GetLeaseCandidatePatch

func GetLeaseCandidatePatch(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LeaseCandidatePatchState, opts ...pulumi.ResourceOption) (*LeaseCandidatePatch, error)

GetLeaseCandidatePatch gets an existing LeaseCandidatePatch 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 NewLeaseCandidatePatch

func NewLeaseCandidatePatch(ctx *pulumi.Context,
	name string, args *LeaseCandidatePatchArgs, opts ...pulumi.ResourceOption) (*LeaseCandidatePatch, error)

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

func (*LeaseCandidatePatch) ElementType

func (*LeaseCandidatePatch) ElementType() reflect.Type

func (*LeaseCandidatePatch) ToLeaseCandidatePatchOutput

func (i *LeaseCandidatePatch) ToLeaseCandidatePatchOutput() LeaseCandidatePatchOutput

func (*LeaseCandidatePatch) ToLeaseCandidatePatchOutputWithContext

func (i *LeaseCandidatePatch) ToLeaseCandidatePatchOutputWithContext(ctx context.Context) LeaseCandidatePatchOutput

type LeaseCandidatePatchArgs

type LeaseCandidatePatchArgs 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
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPatchPtrInput
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec LeaseCandidateSpecPatchPtrInput
}

The set of arguments for constructing a LeaseCandidatePatch resource.

func (LeaseCandidatePatchArgs) ElementType

func (LeaseCandidatePatchArgs) ElementType() reflect.Type

type LeaseCandidatePatchArray

type LeaseCandidatePatchArray []LeaseCandidatePatchInput

func (LeaseCandidatePatchArray) ElementType

func (LeaseCandidatePatchArray) ElementType() reflect.Type

func (LeaseCandidatePatchArray) ToLeaseCandidatePatchArrayOutput

func (i LeaseCandidatePatchArray) ToLeaseCandidatePatchArrayOutput() LeaseCandidatePatchArrayOutput

func (LeaseCandidatePatchArray) ToLeaseCandidatePatchArrayOutputWithContext

func (i LeaseCandidatePatchArray) ToLeaseCandidatePatchArrayOutputWithContext(ctx context.Context) LeaseCandidatePatchArrayOutput

type LeaseCandidatePatchArrayInput

type LeaseCandidatePatchArrayInput interface {
	pulumi.Input

	ToLeaseCandidatePatchArrayOutput() LeaseCandidatePatchArrayOutput
	ToLeaseCandidatePatchArrayOutputWithContext(context.Context) LeaseCandidatePatchArrayOutput
}

LeaseCandidatePatchArrayInput is an input type that accepts LeaseCandidatePatchArray and LeaseCandidatePatchArrayOutput values. You can construct a concrete instance of `LeaseCandidatePatchArrayInput` via:

LeaseCandidatePatchArray{ LeaseCandidatePatchArgs{...} }

type LeaseCandidatePatchArrayOutput

type LeaseCandidatePatchArrayOutput struct{ *pulumi.OutputState }

func (LeaseCandidatePatchArrayOutput) ElementType

func (LeaseCandidatePatchArrayOutput) Index

func (LeaseCandidatePatchArrayOutput) ToLeaseCandidatePatchArrayOutput

func (o LeaseCandidatePatchArrayOutput) ToLeaseCandidatePatchArrayOutput() LeaseCandidatePatchArrayOutput

func (LeaseCandidatePatchArrayOutput) ToLeaseCandidatePatchArrayOutputWithContext

func (o LeaseCandidatePatchArrayOutput) ToLeaseCandidatePatchArrayOutputWithContext(ctx context.Context) LeaseCandidatePatchArrayOutput

type LeaseCandidatePatchInput

type LeaseCandidatePatchInput interface {
	pulumi.Input

	ToLeaseCandidatePatchOutput() LeaseCandidatePatchOutput
	ToLeaseCandidatePatchOutputWithContext(ctx context.Context) LeaseCandidatePatchOutput
}

type LeaseCandidatePatchMap

type LeaseCandidatePatchMap map[string]LeaseCandidatePatchInput

func (LeaseCandidatePatchMap) ElementType

func (LeaseCandidatePatchMap) ElementType() reflect.Type

func (LeaseCandidatePatchMap) ToLeaseCandidatePatchMapOutput

func (i LeaseCandidatePatchMap) ToLeaseCandidatePatchMapOutput() LeaseCandidatePatchMapOutput

func (LeaseCandidatePatchMap) ToLeaseCandidatePatchMapOutputWithContext

func (i LeaseCandidatePatchMap) ToLeaseCandidatePatchMapOutputWithContext(ctx context.Context) LeaseCandidatePatchMapOutput

type LeaseCandidatePatchMapInput

type LeaseCandidatePatchMapInput interface {
	pulumi.Input

	ToLeaseCandidatePatchMapOutput() LeaseCandidatePatchMapOutput
	ToLeaseCandidatePatchMapOutputWithContext(context.Context) LeaseCandidatePatchMapOutput
}

LeaseCandidatePatchMapInput is an input type that accepts LeaseCandidatePatchMap and LeaseCandidatePatchMapOutput values. You can construct a concrete instance of `LeaseCandidatePatchMapInput` via:

LeaseCandidatePatchMap{ "key": LeaseCandidatePatchArgs{...} }

type LeaseCandidatePatchMapOutput

type LeaseCandidatePatchMapOutput struct{ *pulumi.OutputState }

func (LeaseCandidatePatchMapOutput) ElementType

func (LeaseCandidatePatchMapOutput) MapIndex

func (LeaseCandidatePatchMapOutput) ToLeaseCandidatePatchMapOutput

func (o LeaseCandidatePatchMapOutput) ToLeaseCandidatePatchMapOutput() LeaseCandidatePatchMapOutput

func (LeaseCandidatePatchMapOutput) ToLeaseCandidatePatchMapOutputWithContext

func (o LeaseCandidatePatchMapOutput) ToLeaseCandidatePatchMapOutputWithContext(ctx context.Context) LeaseCandidatePatchMapOutput

type LeaseCandidatePatchOutput

type LeaseCandidatePatchOutput struct{ *pulumi.OutputState }

func (LeaseCandidatePatchOutput) ApiVersion

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 (LeaseCandidatePatchOutput) ElementType

func (LeaseCandidatePatchOutput) ElementType() reflect.Type

func (LeaseCandidatePatchOutput) 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 (LeaseCandidatePatchOutput) Spec

spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (LeaseCandidatePatchOutput) ToLeaseCandidatePatchOutput

func (o LeaseCandidatePatchOutput) ToLeaseCandidatePatchOutput() LeaseCandidatePatchOutput

func (LeaseCandidatePatchOutput) ToLeaseCandidatePatchOutputWithContext

func (o LeaseCandidatePatchOutput) ToLeaseCandidatePatchOutputWithContext(ctx context.Context) LeaseCandidatePatchOutput

type LeaseCandidatePatchState

type LeaseCandidatePatchState struct {
}

func (LeaseCandidatePatchState) ElementType

func (LeaseCandidatePatchState) ElementType() reflect.Type

type LeaseCandidatePatchType

type LeaseCandidatePatchType 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"`
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"`
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *LeaseCandidateSpecPatch `pulumi:"spec"`
}

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

type LeaseCandidatePatchTypeArgs

type LeaseCandidatePatchTypeArgs 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"`
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPatchPtrInput `pulumi:"metadata"`
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec LeaseCandidateSpecPatchPtrInput `pulumi:"spec"`
}

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

func (LeaseCandidatePatchTypeArgs) ElementType

func (LeaseCandidatePatchTypeArgs) ToLeaseCandidatePatchTypeOutput

func (i LeaseCandidatePatchTypeArgs) ToLeaseCandidatePatchTypeOutput() LeaseCandidatePatchTypeOutput

func (LeaseCandidatePatchTypeArgs) ToLeaseCandidatePatchTypeOutputWithContext

func (i LeaseCandidatePatchTypeArgs) ToLeaseCandidatePatchTypeOutputWithContext(ctx context.Context) LeaseCandidatePatchTypeOutput

type LeaseCandidatePatchTypeInput

type LeaseCandidatePatchTypeInput interface {
	pulumi.Input

	ToLeaseCandidatePatchTypeOutput() LeaseCandidatePatchTypeOutput
	ToLeaseCandidatePatchTypeOutputWithContext(context.Context) LeaseCandidatePatchTypeOutput
}

LeaseCandidatePatchTypeInput is an input type that accepts LeaseCandidatePatchTypeArgs and LeaseCandidatePatchTypeOutput values. You can construct a concrete instance of `LeaseCandidatePatchTypeInput` via:

LeaseCandidatePatchTypeArgs{...}

type LeaseCandidatePatchTypeOutput

type LeaseCandidatePatchTypeOutput struct{ *pulumi.OutputState }

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

func (LeaseCandidatePatchTypeOutput) ApiVersion

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 (LeaseCandidatePatchTypeOutput) ElementType

func (LeaseCandidatePatchTypeOutput) 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 (LeaseCandidatePatchTypeOutput) Spec

spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (LeaseCandidatePatchTypeOutput) ToLeaseCandidatePatchTypeOutput

func (o LeaseCandidatePatchTypeOutput) ToLeaseCandidatePatchTypeOutput() LeaseCandidatePatchTypeOutput

func (LeaseCandidatePatchTypeOutput) ToLeaseCandidatePatchTypeOutputWithContext

func (o LeaseCandidatePatchTypeOutput) ToLeaseCandidatePatchTypeOutputWithContext(ctx context.Context) LeaseCandidatePatchTypeOutput

type LeaseCandidateSpec

type LeaseCandidateSpec struct {
	// BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
	BinaryVersion string `pulumi:"binaryVersion"`
	// EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
	EmulationVersion *string `pulumi:"emulationVersion"`
	// LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
	LeaseName string `pulumi:"leaseName"`
	// PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
	PingTime *string `pulumi:"pingTime"`
	// RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
	RenewTime *string `pulumi:"renewTime"`
	// Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
	Strategy string `pulumi:"strategy"`
}

LeaseCandidateSpec is a specification of a Lease.

type LeaseCandidateSpecArgs

type LeaseCandidateSpecArgs struct {
	// BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
	BinaryVersion pulumi.StringInput `pulumi:"binaryVersion"`
	// EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
	EmulationVersion pulumi.StringPtrInput `pulumi:"emulationVersion"`
	// LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
	LeaseName pulumi.StringInput `pulumi:"leaseName"`
	// PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
	PingTime pulumi.StringPtrInput `pulumi:"pingTime"`
	// RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
	RenewTime pulumi.StringPtrInput `pulumi:"renewTime"`
	// Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
	Strategy pulumi.StringInput `pulumi:"strategy"`
}

LeaseCandidateSpec is a specification of a Lease.

func (LeaseCandidateSpecArgs) ElementType

func (LeaseCandidateSpecArgs) ElementType() reflect.Type

func (LeaseCandidateSpecArgs) ToLeaseCandidateSpecOutput

func (i LeaseCandidateSpecArgs) ToLeaseCandidateSpecOutput() LeaseCandidateSpecOutput

func (LeaseCandidateSpecArgs) ToLeaseCandidateSpecOutputWithContext

func (i LeaseCandidateSpecArgs) ToLeaseCandidateSpecOutputWithContext(ctx context.Context) LeaseCandidateSpecOutput

func (LeaseCandidateSpecArgs) ToLeaseCandidateSpecPtrOutput

func (i LeaseCandidateSpecArgs) ToLeaseCandidateSpecPtrOutput() LeaseCandidateSpecPtrOutput

func (LeaseCandidateSpecArgs) ToLeaseCandidateSpecPtrOutputWithContext

func (i LeaseCandidateSpecArgs) ToLeaseCandidateSpecPtrOutputWithContext(ctx context.Context) LeaseCandidateSpecPtrOutput

type LeaseCandidateSpecInput

type LeaseCandidateSpecInput interface {
	pulumi.Input

	ToLeaseCandidateSpecOutput() LeaseCandidateSpecOutput
	ToLeaseCandidateSpecOutputWithContext(context.Context) LeaseCandidateSpecOutput
}

LeaseCandidateSpecInput is an input type that accepts LeaseCandidateSpecArgs and LeaseCandidateSpecOutput values. You can construct a concrete instance of `LeaseCandidateSpecInput` via:

LeaseCandidateSpecArgs{...}

type LeaseCandidateSpecOutput

type LeaseCandidateSpecOutput struct{ *pulumi.OutputState }

LeaseCandidateSpec is a specification of a Lease.

func (LeaseCandidateSpecOutput) BinaryVersion

func (o LeaseCandidateSpecOutput) BinaryVersion() pulumi.StringOutput

BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.

func (LeaseCandidateSpecOutput) ElementType

func (LeaseCandidateSpecOutput) ElementType() reflect.Type

func (LeaseCandidateSpecOutput) EmulationVersion

func (o LeaseCandidateSpecOutput) EmulationVersion() pulumi.StringPtrOutput

EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"

func (LeaseCandidateSpecOutput) LeaseName

LeaseName is the name of the lease for which this candidate is contending. This field is immutable.

func (LeaseCandidateSpecOutput) PingTime

PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.

func (LeaseCandidateSpecOutput) RenewTime

RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.

func (LeaseCandidateSpecOutput) Strategy

Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.

func (LeaseCandidateSpecOutput) ToLeaseCandidateSpecOutput

func (o LeaseCandidateSpecOutput) ToLeaseCandidateSpecOutput() LeaseCandidateSpecOutput

func (LeaseCandidateSpecOutput) ToLeaseCandidateSpecOutputWithContext

func (o LeaseCandidateSpecOutput) ToLeaseCandidateSpecOutputWithContext(ctx context.Context) LeaseCandidateSpecOutput

func (LeaseCandidateSpecOutput) ToLeaseCandidateSpecPtrOutput

func (o LeaseCandidateSpecOutput) ToLeaseCandidateSpecPtrOutput() LeaseCandidateSpecPtrOutput

func (LeaseCandidateSpecOutput) ToLeaseCandidateSpecPtrOutputWithContext

func (o LeaseCandidateSpecOutput) ToLeaseCandidateSpecPtrOutputWithContext(ctx context.Context) LeaseCandidateSpecPtrOutput

type LeaseCandidateSpecPatch

type LeaseCandidateSpecPatch struct {
	// BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
	BinaryVersion *string `pulumi:"binaryVersion"`
	// EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
	EmulationVersion *string `pulumi:"emulationVersion"`
	// LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
	LeaseName *string `pulumi:"leaseName"`
	// PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
	PingTime *string `pulumi:"pingTime"`
	// RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
	RenewTime *string `pulumi:"renewTime"`
	// Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
	Strategy *string `pulumi:"strategy"`
}

LeaseCandidateSpec is a specification of a Lease.

type LeaseCandidateSpecPatchArgs

type LeaseCandidateSpecPatchArgs struct {
	// BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
	BinaryVersion pulumi.StringPtrInput `pulumi:"binaryVersion"`
	// EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
	EmulationVersion pulumi.StringPtrInput `pulumi:"emulationVersion"`
	// LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
	LeaseName pulumi.StringPtrInput `pulumi:"leaseName"`
	// PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
	PingTime pulumi.StringPtrInput `pulumi:"pingTime"`
	// RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
	RenewTime pulumi.StringPtrInput `pulumi:"renewTime"`
	// Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
	Strategy pulumi.StringPtrInput `pulumi:"strategy"`
}

LeaseCandidateSpec is a specification of a Lease.

func (LeaseCandidateSpecPatchArgs) ElementType

func (LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchOutput

func (i LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchOutput() LeaseCandidateSpecPatchOutput

func (LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchOutputWithContext

func (i LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchOutputWithContext(ctx context.Context) LeaseCandidateSpecPatchOutput

func (LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchPtrOutput

func (i LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchPtrOutput() LeaseCandidateSpecPatchPtrOutput

func (LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchPtrOutputWithContext

func (i LeaseCandidateSpecPatchArgs) ToLeaseCandidateSpecPatchPtrOutputWithContext(ctx context.Context) LeaseCandidateSpecPatchPtrOutput

type LeaseCandidateSpecPatchInput

type LeaseCandidateSpecPatchInput interface {
	pulumi.Input

	ToLeaseCandidateSpecPatchOutput() LeaseCandidateSpecPatchOutput
	ToLeaseCandidateSpecPatchOutputWithContext(context.Context) LeaseCandidateSpecPatchOutput
}

LeaseCandidateSpecPatchInput is an input type that accepts LeaseCandidateSpecPatchArgs and LeaseCandidateSpecPatchOutput values. You can construct a concrete instance of `LeaseCandidateSpecPatchInput` via:

LeaseCandidateSpecPatchArgs{...}

type LeaseCandidateSpecPatchOutput

type LeaseCandidateSpecPatchOutput struct{ *pulumi.OutputState }

LeaseCandidateSpec is a specification of a Lease.

func (LeaseCandidateSpecPatchOutput) BinaryVersion

BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.

func (LeaseCandidateSpecPatchOutput) ElementType

func (LeaseCandidateSpecPatchOutput) EmulationVersion

EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"

func (LeaseCandidateSpecPatchOutput) LeaseName

LeaseName is the name of the lease for which this candidate is contending. This field is immutable.

func (LeaseCandidateSpecPatchOutput) PingTime

PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.

func (LeaseCandidateSpecPatchOutput) RenewTime

RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.

func (LeaseCandidateSpecPatchOutput) Strategy

Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.

func (LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchOutput

func (o LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchOutput() LeaseCandidateSpecPatchOutput

func (LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchOutputWithContext

func (o LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchOutputWithContext(ctx context.Context) LeaseCandidateSpecPatchOutput

func (LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchPtrOutput

func (o LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchPtrOutput() LeaseCandidateSpecPatchPtrOutput

func (LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchPtrOutputWithContext

func (o LeaseCandidateSpecPatchOutput) ToLeaseCandidateSpecPatchPtrOutputWithContext(ctx context.Context) LeaseCandidateSpecPatchPtrOutput

type LeaseCandidateSpecPatchPtrInput

type LeaseCandidateSpecPatchPtrInput interface {
	pulumi.Input

	ToLeaseCandidateSpecPatchPtrOutput() LeaseCandidateSpecPatchPtrOutput
	ToLeaseCandidateSpecPatchPtrOutputWithContext(context.Context) LeaseCandidateSpecPatchPtrOutput
}

LeaseCandidateSpecPatchPtrInput is an input type that accepts LeaseCandidateSpecPatchArgs, LeaseCandidateSpecPatchPtr and LeaseCandidateSpecPatchPtrOutput values. You can construct a concrete instance of `LeaseCandidateSpecPatchPtrInput` via:

        LeaseCandidateSpecPatchArgs{...}

or:

        nil

type LeaseCandidateSpecPatchPtrOutput

type LeaseCandidateSpecPatchPtrOutput struct{ *pulumi.OutputState }

func (LeaseCandidateSpecPatchPtrOutput) BinaryVersion

BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.

func (LeaseCandidateSpecPatchPtrOutput) Elem

func (LeaseCandidateSpecPatchPtrOutput) ElementType

func (LeaseCandidateSpecPatchPtrOutput) EmulationVersion

EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"

func (LeaseCandidateSpecPatchPtrOutput) LeaseName

LeaseName is the name of the lease for which this candidate is contending. This field is immutable.

func (LeaseCandidateSpecPatchPtrOutput) PingTime

PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.

func (LeaseCandidateSpecPatchPtrOutput) RenewTime

RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.

func (LeaseCandidateSpecPatchPtrOutput) Strategy

Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.

func (LeaseCandidateSpecPatchPtrOutput) ToLeaseCandidateSpecPatchPtrOutput

func (o LeaseCandidateSpecPatchPtrOutput) ToLeaseCandidateSpecPatchPtrOutput() LeaseCandidateSpecPatchPtrOutput

func (LeaseCandidateSpecPatchPtrOutput) ToLeaseCandidateSpecPatchPtrOutputWithContext

func (o LeaseCandidateSpecPatchPtrOutput) ToLeaseCandidateSpecPatchPtrOutputWithContext(ctx context.Context) LeaseCandidateSpecPatchPtrOutput

type LeaseCandidateSpecPtrInput

type LeaseCandidateSpecPtrInput interface {
	pulumi.Input

	ToLeaseCandidateSpecPtrOutput() LeaseCandidateSpecPtrOutput
	ToLeaseCandidateSpecPtrOutputWithContext(context.Context) LeaseCandidateSpecPtrOutput
}

LeaseCandidateSpecPtrInput is an input type that accepts LeaseCandidateSpecArgs, LeaseCandidateSpecPtr and LeaseCandidateSpecPtrOutput values. You can construct a concrete instance of `LeaseCandidateSpecPtrInput` via:

        LeaseCandidateSpecArgs{...}

or:

        nil

type LeaseCandidateSpecPtrOutput

type LeaseCandidateSpecPtrOutput struct{ *pulumi.OutputState }

func (LeaseCandidateSpecPtrOutput) BinaryVersion

BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.

func (LeaseCandidateSpecPtrOutput) Elem

func (LeaseCandidateSpecPtrOutput) ElementType

func (LeaseCandidateSpecPtrOutput) EmulationVersion

func (o LeaseCandidateSpecPtrOutput) EmulationVersion() pulumi.StringPtrOutput

EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"

func (LeaseCandidateSpecPtrOutput) LeaseName

LeaseName is the name of the lease for which this candidate is contending. This field is immutable.

func (LeaseCandidateSpecPtrOutput) PingTime

PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.

func (LeaseCandidateSpecPtrOutput) RenewTime

RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.

func (LeaseCandidateSpecPtrOutput) Strategy

Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.

func (LeaseCandidateSpecPtrOutput) ToLeaseCandidateSpecPtrOutput

func (o LeaseCandidateSpecPtrOutput) ToLeaseCandidateSpecPtrOutput() LeaseCandidateSpecPtrOutput

func (LeaseCandidateSpecPtrOutput) ToLeaseCandidateSpecPtrOutputWithContext

func (o LeaseCandidateSpecPtrOutput) ToLeaseCandidateSpecPtrOutputWithContext(ctx context.Context) LeaseCandidateSpecPtrOutput

type LeaseCandidateState

type LeaseCandidateState struct {
}

func (LeaseCandidateState) ElementType

func (LeaseCandidateState) ElementType() reflect.Type

type LeaseCandidateType

type LeaseCandidateType 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"`
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *metav1.ObjectMeta `pulumi:"metadata"`
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *LeaseCandidateSpec `pulumi:"spec"`
}

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

type LeaseCandidateTypeArgs

type LeaseCandidateTypeArgs 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"`
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
	// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec LeaseCandidateSpecPtrInput `pulumi:"spec"`
}

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

func (LeaseCandidateTypeArgs) ElementType

func (LeaseCandidateTypeArgs) ElementType() reflect.Type

func (LeaseCandidateTypeArgs) ToLeaseCandidateTypeOutput

func (i LeaseCandidateTypeArgs) ToLeaseCandidateTypeOutput() LeaseCandidateTypeOutput

func (LeaseCandidateTypeArgs) ToLeaseCandidateTypeOutputWithContext

func (i LeaseCandidateTypeArgs) ToLeaseCandidateTypeOutputWithContext(ctx context.Context) LeaseCandidateTypeOutput

type LeaseCandidateTypeArray

type LeaseCandidateTypeArray []LeaseCandidateTypeInput

func (LeaseCandidateTypeArray) ElementType

func (LeaseCandidateTypeArray) ElementType() reflect.Type

func (LeaseCandidateTypeArray) ToLeaseCandidateTypeArrayOutput

func (i LeaseCandidateTypeArray) ToLeaseCandidateTypeArrayOutput() LeaseCandidateTypeArrayOutput

func (LeaseCandidateTypeArray) ToLeaseCandidateTypeArrayOutputWithContext

func (i LeaseCandidateTypeArray) ToLeaseCandidateTypeArrayOutputWithContext(ctx context.Context) LeaseCandidateTypeArrayOutput

type LeaseCandidateTypeArrayInput

type LeaseCandidateTypeArrayInput interface {
	pulumi.Input

	ToLeaseCandidateTypeArrayOutput() LeaseCandidateTypeArrayOutput
	ToLeaseCandidateTypeArrayOutputWithContext(context.Context) LeaseCandidateTypeArrayOutput
}

LeaseCandidateTypeArrayInput is an input type that accepts LeaseCandidateTypeArray and LeaseCandidateTypeArrayOutput values. You can construct a concrete instance of `LeaseCandidateTypeArrayInput` via:

LeaseCandidateTypeArray{ LeaseCandidateTypeArgs{...} }

type LeaseCandidateTypeArrayOutput

type LeaseCandidateTypeArrayOutput struct{ *pulumi.OutputState }

func (LeaseCandidateTypeArrayOutput) ElementType

func (LeaseCandidateTypeArrayOutput) Index

func (LeaseCandidateTypeArrayOutput) ToLeaseCandidateTypeArrayOutput

func (o LeaseCandidateTypeArrayOutput) ToLeaseCandidateTypeArrayOutput() LeaseCandidateTypeArrayOutput

func (LeaseCandidateTypeArrayOutput) ToLeaseCandidateTypeArrayOutputWithContext

func (o LeaseCandidateTypeArrayOutput) ToLeaseCandidateTypeArrayOutputWithContext(ctx context.Context) LeaseCandidateTypeArrayOutput

type LeaseCandidateTypeInput

type LeaseCandidateTypeInput interface {
	pulumi.Input

	ToLeaseCandidateTypeOutput() LeaseCandidateTypeOutput
	ToLeaseCandidateTypeOutputWithContext(context.Context) LeaseCandidateTypeOutput
}

LeaseCandidateTypeInput is an input type that accepts LeaseCandidateTypeArgs and LeaseCandidateTypeOutput values. You can construct a concrete instance of `LeaseCandidateTypeInput` via:

LeaseCandidateTypeArgs{...}

type LeaseCandidateTypeOutput

type LeaseCandidateTypeOutput struct{ *pulumi.OutputState }

LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.

func (LeaseCandidateTypeOutput) ApiVersion

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 (LeaseCandidateTypeOutput) ElementType

func (LeaseCandidateTypeOutput) ElementType() reflect.Type

func (LeaseCandidateTypeOutput) 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 (LeaseCandidateTypeOutput) Spec

spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (LeaseCandidateTypeOutput) ToLeaseCandidateTypeOutput

func (o LeaseCandidateTypeOutput) ToLeaseCandidateTypeOutput() LeaseCandidateTypeOutput

func (LeaseCandidateTypeOutput) ToLeaseCandidateTypeOutputWithContext

func (o LeaseCandidateTypeOutput) ToLeaseCandidateTypeOutputWithContext(ctx context.Context) LeaseCandidateTypeOutput

Jump to

Keyboard shortcuts

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