v1

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomResourceColumnDefinitionBlank = (&CustomResourceColumnDefinitionDie{}).DieFeed(apiextensionsv1.CustomResourceColumnDefinition{})
View Source
var CustomResourceConversionBlank = (&CustomResourceConversionDie{}).DieFeed(apiextensionsv1.CustomResourceConversion{})
View Source
var CustomResourceDefinitionBlank = (&CustomResourceDefinitionDie{}).DieFeed(apiextensionsv1.CustomResourceDefinition{})
View Source
var CustomResourceDefinitionNamesBlank = (&CustomResourceDefinitionNamesDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionNames{})
View Source
var CustomResourceDefinitionSpecBlank = (&CustomResourceDefinitionSpecDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionSpec{})
View Source
var CustomResourceDefinitionStatusBlank = (&CustomResourceDefinitionStatusDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionStatus{})
View Source
var CustomResourceDefinitionVersionBlank = (&CustomResourceDefinitionVersionDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionVersion{})
View Source
var CustomResourceSubresourceScaleBlank = (&CustomResourceSubresourceScaleDie{}).DieFeed(apiextensionsv1.CustomResourceSubresourceScale{})
View Source
var CustomResourceSubresourcesBlank = (&CustomResourceSubresourcesDie{}).DieFeed(apiextensionsv1.CustomResourceSubresources{})
View Source
var CustomResourceValidationBlank = (&CustomResourceValidationDie{}).DieFeed(apiextensionsv1.CustomResourceValidation{})
View Source
var ServiceReferenceBlank = (&ServiceReferenceDie{}).DieFeed(apiextensionsv1.ServiceReference{})
View Source
var WebhookClientConfigBlank = (&WebhookClientConfigDie{}).DieFeed(apiextensionsv1.WebhookClientConfig{})
View Source
var WebhookConversionBlank = (&WebhookConversionDie{}).DieFeed(apiextensionsv1.WebhookConversion{})

Functions

This section is empty.

Types

type CustomResourceColumnDefinitionDie

type CustomResourceColumnDefinitionDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceColumnDefinitionDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceColumnDefinitionDie) Description

description is a human readable description of this column.

func (*CustomResourceColumnDefinitionDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceColumnDefinitionDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceColumnDefinitionDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceColumnDefinitionDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceColumnDefinitionDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceColumnDefinitionDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceColumnDefinitionDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceColumnDefinitionDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceColumnDefinitionDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceColumnDefinitionDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceColumnDefinitionDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceColumnDefinitionDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceColumnDefinitionDie) Format

format is an optional OpenAPI type definition for this column. The 'name' format is applied

to the primary identifier column to assist in clients identifying column is the resource name.

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.

func (*CustomResourceColumnDefinitionDie) JSONPath

jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against

each custom resource to produce the value for this column.

func (*CustomResourceColumnDefinitionDie) Name

name is a human readable name for the column.

func (*CustomResourceColumnDefinitionDie) Priority

priority is an integer defining the relative importance of this column compared to others. Lower

numbers are considered higher priority. Columns that may be omitted in limited space scenarios

should be given a priority greater than 0.

func (*CustomResourceColumnDefinitionDie) Type

type is an OpenAPI type definition for this column.

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.

type CustomResourceConversionDie

type CustomResourceConversionDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceConversionDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceConversionDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceConversionDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceConversionDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceConversionDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceConversionDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceConversionDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceConversionDie) DieImmutable

func (d *CustomResourceConversionDie) DieImmutable(immutable bool) *CustomResourceConversionDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceConversionDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceConversionDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceConversionDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceConversionDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceConversionDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceConversionDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceConversionDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceConversionDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceConversionDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceConversionDie) DieStampAt added in v0.8.0

func (d *CustomResourceConversionDie) DieStampAt(jp string, fn interface{}) *CustomResourceConversionDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceConversionDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceConversionDie) Strategy

