v1

package
v0.0.0-...-b054aa7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigApplyConfiguration

type ConfigApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ConfigSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ConfigStatusApplyConfiguration `json:"status,omitempty"`
}

ConfigApplyConfiguration represents an declarative configuration of the Config type for use with apply.

func Config

func Config(name string) *ConfigApplyConfiguration

Config constructs an declarative configuration of the Config type for use with apply.

func ExtractConfig

func ExtractConfig(config *apisamplesv1.Config, fieldManager string) (*ConfigApplyConfiguration, error)

ExtractConfig extracts the applied configuration owned by fieldManager from config. If no managedFields are found in config for fieldManager, a ConfigApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. config must be a unmodified Config API object that was retrieved from the Kubernetes API. ExtractConfig provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractConfigStatus

func ExtractConfigStatus(config *apisamplesv1.Config, fieldManager string) (*ConfigApplyConfiguration, error)

ExtractConfigStatus is the same as ExtractConfig except that it extracts the status subresource applied configuration. Experimental!

func (*ConfigApplyConfiguration) WithAPIVersion

func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithAnnotations

func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ConfigApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ConfigApplyConfiguration) WithCreationTimestamp

func (b *ConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConfigApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConfigApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithDeletionTimestamp

func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConfigApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithFinalizers

func (b *ConfigApplyConfiguration) WithFinalizers(values ...string) *ConfigApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ConfigApplyConfiguration) WithGenerateName

func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithGeneration

func (b *ConfigApplyConfiguration) WithGeneration(value int64) *ConfigApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithLabels

func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *ConfigApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ConfigApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithNamespace

func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ConfigApplyConfiguration) WithResourceVersion

func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ConfigApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ConfigConditionApplyConfiguration

type ConfigConditionApplyConfiguration struct {
	Type               *v1.ConfigConditionType `json:"type,omitempty"`
	Status             *corev1.ConditionStatus `json:"status,omitempty"`
	LastUpdateTime     *metav1.Time            `json:"lastUpdateTime,omitempty"`
	LastTransitionTime *metav1.Time            `json:"lastTransitionTime,omitempty"`
	Reason             *string                 `json:"reason,omitempty"`
	Message            *string                 `json:"message,omitempty"`
}

ConfigConditionApplyConfiguration represents an declarative configuration of the ConfigCondition type for use with apply.

func ConfigCondition

func ConfigCondition() *ConfigConditionApplyConfiguration

ConfigConditionApplyConfiguration constructs an declarative configuration of the ConfigCondition type for use with apply.

func (*ConfigConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*ConfigConditionApplyConfiguration) WithLastUpdateTime

WithLastUpdateTime sets the LastUpdateTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastUpdateTime field is set to the value of the last call.

func (*ConfigConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*ConfigConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*ConfigConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ConfigConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type ConfigSpecApplyConfiguration

type ConfigSpecApplyConfiguration struct {
	ManagementState     *v1.ManagementState       `json:"managementState,omitempty"`
	SamplesRegistry     *string                   `json:"samplesRegistry,omitempty"`
	Architectures       []string                  `json:"architectures,omitempty"`
	SkippedImagestreams []string                  `json:"skippedImagestreams,omitempty"`
	SkippedTemplates    []string                  `json:"skippedTemplates,omitempty"`
	SkippedHelmCharts   []samplesv1.HelmChartName `json:"skippedHelmCharts,omitempty"`
}

ConfigSpecApplyConfiguration represents an declarative configuration of the ConfigSpec type for use with apply.

func ConfigSpec

func ConfigSpec() *ConfigSpecApplyConfiguration

ConfigSpecApplyConfiguration constructs an declarative configuration of the ConfigSpec type for use with apply.

func (*ConfigSpecApplyConfiguration) WithArchitectures

func (b *ConfigSpecApplyConfiguration) WithArchitectures(values ...string) *ConfigSpecApplyConfiguration

WithArchitectures adds the given value to the Architectures field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Architectures field.

func (*ConfigSpecApplyConfiguration) WithManagementState

WithManagementState sets the ManagementState field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ManagementState field is set to the value of the last call.

func (*ConfigSpecApplyConfiguration) WithSamplesRegistry

func (b *ConfigSpecApplyConfiguration) WithSamplesRegistry(value string) *ConfigSpecApplyConfiguration

WithSamplesRegistry sets the SamplesRegistry field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SamplesRegistry field is set to the value of the last call.

func (*ConfigSpecApplyConfiguration) WithSkippedHelmCharts

WithSkippedHelmCharts adds the given value to the SkippedHelmCharts field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SkippedHelmCharts field.

func (*ConfigSpecApplyConfiguration) WithSkippedImagestreams

func (b *ConfigSpecApplyConfiguration) WithSkippedImagestreams(values ...string) *ConfigSpecApplyConfiguration

WithSkippedImagestreams adds the given value to the SkippedImagestreams field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SkippedImagestreams field.

func (*ConfigSpecApplyConfiguration) WithSkippedTemplates

func (b *ConfigSpecApplyConfiguration) WithSkippedTemplates(values ...string) *ConfigSpecApplyConfiguration

WithSkippedTemplates adds the given value to the SkippedTemplates field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SkippedTemplates field.

type ConfigStatusApplyConfiguration

type ConfigStatusApplyConfiguration struct {
	ManagementState     *v1.ManagementState                 `json:"managementState,omitempty"`
	Conditions          []ConfigConditionApplyConfiguration `json:"conditions,omitempty"`
	SamplesRegistry     *string                             `json:"samplesRegistry,omitempty"`
	Architectures       []string                            `json:"architectures,omitempty"`
	SkippedImagestreams []string                            `json:"skippedImagestreams,omitempty"`
	SkippedTemplates    []string                            `json:"skippedTemplates,omitempty"`
	Version             *string                             `json:"version,omitempty"`
}

ConfigStatusApplyConfiguration represents an declarative configuration of the ConfigStatus type for use with apply.

func ConfigStatus

func ConfigStatus() *ConfigStatusApplyConfiguration

ConfigStatusApplyConfiguration constructs an declarative configuration of the ConfigStatus type for use with apply.

func (*ConfigStatusApplyConfiguration) WithArchitectures

func (b *ConfigStatusApplyConfiguration) WithArchitectures(values ...string) *ConfigStatusApplyConfiguration

WithArchitectures adds the given value to the Architectures field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Architectures field.

func (*ConfigStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*ConfigStatusApplyConfiguration) WithManagementState

WithManagementState sets the ManagementState field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ManagementState field is set to the value of the last call.

func (*ConfigStatusApplyConfiguration) WithSamplesRegistry

WithSamplesRegistry sets the SamplesRegistry field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SamplesRegistry field is set to the value of the last call.

func (*ConfigStatusApplyConfiguration) WithSkippedImagestreams

func (b *ConfigStatusApplyConfiguration) WithSkippedImagestreams(values ...string) *ConfigStatusApplyConfiguration

WithSkippedImagestreams adds the given value to the SkippedImagestreams field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SkippedImagestreams field.

func (*ConfigStatusApplyConfiguration) WithSkippedTemplates

func (b *ConfigStatusApplyConfiguration) WithSkippedTemplates(values ...string) *ConfigStatusApplyConfiguration

WithSkippedTemplates adds the given value to the SkippedTemplates field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SkippedTemplates field.

func (*ConfigStatusApplyConfiguration) WithVersion

WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.

Jump to

Keyboard shortcuts

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