strategy specifies how custom resources are converted between versions. Allowed values are:

- `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource.

- `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information

is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.

func (*CustomResourceConversionDie) Webhook

webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`.

func (*CustomResourceConversionDie) WebhookDie

type CustomResourceDefinitionDie

type CustomResourceDefinitionDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*CustomResourceDefinitionDie) APIVersion added in v0.5.0

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 (*CustomResourceDefinitionDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceDefinitionDie) DeepCopyObject

func (d *CustomResourceDefinitionDie) DeepCopyObject() runtime.Object

func (*CustomResourceDefinitionDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceDefinitionDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceDefinitionDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceDefinitionDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceDefinitionDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceDefinitionDie) DieImmutable

func (d *CustomResourceDefinitionDie) DieImmutable(immutable bool) *CustomResourceDefinitionDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceDefinitionDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceDefinitionDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceDefinitionDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceDefinitionDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceDefinitionDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceDefinitionDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionDie) DieReleaseUnstructured

func (d *CustomResourceDefinitionDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*CustomResourceDefinitionDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceDefinitionDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceDefinitionDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceDefinitionDie) DieStampAt added in v0.8.0

func (d *CustomResourceDefinitionDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceDefinitionDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceDefinitionDie) GetObjectKind

func (d *CustomResourceDefinitionDie) GetObjectKind() schema.ObjectKind

func (*CustomResourceDefinitionDie) Kind added in v0.5.0

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 (*CustomResourceDefinitionDie) MarshalJSON

func (d *CustomResourceDefinitionDie) MarshalJSON() ([]byte, error)

func (*CustomResourceDefinitionDie) MetadataDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*CustomResourceDefinitionDie) Spec

spec describes how the user wants the resources to appear

func (*CustomResourceDefinitionDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*CustomResourceDefinitionDie) Status

status indicates the actual state of the CustomResourceDefinition

func (*CustomResourceDefinitionDie) StatusDie

StatusDie stamps the resource's status field with a mutable die.

func (*CustomResourceDefinitionDie) UnmarshalJSON

func (d *CustomResourceDefinitionDie) UnmarshalJSON(b []byte) error

type CustomResourceDefinitionNamesDie

type CustomResourceDefinitionNamesDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceDefinitionNamesDie) Categories

categories is a list of grouped resources this custom resource belongs to (e.g. 'all').

This is published in API discovery documents, and used by clients to support invocations like

`kubectl get all`.

func (*CustomResourceDefinitionNamesDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceDefinitionNamesDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceDefinitionNamesDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceDefinitionNamesDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceDefinitionNamesDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceDefinitionNamesDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceDefinitionNamesDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceDefinitionNamesDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceDefinitionNamesDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceDefinitionNamesDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceDefinitionNamesDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceDefinitionNamesDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceDefinitionNamesDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceDefinitionNamesDie) Kind

kind is the serialized kind of the resource. It is normally CamelCase and singular.

Custom resource instances will use this value as the `kind` attribute in API calls.

func (*CustomResourceDefinitionNamesDie) ListKind

listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".

func (*CustomResourceDefinitionNamesDie) Plural

plural is the plural name of the resource to serve.

The custom resources are served under `/apis/<group>/<version>/.../<plural>`.

Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).

Must be all lowercase.

func (*CustomResourceDefinitionNamesDie) ShortNames

shortNames are short names for the resource, exposed in API discovery documents,

and used by clients to support invocations like `kubectl get <shortname>`.

It must be all lowercase.

func (*CustomResourceDefinitionNamesDie) Singular

singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.

type CustomResourceDefinitionSpecDie

type CustomResourceDefinitionSpecDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceDefinitionSpecDie) Conversion

conversion defines conversion settings for the CRD.

func (*CustomResourceDefinitionSpecDie) ConversionDie

func (*CustomResourceDefinitionSpecDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceDefinitionSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceDefinitionSpecDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceDefinitionSpecDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceDefinitionSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceDefinitionSpecDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceDefinitionSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceDefinitionSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceDefinitionSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceDefinitionSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceDefinitionSpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceDefinitionSpecDie) DieStampAt added in v0.8.0

func (d *CustomResourceDefinitionSpecDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceDefinitionSpecDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceDefinitionSpecDie) Group

group is the API group of the defined custom resource.

The custom resources are served under `/apis/<group>/...`.

Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).

func (*CustomResourceDefinitionSpecDie) Names

names specify the resource and kind names for the custom resource.

func (*CustomResourceDefinitionSpecDie) NamesDie

func (*CustomResourceDefinitionSpecDie) PreserveUnknownFields

preserveUnknownFields indicates that object fields which are not specified

in the OpenAPI schema should be preserved when persisting to storage.

apiVersion, kind, metadata and known fields inside metadata are always preserved.

This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`.

See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.

func (*CustomResourceDefinitionSpecDie) Scope

scope indicates whether the defined custom resource is cluster- or namespace-scoped.

Allowed values are `Cluster` and `Namespaced`.

func (*CustomResourceDefinitionSpecDie) VersionDie

func (*CustomResourceDefinitionSpecDie) Versions

versions is the list of all API versions of the defined custom resource.

Version names are used to compute the order in which served versions are listed in API discovery.

If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered

lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),

then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first

by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing

major version, then minor version. An example sorted list of versions:

v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

type CustomResourceDefinitionStatusDie

type CustomResourceDefinitionStatusDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceDefinitionStatusDie) AcceptedNames

acceptedNames are the names that are actually being used to serve discovery.

They may be different than the names in spec.

func (*CustomResourceDefinitionStatusDie) AcceptedNamesDie

func (*CustomResourceDefinitionStatusDie) Conditions

conditions indicate state for particular aspects of a CustomResourceDefinition

func (*CustomResourceDefinitionStatusDie) ConditionsDie

func (*CustomResourceDefinitionStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceDefinitionStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceDefinitionStatusDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceDefinitionStatusDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceDefinitionStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceDefinitionStatusDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceDefinitionStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceDefinitionStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceDefinitionStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceDefinitionStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceDefinitionStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceDefinitionStatusDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceDefinitionStatusDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceDefinitionStatusDie) StoredVersions

storedVersions lists all versions of CustomResources that were ever persisted. Tracking these

versions allows a migration path for stored versions in etcd. The field is mutable

so a migration controller can finish a migration to another version (ensuring

no old objects are left in storage), and then remove the rest of the

versions from this list.

Versions may not be removed from `spec.versions` while they exist in this list.

type CustomResourceDefinitionVersionDie

type CustomResourceDefinitionVersionDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceDefinitionVersionDie) AdditionalPrinterColumnDie

func (*CustomResourceDefinitionVersionDie) AdditionalPrinterColumns

additionalPrinterColumns specifies additional columns returned in Table output.

See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.

If no columns are specified, a single column displaying the age of the custom resource is used.

func (*CustomResourceDefinitionVersionDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceDefinitionVersionDie) Deprecated

deprecated indicates this version of the custom resource API is deprecated.

When set to true, API requests to this version receive a warning header in the server response.

Defaults to false.

func (*CustomResourceDefinitionVersionDie) DeprecationWarning

deprecationWarning overrides the default warning returned to API clients.

May only be set when `deprecated` is true.

The default warning indicates this version is deprecated and recommends use

of the newest served version of equal or greater stability, if one exists.

func (*CustomResourceDefinitionVersionDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceDefinitionVersionDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceDefinitionVersionDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceDefinitionVersionDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceDefinitionVersionDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceDefinitionVersionDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceDefinitionVersionDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceDefinitionVersionDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceDefinitionVersionDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceDefinitionVersionDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceDefinitionVersionDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceDefinitionVersionDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceDefinitionVersionDie) Name

name is the version name, e.g. “v1”, “v2beta1”, etc.

The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.

func (*CustomResourceDefinitionVersionDie) Schema

schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.

func (*CustomResourceDefinitionVersionDie) SchemaDie

func (*CustomResourceDefinitionVersionDie) Served

served is a flag enabling/disabling this version from being served via REST APIs

func (*CustomResourceDefinitionVersionDie) Storage

storage indicates this version should be used when persisting custom resources to storage.

There must be exactly one version with storage=true.

func (*CustomResourceDefinitionVersionDie) Subresources

subresources specify what subresources this version of the defined custom resource have.

func (*CustomResourceDefinitionVersionDie) SubresourcesDie

type CustomResourceSubresourceScaleDie

type CustomResourceSubresourceScaleDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceSubresourceScaleDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceSubresourceScaleDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceSubresourceScaleDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceSubresourceScaleDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceSubresourceScaleDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceSubresourceScaleDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceSubresourceScaleDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceSubresourceScaleDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceSubresourceScaleDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceSubresourceScaleDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceSubresourceScaleDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceSubresourceScaleDie) DieStampAt added in v0.8.0

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceSubresourceScaleDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceSubresourceScaleDie) LabelSelectorPath

labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.

Only JSON paths without the array notation are allowed.

Must be a JSON Path under `.status` or `.spec`.

Must be set to work with HorizontalPodAutoscaler.

The field pointed by this JSON path must be a string field (not a complex selector struct)

which contains a serialized label selector in string form.

More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource

If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`

subresource will default to the empty string.

func (*CustomResourceSubresourceScaleDie) SpecReplicasPath

specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`.

Only JSON paths without the array notation are allowed.

Must be a JSON Path under `.spec`.

If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.

func (*CustomResourceSubresourceScaleDie) StatusReplicasPath

statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`.

Only JSON paths without the array notation are allowed.

Must be a JSON Path under `.status`.

If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource

will default to 0.

type CustomResourceSubresourcesDie

type CustomResourceSubresourcesDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceSubresourcesDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceSubresourcesDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceSubresourcesDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceSubresourcesDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceSubresourcesDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceSubresourcesDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceSubresourcesDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceSubresourcesDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceSubresourcesDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceSubresourcesDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceSubresourcesDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceSubresourcesDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceSubresourcesDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceSubresourcesDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceSubresourcesDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceSubresourcesDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceSubresourcesDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceSubresourcesDie) DieStampAt added in v0.8.0

func (d *CustomResourceSubresourcesDie) DieStampAt(jp string, fn interface{}) *CustomResourceSubresourcesDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceSubresourcesDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceSubresourcesDie) Scale

scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.

func (*CustomResourceSubresourcesDie) ScaleDie

func (*CustomResourceSubresourcesDie) Status

status indicates the custom resource should serve a `/status` subresource.

When enabled:

1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.

2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.

type CustomResourceValidationDie

type CustomResourceValidationDie struct {
	// contains filtered or unexported fields
}

func (*CustomResourceValidationDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CustomResourceValidationDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CustomResourceValidationDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CustomResourceValidationDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CustomResourceValidationDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceValidationDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CustomResourceValidationDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CustomResourceValidationDie) DieImmutable

func (d *CustomResourceValidationDie) DieImmutable(immutable bool) *CustomResourceValidationDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CustomResourceValidationDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CustomResourceValidationDie) DieReleaseJSON added in v0.8.0

func (d *CustomResourceValidationDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CustomResourceValidationDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CustomResourceValidationDie) DieReleaseRawExtension added in v0.5.0

func (d *CustomResourceValidationDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CustomResourceValidationDie) DieReleaseYAML added in v0.8.0

func (d *CustomResourceValidationDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CustomResourceValidationDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CustomResourceValidationDie) DieStampAt added in v0.8.0

func (d *CustomResourceValidationDie) DieStampAt(jp string, fn interface{}) *CustomResourceValidationDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CustomResourceValidationDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CustomResourceValidationDie) OpenAPIV3Schema

openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.

type ServiceReferenceDie

type ServiceReferenceDie struct {
	// contains filtered or unexported fields
}

func (*ServiceReferenceDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ServiceReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ServiceReferenceDie) DieFeedJSON added in v0.8.0

func (d *ServiceReferenceDie) DieFeedJSON(j []byte) *ServiceReferenceDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ServiceReferenceDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ServiceReferenceDie) DieFeedRawExtension added in v0.5.0

func (d *ServiceReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceReferenceDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ServiceReferenceDie) DieFeedYAML added in v0.8.0

func (d *ServiceReferenceDie) DieFeedYAML(y []byte) *ServiceReferenceDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ServiceReferenceDie) DieFeedYAMLFile added in v0.8.0

func (d *ServiceReferenceDie) DieFeedYAMLFile(name string) *ServiceReferenceDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ServiceReferenceDie) DieImmutable

func (d *ServiceReferenceDie) DieImmutable(immutable bool) *ServiceReferenceDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ServiceReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ServiceReferenceDie) DieReleaseJSON added in v0.8.0

func (d *ServiceReferenceDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ServiceReferenceDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ServiceReferenceDie) DieReleaseRawExtension added in v0.5.0

func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ServiceReferenceDie) DieReleaseYAML added in v0.8.0

func (d *ServiceReferenceDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ServiceReferenceDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ServiceReferenceDie) DieStampAt added in v0.8.0

func (d *ServiceReferenceDie) DieStampAt(jp string, fn interface{}) *ServiceReferenceDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ServiceReferenceDie) DieWith added in v0.9.0

func (d *ServiceReferenceDie) DieWith(fns ...func(d *ServiceReferenceDie)) *ServiceReferenceDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ServiceReferenceDie) Name

name is the name of the service.

Required

func (*ServiceReferenceDie) Namespace

namespace is the namespace of the service.

Required

func (*ServiceReferenceDie) Path

path is an optional URL path at which the webhook will be contacted.

func (*ServiceReferenceDie) Port

port is an optional service port at which the webhook will be contacted.

`port` should be a valid port number (1-65535, inclusive).

Defaults to 443 for backward compatibility.

type WebhookClientConfigDie

type WebhookClientConfigDie struct {
	// contains filtered or unexported fields
}

func (*WebhookClientConfigDie) CABundle

caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.

If unspecified, system trust roots on the apiserver are used.

func (*WebhookClientConfigDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*WebhookClientConfigDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*WebhookClientConfigDie) DieFeedJSON added in v0.8.0

func (d *WebhookClientConfigDie) DieFeedJSON(j []byte) *WebhookClientConfigDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*WebhookClientConfigDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*WebhookClientConfigDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*WebhookClientConfigDie) DieFeedYAML added in v0.8.0

func (d *WebhookClientConfigDie) DieFeedYAML(y []byte) *WebhookClientConfigDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*WebhookClientConfigDie) DieFeedYAMLFile added in v0.8.0

func (d *WebhookClientConfigDie) DieFeedYAMLFile(name string) *WebhookClientConfigDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*WebhookClientConfigDie) DieImmutable

func (d *WebhookClientConfigDie) DieImmutable(immutable bool) *WebhookClientConfigDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*WebhookClientConfigDie) DieRelease

DieRelease returns the resource managed by the die.

func (*WebhookClientConfigDie) DieReleaseJSON added in v0.8.0

func (d *WebhookClientConfigDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*WebhookClientConfigDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*WebhookClientConfigDie) DieReleaseRawExtension added in v0.5.0

func (d *WebhookClientConfigDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*WebhookClientConfigDie) DieReleaseYAML added in v0.8.0

func (d *WebhookClientConfigDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*WebhookClientConfigDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*WebhookClientConfigDie) DieStampAt added in v0.8.0

func (d *WebhookClientConfigDie) DieStampAt(jp string, fn interface{}) *WebhookClientConfigDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*WebhookClientConfigDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*WebhookClientConfigDie) Service

service is a reference to the service for this webhook. Either

service or url must be specified.

If the webhook is running within the cluster, then you should use `service`.

func (*WebhookClientConfigDie) ServiceDie

func (*WebhookClientConfigDie) URL

url gives the location of the webhook, in standard URL form

(`scheme://host:port/path`). Exactly one of `url` or `service`

must be specified.

The `host` should not refer to a service running in the cluster; use

the `service` field instead. The host might be resolved via external

DNS in some apiservers (e.g., `kube-apiserver` cannot resolve

in-cluster DNS as that would be a layering violation). `host` may

also be an IP address.

Please note that using `localhost` or `127.0.0.1` as a `host` is

risky unless you take great care to run this webhook on all hosts

which run an apiserver which might need to make calls to this

webhook. Such installs are likely to be non-portable, i.e., not easy

to turn up in a new cluster.

The scheme must be "https"; the URL must begin with "https://".

A path is optional, and if present may be any string permissible in

a URL. You may use the path to pass an arbitrary string to the

webhook, for example, a cluster identifier.

Attempting to use a user or basic auth e.g. "user:password@" is not

allowed. Fragments ("#...") and query parameters ("?...") are not

allowed, either.

type WebhookConversionDie

type WebhookConversionDie struct {
	// contains filtered or unexported fields
}

func (*WebhookConversionDie) ClientConfig

clientConfig is the instructions for how to call the webhook if strategy is `Webhook`.

func (*WebhookConversionDie) ClientConfigDie

func (d *WebhookConversionDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *WebhookConversionDie

func (*WebhookConversionDie) ConversionReviewVersions

func (d *WebhookConversionDie) ConversionReviewVersions(v ...string) *WebhookConversionDie

conversionReviewVersions is an ordered list of preferred `ConversionReview`

versions the Webhook expects. The API server will use the first version in

the list which it supports. If none of the versions specified in this list

are supported by API server, conversion will fail for the custom resource.

If a persisted Webhook configuration specifies allowed versions and does not

include any versions known to the API Server, calls to the webhook will fail.

func (*WebhookConversionDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*WebhookConversionDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*WebhookConversionDie) DieFeedJSON added in v0.8.0

func (d *WebhookConversionDie) DieFeedJSON(j []byte) *WebhookConversionDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*WebhookConversionDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*WebhookConversionDie) DieFeedRawExtension added in v0.5.0

func (d *WebhookConversionDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookConversionDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*WebhookConversionDie) DieFeedYAML added in v0.8.0

func (d *WebhookConversionDie) DieFeedYAML(y []byte) *WebhookConversionDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*WebhookConversionDie) DieFeedYAMLFile added in v0.8.0

func (d *WebhookConversionDie) DieFeedYAMLFile(name string) *WebhookConversionDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*WebhookConversionDie) DieImmutable

func (d *WebhookConversionDie) DieImmutable(immutable bool) *WebhookConversionDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*WebhookConversionDie) DieRelease

DieRelease returns the resource managed by the die.

func (*WebhookConversionDie) DieReleaseJSON added in v0.8.0

func (d *WebhookConversionDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*WebhookConversionDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*WebhookConversionDie) DieReleaseRawExtension added in v0.5.0

func (d *WebhookConversionDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*WebhookConversionDie) DieReleaseYAML added in v0.8.0

func (d *WebhookConversionDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*WebhookConversionDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*WebhookConversionDie) DieStampAt added in v0.8.0

func (d *WebhookConversionDie) DieStampAt(jp string, fn interface{}) *WebhookConversionDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*WebhookConversionDie) DieWith added in v0.9.0

func (d *WebhookConversionDie) DieWith(fns ...func(d *WebhookConversionDie)) *WebhookConversionDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

Jump to

Keyboard shortcuts

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