From ddb9cd0bb36fbe7b891062cbed3b0e3bb7802530 Mon Sep 17 00:00:00 2001 From: Jefftree Date: Sun, 24 Jan 2021 22:37:44 -0800 Subject: [PATCH] pseudo refgraph --- pkg/applyconfigurations/gen.go | 114 +- .../v1/v1_zz_generated.applyconfigurations.go | 125 + ...1beta1_zz_generated.applyconfigurations.go | 136 + .../v1/v1_zz_generated.applyconfigurations.go | 4328 +++++++++++++++++ .../v1/v1_zz_generated.applyconfigurations.go | 865 ++++ .../v1/v1_zz_generated.applyconfigurations.go | 95 + ...1beta1_zz_generated.applyconfigurations.go | 100 + .../v1/v1_zz_generated.applyconfigurations.go | 3116 ++++++++++++ ...ronjob_zz_generated.applyconfigurations.go | 161 + .../v1/v1_zz_generated.applyconfigurations.go | 619 +++ .../{ => ac}/zz_generated.deepcopy.go | 0 .../zz_generated.applyconfigurations.go | 230 - ...z_generated.applyconfigurations_builder.go | 1601 ------ pkg/applyconfigurations/traverse.go | 152 +- 14 files changed, 9740 insertions(+), 1902 deletions(-) create mode 100644 pkg/applyconfigurations/testdata/ac/ac/batch/v1/v1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/ac/core/v1/v1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/ac/meta/v1/v1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/batch/v1/v1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/core/v1/v1_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/cronjob_zz_generated.applyconfigurations.go create mode 100644 pkg/applyconfigurations/testdata/ac/meta/v1/v1_zz_generated.applyconfigurations.go rename pkg/applyconfigurations/testdata/{ => ac}/zz_generated.deepcopy.go (100%) delete mode 100644 pkg/applyconfigurations/testdata/zz_generated.applyconfigurations.go delete mode 100644 pkg/applyconfigurations/testdata/zz_generated.applyconfigurations_builder.go diff --git a/pkg/applyconfigurations/gen.go b/pkg/applyconfigurations/gen.go index 05960a3a9..b8831f9e4 100644 --- a/pkg/applyconfigurations/gen.go +++ b/pkg/applyconfigurations/gen.go @@ -21,7 +21,10 @@ import ( "fmt" "go/ast" "go/format" + "go/types" "io" + "os" + "path/filepath" "sort" "strings" @@ -98,6 +101,11 @@ func genObjectInterface(info *markers.TypeInfo) bool { return false } +func groupAndPackageVersion(pkg string) string { + parts := strings.Split(pkg, "/") + return parts[len(parts)-2] + "/" + parts[len(parts)-1] +} + func (d Generator) Generate(ctx *genall.GenerationContext) error { var headerText string @@ -116,15 +124,65 @@ func (d Generator) Generate(ctx *genall.GenerationContext) error { HeaderText: headerText, } + var pkgList []*loader.Package + visited := make(map[string]*loader.Package) + + //TODO|jefftree: Import variable might be better + crdRoot := ctx.Roots[0] + for _, root := range ctx.Roots { - outContents := objGenCtx.generateForPackage(root) - if outContents == nil { + pkgList = append(pkgList, root) + } + + for len(pkgList) != 0 { + pkg := pkgList[0] + pkgList = pkgList[1:] + if _, ok := visited[pkg.PkgPath]; ok { continue } - writeOut(ctx, root, outContents) + visited[pkg.PkgPath] = pkg + + for _, imp := range pkg.Imports() { + // Only index k8s types + // TODO|jefftree:There must be a better way to filter this + if !strings.Contains(imp.PkgPath, "k8s.io") || (!strings.Contains(imp.PkgPath, "api/") && !strings.Contains(imp.PkgPath, "apis/")) { + continue + } + pkgList = append(pkgList, imp) + } } + var eligibleTypes []types.Type + for _, pkg := range visited { + eligibleTypes = append(eligibleTypes, objGenCtx.generateEligibleTypes(pkg)...) + } + + universe := Universe{ + eligibleTypes: eligibleTypes, + } + + basePath := filepath.Dir(crdRoot.CompiledGoFiles[0]) + + for _, pkg := range visited { + outContents := objGenCtx.generateForPackage(universe, pkg) + if outContents == nil { + continue + } + + if pkg != ctx.Roots[0] { + desiredPath := basePath + "/ac/" + groupAndPackageVersion(pkg.PkgPath) + "/" + if _, err := os.Stat(desiredPath); os.IsNotExist(err) { + os.MkdirAll(desiredPath, os.ModePerm) + } + pkg.CompiledGoFiles[0] = desiredPath + } else { + pkg.CompiledGoFiles[0] = basePath + "/ac/" + os.MkdirAll(pkg.CompiledGoFiles[0], os.ModePerm) + } + writeOut(ctx, pkg, outContents) + + } return nil } @@ -159,20 +217,31 @@ import ( } -// generateForPackage generates apply configuration implementations for -// types in the given package, writing the formatted result to given writer. -// May return nil if source could not be generated. -func (ctx *ObjectGenCtx) generateForPackage(root *loader.Package) []byte { - // allTypes, err := enabledOnPackage(ctx.Collector, root) - // if err != nil { - // root.AddError(err) - // return nil - // } - +func (ctx *ObjectGenCtx) generateEligibleTypes(root *loader.Package) []types.Type { ctx.Checker.Check(root) - root.NeedTypesInfo() + var eligibleTypes []types.Type + if err := markers.EachType(ctx.Collector, root, func(info *markers.TypeInfo) { + if shouldBeApplyConfiguration(root, info) { + typeInfo := root.TypesInfo.TypeOf(info.RawSpec.Name) + eligibleTypes = append(eligibleTypes, typeInfo) + } + }); err != nil { + root.AddError(err) + return nil + } + return eligibleTypes +} + +type Universe struct { + eligibleTypes []types.Type +} + +// generateForPackage generates apply configuration implementations for +// types in the given package, writing the formatted result to given writer. +// May return nil if source could not be generated. +func (ctx *ObjectGenCtx) generateForPackage(universe Universe, root *loader.Package) []byte { byType := make(map[string][]byte) imports := &importsList{ byPath: make(map[string]string), @@ -187,7 +256,6 @@ func (ctx *ObjectGenCtx) generateForPackage(root *loader.Package) []byte { // not all types required a generate apply configuration. For example, no apply configuration // type is needed for Quantity, IntOrString, RawExtension or Unknown. if !shouldBeApplyConfiguration(root, info) { - //root.AddError(fmt.Errorf("skipping type: %v", info.Name)) // TODO(jpbetz): Remove return } @@ -199,13 +267,13 @@ func (ctx *ObjectGenCtx) generateForPackage(root *loader.Package) []byte { // TODO|jefftree: Make this a CLI toggle between builder and go structs if false { - copyCtx.GenerateStruct(root, info) - copyCtx.GenerateFieldsStruct(root, info) + copyCtx.GenerateStruct(&universe, root, info) + copyCtx.GenerateFieldsStruct(&universe, root, info) for _, field := range info.Fields { if field.Name != "" { - copyCtx.GenerateMemberSet(field, root, info) - copyCtx.GenerateMemberRemove(field, root, info) - copyCtx.GenerateMemberGet(field, root, info) + copyCtx.GenerateMemberSet(&universe, field, root, info) + copyCtx.GenerateMemberRemove(&universe, field, root, info) + copyCtx.GenerateMemberGet(&universe, field, root, info) } } copyCtx.GenerateToUnstructured(root, info) @@ -215,10 +283,10 @@ func (ctx *ObjectGenCtx) generateForPackage(root *loader.Package) []byte { copyCtx.GeneratePrePostFunctions(root, info) } else { - copyCtx.GenerateTypesFor(root, info) + copyCtx.GenerateTypesFor(&universe, root, info) copyCtx.GenerateStructConstructor(root, info) } - copyCtx.GenerateListMapAlias(root, info) + // copyCtx.GenerateListMapAlias(root, info) outBytes := outContent.Bytes() if len(outBytes) > 0 { @@ -268,7 +336,7 @@ func writeTypes(pkg *loader.Package, out io.Writer, byType map[string][]byte) { // writeFormatted outputs the given code, after gofmt-ing it. If we couldn't gofmt, // we write the unformatted code for debugging purposes. func writeOut(ctx *genall.GenerationContext, root *loader.Package, outBytes []byte) { - outputFile, err := ctx.Open(root, "zz_generated.applyconfigurations.go") + outputFile, err := ctx.Open(root, root.Name+"_zz_generated.applyconfigurations.go") if err != nil { root.AddError(err) return diff --git a/pkg/applyconfigurations/testdata/ac/ac/batch/v1/v1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/ac/batch/v1/v1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..93ff05707 --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/ac/batch/v1/v1_zz_generated.applyconfigurations.go @@ -0,0 +1,125 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1 + +import ( + batchv1 "k8s.io/api/batch/v1" + apicorev1 "k8s.io/api/core/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + corev1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/core/v1" + metav1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/meta/v1" +) + +// JobApplyConfiguration represents a declarative configuration of the Job type for use +// with apply. +type JobApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` + Status *JobStatusApplyConfiguration `json:"status,omitempty"` +} + +// JobApplyConfiguration represents a declarative configuration of the Job type for use +// with apply. +func Job() *JobApplyConfiguration { + return &JobApplyConfiguration{} +} + +// JobList represents a listAlias of JobApplyConfiguration. +type JobList []*JobApplyConfiguration + +// JobMap represents a map of JobApplyConfiguration. +type JobMap map[string]JobApplyConfiguration + +// JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use +// with apply. +type JobConditionApplyConfiguration struct { + Type *batchv1.JobConditionType `json:"type,omitempty"` + Status *apicorev1.ConditionStatus `json:"status,omitempty"` + LastProbeTime *apismetav1.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use +// with apply. +func JobCondition() *JobConditionApplyConfiguration { + return &JobConditionApplyConfiguration{} +} + +// JobConditionList represents a listAlias of JobConditionApplyConfiguration. +type JobConditionList []*JobConditionApplyConfiguration + +// JobConditionMap represents a map of JobConditionApplyConfiguration. +type JobConditionMap map[string]JobConditionApplyConfiguration + +// JobListApplyConfiguration represents a declarative configuration of the JobList type for use +// with apply. +type JobListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]JobApplyConfiguration `json:"items,omitempty"` +} + +// JobListApplyConfiguration represents a declarative configuration of the JobList type for use +// with apply. +func JobList() *JobListApplyConfiguration { + return &JobListApplyConfiguration{} +} + +// JobListList represents a listAlias of JobListApplyConfiguration. +type JobListList []*JobListApplyConfiguration + +// JobListMap represents a map of JobListApplyConfiguration. +type JobListMap map[string]JobListApplyConfiguration + +// JobSpecApplyConfiguration represents a declarative configuration of the JobSpec type for use +// with apply. +type JobSpecApplyConfiguration struct { + Parallelism *int32 `json:"parallelism,omitempty"` + Completions *int32 `json:"completions,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + BackoffLimit *int32 `json:"backoffLimit,omitempty"` + Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"` + ManualSelector *bool `json:"manualSelector,omitempty"` + Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"` + TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` +} + +// JobSpecApplyConfiguration represents a declarative configuration of the JobSpec type for use +// with apply. +func JobSpec() *JobSpecApplyConfiguration { + return &JobSpecApplyConfiguration{} +} + +// JobSpecList represents a listAlias of JobSpecApplyConfiguration. +type JobSpecList []*JobSpecApplyConfiguration + +// JobSpecMap represents a map of JobSpecApplyConfiguration. +type JobSpecMap map[string]JobSpecApplyConfiguration + +// JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use +// with apply. +type JobStatusApplyConfiguration struct { + Conditions *[]JobConditionApplyConfiguration `json:"conditions,omitempty"` + StartTime *apismetav1.Time `json:"startTime,omitempty"` + CompletionTime *apismetav1.Time `json:"completionTime,omitempty"` + Active *int32 `json:"active,omitempty"` + Succeeded *int32 `json:"succeeded,omitempty"` + Failed *int32 `json:"failed,omitempty"` +} + +// JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use +// with apply. +func JobStatus() *JobStatusApplyConfiguration { + return &JobStatusApplyConfiguration{} +} + +// JobStatusList represents a listAlias of JobStatusApplyConfiguration. +type JobStatusList []*JobStatusApplyConfiguration + +// JobStatusMap represents a map of JobStatusApplyConfiguration. +type JobStatusMap map[string]JobStatusApplyConfiguration diff --git a/pkg/applyconfigurations/testdata/ac/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..6935f874b --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go @@ -0,0 +1,136 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1beta1 + +import ( + batchv1beta1 "k8s.io/api/batch/v1beta1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + batchv1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/batch/v1" + corev1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/core/v1" + v1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/meta/v1" +) + +// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use +// with apply. +type CronJobApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` + Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` +} + +// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use +// with apply. +func CronJob() *CronJobApplyConfiguration { + return &CronJobApplyConfiguration{} +} + +// CronJobList represents a listAlias of CronJobApplyConfiguration. +type CronJobList []*CronJobApplyConfiguration + +// CronJobMap represents a map of CronJobApplyConfiguration. +type CronJobMap map[string]CronJobApplyConfiguration + +// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use +// with apply. +type CronJobListApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]CronJobApplyConfiguration `json:"items,omitempty"` +} + +// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use +// with apply. +func CronJobList() *CronJobListApplyConfiguration { + return &CronJobListApplyConfiguration{} +} + +// CronJobListList represents a listAlias of CronJobListApplyConfiguration. +type CronJobListList []*CronJobListApplyConfiguration + +// CronJobListMap represents a map of CronJobListApplyConfiguration. +type CronJobListMap map[string]CronJobListApplyConfiguration + +// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use +// with apply. +type CronJobSpecApplyConfiguration struct { + Schedule *string `json:"schedule,omitempty"` + StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` + ConcurrencyPolicy *batchv1beta1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` + Suspend *bool `json:"suspend,omitempty"` + JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"` + SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` + FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` +} + +// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use +// with apply. +func CronJobSpec() *CronJobSpecApplyConfiguration { + return &CronJobSpecApplyConfiguration{} +} + +// CronJobSpecList represents a listAlias of CronJobSpecApplyConfiguration. +type CronJobSpecList []*CronJobSpecApplyConfiguration + +// CronJobSpecMap represents a map of CronJobSpecApplyConfiguration. +type CronJobSpecMap map[string]CronJobSpecApplyConfiguration + +// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use +// with apply. +type CronJobStatusApplyConfiguration struct { + Active *[]corev1.ObjectReferenceApplyConfiguration `json:"active,omitempty"` + LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` +} + +// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use +// with apply. +func CronJobStatus() *CronJobStatusApplyConfiguration { + return &CronJobStatusApplyConfiguration{} +} + +// CronJobStatusList represents a listAlias of CronJobStatusApplyConfiguration. +type CronJobStatusList []*CronJobStatusApplyConfiguration + +// CronJobStatusMap represents a map of CronJobStatusApplyConfiguration. +type CronJobStatusMap map[string]CronJobStatusApplyConfiguration + +// JobTemplateApplyConfiguration represents a declarative configuration of the JobTemplate type for use +// with apply. +type JobTemplateApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Template *JobTemplateSpecApplyConfiguration `json:"template,omitempty"` +} + +// JobTemplateApplyConfiguration represents a declarative configuration of the JobTemplate type for use +// with apply. +func JobTemplate() *JobTemplateApplyConfiguration { + return &JobTemplateApplyConfiguration{} +} + +// JobTemplateList represents a listAlias of JobTemplateApplyConfiguration. +type JobTemplateList []*JobTemplateApplyConfiguration + +// JobTemplateMap represents a map of JobTemplateApplyConfiguration. +type JobTemplateMap map[string]JobTemplateApplyConfiguration + +// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use +// with apply. +type JobTemplateSpecApplyConfiguration struct { + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *batchv1.JobSpecApplyConfiguration `json:"spec,omitempty"` +} + +// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use +// with apply. +func JobTemplateSpec() *JobTemplateSpecApplyConfiguration { + return &JobTemplateSpecApplyConfiguration{} +} + +// JobTemplateSpecList represents a listAlias of JobTemplateSpecApplyConfiguration. +type JobTemplateSpecList []*JobTemplateSpecApplyConfiguration + +// JobTemplateSpecMap represents a map of JobTemplateSpecApplyConfiguration. +type JobTemplateSpecMap map[string]JobTemplateSpecApplyConfiguration diff --git a/pkg/applyconfigurations/testdata/ac/ac/core/v1/v1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/ac/core/v1/v1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..f49f8736e --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/ac/core/v1/v1_zz_generated.applyconfigurations.go @@ -0,0 +1,4328 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1 + +import ( + corev1 "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/api/resource" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" + "k8s.io/apimachinery/pkg/util/intstr" + metav1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/meta/v1" +) + +// AWSElasticBlockStoreVolumeSourceApplyConfiguration represents a declarative configuration of the AWSElasticBlockStoreVolumeSource type for use +// with apply. +type AWSElasticBlockStoreVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + Partition *int32 `json:"partition,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// AWSElasticBlockStoreVolumeSourceApplyConfiguration represents a declarative configuration of the AWSElasticBlockStoreVolumeSource type for use +// with apply. +func AWSElasticBlockStoreVolumeSource() *AWSElasticBlockStoreVolumeSourceApplyConfiguration { + return &AWSElasticBlockStoreVolumeSourceApplyConfiguration{} +} + +// AWSElasticBlockStoreVolumeSourceList represents a listAlias of AWSElasticBlockStoreVolumeSourceApplyConfiguration. +type AWSElasticBlockStoreVolumeSourceList []*AWSElasticBlockStoreVolumeSourceApplyConfiguration + +// AWSElasticBlockStoreVolumeSourceMap represents a map of AWSElasticBlockStoreVolumeSourceApplyConfiguration. +type AWSElasticBlockStoreVolumeSourceMap map[string]AWSElasticBlockStoreVolumeSourceApplyConfiguration + +// AffinityApplyConfiguration represents a declarative configuration of the Affinity type for use +// with apply. +type AffinityApplyConfiguration struct { + NodeAffinity *NodeAffinityApplyConfiguration `json:"nodeAffinity,omitempty"` + PodAffinity *PodAffinityApplyConfiguration `json:"podAffinity,omitempty"` + PodAntiAffinity *PodAntiAffinityApplyConfiguration `json:"podAntiAffinity,omitempty"` +} + +// AffinityApplyConfiguration represents a declarative configuration of the Affinity type for use +// with apply. +func Affinity() *AffinityApplyConfiguration { + return &AffinityApplyConfiguration{} +} + +// AffinityList represents a listAlias of AffinityApplyConfiguration. +type AffinityList []*AffinityApplyConfiguration + +// AffinityMap represents a map of AffinityApplyConfiguration. +type AffinityMap map[string]AffinityApplyConfiguration + +// AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use +// with apply. +type AttachedVolumeApplyConfiguration struct { + Name *corev1.UniqueVolumeName `json:"name,omitempty"` + DevicePath *string `json:"devicePath,omitempty"` +} + +// AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use +// with apply. +func AttachedVolume() *AttachedVolumeApplyConfiguration { + return &AttachedVolumeApplyConfiguration{} +} + +// AttachedVolumeList represents a listAlias of AttachedVolumeApplyConfiguration. +type AttachedVolumeList []*AttachedVolumeApplyConfiguration + +// AttachedVolumeMap represents a map of AttachedVolumeApplyConfiguration. +type AttachedVolumeMap map[string]AttachedVolumeApplyConfiguration + +// AvoidPodsApplyConfiguration represents a declarative configuration of the AvoidPods type for use +// with apply. +type AvoidPodsApplyConfiguration struct { + PreferAvoidPods *[]PreferAvoidPodsEntryApplyConfiguration `json:"preferAvoidPods,omitempty"` +} + +// AvoidPodsApplyConfiguration represents a declarative configuration of the AvoidPods type for use +// with apply. +func AvoidPods() *AvoidPodsApplyConfiguration { + return &AvoidPodsApplyConfiguration{} +} + +// AvoidPodsList represents a listAlias of AvoidPodsApplyConfiguration. +type AvoidPodsList []*AvoidPodsApplyConfiguration + +// AvoidPodsMap represents a map of AvoidPodsApplyConfiguration. +type AvoidPodsMap map[string]AvoidPodsApplyConfiguration + +// AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use +// with apply. +type AzureDiskVolumeSourceApplyConfiguration struct { + DiskName *string `json:"diskName,omitempty"` + DataDiskURI *string `json:"diskURI,omitempty"` + CachingMode *corev1.AzureDataDiskCachingMode `json:"cachingMode,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Kind *corev1.AzureDataDiskKind `json:"kind,omitempty"` +} + +// AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use +// with apply. +func AzureDiskVolumeSource() *AzureDiskVolumeSourceApplyConfiguration { + return &AzureDiskVolumeSourceApplyConfiguration{} +} + +// AzureDiskVolumeSourceList represents a listAlias of AzureDiskVolumeSourceApplyConfiguration. +type AzureDiskVolumeSourceList []*AzureDiskVolumeSourceApplyConfiguration + +// AzureDiskVolumeSourceMap represents a map of AzureDiskVolumeSourceApplyConfiguration. +type AzureDiskVolumeSourceMap map[string]AzureDiskVolumeSourceApplyConfiguration + +// AzureFilePersistentVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFilePersistentVolumeSource type for use +// with apply. +type AzureFilePersistentVolumeSourceApplyConfiguration struct { + SecretName *string `json:"secretName,omitempty"` + ShareName *string `json:"shareName,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretNamespace *string `json:"secretNamespace,omitempty"` +} + +// AzureFilePersistentVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFilePersistentVolumeSource type for use +// with apply. +func AzureFilePersistentVolumeSource() *AzureFilePersistentVolumeSourceApplyConfiguration { + return &AzureFilePersistentVolumeSourceApplyConfiguration{} +} + +// AzureFilePersistentVolumeSourceList represents a listAlias of AzureFilePersistentVolumeSourceApplyConfiguration. +type AzureFilePersistentVolumeSourceList []*AzureFilePersistentVolumeSourceApplyConfiguration + +// AzureFilePersistentVolumeSourceMap represents a map of AzureFilePersistentVolumeSourceApplyConfiguration. +type AzureFilePersistentVolumeSourceMap map[string]AzureFilePersistentVolumeSourceApplyConfiguration + +// AzureFileVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFileVolumeSource type for use +// with apply. +type AzureFileVolumeSourceApplyConfiguration struct { + SecretName *string `json:"secretName,omitempty"` + ShareName *string `json:"shareName,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// AzureFileVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFileVolumeSource type for use +// with apply. +func AzureFileVolumeSource() *AzureFileVolumeSourceApplyConfiguration { + return &AzureFileVolumeSourceApplyConfiguration{} +} + +// AzureFileVolumeSourceList represents a listAlias of AzureFileVolumeSourceApplyConfiguration. +type AzureFileVolumeSourceList []*AzureFileVolumeSourceApplyConfiguration + +// AzureFileVolumeSourceMap represents a map of AzureFileVolumeSourceApplyConfiguration. +type AzureFileVolumeSourceMap map[string]AzureFileVolumeSourceApplyConfiguration + +// BindingApplyConfiguration represents a declarative configuration of the Binding type for use +// with apply. +type BindingApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Target *ObjectReferenceApplyConfiguration `json:"target,omitempty"` +} + +// BindingApplyConfiguration represents a declarative configuration of the Binding type for use +// with apply. +func Binding() *BindingApplyConfiguration { + return &BindingApplyConfiguration{} +} + +// BindingList represents a listAlias of BindingApplyConfiguration. +type BindingList []*BindingApplyConfiguration + +// BindingMap represents a map of BindingApplyConfiguration. +type BindingMap map[string]BindingApplyConfiguration + +// CSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CSIPersistentVolumeSource type for use +// with apply. +type CSIPersistentVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + VolumeHandle *string `json:"volumeHandle,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + FSType *string `json:"fsType,omitempty"` + VolumeAttributes *map[string]string `json:"volumeAttributes,omitempty"` + ControllerPublishSecretRef *SecretReferenceApplyConfiguration `json:"controllerPublishSecretRef,omitempty"` + NodeStageSecretRef *SecretReferenceApplyConfiguration `json:"nodeStageSecretRef,omitempty"` + NodePublishSecretRef *SecretReferenceApplyConfiguration `json:"nodePublishSecretRef,omitempty"` + ControllerExpandSecretRef *SecretReferenceApplyConfiguration `json:"controllerExpandSecretRef,omitempty"` +} + +// CSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CSIPersistentVolumeSource type for use +// with apply. +func CSIPersistentVolumeSource() *CSIPersistentVolumeSourceApplyConfiguration { + return &CSIPersistentVolumeSourceApplyConfiguration{} +} + +// CSIPersistentVolumeSourceList represents a listAlias of CSIPersistentVolumeSourceApplyConfiguration. +type CSIPersistentVolumeSourceList []*CSIPersistentVolumeSourceApplyConfiguration + +// CSIPersistentVolumeSourceMap represents a map of CSIPersistentVolumeSourceApplyConfiguration. +type CSIPersistentVolumeSourceMap map[string]CSIPersistentVolumeSourceApplyConfiguration + +// CSIVolumeSourceApplyConfiguration represents a declarative configuration of the CSIVolumeSource type for use +// with apply. +type CSIVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + FSType *string `json:"fsType,omitempty"` + VolumeAttributes *map[string]string `json:"volumeAttributes,omitempty"` + NodePublishSecretRef *LocalObjectReferenceApplyConfiguration `json:"nodePublishSecretRef,omitempty"` +} + +// CSIVolumeSourceApplyConfiguration represents a declarative configuration of the CSIVolumeSource type for use +// with apply. +func CSIVolumeSource() *CSIVolumeSourceApplyConfiguration { + return &CSIVolumeSourceApplyConfiguration{} +} + +// CSIVolumeSourceList represents a listAlias of CSIVolumeSourceApplyConfiguration. +type CSIVolumeSourceList []*CSIVolumeSourceApplyConfiguration + +// CSIVolumeSourceMap represents a map of CSIVolumeSourceApplyConfiguration. +type CSIVolumeSourceMap map[string]CSIVolumeSourceApplyConfiguration + +// CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use +// with apply. +type CapabilitiesApplyConfiguration struct { + Add *[]corev1.Capability `json:"add,omitempty"` + Drop *[]corev1.Capability `json:"drop,omitempty"` +} + +// CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use +// with apply. +func Capabilities() *CapabilitiesApplyConfiguration { + return &CapabilitiesApplyConfiguration{} +} + +// CapabilitiesList represents a listAlias of CapabilitiesApplyConfiguration. +type CapabilitiesList []*CapabilitiesApplyConfiguration + +// CapabilitiesMap represents a map of CapabilitiesApplyConfiguration. +type CapabilitiesMap map[string]CapabilitiesApplyConfiguration + +// CephFSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSPersistentVolumeSource type for use +// with apply. +type CephFSPersistentVolumeSourceApplyConfiguration struct { + Monitors *[]string `json:"monitors,omitempty"` + Path *string `json:"path,omitempty"` + User *string `json:"user,omitempty"` + SecretFile *string `json:"secretFile,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// CephFSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSPersistentVolumeSource type for use +// with apply. +func CephFSPersistentVolumeSource() *CephFSPersistentVolumeSourceApplyConfiguration { + return &CephFSPersistentVolumeSourceApplyConfiguration{} +} + +// CephFSPersistentVolumeSourceList represents a listAlias of CephFSPersistentVolumeSourceApplyConfiguration. +type CephFSPersistentVolumeSourceList []*CephFSPersistentVolumeSourceApplyConfiguration + +// CephFSPersistentVolumeSourceMap represents a map of CephFSPersistentVolumeSourceApplyConfiguration. +type CephFSPersistentVolumeSourceMap map[string]CephFSPersistentVolumeSourceApplyConfiguration + +// CephFSVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSVolumeSource type for use +// with apply. +type CephFSVolumeSourceApplyConfiguration struct { + Monitors *[]string `json:"monitors,omitempty"` + Path *string `json:"path,omitempty"` + User *string `json:"user,omitempty"` + SecretFile *string `json:"secretFile,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// CephFSVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSVolumeSource type for use +// with apply. +func CephFSVolumeSource() *CephFSVolumeSourceApplyConfiguration { + return &CephFSVolumeSourceApplyConfiguration{} +} + +// CephFSVolumeSourceList represents a listAlias of CephFSVolumeSourceApplyConfiguration. +type CephFSVolumeSourceList []*CephFSVolumeSourceApplyConfiguration + +// CephFSVolumeSourceMap represents a map of CephFSVolumeSourceApplyConfiguration. +type CephFSVolumeSourceMap map[string]CephFSVolumeSourceApplyConfiguration + +// CinderPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CinderPersistentVolumeSource type for use +// with apply. +type CinderPersistentVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// CinderPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CinderPersistentVolumeSource type for use +// with apply. +func CinderPersistentVolumeSource() *CinderPersistentVolumeSourceApplyConfiguration { + return &CinderPersistentVolumeSourceApplyConfiguration{} +} + +// CinderPersistentVolumeSourceList represents a listAlias of CinderPersistentVolumeSourceApplyConfiguration. +type CinderPersistentVolumeSourceList []*CinderPersistentVolumeSourceApplyConfiguration + +// CinderPersistentVolumeSourceMap represents a map of CinderPersistentVolumeSourceApplyConfiguration. +type CinderPersistentVolumeSourceMap map[string]CinderPersistentVolumeSourceApplyConfiguration + +// CinderVolumeSourceApplyConfiguration represents a declarative configuration of the CinderVolumeSource type for use +// with apply. +type CinderVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// CinderVolumeSourceApplyConfiguration represents a declarative configuration of the CinderVolumeSource type for use +// with apply. +func CinderVolumeSource() *CinderVolumeSourceApplyConfiguration { + return &CinderVolumeSourceApplyConfiguration{} +} + +// CinderVolumeSourceList represents a listAlias of CinderVolumeSourceApplyConfiguration. +type CinderVolumeSourceList []*CinderVolumeSourceApplyConfiguration + +// CinderVolumeSourceMap represents a map of CinderVolumeSourceApplyConfiguration. +type CinderVolumeSourceMap map[string]CinderVolumeSourceApplyConfiguration + +// ClientIPConfigApplyConfiguration represents a declarative configuration of the ClientIPConfig type for use +// with apply. +type ClientIPConfigApplyConfiguration struct { + TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` +} + +// ClientIPConfigApplyConfiguration represents a declarative configuration of the ClientIPConfig type for use +// with apply. +func ClientIPConfig() *ClientIPConfigApplyConfiguration { + return &ClientIPConfigApplyConfiguration{} +} + +// ClientIPConfigList represents a listAlias of ClientIPConfigApplyConfiguration. +type ClientIPConfigList []*ClientIPConfigApplyConfiguration + +// ClientIPConfigMap represents a map of ClientIPConfigApplyConfiguration. +type ClientIPConfigMap map[string]ClientIPConfigApplyConfiguration + +// ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use +// with apply. +type ComponentConditionApplyConfiguration struct { + Type *corev1.ComponentConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + Message *string `json:"message,omitempty"` + Error *string `json:"error,omitempty"` +} + +// ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use +// with apply. +func ComponentCondition() *ComponentConditionApplyConfiguration { + return &ComponentConditionApplyConfiguration{} +} + +// ComponentConditionList represents a listAlias of ComponentConditionApplyConfiguration. +type ComponentConditionList []*ComponentConditionApplyConfiguration + +// ComponentConditionMap represents a map of ComponentConditionApplyConfiguration. +type ComponentConditionMap map[string]ComponentConditionApplyConfiguration + +// ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use +// with apply. +type ComponentStatusApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Conditions *[]ComponentConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use +// with apply. +func ComponentStatus() *ComponentStatusApplyConfiguration { + return &ComponentStatusApplyConfiguration{} +} + +// ComponentStatusList represents a listAlias of ComponentStatusApplyConfiguration. +type ComponentStatusList []*ComponentStatusApplyConfiguration + +// ComponentStatusMap represents a map of ComponentStatusApplyConfiguration. +type ComponentStatusMap map[string]ComponentStatusApplyConfiguration + +// ComponentStatusListApplyConfiguration represents a declarative configuration of the ComponentStatusList type for use +// with apply. +type ComponentStatusListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ComponentStatusApplyConfiguration `json:"items,omitempty"` +} + +// ComponentStatusListApplyConfiguration represents a declarative configuration of the ComponentStatusList type for use +// with apply. +func ComponentStatusList() *ComponentStatusListApplyConfiguration { + return &ComponentStatusListApplyConfiguration{} +} + +// ComponentStatusListList represents a listAlias of ComponentStatusListApplyConfiguration. +type ComponentStatusListList []*ComponentStatusListApplyConfiguration + +// ComponentStatusListMap represents a map of ComponentStatusListApplyConfiguration. +type ComponentStatusListMap map[string]ComponentStatusListApplyConfiguration + +// ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use +// with apply. +type ConfigMapApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Immutable *bool `json:"immutable,omitempty"` + Data *map[string]string `json:"data,omitempty"` + BinaryData *map[string][]byte `json:"binaryData,omitempty"` +} + +// ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use +// with apply. +func ConfigMap() *ConfigMapApplyConfiguration { + return &ConfigMapApplyConfiguration{} +} + +// ConfigMapList represents a listAlias of ConfigMapApplyConfiguration. +type ConfigMapList []*ConfigMapApplyConfiguration + +// ConfigMapMap represents a map of ConfigMapApplyConfiguration. +type ConfigMapMap map[string]ConfigMapApplyConfiguration + +// ConfigMapEnvSourceApplyConfiguration represents a declarative configuration of the ConfigMapEnvSource type for use +// with apply. +type ConfigMapEnvSourceApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapEnvSourceApplyConfiguration represents a declarative configuration of the ConfigMapEnvSource type for use +// with apply. +func ConfigMapEnvSource() *ConfigMapEnvSourceApplyConfiguration { + return &ConfigMapEnvSourceApplyConfiguration{} +} + +// ConfigMapEnvSourceList represents a listAlias of ConfigMapEnvSourceApplyConfiguration. +type ConfigMapEnvSourceList []*ConfigMapEnvSourceApplyConfiguration + +// ConfigMapEnvSourceMap represents a map of ConfigMapEnvSourceApplyConfiguration. +type ConfigMapEnvSourceMap map[string]ConfigMapEnvSourceApplyConfiguration + +// ConfigMapKeySelectorApplyConfiguration represents a declarative configuration of the ConfigMapKeySelector type for use +// with apply. +type ConfigMapKeySelectorApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Key *string `json:"key,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapKeySelectorApplyConfiguration represents a declarative configuration of the ConfigMapKeySelector type for use +// with apply. +func ConfigMapKeySelector() *ConfigMapKeySelectorApplyConfiguration { + return &ConfigMapKeySelectorApplyConfiguration{} +} + +// ConfigMapKeySelectorList represents a listAlias of ConfigMapKeySelectorApplyConfiguration. +type ConfigMapKeySelectorList []*ConfigMapKeySelectorApplyConfiguration + +// ConfigMapKeySelectorMap represents a map of ConfigMapKeySelectorApplyConfiguration. +type ConfigMapKeySelectorMap map[string]ConfigMapKeySelectorApplyConfiguration + +// ConfigMapListApplyConfiguration represents a declarative configuration of the ConfigMapList type for use +// with apply. +type ConfigMapListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ConfigMapApplyConfiguration `json:"items,omitempty"` +} + +// ConfigMapListApplyConfiguration represents a declarative configuration of the ConfigMapList type for use +// with apply. +func ConfigMapList() *ConfigMapListApplyConfiguration { + return &ConfigMapListApplyConfiguration{} +} + +// ConfigMapListList represents a listAlias of ConfigMapListApplyConfiguration. +type ConfigMapListList []*ConfigMapListApplyConfiguration + +// ConfigMapListMap represents a map of ConfigMapListApplyConfiguration. +type ConfigMapListMap map[string]ConfigMapListApplyConfiguration + +// ConfigMapNodeConfigSourceApplyConfiguration represents a declarative configuration of the ConfigMapNodeConfigSource type for use +// with apply. +type ConfigMapNodeConfigSourceApplyConfiguration struct { + Namespace *string `json:"namespace,omitempty"` + Name *string `json:"name,omitempty"` + UID *types.UID `json:"uid,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + KubeletConfigKey *string `json:"kubeletConfigKey,omitempty"` +} + +// ConfigMapNodeConfigSourceApplyConfiguration represents a declarative configuration of the ConfigMapNodeConfigSource type for use +// with apply. +func ConfigMapNodeConfigSource() *ConfigMapNodeConfigSourceApplyConfiguration { + return &ConfigMapNodeConfigSourceApplyConfiguration{} +} + +// ConfigMapNodeConfigSourceList represents a listAlias of ConfigMapNodeConfigSourceApplyConfiguration. +type ConfigMapNodeConfigSourceList []*ConfigMapNodeConfigSourceApplyConfiguration + +// ConfigMapNodeConfigSourceMap represents a map of ConfigMapNodeConfigSourceApplyConfiguration. +type ConfigMapNodeConfigSourceMap map[string]ConfigMapNodeConfigSourceApplyConfiguration + +// ConfigMapProjectionApplyConfiguration represents a declarative configuration of the ConfigMapProjection type for use +// with apply. +type ConfigMapProjectionApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapProjectionApplyConfiguration represents a declarative configuration of the ConfigMapProjection type for use +// with apply. +func ConfigMapProjection() *ConfigMapProjectionApplyConfiguration { + return &ConfigMapProjectionApplyConfiguration{} +} + +// ConfigMapProjectionList represents a listAlias of ConfigMapProjectionApplyConfiguration. +type ConfigMapProjectionList []*ConfigMapProjectionApplyConfiguration + +// ConfigMapProjectionMap represents a map of ConfigMapProjectionApplyConfiguration. +type ConfigMapProjectionMap map[string]ConfigMapProjectionApplyConfiguration + +// ConfigMapVolumeSourceApplyConfiguration represents a declarative configuration of the ConfigMapVolumeSource type for use +// with apply. +type ConfigMapVolumeSourceApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapVolumeSourceApplyConfiguration represents a declarative configuration of the ConfigMapVolumeSource type for use +// with apply. +func ConfigMapVolumeSource() *ConfigMapVolumeSourceApplyConfiguration { + return &ConfigMapVolumeSourceApplyConfiguration{} +} + +// ConfigMapVolumeSourceList represents a listAlias of ConfigMapVolumeSourceApplyConfiguration. +type ConfigMapVolumeSourceList []*ConfigMapVolumeSourceApplyConfiguration + +// ConfigMapVolumeSourceMap represents a map of ConfigMapVolumeSourceApplyConfiguration. +type ConfigMapVolumeSourceMap map[string]ConfigMapVolumeSourceApplyConfiguration + +// ContainerApplyConfiguration represents a declarative configuration of the Container type for use +// with apply. +type ContainerApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Image *string `json:"image,omitempty"` + Command *[]string `json:"command,omitempty"` + Args *[]string `json:"args,omitempty"` + WorkingDir *string `json:"workingDir,omitempty"` + Ports *[]ContainerPortApplyConfiguration `json:"ports,omitempty"` + EnvFrom *[]EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"` + Env *[]EnvVarApplyConfiguration `json:"env,omitempty"` + Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"` + VolumeMounts *[]VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"` + VolumeDevices *[]VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"` + LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"` + ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"` + StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"` + Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"` + TerminationMessagePath *string `json:"terminationMessagePath,omitempty"` + TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` + ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` + SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"` + Stdin *bool `json:"stdin,omitempty"` + StdinOnce *bool `json:"stdinOnce,omitempty"` + TTY *bool `json:"tty,omitempty"` +} + +// ContainerApplyConfiguration represents a declarative configuration of the Container type for use +// with apply. +func Container() *ContainerApplyConfiguration { + return &ContainerApplyConfiguration{} +} + +// ContainerList represents a listAlias of ContainerApplyConfiguration. +type ContainerList []*ContainerApplyConfiguration + +// ContainerMap represents a map of ContainerApplyConfiguration. +type ContainerMap map[string]ContainerApplyConfiguration + +// ContainerImageApplyConfiguration represents a declarative configuration of the ContainerImage type for use +// with apply. +type ContainerImageApplyConfiguration struct { + Names *[]string `json:"names,omitempty"` + SizeBytes *int64 `json:"sizeBytes,omitempty"` +} + +// ContainerImageApplyConfiguration represents a declarative configuration of the ContainerImage type for use +// with apply. +func ContainerImage() *ContainerImageApplyConfiguration { + return &ContainerImageApplyConfiguration{} +} + +// ContainerImageList represents a listAlias of ContainerImageApplyConfiguration. +type ContainerImageList []*ContainerImageApplyConfiguration + +// ContainerImageMap represents a map of ContainerImageApplyConfiguration. +type ContainerImageMap map[string]ContainerImageApplyConfiguration + +// ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use +// with apply. +type ContainerPortApplyConfiguration struct { + Name *string `json:"name,omitempty"` + HostPort *int32 `json:"hostPort,omitempty"` + ContainerPort *int32 `json:"containerPort,omitempty"` + Protocol *corev1.Protocol `json:"protocol,omitempty"` + HostIP *string `json:"hostIP,omitempty"` +} + +// ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use +// with apply. +func ContainerPort() *ContainerPortApplyConfiguration { + return &ContainerPortApplyConfiguration{} +} + +// ContainerPortList represents a listAlias of ContainerPortApplyConfiguration. +type ContainerPortList []*ContainerPortApplyConfiguration + +// ContainerPortMap represents a map of ContainerPortApplyConfiguration. +type ContainerPortMap map[string]ContainerPortApplyConfiguration + +// ContainerStateApplyConfiguration represents a declarative configuration of the ContainerState type for use +// with apply. +type ContainerStateApplyConfiguration struct { + Waiting *ContainerStateWaitingApplyConfiguration `json:"waiting,omitempty"` + Running *ContainerStateRunningApplyConfiguration `json:"running,omitempty"` + Terminated *ContainerStateTerminatedApplyConfiguration `json:"terminated,omitempty"` +} + +// ContainerStateApplyConfiguration represents a declarative configuration of the ContainerState type for use +// with apply. +func ContainerState() *ContainerStateApplyConfiguration { + return &ContainerStateApplyConfiguration{} +} + +// ContainerStateList represents a listAlias of ContainerStateApplyConfiguration. +type ContainerStateList []*ContainerStateApplyConfiguration + +// ContainerStateMap represents a map of ContainerStateApplyConfiguration. +type ContainerStateMap map[string]ContainerStateApplyConfiguration + +// ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use +// with apply. +type ContainerStateRunningApplyConfiguration struct { + StartedAt *apismetav1.Time `json:"startedAt,omitempty"` +} + +// ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use +// with apply. +func ContainerStateRunning() *ContainerStateRunningApplyConfiguration { + return &ContainerStateRunningApplyConfiguration{} +} + +// ContainerStateRunningList represents a listAlias of ContainerStateRunningApplyConfiguration. +type ContainerStateRunningList []*ContainerStateRunningApplyConfiguration + +// ContainerStateRunningMap represents a map of ContainerStateRunningApplyConfiguration. +type ContainerStateRunningMap map[string]ContainerStateRunningApplyConfiguration + +// ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use +// with apply. +type ContainerStateTerminatedApplyConfiguration struct { + ExitCode *int32 `json:"exitCode,omitempty"` + Signal *int32 `json:"signal,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` + StartedAt *apismetav1.Time `json:"startedAt,omitempty"` + FinishedAt *apismetav1.Time `json:"finishedAt,omitempty"` + ContainerID *string `json:"containerID,omitempty"` +} + +// ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use +// with apply. +func ContainerStateTerminated() *ContainerStateTerminatedApplyConfiguration { + return &ContainerStateTerminatedApplyConfiguration{} +} + +// ContainerStateTerminatedList represents a listAlias of ContainerStateTerminatedApplyConfiguration. +type ContainerStateTerminatedList []*ContainerStateTerminatedApplyConfiguration + +// ContainerStateTerminatedMap represents a map of ContainerStateTerminatedApplyConfiguration. +type ContainerStateTerminatedMap map[string]ContainerStateTerminatedApplyConfiguration + +// ContainerStateWaitingApplyConfiguration represents a declarative configuration of the ContainerStateWaiting type for use +// with apply. +type ContainerStateWaitingApplyConfiguration struct { + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ContainerStateWaitingApplyConfiguration represents a declarative configuration of the ContainerStateWaiting type for use +// with apply. +func ContainerStateWaiting() *ContainerStateWaitingApplyConfiguration { + return &ContainerStateWaitingApplyConfiguration{} +} + +// ContainerStateWaitingList represents a listAlias of ContainerStateWaitingApplyConfiguration. +type ContainerStateWaitingList []*ContainerStateWaitingApplyConfiguration + +// ContainerStateWaitingMap represents a map of ContainerStateWaitingApplyConfiguration. +type ContainerStateWaitingMap map[string]ContainerStateWaitingApplyConfiguration + +// ContainerStatusApplyConfiguration represents a declarative configuration of the ContainerStatus type for use +// with apply. +type ContainerStatusApplyConfiguration struct { + Name *string `json:"name,omitempty"` + State *ContainerStateApplyConfiguration `json:"state,omitempty"` + LastTerminationState *ContainerStateApplyConfiguration `json:"lastState,omitempty"` + Ready *bool `json:"ready,omitempty"` + RestartCount *int32 `json:"restartCount,omitempty"` + Image *string `json:"image,omitempty"` + ImageID *string `json:"imageID,omitempty"` + ContainerID *string `json:"containerID,omitempty"` + Started *bool `json:"started,omitempty"` +} + +// ContainerStatusApplyConfiguration represents a declarative configuration of the ContainerStatus type for use +// with apply. +func ContainerStatus() *ContainerStatusApplyConfiguration { + return &ContainerStatusApplyConfiguration{} +} + +// ContainerStatusList represents a listAlias of ContainerStatusApplyConfiguration. +type ContainerStatusList []*ContainerStatusApplyConfiguration + +// ContainerStatusMap represents a map of ContainerStatusApplyConfiguration. +type ContainerStatusMap map[string]ContainerStatusApplyConfiguration + +// DaemonEndpointApplyConfiguration represents a declarative configuration of the DaemonEndpoint type for use +// with apply. +type DaemonEndpointApplyConfiguration struct { + Port *int32 `json:"Port,omitempty"` +} + +// DaemonEndpointApplyConfiguration represents a declarative configuration of the DaemonEndpoint type for use +// with apply. +func DaemonEndpoint() *DaemonEndpointApplyConfiguration { + return &DaemonEndpointApplyConfiguration{} +} + +// DaemonEndpointList represents a listAlias of DaemonEndpointApplyConfiguration. +type DaemonEndpointList []*DaemonEndpointApplyConfiguration + +// DaemonEndpointMap represents a map of DaemonEndpointApplyConfiguration. +type DaemonEndpointMap map[string]DaemonEndpointApplyConfiguration + +// DownwardAPIProjectionApplyConfiguration represents a declarative configuration of the DownwardAPIProjection type for use +// with apply. +type DownwardAPIProjectionApplyConfiguration struct { + Items *[]DownwardAPIVolumeFileApplyConfiguration `json:"items,omitempty"` +} + +// DownwardAPIProjectionApplyConfiguration represents a declarative configuration of the DownwardAPIProjection type for use +// with apply. +func DownwardAPIProjection() *DownwardAPIProjectionApplyConfiguration { + return &DownwardAPIProjectionApplyConfiguration{} +} + +// DownwardAPIProjectionList represents a listAlias of DownwardAPIProjectionApplyConfiguration. +type DownwardAPIProjectionList []*DownwardAPIProjectionApplyConfiguration + +// DownwardAPIProjectionMap represents a map of DownwardAPIProjectionApplyConfiguration. +type DownwardAPIProjectionMap map[string]DownwardAPIProjectionApplyConfiguration + +// DownwardAPIVolumeFileApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeFile type for use +// with apply. +type DownwardAPIVolumeFileApplyConfiguration struct { + Path *string `json:"path,omitempty"` + FieldRef *ObjectFieldSelectorApplyConfiguration `json:"fieldRef,omitempty"` + ResourceFieldRef *ResourceFieldSelectorApplyConfiguration `json:"resourceFieldRef,omitempty"` + Mode *int32 `json:"mode,omitempty"` +} + +// DownwardAPIVolumeFileApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeFile type for use +// with apply. +func DownwardAPIVolumeFile() *DownwardAPIVolumeFileApplyConfiguration { + return &DownwardAPIVolumeFileApplyConfiguration{} +} + +// DownwardAPIVolumeFileList represents a listAlias of DownwardAPIVolumeFileApplyConfiguration. +type DownwardAPIVolumeFileList []*DownwardAPIVolumeFileApplyConfiguration + +// DownwardAPIVolumeFileMap represents a map of DownwardAPIVolumeFileApplyConfiguration. +type DownwardAPIVolumeFileMap map[string]DownwardAPIVolumeFileApplyConfiguration + +// DownwardAPIVolumeSourceApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeSource type for use +// with apply. +type DownwardAPIVolumeSourceApplyConfiguration struct { + Items *[]DownwardAPIVolumeFileApplyConfiguration `json:"items,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` +} + +// DownwardAPIVolumeSourceApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeSource type for use +// with apply. +func DownwardAPIVolumeSource() *DownwardAPIVolumeSourceApplyConfiguration { + return &DownwardAPIVolumeSourceApplyConfiguration{} +} + +// DownwardAPIVolumeSourceList represents a listAlias of DownwardAPIVolumeSourceApplyConfiguration. +type DownwardAPIVolumeSourceList []*DownwardAPIVolumeSourceApplyConfiguration + +// DownwardAPIVolumeSourceMap represents a map of DownwardAPIVolumeSourceApplyConfiguration. +type DownwardAPIVolumeSourceMap map[string]DownwardAPIVolumeSourceApplyConfiguration + +// EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use +// with apply. +type EmptyDirVolumeSourceApplyConfiguration struct { + Medium *corev1.StorageMedium `json:"medium,omitempty"` + SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"` +} + +// EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use +// with apply. +func EmptyDirVolumeSource() *EmptyDirVolumeSourceApplyConfiguration { + return &EmptyDirVolumeSourceApplyConfiguration{} +} + +// EmptyDirVolumeSourceList represents a listAlias of EmptyDirVolumeSourceApplyConfiguration. +type EmptyDirVolumeSourceList []*EmptyDirVolumeSourceApplyConfiguration + +// EmptyDirVolumeSourceMap represents a map of EmptyDirVolumeSourceApplyConfiguration. +type EmptyDirVolumeSourceMap map[string]EmptyDirVolumeSourceApplyConfiguration + +// EndpointAddressApplyConfiguration represents a declarative configuration of the EndpointAddress type for use +// with apply. +type EndpointAddressApplyConfiguration struct { + IP *string `json:"ip,omitempty"` + Hostname *string `json:"hostname,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + TargetRef *ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"` +} + +// EndpointAddressApplyConfiguration represents a declarative configuration of the EndpointAddress type for use +// with apply. +func EndpointAddress() *EndpointAddressApplyConfiguration { + return &EndpointAddressApplyConfiguration{} +} + +// EndpointAddressList represents a listAlias of EndpointAddressApplyConfiguration. +type EndpointAddressList []*EndpointAddressApplyConfiguration + +// EndpointAddressMap represents a map of EndpointAddressApplyConfiguration. +type EndpointAddressMap map[string]EndpointAddressApplyConfiguration + +// EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use +// with apply. +type EndpointPortApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Port *int32 `json:"port,omitempty"` + Protocol *corev1.Protocol `json:"protocol,omitempty"` + AppProtocol *string `json:"appProtocol,omitempty"` +} + +// EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use +// with apply. +func EndpointPort() *EndpointPortApplyConfiguration { + return &EndpointPortApplyConfiguration{} +} + +// EndpointPortList represents a listAlias of EndpointPortApplyConfiguration. +type EndpointPortList []*EndpointPortApplyConfiguration + +// EndpointPortMap represents a map of EndpointPortApplyConfiguration. +type EndpointPortMap map[string]EndpointPortApplyConfiguration + +// EndpointSubsetApplyConfiguration represents a declarative configuration of the EndpointSubset type for use +// with apply. +type EndpointSubsetApplyConfiguration struct { + Addresses *[]EndpointAddressApplyConfiguration `json:"addresses,omitempty"` + NotReadyAddresses *[]EndpointAddressApplyConfiguration `json:"notReadyAddresses,omitempty"` + Ports *[]EndpointPortApplyConfiguration `json:"ports,omitempty"` +} + +// EndpointSubsetApplyConfiguration represents a declarative configuration of the EndpointSubset type for use +// with apply. +func EndpointSubset() *EndpointSubsetApplyConfiguration { + return &EndpointSubsetApplyConfiguration{} +} + +// EndpointSubsetList represents a listAlias of EndpointSubsetApplyConfiguration. +type EndpointSubsetList []*EndpointSubsetApplyConfiguration + +// EndpointSubsetMap represents a map of EndpointSubsetApplyConfiguration. +type EndpointSubsetMap map[string]EndpointSubsetApplyConfiguration + +// EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use +// with apply. +type EndpointsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Subsets *[]EndpointSubsetApplyConfiguration `json:"subsets,omitempty"` +} + +// EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use +// with apply. +func Endpoints() *EndpointsApplyConfiguration { + return &EndpointsApplyConfiguration{} +} + +// EndpointsList represents a listAlias of EndpointsApplyConfiguration. +type EndpointsList []*EndpointsApplyConfiguration + +// EndpointsMap represents a map of EndpointsApplyConfiguration. +type EndpointsMap map[string]EndpointsApplyConfiguration + +// EndpointsListApplyConfiguration represents a declarative configuration of the EndpointsList type for use +// with apply. +type EndpointsListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]EndpointsApplyConfiguration `json:"items,omitempty"` +} + +// EndpointsListApplyConfiguration represents a declarative configuration of the EndpointsList type for use +// with apply. +func EndpointsList() *EndpointsListApplyConfiguration { + return &EndpointsListApplyConfiguration{} +} + +// EndpointsListList represents a listAlias of EndpointsListApplyConfiguration. +type EndpointsListList []*EndpointsListApplyConfiguration + +// EndpointsListMap represents a map of EndpointsListApplyConfiguration. +type EndpointsListMap map[string]EndpointsListApplyConfiguration + +// EnvFromSourceApplyConfiguration represents a declarative configuration of the EnvFromSource type for use +// with apply. +type EnvFromSourceApplyConfiguration struct { + Prefix *string `json:"prefix,omitempty"` + ConfigMapRef *ConfigMapEnvSourceApplyConfiguration `json:"configMapRef,omitempty"` + SecretRef *SecretEnvSourceApplyConfiguration `json:"secretRef,omitempty"` +} + +// EnvFromSourceApplyConfiguration represents a declarative configuration of the EnvFromSource type for use +// with apply. +func EnvFromSource() *EnvFromSourceApplyConfiguration { + return &EnvFromSourceApplyConfiguration{} +} + +// EnvFromSourceList represents a listAlias of EnvFromSourceApplyConfiguration. +type EnvFromSourceList []*EnvFromSourceApplyConfiguration + +// EnvFromSourceMap represents a map of EnvFromSourceApplyConfiguration. +type EnvFromSourceMap map[string]EnvFromSourceApplyConfiguration + +// EnvVarApplyConfiguration represents a declarative configuration of the EnvVar type for use +// with apply. +type EnvVarApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + ValueFrom *EnvVarSourceApplyConfiguration `json:"valueFrom,omitempty"` +} + +// EnvVarApplyConfiguration represents a declarative configuration of the EnvVar type for use +// with apply. +func EnvVar() *EnvVarApplyConfiguration { + return &EnvVarApplyConfiguration{} +} + +// EnvVarList represents a listAlias of EnvVarApplyConfiguration. +type EnvVarList []*EnvVarApplyConfiguration + +// EnvVarMap represents a map of EnvVarApplyConfiguration. +type EnvVarMap map[string]EnvVarApplyConfiguration + +// EnvVarSourceApplyConfiguration represents a declarative configuration of the EnvVarSource type for use +// with apply. +type EnvVarSourceApplyConfiguration struct { + FieldRef *ObjectFieldSelectorApplyConfiguration `json:"fieldRef,omitempty"` + ResourceFieldRef *ResourceFieldSelectorApplyConfiguration `json:"resourceFieldRef,omitempty"` + ConfigMapKeyRef *ConfigMapKeySelectorApplyConfiguration `json:"configMapKeyRef,omitempty"` + SecretKeyRef *SecretKeySelectorApplyConfiguration `json:"secretKeyRef,omitempty"` +} + +// EnvVarSourceApplyConfiguration represents a declarative configuration of the EnvVarSource type for use +// with apply. +func EnvVarSource() *EnvVarSourceApplyConfiguration { + return &EnvVarSourceApplyConfiguration{} +} + +// EnvVarSourceList represents a listAlias of EnvVarSourceApplyConfiguration. +type EnvVarSourceList []*EnvVarSourceApplyConfiguration + +// EnvVarSourceMap represents a map of EnvVarSourceApplyConfiguration. +type EnvVarSourceMap map[string]EnvVarSourceApplyConfiguration + +// EphemeralContainerApplyConfiguration represents a declarative configuration of the EphemeralContainer type for use +// with apply. +type EphemeralContainerApplyConfiguration struct { + EphemeralContainerCommonApplyConfiguration `json:",inline"` + TargetContainerName *string `json:"targetContainerName,omitempty"` +} + +// EphemeralContainerApplyConfiguration represents a declarative configuration of the EphemeralContainer type for use +// with apply. +func EphemeralContainer() *EphemeralContainerApplyConfiguration { + return &EphemeralContainerApplyConfiguration{} +} + +// EphemeralContainerList represents a listAlias of EphemeralContainerApplyConfiguration. +type EphemeralContainerList []*EphemeralContainerApplyConfiguration + +// EphemeralContainerMap represents a map of EphemeralContainerApplyConfiguration. +type EphemeralContainerMap map[string]EphemeralContainerApplyConfiguration + +// EphemeralContainerCommonApplyConfiguration represents a declarative configuration of the EphemeralContainerCommon type for use +// with apply. +type EphemeralContainerCommonApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Image *string `json:"image,omitempty"` + Command *[]string `json:"command,omitempty"` + Args *[]string `json:"args,omitempty"` + WorkingDir *string `json:"workingDir,omitempty"` + Ports *[]ContainerPortApplyConfiguration `json:"ports,omitempty"` + EnvFrom *[]EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"` + Env *[]EnvVarApplyConfiguration `json:"env,omitempty"` + Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"` + VolumeMounts *[]VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"` + VolumeDevices *[]VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"` + LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"` + ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"` + StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"` + Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"` + TerminationMessagePath *string `json:"terminationMessagePath,omitempty"` + TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` + ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` + SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"` + Stdin *bool `json:"stdin,omitempty"` + StdinOnce *bool `json:"stdinOnce,omitempty"` + TTY *bool `json:"tty,omitempty"` +} + +// EphemeralContainerCommonApplyConfiguration represents a declarative configuration of the EphemeralContainerCommon type for use +// with apply. +func EphemeralContainerCommon() *EphemeralContainerCommonApplyConfiguration { + return &EphemeralContainerCommonApplyConfiguration{} +} + +// EphemeralContainerCommonList represents a listAlias of EphemeralContainerCommonApplyConfiguration. +type EphemeralContainerCommonList []*EphemeralContainerCommonApplyConfiguration + +// EphemeralContainerCommonMap represents a map of EphemeralContainerCommonApplyConfiguration. +type EphemeralContainerCommonMap map[string]EphemeralContainerCommonApplyConfiguration + +// EphemeralContainersApplyConfiguration represents a declarative configuration of the EphemeralContainers type for use +// with apply. +type EphemeralContainersApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + EphemeralContainers *[]EphemeralContainerApplyConfiguration `json:"ephemeralContainers,omitempty"` +} + +// EphemeralContainersApplyConfiguration represents a declarative configuration of the EphemeralContainers type for use +// with apply. +func EphemeralContainers() *EphemeralContainersApplyConfiguration { + return &EphemeralContainersApplyConfiguration{} +} + +// EphemeralContainersList represents a listAlias of EphemeralContainersApplyConfiguration. +type EphemeralContainersList []*EphemeralContainersApplyConfiguration + +// EphemeralContainersMap represents a map of EphemeralContainersApplyConfiguration. +type EphemeralContainersMap map[string]EphemeralContainersApplyConfiguration + +// EventApplyConfiguration represents a declarative configuration of the Event type for use +// with apply. +type EventApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + InvolvedObject *ObjectReferenceApplyConfiguration `json:"involvedObject,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` + Source *EventSourceApplyConfiguration `json:"source,omitempty"` + FirstTimestamp *apismetav1.Time `json:"firstTimestamp,omitempty"` + LastTimestamp *apismetav1.Time `json:"lastTimestamp,omitempty"` + Count *int32 `json:"count,omitempty"` + Type *string `json:"type,omitempty"` + EventTime *apismetav1.MicroTime `json:"eventTime,omitempty"` + Series *EventSeriesApplyConfiguration `json:"series,omitempty"` + Action *string `json:"action,omitempty"` + Related *ObjectReferenceApplyConfiguration `json:"related,omitempty"` + ReportingController *string `json:"reportingComponent,omitempty"` + ReportingInstance *string `json:"reportingInstance,omitempty"` +} + +// EventApplyConfiguration represents a declarative configuration of the Event type for use +// with apply. +func Event() *EventApplyConfiguration { + return &EventApplyConfiguration{} +} + +// EventList represents a listAlias of EventApplyConfiguration. +type EventList []*EventApplyConfiguration + +// EventMap represents a map of EventApplyConfiguration. +type EventMap map[string]EventApplyConfiguration + +// EventListApplyConfiguration represents a declarative configuration of the EventList type for use +// with apply. +type EventListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]EventApplyConfiguration `json:"items,omitempty"` +} + +// EventListApplyConfiguration represents a declarative configuration of the EventList type for use +// with apply. +func EventList() *EventListApplyConfiguration { + return &EventListApplyConfiguration{} +} + +// EventListList represents a listAlias of EventListApplyConfiguration. +type EventListList []*EventListApplyConfiguration + +// EventListMap represents a map of EventListApplyConfiguration. +type EventListMap map[string]EventListApplyConfiguration + +// EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use +// with apply. +type EventSeriesApplyConfiguration struct { + Count *int32 `json:"count,omitempty"` + LastObservedTime *apismetav1.MicroTime `json:"lastObservedTime,omitempty"` + State *corev1.EventSeriesState `json:"state,omitempty"` +} + +// EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use +// with apply. +func EventSeries() *EventSeriesApplyConfiguration { + return &EventSeriesApplyConfiguration{} +} + +// EventSeriesList represents a listAlias of EventSeriesApplyConfiguration. +type EventSeriesList []*EventSeriesApplyConfiguration + +// EventSeriesMap represents a map of EventSeriesApplyConfiguration. +type EventSeriesMap map[string]EventSeriesApplyConfiguration + +// EventSourceApplyConfiguration represents a declarative configuration of the EventSource type for use +// with apply. +type EventSourceApplyConfiguration struct { + Component *string `json:"component,omitempty"` + Host *string `json:"host,omitempty"` +} + +// EventSourceApplyConfiguration represents a declarative configuration of the EventSource type for use +// with apply. +func EventSource() *EventSourceApplyConfiguration { + return &EventSourceApplyConfiguration{} +} + +// EventSourceList represents a listAlias of EventSourceApplyConfiguration. +type EventSourceList []*EventSourceApplyConfiguration + +// EventSourceMap represents a map of EventSourceApplyConfiguration. +type EventSourceMap map[string]EventSourceApplyConfiguration + +// ExecActionApplyConfiguration represents a declarative configuration of the ExecAction type for use +// with apply. +type ExecActionApplyConfiguration struct { + Command *[]string `json:"command,omitempty"` +} + +// ExecActionApplyConfiguration represents a declarative configuration of the ExecAction type for use +// with apply. +func ExecAction() *ExecActionApplyConfiguration { + return &ExecActionApplyConfiguration{} +} + +// ExecActionList represents a listAlias of ExecActionApplyConfiguration. +type ExecActionList []*ExecActionApplyConfiguration + +// ExecActionMap represents a map of ExecActionApplyConfiguration. +type ExecActionMap map[string]ExecActionApplyConfiguration + +// FCVolumeSourceApplyConfiguration represents a declarative configuration of the FCVolumeSource type for use +// with apply. +type FCVolumeSourceApplyConfiguration struct { + TargetWWNs *[]string `json:"targetWWNs,omitempty"` + Lun *int32 `json:"lun,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + WWIDs *[]string `json:"wwids,omitempty"` +} + +// FCVolumeSourceApplyConfiguration represents a declarative configuration of the FCVolumeSource type for use +// with apply. +func FCVolumeSource() *FCVolumeSourceApplyConfiguration { + return &FCVolumeSourceApplyConfiguration{} +} + +// FCVolumeSourceList represents a listAlias of FCVolumeSourceApplyConfiguration. +type FCVolumeSourceList []*FCVolumeSourceApplyConfiguration + +// FCVolumeSourceMap represents a map of FCVolumeSourceApplyConfiguration. +type FCVolumeSourceMap map[string]FCVolumeSourceApplyConfiguration + +// FlexPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the FlexPersistentVolumeSource type for use +// with apply. +type FlexPersistentVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + FSType *string `json:"fsType,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Options *map[string]string `json:"options,omitempty"` +} + +// FlexPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the FlexPersistentVolumeSource type for use +// with apply. +func FlexPersistentVolumeSource() *FlexPersistentVolumeSourceApplyConfiguration { + return &FlexPersistentVolumeSourceApplyConfiguration{} +} + +// FlexPersistentVolumeSourceList represents a listAlias of FlexPersistentVolumeSourceApplyConfiguration. +type FlexPersistentVolumeSourceList []*FlexPersistentVolumeSourceApplyConfiguration + +// FlexPersistentVolumeSourceMap represents a map of FlexPersistentVolumeSourceApplyConfiguration. +type FlexPersistentVolumeSourceMap map[string]FlexPersistentVolumeSourceApplyConfiguration + +// FlexVolumeSourceApplyConfiguration represents a declarative configuration of the FlexVolumeSource type for use +// with apply. +type FlexVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + FSType *string `json:"fsType,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Options *map[string]string `json:"options,omitempty"` +} + +// FlexVolumeSourceApplyConfiguration represents a declarative configuration of the FlexVolumeSource type for use +// with apply. +func FlexVolumeSource() *FlexVolumeSourceApplyConfiguration { + return &FlexVolumeSourceApplyConfiguration{} +} + +// FlexVolumeSourceList represents a listAlias of FlexVolumeSourceApplyConfiguration. +type FlexVolumeSourceList []*FlexVolumeSourceApplyConfiguration + +// FlexVolumeSourceMap represents a map of FlexVolumeSourceApplyConfiguration. +type FlexVolumeSourceMap map[string]FlexVolumeSourceApplyConfiguration + +// FlockerVolumeSourceApplyConfiguration represents a declarative configuration of the FlockerVolumeSource type for use +// with apply. +type FlockerVolumeSourceApplyConfiguration struct { + DatasetName *string `json:"datasetName,omitempty"` + DatasetUUID *string `json:"datasetUUID,omitempty"` +} + +// FlockerVolumeSourceApplyConfiguration represents a declarative configuration of the FlockerVolumeSource type for use +// with apply. +func FlockerVolumeSource() *FlockerVolumeSourceApplyConfiguration { + return &FlockerVolumeSourceApplyConfiguration{} +} + +// FlockerVolumeSourceList represents a listAlias of FlockerVolumeSourceApplyConfiguration. +type FlockerVolumeSourceList []*FlockerVolumeSourceApplyConfiguration + +// FlockerVolumeSourceMap represents a map of FlockerVolumeSourceApplyConfiguration. +type FlockerVolumeSourceMap map[string]FlockerVolumeSourceApplyConfiguration + +// GCEPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the GCEPersistentDiskVolumeSource type for use +// with apply. +type GCEPersistentDiskVolumeSourceApplyConfiguration struct { + PDName *string `json:"pdName,omitempty"` + FSType *string `json:"fsType,omitempty"` + Partition *int32 `json:"partition,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// GCEPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the GCEPersistentDiskVolumeSource type for use +// with apply. +func GCEPersistentDiskVolumeSource() *GCEPersistentDiskVolumeSourceApplyConfiguration { + return &GCEPersistentDiskVolumeSourceApplyConfiguration{} +} + +// GCEPersistentDiskVolumeSourceList represents a listAlias of GCEPersistentDiskVolumeSourceApplyConfiguration. +type GCEPersistentDiskVolumeSourceList []*GCEPersistentDiskVolumeSourceApplyConfiguration + +// GCEPersistentDiskVolumeSourceMap represents a map of GCEPersistentDiskVolumeSourceApplyConfiguration. +type GCEPersistentDiskVolumeSourceMap map[string]GCEPersistentDiskVolumeSourceApplyConfiguration + +// GitRepoVolumeSourceApplyConfiguration represents a declarative configuration of the GitRepoVolumeSource type for use +// with apply. +type GitRepoVolumeSourceApplyConfiguration struct { + Repository *string `json:"repository,omitempty"` + Revision *string `json:"revision,omitempty"` + Directory *string `json:"directory,omitempty"` +} + +// GitRepoVolumeSourceApplyConfiguration represents a declarative configuration of the GitRepoVolumeSource type for use +// with apply. +func GitRepoVolumeSource() *GitRepoVolumeSourceApplyConfiguration { + return &GitRepoVolumeSourceApplyConfiguration{} +} + +// GitRepoVolumeSourceList represents a listAlias of GitRepoVolumeSourceApplyConfiguration. +type GitRepoVolumeSourceList []*GitRepoVolumeSourceApplyConfiguration + +// GitRepoVolumeSourceMap represents a map of GitRepoVolumeSourceApplyConfiguration. +type GitRepoVolumeSourceMap map[string]GitRepoVolumeSourceApplyConfiguration + +// GlusterfsPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsPersistentVolumeSource type for use +// with apply. +type GlusterfsPersistentVolumeSourceApplyConfiguration struct { + EndpointsName *string `json:"endpoints,omitempty"` + Path *string `json:"path,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + EndpointsNamespace *string `json:"endpointsNamespace,omitempty"` +} + +// GlusterfsPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsPersistentVolumeSource type for use +// with apply. +func GlusterfsPersistentVolumeSource() *GlusterfsPersistentVolumeSourceApplyConfiguration { + return &GlusterfsPersistentVolumeSourceApplyConfiguration{} +} + +// GlusterfsPersistentVolumeSourceList represents a listAlias of GlusterfsPersistentVolumeSourceApplyConfiguration. +type GlusterfsPersistentVolumeSourceList []*GlusterfsPersistentVolumeSourceApplyConfiguration + +// GlusterfsPersistentVolumeSourceMap represents a map of GlusterfsPersistentVolumeSourceApplyConfiguration. +type GlusterfsPersistentVolumeSourceMap map[string]GlusterfsPersistentVolumeSourceApplyConfiguration + +// GlusterfsVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsVolumeSource type for use +// with apply. +type GlusterfsVolumeSourceApplyConfiguration struct { + EndpointsName *string `json:"endpoints,omitempty"` + Path *string `json:"path,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// GlusterfsVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsVolumeSource type for use +// with apply. +func GlusterfsVolumeSource() *GlusterfsVolumeSourceApplyConfiguration { + return &GlusterfsVolumeSourceApplyConfiguration{} +} + +// GlusterfsVolumeSourceList represents a listAlias of GlusterfsVolumeSourceApplyConfiguration. +type GlusterfsVolumeSourceList []*GlusterfsVolumeSourceApplyConfiguration + +// GlusterfsVolumeSourceMap represents a map of GlusterfsVolumeSourceApplyConfiguration. +type GlusterfsVolumeSourceMap map[string]GlusterfsVolumeSourceApplyConfiguration + +// HTTPGetActionApplyConfiguration represents a declarative configuration of the HTTPGetAction type for use +// with apply. +type HTTPGetActionApplyConfiguration struct { + Path *string `json:"path,omitempty"` + Port *intstr.IntOrString `json:"port,omitempty"` + Host *string `json:"host,omitempty"` + Scheme *corev1.URIScheme `json:"scheme,omitempty"` + HTTPHeaders *[]HTTPHeaderApplyConfiguration `json:"httpHeaders,omitempty"` +} + +// HTTPGetActionApplyConfiguration represents a declarative configuration of the HTTPGetAction type for use +// with apply. +func HTTPGetAction() *HTTPGetActionApplyConfiguration { + return &HTTPGetActionApplyConfiguration{} +} + +// HTTPGetActionList represents a listAlias of HTTPGetActionApplyConfiguration. +type HTTPGetActionList []*HTTPGetActionApplyConfiguration + +// HTTPGetActionMap represents a map of HTTPGetActionApplyConfiguration. +type HTTPGetActionMap map[string]HTTPGetActionApplyConfiguration + +// HTTPHeaderApplyConfiguration represents a declarative configuration of the HTTPHeader type for use +// with apply. +type HTTPHeaderApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// HTTPHeaderApplyConfiguration represents a declarative configuration of the HTTPHeader type for use +// with apply. +func HTTPHeader() *HTTPHeaderApplyConfiguration { + return &HTTPHeaderApplyConfiguration{} +} + +// HTTPHeaderList represents a listAlias of HTTPHeaderApplyConfiguration. +type HTTPHeaderList []*HTTPHeaderApplyConfiguration + +// HTTPHeaderMap represents a map of HTTPHeaderApplyConfiguration. +type HTTPHeaderMap map[string]HTTPHeaderApplyConfiguration + +// HandlerApplyConfiguration represents a declarative configuration of the Handler type for use +// with apply. +type HandlerApplyConfiguration struct { + Exec *ExecActionApplyConfiguration `json:"exec,omitempty"` + HTTPGet *HTTPGetActionApplyConfiguration `json:"httpGet,omitempty"` + TCPSocket *TCPSocketActionApplyConfiguration `json:"tcpSocket,omitempty"` +} + +// HandlerApplyConfiguration represents a declarative configuration of the Handler type for use +// with apply. +func Handler() *HandlerApplyConfiguration { + return &HandlerApplyConfiguration{} +} + +// HandlerList represents a listAlias of HandlerApplyConfiguration. +type HandlerList []*HandlerApplyConfiguration + +// HandlerMap represents a map of HandlerApplyConfiguration. +type HandlerMap map[string]HandlerApplyConfiguration + +// HostAliasApplyConfiguration represents a declarative configuration of the HostAlias type for use +// with apply. +type HostAliasApplyConfiguration struct { + IP *string `json:"ip,omitempty"` + Hostnames *[]string `json:"hostnames,omitempty"` +} + +// HostAliasApplyConfiguration represents a declarative configuration of the HostAlias type for use +// with apply. +func HostAlias() *HostAliasApplyConfiguration { + return &HostAliasApplyConfiguration{} +} + +// HostAliasList represents a listAlias of HostAliasApplyConfiguration. +type HostAliasList []*HostAliasApplyConfiguration + +// HostAliasMap represents a map of HostAliasApplyConfiguration. +type HostAliasMap map[string]HostAliasApplyConfiguration + +// HostPathVolumeSourceApplyConfiguration represents a declarative configuration of the HostPathVolumeSource type for use +// with apply. +type HostPathVolumeSourceApplyConfiguration struct { + Path *string `json:"path,omitempty"` + Type *corev1.HostPathType `json:"type,omitempty"` +} + +// HostPathVolumeSourceApplyConfiguration represents a declarative configuration of the HostPathVolumeSource type for use +// with apply. +func HostPathVolumeSource() *HostPathVolumeSourceApplyConfiguration { + return &HostPathVolumeSourceApplyConfiguration{} +} + +// HostPathVolumeSourceList represents a listAlias of HostPathVolumeSourceApplyConfiguration. +type HostPathVolumeSourceList []*HostPathVolumeSourceApplyConfiguration + +// HostPathVolumeSourceMap represents a map of HostPathVolumeSourceApplyConfiguration. +type HostPathVolumeSourceMap map[string]HostPathVolumeSourceApplyConfiguration + +// ISCSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIPersistentVolumeSource type for use +// with apply. +type ISCSIPersistentVolumeSourceApplyConfiguration struct { + TargetPortal *string `json:"targetPortal,omitempty"` + IQN *string `json:"iqn,omitempty"` + Lun *int32 `json:"lun,omitempty"` + ISCSIInterface *string `json:"iscsiInterface,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Portals *[]string `json:"portals,omitempty"` + DiscoveryCHAPAuth *bool `json:"chapAuthDiscovery,omitempty"` + SessionCHAPAuth *bool `json:"chapAuthSession,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + InitiatorName *string `json:"initiatorName,omitempty"` +} + +// ISCSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIPersistentVolumeSource type for use +// with apply. +func ISCSIPersistentVolumeSource() *ISCSIPersistentVolumeSourceApplyConfiguration { + return &ISCSIPersistentVolumeSourceApplyConfiguration{} +} + +// ISCSIPersistentVolumeSourceList represents a listAlias of ISCSIPersistentVolumeSourceApplyConfiguration. +type ISCSIPersistentVolumeSourceList []*ISCSIPersistentVolumeSourceApplyConfiguration + +// ISCSIPersistentVolumeSourceMap represents a map of ISCSIPersistentVolumeSourceApplyConfiguration. +type ISCSIPersistentVolumeSourceMap map[string]ISCSIPersistentVolumeSourceApplyConfiguration + +// ISCSIVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIVolumeSource type for use +// with apply. +type ISCSIVolumeSourceApplyConfiguration struct { + TargetPortal *string `json:"targetPortal,omitempty"` + IQN *string `json:"iqn,omitempty"` + Lun *int32 `json:"lun,omitempty"` + ISCSIInterface *string `json:"iscsiInterface,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Portals *[]string `json:"portals,omitempty"` + DiscoveryCHAPAuth *bool `json:"chapAuthDiscovery,omitempty"` + SessionCHAPAuth *bool `json:"chapAuthSession,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + InitiatorName *string `json:"initiatorName,omitempty"` +} + +// ISCSIVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIVolumeSource type for use +// with apply. +func ISCSIVolumeSource() *ISCSIVolumeSourceApplyConfiguration { + return &ISCSIVolumeSourceApplyConfiguration{} +} + +// ISCSIVolumeSourceList represents a listAlias of ISCSIVolumeSourceApplyConfiguration. +type ISCSIVolumeSourceList []*ISCSIVolumeSourceApplyConfiguration + +// ISCSIVolumeSourceMap represents a map of ISCSIVolumeSourceApplyConfiguration. +type ISCSIVolumeSourceMap map[string]ISCSIVolumeSourceApplyConfiguration + +// KeyToPathApplyConfiguration represents a declarative configuration of the KeyToPath type for use +// with apply. +type KeyToPathApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Path *string `json:"path,omitempty"` + Mode *int32 `json:"mode,omitempty"` +} + +// KeyToPathApplyConfiguration represents a declarative configuration of the KeyToPath type for use +// with apply. +func KeyToPath() *KeyToPathApplyConfiguration { + return &KeyToPathApplyConfiguration{} +} + +// KeyToPathList represents a listAlias of KeyToPathApplyConfiguration. +type KeyToPathList []*KeyToPathApplyConfiguration + +// KeyToPathMap represents a map of KeyToPathApplyConfiguration. +type KeyToPathMap map[string]KeyToPathApplyConfiguration + +// LifecycleApplyConfiguration represents a declarative configuration of the Lifecycle type for use +// with apply. +type LifecycleApplyConfiguration struct { + PostStart *HandlerApplyConfiguration `json:"postStart,omitempty"` + PreStop *HandlerApplyConfiguration `json:"preStop,omitempty"` +} + +// LifecycleApplyConfiguration represents a declarative configuration of the Lifecycle type for use +// with apply. +func Lifecycle() *LifecycleApplyConfiguration { + return &LifecycleApplyConfiguration{} +} + +// LifecycleList represents a listAlias of LifecycleApplyConfiguration. +type LifecycleList []*LifecycleApplyConfiguration + +// LifecycleMap represents a map of LifecycleApplyConfiguration. +type LifecycleMap map[string]LifecycleApplyConfiguration + +// LimitRangeApplyConfiguration represents a declarative configuration of the LimitRange type for use +// with apply. +type LimitRangeApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *LimitRangeSpecApplyConfiguration `json:"spec,omitempty"` +} + +// LimitRangeApplyConfiguration represents a declarative configuration of the LimitRange type for use +// with apply. +func LimitRange() *LimitRangeApplyConfiguration { + return &LimitRangeApplyConfiguration{} +} + +// LimitRangeList represents a listAlias of LimitRangeApplyConfiguration. +type LimitRangeList []*LimitRangeApplyConfiguration + +// LimitRangeMap represents a map of LimitRangeApplyConfiguration. +type LimitRangeMap map[string]LimitRangeApplyConfiguration + +// LimitRangeItemApplyConfiguration represents a declarative configuration of the LimitRangeItem type for use +// with apply. +type LimitRangeItemApplyConfiguration struct { + Type *corev1.LimitType `json:"type,omitempty"` + Max *corev1.ResourceList `json:"max,omitempty"` + Min *corev1.ResourceList `json:"min,omitempty"` + Default *corev1.ResourceList `json:"default,omitempty"` + DefaultRequest *corev1.ResourceList `json:"defaultRequest,omitempty"` + MaxLimitRequestRatio *corev1.ResourceList `json:"maxLimitRequestRatio,omitempty"` +} + +// LimitRangeItemApplyConfiguration represents a declarative configuration of the LimitRangeItem type for use +// with apply. +func LimitRangeItem() *LimitRangeItemApplyConfiguration { + return &LimitRangeItemApplyConfiguration{} +} + +// LimitRangeItemList represents a listAlias of LimitRangeItemApplyConfiguration. +type LimitRangeItemList []*LimitRangeItemApplyConfiguration + +// LimitRangeItemMap represents a map of LimitRangeItemApplyConfiguration. +type LimitRangeItemMap map[string]LimitRangeItemApplyConfiguration + +// LimitRangeListApplyConfiguration represents a declarative configuration of the LimitRangeList type for use +// with apply. +type LimitRangeListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]LimitRangeApplyConfiguration `json:"items,omitempty"` +} + +// LimitRangeListApplyConfiguration represents a declarative configuration of the LimitRangeList type for use +// with apply. +func LimitRangeList() *LimitRangeListApplyConfiguration { + return &LimitRangeListApplyConfiguration{} +} + +// LimitRangeListList represents a listAlias of LimitRangeListApplyConfiguration. +type LimitRangeListList []*LimitRangeListApplyConfiguration + +// LimitRangeListMap represents a map of LimitRangeListApplyConfiguration. +type LimitRangeListMap map[string]LimitRangeListApplyConfiguration + +// LimitRangeSpecApplyConfiguration represents a declarative configuration of the LimitRangeSpec type for use +// with apply. +type LimitRangeSpecApplyConfiguration struct { + Limits *[]LimitRangeItemApplyConfiguration `json:"limits,omitempty"` +} + +// LimitRangeSpecApplyConfiguration represents a declarative configuration of the LimitRangeSpec type for use +// with apply. +func LimitRangeSpec() *LimitRangeSpecApplyConfiguration { + return &LimitRangeSpecApplyConfiguration{} +} + +// LimitRangeSpecList represents a listAlias of LimitRangeSpecApplyConfiguration. +type LimitRangeSpecList []*LimitRangeSpecApplyConfiguration + +// LimitRangeSpecMap represents a map of LimitRangeSpecApplyConfiguration. +type LimitRangeSpecMap map[string]LimitRangeSpecApplyConfiguration + +// LoadBalancerIngressApplyConfiguration represents a declarative configuration of the LoadBalancerIngress type for use +// with apply. +type LoadBalancerIngressApplyConfiguration struct { + IP *string `json:"ip,omitempty"` + Hostname *string `json:"hostname,omitempty"` +} + +// LoadBalancerIngressApplyConfiguration represents a declarative configuration of the LoadBalancerIngress type for use +// with apply. +func LoadBalancerIngress() *LoadBalancerIngressApplyConfiguration { + return &LoadBalancerIngressApplyConfiguration{} +} + +// LoadBalancerIngressList represents a listAlias of LoadBalancerIngressApplyConfiguration. +type LoadBalancerIngressList []*LoadBalancerIngressApplyConfiguration + +// LoadBalancerIngressMap represents a map of LoadBalancerIngressApplyConfiguration. +type LoadBalancerIngressMap map[string]LoadBalancerIngressApplyConfiguration + +// LoadBalancerStatusApplyConfiguration represents a declarative configuration of the LoadBalancerStatus type for use +// with apply. +type LoadBalancerStatusApplyConfiguration struct { + Ingress *[]LoadBalancerIngressApplyConfiguration `json:"ingress,omitempty"` +} + +// LoadBalancerStatusApplyConfiguration represents a declarative configuration of the LoadBalancerStatus type for use +// with apply. +func LoadBalancerStatus() *LoadBalancerStatusApplyConfiguration { + return &LoadBalancerStatusApplyConfiguration{} +} + +// LoadBalancerStatusList represents a listAlias of LoadBalancerStatusApplyConfiguration. +type LoadBalancerStatusList []*LoadBalancerStatusApplyConfiguration + +// LoadBalancerStatusMap represents a map of LoadBalancerStatusApplyConfiguration. +type LoadBalancerStatusMap map[string]LoadBalancerStatusApplyConfiguration + +// LocalObjectReferenceApplyConfiguration represents a declarative configuration of the LocalObjectReference type for use +// with apply. +type LocalObjectReferenceApplyConfiguration struct { + Name *string `json:"name,omitempty"` +} + +// LocalObjectReferenceApplyConfiguration represents a declarative configuration of the LocalObjectReference type for use +// with apply. +func LocalObjectReference() *LocalObjectReferenceApplyConfiguration { + return &LocalObjectReferenceApplyConfiguration{} +} + +// LocalObjectReferenceList represents a listAlias of LocalObjectReferenceApplyConfiguration. +type LocalObjectReferenceList []*LocalObjectReferenceApplyConfiguration + +// LocalObjectReferenceMap represents a map of LocalObjectReferenceApplyConfiguration. +type LocalObjectReferenceMap map[string]LocalObjectReferenceApplyConfiguration + +// LocalVolumeSourceApplyConfiguration represents a declarative configuration of the LocalVolumeSource type for use +// with apply. +type LocalVolumeSourceApplyConfiguration struct { + Path *string `json:"path,omitempty"` + FSType *string `json:"fsType,omitempty"` +} + +// LocalVolumeSourceApplyConfiguration represents a declarative configuration of the LocalVolumeSource type for use +// with apply. +func LocalVolumeSource() *LocalVolumeSourceApplyConfiguration { + return &LocalVolumeSourceApplyConfiguration{} +} + +// LocalVolumeSourceList represents a listAlias of LocalVolumeSourceApplyConfiguration. +type LocalVolumeSourceList []*LocalVolumeSourceApplyConfiguration + +// LocalVolumeSourceMap represents a map of LocalVolumeSourceApplyConfiguration. +type LocalVolumeSourceMap map[string]LocalVolumeSourceApplyConfiguration + +// NFSVolumeSourceApplyConfiguration represents a declarative configuration of the NFSVolumeSource type for use +// with apply. +type NFSVolumeSourceApplyConfiguration struct { + Server *string `json:"server,omitempty"` + Path *string `json:"path,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// NFSVolumeSourceApplyConfiguration represents a declarative configuration of the NFSVolumeSource type for use +// with apply. +func NFSVolumeSource() *NFSVolumeSourceApplyConfiguration { + return &NFSVolumeSourceApplyConfiguration{} +} + +// NFSVolumeSourceList represents a listAlias of NFSVolumeSourceApplyConfiguration. +type NFSVolumeSourceList []*NFSVolumeSourceApplyConfiguration + +// NFSVolumeSourceMap represents a map of NFSVolumeSourceApplyConfiguration. +type NFSVolumeSourceMap map[string]NFSVolumeSourceApplyConfiguration + +// NamespaceApplyConfiguration represents a declarative configuration of the Namespace type for use +// with apply. +type NamespaceApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *NamespaceSpecApplyConfiguration `json:"spec,omitempty"` + Status *NamespaceStatusApplyConfiguration `json:"status,omitempty"` +} + +// NamespaceApplyConfiguration represents a declarative configuration of the Namespace type for use +// with apply. +func Namespace() *NamespaceApplyConfiguration { + return &NamespaceApplyConfiguration{} +} + +// NamespaceList represents a listAlias of NamespaceApplyConfiguration. +type NamespaceList []*NamespaceApplyConfiguration + +// NamespaceMap represents a map of NamespaceApplyConfiguration. +type NamespaceMap map[string]NamespaceApplyConfiguration + +// NamespaceConditionApplyConfiguration represents a declarative configuration of the NamespaceCondition type for use +// with apply. +type NamespaceConditionApplyConfiguration struct { + Type *corev1.NamespaceConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NamespaceConditionApplyConfiguration represents a declarative configuration of the NamespaceCondition type for use +// with apply. +func NamespaceCondition() *NamespaceConditionApplyConfiguration { + return &NamespaceConditionApplyConfiguration{} +} + +// NamespaceConditionList represents a listAlias of NamespaceConditionApplyConfiguration. +type NamespaceConditionList []*NamespaceConditionApplyConfiguration + +// NamespaceConditionMap represents a map of NamespaceConditionApplyConfiguration. +type NamespaceConditionMap map[string]NamespaceConditionApplyConfiguration + +// NamespaceListApplyConfiguration represents a declarative configuration of the NamespaceList type for use +// with apply. +type NamespaceListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]NamespaceApplyConfiguration `json:"items,omitempty"` +} + +// NamespaceListApplyConfiguration represents a declarative configuration of the NamespaceList type for use +// with apply. +func NamespaceList() *NamespaceListApplyConfiguration { + return &NamespaceListApplyConfiguration{} +} + +// NamespaceListList represents a listAlias of NamespaceListApplyConfiguration. +type NamespaceListList []*NamespaceListApplyConfiguration + +// NamespaceListMap represents a map of NamespaceListApplyConfiguration. +type NamespaceListMap map[string]NamespaceListApplyConfiguration + +// NamespaceSpecApplyConfiguration represents a declarative configuration of the NamespaceSpec type for use +// with apply. +type NamespaceSpecApplyConfiguration struct { + Finalizers *[]corev1.FinalizerName `json:"finalizers,omitempty"` +} + +// NamespaceSpecApplyConfiguration represents a declarative configuration of the NamespaceSpec type for use +// with apply. +func NamespaceSpec() *NamespaceSpecApplyConfiguration { + return &NamespaceSpecApplyConfiguration{} +} + +// NamespaceSpecList represents a listAlias of NamespaceSpecApplyConfiguration. +type NamespaceSpecList []*NamespaceSpecApplyConfiguration + +// NamespaceSpecMap represents a map of NamespaceSpecApplyConfiguration. +type NamespaceSpecMap map[string]NamespaceSpecApplyConfiguration + +// NamespaceStatusApplyConfiguration represents a declarative configuration of the NamespaceStatus type for use +// with apply. +type NamespaceStatusApplyConfiguration struct { + Phase *corev1.NamespacePhase `json:"phase,omitempty"` + Conditions *[]NamespaceConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// NamespaceStatusApplyConfiguration represents a declarative configuration of the NamespaceStatus type for use +// with apply. +func NamespaceStatus() *NamespaceStatusApplyConfiguration { + return &NamespaceStatusApplyConfiguration{} +} + +// NamespaceStatusList represents a listAlias of NamespaceStatusApplyConfiguration. +type NamespaceStatusList []*NamespaceStatusApplyConfiguration + +// NamespaceStatusMap represents a map of NamespaceStatusApplyConfiguration. +type NamespaceStatusMap map[string]NamespaceStatusApplyConfiguration + +// NodeApplyConfiguration represents a declarative configuration of the Node type for use +// with apply. +type NodeApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *NodeSpecApplyConfiguration `json:"spec,omitempty"` + Status *NodeStatusApplyConfiguration `json:"status,omitempty"` +} + +// NodeApplyConfiguration represents a declarative configuration of the Node type for use +// with apply. +func Node() *NodeApplyConfiguration { + return &NodeApplyConfiguration{} +} + +// NodeList represents a listAlias of NodeApplyConfiguration. +type NodeList []*NodeApplyConfiguration + +// NodeMap represents a map of NodeApplyConfiguration. +type NodeMap map[string]NodeApplyConfiguration + +// NodeAddressApplyConfiguration represents a declarative configuration of the NodeAddress type for use +// with apply. +type NodeAddressApplyConfiguration struct { + Type *corev1.NodeAddressType `json:"type,omitempty"` + Address *string `json:"address,omitempty"` +} + +// NodeAddressApplyConfiguration represents a declarative configuration of the NodeAddress type for use +// with apply. +func NodeAddress() *NodeAddressApplyConfiguration { + return &NodeAddressApplyConfiguration{} +} + +// NodeAddressList represents a listAlias of NodeAddressApplyConfiguration. +type NodeAddressList []*NodeAddressApplyConfiguration + +// NodeAddressMap represents a map of NodeAddressApplyConfiguration. +type NodeAddressMap map[string]NodeAddressApplyConfiguration + +// NodeAffinityApplyConfiguration represents a declarative configuration of the NodeAffinity type for use +// with apply. +type NodeAffinityApplyConfiguration struct { + RequiredDuringSchedulingIgnoredDuringExecution *NodeSelectorApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + PreferredDuringSchedulingIgnoredDuringExecution *[]PreferredSchedulingTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// NodeAffinityApplyConfiguration represents a declarative configuration of the NodeAffinity type for use +// with apply. +func NodeAffinity() *NodeAffinityApplyConfiguration { + return &NodeAffinityApplyConfiguration{} +} + +// NodeAffinityList represents a listAlias of NodeAffinityApplyConfiguration. +type NodeAffinityList []*NodeAffinityApplyConfiguration + +// NodeAffinityMap represents a map of NodeAffinityApplyConfiguration. +type NodeAffinityMap map[string]NodeAffinityApplyConfiguration + +// NodeConditionApplyConfiguration represents a declarative configuration of the NodeCondition type for use +// with apply. +type NodeConditionApplyConfiguration struct { + Type *corev1.NodeConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastHeartbeatTime *apismetav1.Time `json:"lastHeartbeatTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NodeConditionApplyConfiguration represents a declarative configuration of the NodeCondition type for use +// with apply. +func NodeCondition() *NodeConditionApplyConfiguration { + return &NodeConditionApplyConfiguration{} +} + +// NodeConditionList represents a listAlias of NodeConditionApplyConfiguration. +type NodeConditionList []*NodeConditionApplyConfiguration + +// NodeConditionMap represents a map of NodeConditionApplyConfiguration. +type NodeConditionMap map[string]NodeConditionApplyConfiguration + +// NodeConfigSourceApplyConfiguration represents a declarative configuration of the NodeConfigSource type for use +// with apply. +type NodeConfigSourceApplyConfiguration struct { + ConfigMap *ConfigMapNodeConfigSourceApplyConfiguration `json:"configMap,omitempty"` +} + +// NodeConfigSourceApplyConfiguration represents a declarative configuration of the NodeConfigSource type for use +// with apply. +func NodeConfigSource() *NodeConfigSourceApplyConfiguration { + return &NodeConfigSourceApplyConfiguration{} +} + +// NodeConfigSourceList represents a listAlias of NodeConfigSourceApplyConfiguration. +type NodeConfigSourceList []*NodeConfigSourceApplyConfiguration + +// NodeConfigSourceMap represents a map of NodeConfigSourceApplyConfiguration. +type NodeConfigSourceMap map[string]NodeConfigSourceApplyConfiguration + +// NodeConfigStatusApplyConfiguration represents a declarative configuration of the NodeConfigStatus type for use +// with apply. +type NodeConfigStatusApplyConfiguration struct { + Assigned *NodeConfigSourceApplyConfiguration `json:"assigned,omitempty"` + Active *NodeConfigSourceApplyConfiguration `json:"active,omitempty"` + LastKnownGood *NodeConfigSourceApplyConfiguration `json:"lastKnownGood,omitempty"` + Error *string `json:"error,omitempty"` +} + +// NodeConfigStatusApplyConfiguration represents a declarative configuration of the NodeConfigStatus type for use +// with apply. +func NodeConfigStatus() *NodeConfigStatusApplyConfiguration { + return &NodeConfigStatusApplyConfiguration{} +} + +// NodeConfigStatusList represents a listAlias of NodeConfigStatusApplyConfiguration. +type NodeConfigStatusList []*NodeConfigStatusApplyConfiguration + +// NodeConfigStatusMap represents a map of NodeConfigStatusApplyConfiguration. +type NodeConfigStatusMap map[string]NodeConfigStatusApplyConfiguration + +// NodeDaemonEndpointsApplyConfiguration represents a declarative configuration of the NodeDaemonEndpoints type for use +// with apply. +type NodeDaemonEndpointsApplyConfiguration struct { + KubeletEndpoint *DaemonEndpointApplyConfiguration `json:"kubeletEndpoint,omitempty"` +} + +// NodeDaemonEndpointsApplyConfiguration represents a declarative configuration of the NodeDaemonEndpoints type for use +// with apply. +func NodeDaemonEndpoints() *NodeDaemonEndpointsApplyConfiguration { + return &NodeDaemonEndpointsApplyConfiguration{} +} + +// NodeDaemonEndpointsList represents a listAlias of NodeDaemonEndpointsApplyConfiguration. +type NodeDaemonEndpointsList []*NodeDaemonEndpointsApplyConfiguration + +// NodeDaemonEndpointsMap represents a map of NodeDaemonEndpointsApplyConfiguration. +type NodeDaemonEndpointsMap map[string]NodeDaemonEndpointsApplyConfiguration + +// NodeListApplyConfiguration represents a declarative configuration of the NodeList type for use +// with apply. +type NodeListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]NodeApplyConfiguration `json:"items,omitempty"` +} + +// NodeListApplyConfiguration represents a declarative configuration of the NodeList type for use +// with apply. +func NodeList() *NodeListApplyConfiguration { + return &NodeListApplyConfiguration{} +} + +// NodeListList represents a listAlias of NodeListApplyConfiguration. +type NodeListList []*NodeListApplyConfiguration + +// NodeListMap represents a map of NodeListApplyConfiguration. +type NodeListMap map[string]NodeListApplyConfiguration + +// NodeProxyOptionsApplyConfiguration represents a declarative configuration of the NodeProxyOptions type for use +// with apply. +type NodeProxyOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Path *string `json:"path,omitempty"` +} + +// NodeProxyOptionsApplyConfiguration represents a declarative configuration of the NodeProxyOptions type for use +// with apply. +func NodeProxyOptions() *NodeProxyOptionsApplyConfiguration { + return &NodeProxyOptionsApplyConfiguration{} +} + +// NodeProxyOptionsList represents a listAlias of NodeProxyOptionsApplyConfiguration. +type NodeProxyOptionsList []*NodeProxyOptionsApplyConfiguration + +// NodeProxyOptionsMap represents a map of NodeProxyOptionsApplyConfiguration. +type NodeProxyOptionsMap map[string]NodeProxyOptionsApplyConfiguration + +// NodeSelectorApplyConfiguration represents a declarative configuration of the NodeSelector type for use +// with apply. +type NodeSelectorApplyConfiguration struct { + NodeSelectorTerms *[]NodeSelectorTermApplyConfiguration `json:"nodeSelectorTerms,omitempty"` +} + +// NodeSelectorApplyConfiguration represents a declarative configuration of the NodeSelector type for use +// with apply. +func NodeSelector() *NodeSelectorApplyConfiguration { + return &NodeSelectorApplyConfiguration{} +} + +// NodeSelectorList represents a listAlias of NodeSelectorApplyConfiguration. +type NodeSelectorList []*NodeSelectorApplyConfiguration + +// NodeSelectorMap represents a map of NodeSelectorApplyConfiguration. +type NodeSelectorMap map[string]NodeSelectorApplyConfiguration + +// NodeSelectorRequirementApplyConfiguration represents a declarative configuration of the NodeSelectorRequirement type for use +// with apply. +type NodeSelectorRequirementApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Operator *corev1.NodeSelectorOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// NodeSelectorRequirementApplyConfiguration represents a declarative configuration of the NodeSelectorRequirement type for use +// with apply. +func NodeSelectorRequirement() *NodeSelectorRequirementApplyConfiguration { + return &NodeSelectorRequirementApplyConfiguration{} +} + +// NodeSelectorRequirementList represents a listAlias of NodeSelectorRequirementApplyConfiguration. +type NodeSelectorRequirementList []*NodeSelectorRequirementApplyConfiguration + +// NodeSelectorRequirementMap represents a map of NodeSelectorRequirementApplyConfiguration. +type NodeSelectorRequirementMap map[string]NodeSelectorRequirementApplyConfiguration + +// NodeSelectorTermApplyConfiguration represents a declarative configuration of the NodeSelectorTerm type for use +// with apply. +type NodeSelectorTermApplyConfiguration struct { + MatchExpressions *[]NodeSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` + MatchFields *[]NodeSelectorRequirementApplyConfiguration `json:"matchFields,omitempty"` +} + +// NodeSelectorTermApplyConfiguration represents a declarative configuration of the NodeSelectorTerm type for use +// with apply. +func NodeSelectorTerm() *NodeSelectorTermApplyConfiguration { + return &NodeSelectorTermApplyConfiguration{} +} + +// NodeSelectorTermList represents a listAlias of NodeSelectorTermApplyConfiguration. +type NodeSelectorTermList []*NodeSelectorTermApplyConfiguration + +// NodeSelectorTermMap represents a map of NodeSelectorTermApplyConfiguration. +type NodeSelectorTermMap map[string]NodeSelectorTermApplyConfiguration + +// NodeSpecApplyConfiguration represents a declarative configuration of the NodeSpec type for use +// with apply. +type NodeSpecApplyConfiguration struct { + PodCIDR *string `json:"podCIDR,omitempty"` + PodCIDRs *[]string `json:"podCIDRs,omitempty"` + ProviderID *string `json:"providerID,omitempty"` + Unschedulable *bool `json:"unschedulable,omitempty"` + Taints *[]TaintApplyConfiguration `json:"taints,omitempty"` + ConfigSource *NodeConfigSourceApplyConfiguration `json:"configSource,omitempty"` + DoNotUseExternalID *string `json:"externalID,omitempty"` +} + +// NodeSpecApplyConfiguration represents a declarative configuration of the NodeSpec type for use +// with apply. +func NodeSpec() *NodeSpecApplyConfiguration { + return &NodeSpecApplyConfiguration{} +} + +// NodeSpecList represents a listAlias of NodeSpecApplyConfiguration. +type NodeSpecList []*NodeSpecApplyConfiguration + +// NodeSpecMap represents a map of NodeSpecApplyConfiguration. +type NodeSpecMap map[string]NodeSpecApplyConfiguration + +// NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use +// with apply. +type NodeStatusApplyConfiguration struct { + Capacity *corev1.ResourceList `json:"capacity,omitempty"` + Allocatable *corev1.ResourceList `json:"allocatable,omitempty"` + Phase *corev1.NodePhase `json:"phase,omitempty"` + Conditions *[]NodeConditionApplyConfiguration `json:"conditions,omitempty"` + Addresses *[]NodeAddressApplyConfiguration `json:"addresses,omitempty"` + DaemonEndpoints *NodeDaemonEndpointsApplyConfiguration `json:"daemonEndpoints,omitempty"` + NodeInfo *NodeSystemInfoApplyConfiguration `json:"nodeInfo,omitempty"` + Images *[]ContainerImageApplyConfiguration `json:"images,omitempty"` + VolumesInUse *[]corev1.UniqueVolumeName `json:"volumesInUse,omitempty"` + VolumesAttached *[]AttachedVolumeApplyConfiguration `json:"volumesAttached,omitempty"` + Config *NodeConfigStatusApplyConfiguration `json:"config,omitempty"` +} + +// NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use +// with apply. +func NodeStatus() *NodeStatusApplyConfiguration { + return &NodeStatusApplyConfiguration{} +} + +// NodeStatusList represents a listAlias of NodeStatusApplyConfiguration. +type NodeStatusList []*NodeStatusApplyConfiguration + +// NodeStatusMap represents a map of NodeStatusApplyConfiguration. +type NodeStatusMap map[string]NodeStatusApplyConfiguration + +// NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use +// with apply. +type NodeSystemInfoApplyConfiguration struct { + MachineID *string `json:"machineID,omitempty"` + SystemUUID *string `json:"systemUUID,omitempty"` + BootID *string `json:"bootID,omitempty"` + KernelVersion *string `json:"kernelVersion,omitempty"` + OSImage *string `json:"osImage,omitempty"` + ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"` + KubeletVersion *string `json:"kubeletVersion,omitempty"` + KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"` + OperatingSystem *string `json:"operatingSystem,omitempty"` + Architecture *string `json:"architecture,omitempty"` +} + +// NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use +// with apply. +func NodeSystemInfo() *NodeSystemInfoApplyConfiguration { + return &NodeSystemInfoApplyConfiguration{} +} + +// NodeSystemInfoList represents a listAlias of NodeSystemInfoApplyConfiguration. +type NodeSystemInfoList []*NodeSystemInfoApplyConfiguration + +// NodeSystemInfoMap represents a map of NodeSystemInfoApplyConfiguration. +type NodeSystemInfoMap map[string]NodeSystemInfoApplyConfiguration + +// ObjectFieldSelectorApplyConfiguration represents a declarative configuration of the ObjectFieldSelector type for use +// with apply. +type ObjectFieldSelectorApplyConfiguration struct { + APIVersion *string `json:"apiVersion,omitempty"` + FieldPath *string `json:"fieldPath,omitempty"` +} + +// ObjectFieldSelectorApplyConfiguration represents a declarative configuration of the ObjectFieldSelector type for use +// with apply. +func ObjectFieldSelector() *ObjectFieldSelectorApplyConfiguration { + return &ObjectFieldSelectorApplyConfiguration{} +} + +// ObjectFieldSelectorList represents a listAlias of ObjectFieldSelectorApplyConfiguration. +type ObjectFieldSelectorList []*ObjectFieldSelectorApplyConfiguration + +// ObjectFieldSelectorMap represents a map of ObjectFieldSelectorApplyConfiguration. +type ObjectFieldSelectorMap map[string]ObjectFieldSelectorApplyConfiguration + +// ObjectReferenceApplyConfiguration represents a declarative configuration of the ObjectReference type for use +// with apply. +type ObjectReferenceApplyConfiguration struct { + Kind *string `json:"kind,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Name *string `json:"name,omitempty"` + UID *types.UID `json:"uid,omitempty"` + APIVersion *string `json:"apiVersion,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + FieldPath *string `json:"fieldPath,omitempty"` +} + +// ObjectReferenceApplyConfiguration represents a declarative configuration of the ObjectReference type for use +// with apply. +func ObjectReference() *ObjectReferenceApplyConfiguration { + return &ObjectReferenceApplyConfiguration{} +} + +// ObjectReferenceList represents a listAlias of ObjectReferenceApplyConfiguration. +type ObjectReferenceList []*ObjectReferenceApplyConfiguration + +// ObjectReferenceMap represents a map of ObjectReferenceApplyConfiguration. +type ObjectReferenceMap map[string]ObjectReferenceApplyConfiguration + +// PersistentVolumeApplyConfiguration represents a declarative configuration of the PersistentVolume type for use +// with apply. +type PersistentVolumeApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PersistentVolumeSpecApplyConfiguration `json:"spec,omitempty"` + Status *PersistentVolumeStatusApplyConfiguration `json:"status,omitempty"` +} + +// PersistentVolumeApplyConfiguration represents a declarative configuration of the PersistentVolume type for use +// with apply. +func PersistentVolume() *PersistentVolumeApplyConfiguration { + return &PersistentVolumeApplyConfiguration{} +} + +// PersistentVolumeList represents a listAlias of PersistentVolumeApplyConfiguration. +type PersistentVolumeList []*PersistentVolumeApplyConfiguration + +// PersistentVolumeMap represents a map of PersistentVolumeApplyConfiguration. +type PersistentVolumeMap map[string]PersistentVolumeApplyConfiguration + +// PersistentVolumeClaimApplyConfiguration represents a declarative configuration of the PersistentVolumeClaim type for use +// with apply. +type PersistentVolumeClaimApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PersistentVolumeClaimSpecApplyConfiguration `json:"spec,omitempty"` + Status *PersistentVolumeClaimStatusApplyConfiguration `json:"status,omitempty"` +} + +// PersistentVolumeClaimApplyConfiguration represents a declarative configuration of the PersistentVolumeClaim type for use +// with apply. +func PersistentVolumeClaim() *PersistentVolumeClaimApplyConfiguration { + return &PersistentVolumeClaimApplyConfiguration{} +} + +// PersistentVolumeClaimList represents a listAlias of PersistentVolumeClaimApplyConfiguration. +type PersistentVolumeClaimList []*PersistentVolumeClaimApplyConfiguration + +// PersistentVolumeClaimMap represents a map of PersistentVolumeClaimApplyConfiguration. +type PersistentVolumeClaimMap map[string]PersistentVolumeClaimApplyConfiguration + +// PersistentVolumeClaimConditionApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimCondition type for use +// with apply. +type PersistentVolumeClaimConditionApplyConfiguration struct { + Type *corev1.PersistentVolumeClaimConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastProbeTime *apismetav1.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// PersistentVolumeClaimConditionApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimCondition type for use +// with apply. +func PersistentVolumeClaimCondition() *PersistentVolumeClaimConditionApplyConfiguration { + return &PersistentVolumeClaimConditionApplyConfiguration{} +} + +// PersistentVolumeClaimConditionList represents a listAlias of PersistentVolumeClaimConditionApplyConfiguration. +type PersistentVolumeClaimConditionList []*PersistentVolumeClaimConditionApplyConfiguration + +// PersistentVolumeClaimConditionMap represents a map of PersistentVolumeClaimConditionApplyConfiguration. +type PersistentVolumeClaimConditionMap map[string]PersistentVolumeClaimConditionApplyConfiguration + +// PersistentVolumeClaimListApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimList type for use +// with apply. +type PersistentVolumeClaimListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PersistentVolumeClaimApplyConfiguration `json:"items,omitempty"` +} + +// PersistentVolumeClaimListApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimList type for use +// with apply. +func PersistentVolumeClaimList() *PersistentVolumeClaimListApplyConfiguration { + return &PersistentVolumeClaimListApplyConfiguration{} +} + +// PersistentVolumeClaimListList represents a listAlias of PersistentVolumeClaimListApplyConfiguration. +type PersistentVolumeClaimListList []*PersistentVolumeClaimListApplyConfiguration + +// PersistentVolumeClaimListMap represents a map of PersistentVolumeClaimListApplyConfiguration. +type PersistentVolumeClaimListMap map[string]PersistentVolumeClaimListApplyConfiguration + +// PersistentVolumeClaimSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimSpec type for use +// with apply. +type PersistentVolumeClaimSpecApplyConfiguration struct { + AccessModes *[]corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"` + Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + StorageClassName *string `json:"storageClassName,omitempty"` + VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` + DataSource *TypedLocalObjectReferenceApplyConfiguration `json:"dataSource,omitempty"` +} + +// PersistentVolumeClaimSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimSpec type for use +// with apply. +func PersistentVolumeClaimSpec() *PersistentVolumeClaimSpecApplyConfiguration { + return &PersistentVolumeClaimSpecApplyConfiguration{} +} + +// PersistentVolumeClaimSpecList represents a listAlias of PersistentVolumeClaimSpecApplyConfiguration. +type PersistentVolumeClaimSpecList []*PersistentVolumeClaimSpecApplyConfiguration + +// PersistentVolumeClaimSpecMap represents a map of PersistentVolumeClaimSpecApplyConfiguration. +type PersistentVolumeClaimSpecMap map[string]PersistentVolumeClaimSpecApplyConfiguration + +// PersistentVolumeClaimStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimStatus type for use +// with apply. +type PersistentVolumeClaimStatusApplyConfiguration struct { + Phase *corev1.PersistentVolumeClaimPhase `json:"phase,omitempty"` + AccessModes *[]corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + Capacity *corev1.ResourceList `json:"capacity,omitempty"` + Conditions *[]PersistentVolumeClaimConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// PersistentVolumeClaimStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimStatus type for use +// with apply. +func PersistentVolumeClaimStatus() *PersistentVolumeClaimStatusApplyConfiguration { + return &PersistentVolumeClaimStatusApplyConfiguration{} +} + +// PersistentVolumeClaimStatusList represents a listAlias of PersistentVolumeClaimStatusApplyConfiguration. +type PersistentVolumeClaimStatusList []*PersistentVolumeClaimStatusApplyConfiguration + +// PersistentVolumeClaimStatusMap represents a map of PersistentVolumeClaimStatusApplyConfiguration. +type PersistentVolumeClaimStatusMap map[string]PersistentVolumeClaimStatusApplyConfiguration + +// PersistentVolumeClaimVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimVolumeSource type for use +// with apply. +type PersistentVolumeClaimVolumeSourceApplyConfiguration struct { + ClaimName *string `json:"claimName,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// PersistentVolumeClaimVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimVolumeSource type for use +// with apply. +func PersistentVolumeClaimVolumeSource() *PersistentVolumeClaimVolumeSourceApplyConfiguration { + return &PersistentVolumeClaimVolumeSourceApplyConfiguration{} +} + +// PersistentVolumeClaimVolumeSourceList represents a listAlias of PersistentVolumeClaimVolumeSourceApplyConfiguration. +type PersistentVolumeClaimVolumeSourceList []*PersistentVolumeClaimVolumeSourceApplyConfiguration + +// PersistentVolumeClaimVolumeSourceMap represents a map of PersistentVolumeClaimVolumeSourceApplyConfiguration. +type PersistentVolumeClaimVolumeSourceMap map[string]PersistentVolumeClaimVolumeSourceApplyConfiguration + +// PersistentVolumeListApplyConfiguration represents a declarative configuration of the PersistentVolumeList type for use +// with apply. +type PersistentVolumeListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PersistentVolumeApplyConfiguration `json:"items,omitempty"` +} + +// PersistentVolumeListApplyConfiguration represents a declarative configuration of the PersistentVolumeList type for use +// with apply. +func PersistentVolumeList() *PersistentVolumeListApplyConfiguration { + return &PersistentVolumeListApplyConfiguration{} +} + +// PersistentVolumeListList represents a listAlias of PersistentVolumeListApplyConfiguration. +type PersistentVolumeListList []*PersistentVolumeListApplyConfiguration + +// PersistentVolumeListMap represents a map of PersistentVolumeListApplyConfiguration. +type PersistentVolumeListMap map[string]PersistentVolumeListApplyConfiguration + +// PersistentVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeSource type for use +// with apply. +type PersistentVolumeSourceApplyConfiguration struct { + GCEPersistentDisk *GCEPersistentDiskVolumeSourceApplyConfiguration `json:"gcePersistentDisk,omitempty"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceApplyConfiguration `json:"awsElasticBlockStore,omitempty"` + HostPath *HostPathVolumeSourceApplyConfiguration `json:"hostPath,omitempty"` + Glusterfs *GlusterfsPersistentVolumeSourceApplyConfiguration `json:"glusterfs,omitempty"` + NFS *NFSVolumeSourceApplyConfiguration `json:"nfs,omitempty"` + RBD *RBDPersistentVolumeSourceApplyConfiguration `json:"rbd,omitempty"` + ISCSI *ISCSIPersistentVolumeSourceApplyConfiguration `json:"iscsi,omitempty"` + Cinder *CinderPersistentVolumeSourceApplyConfiguration `json:"cinder,omitempty"` + CephFS *CephFSPersistentVolumeSourceApplyConfiguration `json:"cephfs,omitempty"` + FC *FCVolumeSourceApplyConfiguration `json:"fc,omitempty"` + Flocker *FlockerVolumeSourceApplyConfiguration `json:"flocker,omitempty"` + FlexVolume *FlexPersistentVolumeSourceApplyConfiguration `json:"flexVolume,omitempty"` + AzureFile *AzureFilePersistentVolumeSourceApplyConfiguration `json:"azureFile,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSourceApplyConfiguration `json:"vsphereVolume,omitempty"` + Quobyte *QuobyteVolumeSourceApplyConfiguration `json:"quobyte,omitempty"` + AzureDisk *AzureDiskVolumeSourceApplyConfiguration `json:"azureDisk,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceApplyConfiguration `json:"photonPersistentDisk,omitempty"` + PortworxVolume *PortworxVolumeSourceApplyConfiguration `json:"portworxVolume,omitempty"` + ScaleIO *ScaleIOPersistentVolumeSourceApplyConfiguration `json:"scaleIO,omitempty"` + Local *LocalVolumeSourceApplyConfiguration `json:"local,omitempty"` + StorageOS *StorageOSPersistentVolumeSourceApplyConfiguration `json:"storageos,omitempty"` + CSI *CSIPersistentVolumeSourceApplyConfiguration `json:"csi,omitempty"` +} + +// PersistentVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeSource type for use +// with apply. +func PersistentVolumeSource() *PersistentVolumeSourceApplyConfiguration { + return &PersistentVolumeSourceApplyConfiguration{} +} + +// PersistentVolumeSourceList represents a listAlias of PersistentVolumeSourceApplyConfiguration. +type PersistentVolumeSourceList []*PersistentVolumeSourceApplyConfiguration + +// PersistentVolumeSourceMap represents a map of PersistentVolumeSourceApplyConfiguration. +type PersistentVolumeSourceMap map[string]PersistentVolumeSourceApplyConfiguration + +// PersistentVolumeSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeSpec type for use +// with apply. +type PersistentVolumeSpecApplyConfiguration struct { + Capacity *corev1.ResourceList `json:"capacity,omitempty"` + PersistentVolumeSourceApplyConfiguration `json:",inline"` + AccessModes *[]corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + ClaimRef *ObjectReferenceApplyConfiguration `json:"claimRef,omitempty"` + PersistentVolumeReclaimPolicy *corev1.PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"` + StorageClassName *string `json:"storageClassName,omitempty"` + MountOptions *[]string `json:"mountOptions,omitempty"` + VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` + NodeAffinity *VolumeNodeAffinityApplyConfiguration `json:"nodeAffinity,omitempty"` +} + +// PersistentVolumeSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeSpec type for use +// with apply. +func PersistentVolumeSpec() *PersistentVolumeSpecApplyConfiguration { + return &PersistentVolumeSpecApplyConfiguration{} +} + +// PersistentVolumeSpecList represents a listAlias of PersistentVolumeSpecApplyConfiguration. +type PersistentVolumeSpecList []*PersistentVolumeSpecApplyConfiguration + +// PersistentVolumeSpecMap represents a map of PersistentVolumeSpecApplyConfiguration. +type PersistentVolumeSpecMap map[string]PersistentVolumeSpecApplyConfiguration + +// PersistentVolumeStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeStatus type for use +// with apply. +type PersistentVolumeStatusApplyConfiguration struct { + Phase *corev1.PersistentVolumePhase `json:"phase,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// PersistentVolumeStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeStatus type for use +// with apply. +func PersistentVolumeStatus() *PersistentVolumeStatusApplyConfiguration { + return &PersistentVolumeStatusApplyConfiguration{} +} + +// PersistentVolumeStatusList represents a listAlias of PersistentVolumeStatusApplyConfiguration. +type PersistentVolumeStatusList []*PersistentVolumeStatusApplyConfiguration + +// PersistentVolumeStatusMap represents a map of PersistentVolumeStatusApplyConfiguration. +type PersistentVolumeStatusMap map[string]PersistentVolumeStatusApplyConfiguration + +// PhotonPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the PhotonPersistentDiskVolumeSource type for use +// with apply. +type PhotonPersistentDiskVolumeSourceApplyConfiguration struct { + PdID *string `json:"pdID,omitempty"` + FSType *string `json:"fsType,omitempty"` +} + +// PhotonPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the PhotonPersistentDiskVolumeSource type for use +// with apply. +func PhotonPersistentDiskVolumeSource() *PhotonPersistentDiskVolumeSourceApplyConfiguration { + return &PhotonPersistentDiskVolumeSourceApplyConfiguration{} +} + +// PhotonPersistentDiskVolumeSourceList represents a listAlias of PhotonPersistentDiskVolumeSourceApplyConfiguration. +type PhotonPersistentDiskVolumeSourceList []*PhotonPersistentDiskVolumeSourceApplyConfiguration + +// PhotonPersistentDiskVolumeSourceMap represents a map of PhotonPersistentDiskVolumeSourceApplyConfiguration. +type PhotonPersistentDiskVolumeSourceMap map[string]PhotonPersistentDiskVolumeSourceApplyConfiguration + +// PodApplyConfiguration represents a declarative configuration of the Pod type for use +// with apply. +type PodApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PodSpecApplyConfiguration `json:"spec,omitempty"` + Status *PodStatusApplyConfiguration `json:"status,omitempty"` +} + +// PodApplyConfiguration represents a declarative configuration of the Pod type for use +// with apply. +func Pod() *PodApplyConfiguration { + return &PodApplyConfiguration{} +} + +// PodList represents a listAlias of PodApplyConfiguration. +type PodList []*PodApplyConfiguration + +// PodMap represents a map of PodApplyConfiguration. +type PodMap map[string]PodApplyConfiguration + +// PodAffinityApplyConfiguration represents a declarative configuration of the PodAffinity type for use +// with apply. +type PodAffinityApplyConfiguration struct { + RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTermApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + PreferredDuringSchedulingIgnoredDuringExecution *[]WeightedPodAffinityTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// PodAffinityApplyConfiguration represents a declarative configuration of the PodAffinity type for use +// with apply. +func PodAffinity() *PodAffinityApplyConfiguration { + return &PodAffinityApplyConfiguration{} +} + +// PodAffinityList represents a listAlias of PodAffinityApplyConfiguration. +type PodAffinityList []*PodAffinityApplyConfiguration + +// PodAffinityMap represents a map of PodAffinityApplyConfiguration. +type PodAffinityMap map[string]PodAffinityApplyConfiguration + +// PodAffinityTermApplyConfiguration represents a declarative configuration of the PodAffinityTerm type for use +// with apply. +type PodAffinityTermApplyConfiguration struct { + LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` + TopologyKey *string `json:"topologyKey,omitempty"` +} + +// PodAffinityTermApplyConfiguration represents a declarative configuration of the PodAffinityTerm type for use +// with apply. +func PodAffinityTerm() *PodAffinityTermApplyConfiguration { + return &PodAffinityTermApplyConfiguration{} +} + +// PodAffinityTermList represents a listAlias of PodAffinityTermApplyConfiguration. +type PodAffinityTermList []*PodAffinityTermApplyConfiguration + +// PodAffinityTermMap represents a map of PodAffinityTermApplyConfiguration. +type PodAffinityTermMap map[string]PodAffinityTermApplyConfiguration + +// PodAntiAffinityApplyConfiguration represents a declarative configuration of the PodAntiAffinity type for use +// with apply. +type PodAntiAffinityApplyConfiguration struct { + RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTermApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + PreferredDuringSchedulingIgnoredDuringExecution *[]WeightedPodAffinityTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// PodAntiAffinityApplyConfiguration represents a declarative configuration of the PodAntiAffinity type for use +// with apply. +func PodAntiAffinity() *PodAntiAffinityApplyConfiguration { + return &PodAntiAffinityApplyConfiguration{} +} + +// PodAntiAffinityList represents a listAlias of PodAntiAffinityApplyConfiguration. +type PodAntiAffinityList []*PodAntiAffinityApplyConfiguration + +// PodAntiAffinityMap represents a map of PodAntiAffinityApplyConfiguration. +type PodAntiAffinityMap map[string]PodAntiAffinityApplyConfiguration + +// PodAttachOptionsApplyConfiguration represents a declarative configuration of the PodAttachOptions type for use +// with apply. +type PodAttachOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Stdin *bool `json:"stdin,omitempty"` + Stdout *bool `json:"stdout,omitempty"` + Stderr *bool `json:"stderr,omitempty"` + TTY *bool `json:"tty,omitempty"` + Container *string `json:"container,omitempty"` +} + +// PodAttachOptionsApplyConfiguration represents a declarative configuration of the PodAttachOptions type for use +// with apply. +func PodAttachOptions() *PodAttachOptionsApplyConfiguration { + return &PodAttachOptionsApplyConfiguration{} +} + +// PodAttachOptionsList represents a listAlias of PodAttachOptionsApplyConfiguration. +type PodAttachOptionsList []*PodAttachOptionsApplyConfiguration + +// PodAttachOptionsMap represents a map of PodAttachOptionsApplyConfiguration. +type PodAttachOptionsMap map[string]PodAttachOptionsApplyConfiguration + +// PodConditionApplyConfiguration represents a declarative configuration of the PodCondition type for use +// with apply. +type PodConditionApplyConfiguration struct { + Type *corev1.PodConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastProbeTime *apismetav1.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// PodConditionApplyConfiguration represents a declarative configuration of the PodCondition type for use +// with apply. +func PodCondition() *PodConditionApplyConfiguration { + return &PodConditionApplyConfiguration{} +} + +// PodConditionList represents a listAlias of PodConditionApplyConfiguration. +type PodConditionList []*PodConditionApplyConfiguration + +// PodConditionMap represents a map of PodConditionApplyConfiguration. +type PodConditionMap map[string]PodConditionApplyConfiguration + +// PodDNSConfigApplyConfiguration represents a declarative configuration of the PodDNSConfig type for use +// with apply. +type PodDNSConfigApplyConfiguration struct { + Nameservers *[]string `json:"nameservers,omitempty"` + Searches *[]string `json:"searches,omitempty"` + Options *[]PodDNSConfigOptionApplyConfiguration `json:"options,omitempty"` +} + +// PodDNSConfigApplyConfiguration represents a declarative configuration of the PodDNSConfig type for use +// with apply. +func PodDNSConfig() *PodDNSConfigApplyConfiguration { + return &PodDNSConfigApplyConfiguration{} +} + +// PodDNSConfigList represents a listAlias of PodDNSConfigApplyConfiguration. +type PodDNSConfigList []*PodDNSConfigApplyConfiguration + +// PodDNSConfigMap represents a map of PodDNSConfigApplyConfiguration. +type PodDNSConfigMap map[string]PodDNSConfigApplyConfiguration + +// PodDNSConfigOptionApplyConfiguration represents a declarative configuration of the PodDNSConfigOption type for use +// with apply. +type PodDNSConfigOptionApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// PodDNSConfigOptionApplyConfiguration represents a declarative configuration of the PodDNSConfigOption type for use +// with apply. +func PodDNSConfigOption() *PodDNSConfigOptionApplyConfiguration { + return &PodDNSConfigOptionApplyConfiguration{} +} + +// PodDNSConfigOptionList represents a listAlias of PodDNSConfigOptionApplyConfiguration. +type PodDNSConfigOptionList []*PodDNSConfigOptionApplyConfiguration + +// PodDNSConfigOptionMap represents a map of PodDNSConfigOptionApplyConfiguration. +type PodDNSConfigOptionMap map[string]PodDNSConfigOptionApplyConfiguration + +// PodExecOptionsApplyConfiguration represents a declarative configuration of the PodExecOptions type for use +// with apply. +type PodExecOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Stdin *bool `json:"stdin,omitempty"` + Stdout *bool `json:"stdout,omitempty"` + Stderr *bool `json:"stderr,omitempty"` + TTY *bool `json:"tty,omitempty"` + Container *string `json:"container,omitempty"` + Command *[]string `json:"command,omitempty"` +} + +// PodExecOptionsApplyConfiguration represents a declarative configuration of the PodExecOptions type for use +// with apply. +func PodExecOptions() *PodExecOptionsApplyConfiguration { + return &PodExecOptionsApplyConfiguration{} +} + +// PodExecOptionsList represents a listAlias of PodExecOptionsApplyConfiguration. +type PodExecOptionsList []*PodExecOptionsApplyConfiguration + +// PodExecOptionsMap represents a map of PodExecOptionsApplyConfiguration. +type PodExecOptionsMap map[string]PodExecOptionsApplyConfiguration + +// PodIPApplyConfiguration represents a declarative configuration of the PodIP type for use +// with apply. +type PodIPApplyConfiguration struct { + IP *string `json:"ip,omitempty"` +} + +// PodIPApplyConfiguration represents a declarative configuration of the PodIP type for use +// with apply. +func PodIP() *PodIPApplyConfiguration { + return &PodIPApplyConfiguration{} +} + +// PodIPList represents a listAlias of PodIPApplyConfiguration. +type PodIPList []*PodIPApplyConfiguration + +// PodIPMap represents a map of PodIPApplyConfiguration. +type PodIPMap map[string]PodIPApplyConfiguration + +// PodListApplyConfiguration represents a declarative configuration of the PodList type for use +// with apply. +type PodListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PodApplyConfiguration `json:"items,omitempty"` +} + +// PodListApplyConfiguration represents a declarative configuration of the PodList type for use +// with apply. +func PodList() *PodListApplyConfiguration { + return &PodListApplyConfiguration{} +} + +// PodListList represents a listAlias of PodListApplyConfiguration. +type PodListList []*PodListApplyConfiguration + +// PodListMap represents a map of PodListApplyConfiguration. +type PodListMap map[string]PodListApplyConfiguration + +// PodLogOptionsApplyConfiguration represents a declarative configuration of the PodLogOptions type for use +// with apply. +type PodLogOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Container *string `json:"container,omitempty"` + Follow *bool `json:"follow,omitempty"` + Previous *bool `json:"previous,omitempty"` + SinceSeconds *int64 `json:"sinceSeconds,omitempty"` + SinceTime *apismetav1.Time `json:"sinceTime,omitempty"` + Timestamps *bool `json:"timestamps,omitempty"` + TailLines *int64 `json:"tailLines,omitempty"` + LimitBytes *int64 `json:"limitBytes,omitempty"` + InsecureSkipTLSVerifyBackend *bool `json:"insecureSkipTLSVerifyBackend,omitempty"` +} + +// PodLogOptionsApplyConfiguration represents a declarative configuration of the PodLogOptions type for use +// with apply. +func PodLogOptions() *PodLogOptionsApplyConfiguration { + return &PodLogOptionsApplyConfiguration{} +} + +// PodLogOptionsList represents a listAlias of PodLogOptionsApplyConfiguration. +type PodLogOptionsList []*PodLogOptionsApplyConfiguration + +// PodLogOptionsMap represents a map of PodLogOptionsApplyConfiguration. +type PodLogOptionsMap map[string]PodLogOptionsApplyConfiguration + +// PodPortForwardOptionsApplyConfiguration represents a declarative configuration of the PodPortForwardOptions type for use +// with apply. +type PodPortForwardOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Ports *[]int32 `json:"ports,omitempty"` +} + +// PodPortForwardOptionsApplyConfiguration represents a declarative configuration of the PodPortForwardOptions type for use +// with apply. +func PodPortForwardOptions() *PodPortForwardOptionsApplyConfiguration { + return &PodPortForwardOptionsApplyConfiguration{} +} + +// PodPortForwardOptionsList represents a listAlias of PodPortForwardOptionsApplyConfiguration. +type PodPortForwardOptionsList []*PodPortForwardOptionsApplyConfiguration + +// PodPortForwardOptionsMap represents a map of PodPortForwardOptionsApplyConfiguration. +type PodPortForwardOptionsMap map[string]PodPortForwardOptionsApplyConfiguration + +// PodProxyOptionsApplyConfiguration represents a declarative configuration of the PodProxyOptions type for use +// with apply. +type PodProxyOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Path *string `json:"path,omitempty"` +} + +// PodProxyOptionsApplyConfiguration represents a declarative configuration of the PodProxyOptions type for use +// with apply. +func PodProxyOptions() *PodProxyOptionsApplyConfiguration { + return &PodProxyOptionsApplyConfiguration{} +} + +// PodProxyOptionsList represents a listAlias of PodProxyOptionsApplyConfiguration. +type PodProxyOptionsList []*PodProxyOptionsApplyConfiguration + +// PodProxyOptionsMap represents a map of PodProxyOptionsApplyConfiguration. +type PodProxyOptionsMap map[string]PodProxyOptionsApplyConfiguration + +// PodReadinessGateApplyConfiguration represents a declarative configuration of the PodReadinessGate type for use +// with apply. +type PodReadinessGateApplyConfiguration struct { + ConditionType *corev1.PodConditionType `json:"conditionType,omitempty"` +} + +// PodReadinessGateApplyConfiguration represents a declarative configuration of the PodReadinessGate type for use +// with apply. +func PodReadinessGate() *PodReadinessGateApplyConfiguration { + return &PodReadinessGateApplyConfiguration{} +} + +// PodReadinessGateList represents a listAlias of PodReadinessGateApplyConfiguration. +type PodReadinessGateList []*PodReadinessGateApplyConfiguration + +// PodReadinessGateMap represents a map of PodReadinessGateApplyConfiguration. +type PodReadinessGateMap map[string]PodReadinessGateApplyConfiguration + +// PodSecurityContextApplyConfiguration represents a declarative configuration of the PodSecurityContext type for use +// with apply. +type PodSecurityContextApplyConfiguration struct { + SELinuxOptions *SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"` + WindowsOptions *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"` + RunAsUser *int64 `json:"runAsUser,omitempty"` + RunAsGroup *int64 `json:"runAsGroup,omitempty"` + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + SupplementalGroups *[]int64 `json:"supplementalGroups,omitempty"` + FSGroup *int64 `json:"fsGroup,omitempty"` + Sysctls *[]SysctlApplyConfiguration `json:"sysctls,omitempty"` + FSGroupChangePolicy *corev1.PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty"` +} + +// PodSecurityContextApplyConfiguration represents a declarative configuration of the PodSecurityContext type for use +// with apply. +func PodSecurityContext() *PodSecurityContextApplyConfiguration { + return &PodSecurityContextApplyConfiguration{} +} + +// PodSecurityContextList represents a listAlias of PodSecurityContextApplyConfiguration. +type PodSecurityContextList []*PodSecurityContextApplyConfiguration + +// PodSecurityContextMap represents a map of PodSecurityContextApplyConfiguration. +type PodSecurityContextMap map[string]PodSecurityContextApplyConfiguration + +// PodSignatureApplyConfiguration represents a declarative configuration of the PodSignature type for use +// with apply. +type PodSignatureApplyConfiguration struct { + PodController *metav1.OwnerReferenceApplyConfiguration `json:"podController,omitempty"` +} + +// PodSignatureApplyConfiguration represents a declarative configuration of the PodSignature type for use +// with apply. +func PodSignature() *PodSignatureApplyConfiguration { + return &PodSignatureApplyConfiguration{} +} + +// PodSignatureList represents a listAlias of PodSignatureApplyConfiguration. +type PodSignatureList []*PodSignatureApplyConfiguration + +// PodSignatureMap represents a map of PodSignatureApplyConfiguration. +type PodSignatureMap map[string]PodSignatureApplyConfiguration + +// PodSpecApplyConfiguration represents a declarative configuration of the PodSpec type for use +// with apply. +type PodSpecApplyConfiguration struct { + Volumes *[]VolumeApplyConfiguration `json:"volumes,omitempty"` + InitContainers *[]ContainerApplyConfiguration `json:"initContainers,omitempty"` + Containers *[]ContainerApplyConfiguration `json:"containers,omitempty"` + EphemeralContainers *[]EphemeralContainerApplyConfiguration `json:"ephemeralContainers,omitempty"` + RestartPolicy *corev1.RestartPolicy `json:"restartPolicy,omitempty"` + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + DNSPolicy *corev1.DNSPolicy `json:"dnsPolicy,omitempty"` + NodeSelector *map[string]string `json:"nodeSelector,omitempty"` + ServiceAccountName *string `json:"serviceAccountName,omitempty"` + DeprecatedServiceAccount *string `json:"serviceAccount,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + HostNetwork *bool `json:"hostNetwork,omitempty"` + HostPID *bool `json:"hostPID,omitempty"` + HostIPC *bool `json:"hostIPC,omitempty"` + ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` + SecurityContext *PodSecurityContextApplyConfiguration `json:"securityContext,omitempty"` + ImagePullSecrets *[]LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"` + Hostname *string `json:"hostname,omitempty"` + Subdomain *string `json:"subdomain,omitempty"` + Affinity *AffinityApplyConfiguration `json:"affinity,omitempty"` + SchedulerName *string `json:"schedulerName,omitempty"` + Tolerations *[]TolerationApplyConfiguration `json:"tolerations,omitempty"` + HostAliases *[]HostAliasApplyConfiguration `json:"hostAliases,omitempty"` + PriorityClassName *string `json:"priorityClassName,omitempty"` + Priority *int32 `json:"priority,omitempty"` + DNSConfig *PodDNSConfigApplyConfiguration `json:"dnsConfig,omitempty"` + ReadinessGates *[]PodReadinessGateApplyConfiguration `json:"readinessGates,omitempty"` + RuntimeClassName *string `json:"runtimeClassName,omitempty"` + EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` + PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"` + Overhead *corev1.ResourceList `json:"overhead,omitempty"` + TopologySpreadConstraints *[]TopologySpreadConstraintApplyConfiguration `json:"topologySpreadConstraints,omitempty"` +} + +// PodSpecApplyConfiguration represents a declarative configuration of the PodSpec type for use +// with apply. +func PodSpec() *PodSpecApplyConfiguration { + return &PodSpecApplyConfiguration{} +} + +// PodSpecList represents a listAlias of PodSpecApplyConfiguration. +type PodSpecList []*PodSpecApplyConfiguration + +// PodSpecMap represents a map of PodSpecApplyConfiguration. +type PodSpecMap map[string]PodSpecApplyConfiguration + +// PodStatusApplyConfiguration represents a declarative configuration of the PodStatus type for use +// with apply. +type PodStatusApplyConfiguration struct { + Phase *corev1.PodPhase `json:"phase,omitempty"` + Conditions *[]PodConditionApplyConfiguration `json:"conditions,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + NominatedNodeName *string `json:"nominatedNodeName,omitempty"` + HostIP *string `json:"hostIP,omitempty"` + PodIP *string `json:"podIP,omitempty"` + PodIPs *[]PodIPApplyConfiguration `json:"podIPs,omitempty"` + StartTime *apismetav1.Time `json:"startTime,omitempty"` + InitContainerStatuses *[]ContainerStatusApplyConfiguration `json:"initContainerStatuses,omitempty"` + ContainerStatuses *[]ContainerStatusApplyConfiguration `json:"containerStatuses,omitempty"` + QOSClass *corev1.PodQOSClass `json:"qosClass,omitempty"` + EphemeralContainerStatuses *[]ContainerStatusApplyConfiguration `json:"ephemeralContainerStatuses,omitempty"` +} + +// PodStatusApplyConfiguration represents a declarative configuration of the PodStatus type for use +// with apply. +func PodStatus() *PodStatusApplyConfiguration { + return &PodStatusApplyConfiguration{} +} + +// PodStatusList represents a listAlias of PodStatusApplyConfiguration. +type PodStatusList []*PodStatusApplyConfiguration + +// PodStatusMap represents a map of PodStatusApplyConfiguration. +type PodStatusMap map[string]PodStatusApplyConfiguration + +// PodStatusResultApplyConfiguration represents a declarative configuration of the PodStatusResult type for use +// with apply. +type PodStatusResultApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Status *PodStatusApplyConfiguration `json:"status,omitempty"` +} + +// PodStatusResultApplyConfiguration represents a declarative configuration of the PodStatusResult type for use +// with apply. +func PodStatusResult() *PodStatusResultApplyConfiguration { + return &PodStatusResultApplyConfiguration{} +} + +// PodStatusResultList represents a listAlias of PodStatusResultApplyConfiguration. +type PodStatusResultList []*PodStatusResultApplyConfiguration + +// PodStatusResultMap represents a map of PodStatusResultApplyConfiguration. +type PodStatusResultMap map[string]PodStatusResultApplyConfiguration + +// PodTemplateApplyConfiguration represents a declarative configuration of the PodTemplate type for use +// with apply. +type PodTemplateApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"` +} + +// PodTemplateApplyConfiguration represents a declarative configuration of the PodTemplate type for use +// with apply. +func PodTemplate() *PodTemplateApplyConfiguration { + return &PodTemplateApplyConfiguration{} +} + +// PodTemplateList represents a listAlias of PodTemplateApplyConfiguration. +type PodTemplateList []*PodTemplateApplyConfiguration + +// PodTemplateMap represents a map of PodTemplateApplyConfiguration. +type PodTemplateMap map[string]PodTemplateApplyConfiguration + +// PodTemplateListApplyConfiguration represents a declarative configuration of the PodTemplateList type for use +// with apply. +type PodTemplateListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PodTemplateApplyConfiguration `json:"items,omitempty"` +} + +// PodTemplateListApplyConfiguration represents a declarative configuration of the PodTemplateList type for use +// with apply. +func PodTemplateList() *PodTemplateListApplyConfiguration { + return &PodTemplateListApplyConfiguration{} +} + +// PodTemplateListList represents a listAlias of PodTemplateListApplyConfiguration. +type PodTemplateListList []*PodTemplateListApplyConfiguration + +// PodTemplateListMap represents a map of PodTemplateListApplyConfiguration. +type PodTemplateListMap map[string]PodTemplateListApplyConfiguration + +// PodTemplateSpecApplyConfiguration represents a declarative configuration of the PodTemplateSpec type for use +// with apply. +type PodTemplateSpecApplyConfiguration struct { + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PodSpecApplyConfiguration `json:"spec,omitempty"` +} + +// PodTemplateSpecApplyConfiguration represents a declarative configuration of the PodTemplateSpec type for use +// with apply. +func PodTemplateSpec() *PodTemplateSpecApplyConfiguration { + return &PodTemplateSpecApplyConfiguration{} +} + +// PodTemplateSpecList represents a listAlias of PodTemplateSpecApplyConfiguration. +type PodTemplateSpecList []*PodTemplateSpecApplyConfiguration + +// PodTemplateSpecMap represents a map of PodTemplateSpecApplyConfiguration. +type PodTemplateSpecMap map[string]PodTemplateSpecApplyConfiguration + +// PortworxVolumeSourceApplyConfiguration represents a declarative configuration of the PortworxVolumeSource type for use +// with apply. +type PortworxVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// PortworxVolumeSourceApplyConfiguration represents a declarative configuration of the PortworxVolumeSource type for use +// with apply. +func PortworxVolumeSource() *PortworxVolumeSourceApplyConfiguration { + return &PortworxVolumeSourceApplyConfiguration{} +} + +// PortworxVolumeSourceList represents a listAlias of PortworxVolumeSourceApplyConfiguration. +type PortworxVolumeSourceList []*PortworxVolumeSourceApplyConfiguration + +// PortworxVolumeSourceMap represents a map of PortworxVolumeSourceApplyConfiguration. +type PortworxVolumeSourceMap map[string]PortworxVolumeSourceApplyConfiguration + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +type PreconditionsApplyConfiguration struct { + UID *types.UID `json:"uid,omitempty"` +} + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +func Preconditions() *PreconditionsApplyConfiguration { + return &PreconditionsApplyConfiguration{} +} + +// PreconditionsList represents a listAlias of PreconditionsApplyConfiguration. +type PreconditionsList []*PreconditionsApplyConfiguration + +// PreconditionsMap represents a map of PreconditionsApplyConfiguration. +type PreconditionsMap map[string]PreconditionsApplyConfiguration + +// PreferAvoidPodsEntryApplyConfiguration represents a declarative configuration of the PreferAvoidPodsEntry type for use +// with apply. +type PreferAvoidPodsEntryApplyConfiguration struct { + PodSignature *PodSignatureApplyConfiguration `json:"podSignature,omitempty"` + EvictionTime *apismetav1.Time `json:"evictionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// PreferAvoidPodsEntryApplyConfiguration represents a declarative configuration of the PreferAvoidPodsEntry type for use +// with apply. +func PreferAvoidPodsEntry() *PreferAvoidPodsEntryApplyConfiguration { + return &PreferAvoidPodsEntryApplyConfiguration{} +} + +// PreferAvoidPodsEntryList represents a listAlias of PreferAvoidPodsEntryApplyConfiguration. +type PreferAvoidPodsEntryList []*PreferAvoidPodsEntryApplyConfiguration + +// PreferAvoidPodsEntryMap represents a map of PreferAvoidPodsEntryApplyConfiguration. +type PreferAvoidPodsEntryMap map[string]PreferAvoidPodsEntryApplyConfiguration + +// PreferredSchedulingTermApplyConfiguration represents a declarative configuration of the PreferredSchedulingTerm type for use +// with apply. +type PreferredSchedulingTermApplyConfiguration struct { + Weight *int32 `json:"weight,omitempty"` + Preference *NodeSelectorTermApplyConfiguration `json:"preference,omitempty"` +} + +// PreferredSchedulingTermApplyConfiguration represents a declarative configuration of the PreferredSchedulingTerm type for use +// with apply. +func PreferredSchedulingTerm() *PreferredSchedulingTermApplyConfiguration { + return &PreferredSchedulingTermApplyConfiguration{} +} + +// PreferredSchedulingTermList represents a listAlias of PreferredSchedulingTermApplyConfiguration. +type PreferredSchedulingTermList []*PreferredSchedulingTermApplyConfiguration + +// PreferredSchedulingTermMap represents a map of PreferredSchedulingTermApplyConfiguration. +type PreferredSchedulingTermMap map[string]PreferredSchedulingTermApplyConfiguration + +// ProbeApplyConfiguration represents a declarative configuration of the Probe type for use +// with apply. +type ProbeApplyConfiguration struct { + HandlerApplyConfiguration `json:",inline"` + InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` + TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` + PeriodSeconds *int32 `json:"periodSeconds,omitempty"` + SuccessThreshold *int32 `json:"successThreshold,omitempty"` + FailureThreshold *int32 `json:"failureThreshold,omitempty"` +} + +// ProbeApplyConfiguration represents a declarative configuration of the Probe type for use +// with apply. +func Probe() *ProbeApplyConfiguration { + return &ProbeApplyConfiguration{} +} + +// ProbeList represents a listAlias of ProbeApplyConfiguration. +type ProbeList []*ProbeApplyConfiguration + +// ProbeMap represents a map of ProbeApplyConfiguration. +type ProbeMap map[string]ProbeApplyConfiguration + +// ProjectedVolumeSourceApplyConfiguration represents a declarative configuration of the ProjectedVolumeSource type for use +// with apply. +type ProjectedVolumeSourceApplyConfiguration struct { + Sources *[]VolumeProjectionApplyConfiguration `json:"sources,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` +} + +// ProjectedVolumeSourceApplyConfiguration represents a declarative configuration of the ProjectedVolumeSource type for use +// with apply. +func ProjectedVolumeSource() *ProjectedVolumeSourceApplyConfiguration { + return &ProjectedVolumeSourceApplyConfiguration{} +} + +// ProjectedVolumeSourceList represents a listAlias of ProjectedVolumeSourceApplyConfiguration. +type ProjectedVolumeSourceList []*ProjectedVolumeSourceApplyConfiguration + +// ProjectedVolumeSourceMap represents a map of ProjectedVolumeSourceApplyConfiguration. +type ProjectedVolumeSourceMap map[string]ProjectedVolumeSourceApplyConfiguration + +// QuobyteVolumeSourceApplyConfiguration represents a declarative configuration of the QuobyteVolumeSource type for use +// with apply. +type QuobyteVolumeSourceApplyConfiguration struct { + Registry *string `json:"registry,omitempty"` + Volume *string `json:"volume,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + User *string `json:"user,omitempty"` + Group *string `json:"group,omitempty"` + Tenant *string `json:"tenant,omitempty"` +} + +// QuobyteVolumeSourceApplyConfiguration represents a declarative configuration of the QuobyteVolumeSource type for use +// with apply. +func QuobyteVolumeSource() *QuobyteVolumeSourceApplyConfiguration { + return &QuobyteVolumeSourceApplyConfiguration{} +} + +// QuobyteVolumeSourceList represents a listAlias of QuobyteVolumeSourceApplyConfiguration. +type QuobyteVolumeSourceList []*QuobyteVolumeSourceApplyConfiguration + +// QuobyteVolumeSourceMap represents a map of QuobyteVolumeSourceApplyConfiguration. +type QuobyteVolumeSourceMap map[string]QuobyteVolumeSourceApplyConfiguration + +// RBDPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the RBDPersistentVolumeSource type for use +// with apply. +type RBDPersistentVolumeSourceApplyConfiguration struct { + CephMonitors *[]string `json:"monitors,omitempty"` + RBDImage *string `json:"image,omitempty"` + FSType *string `json:"fsType,omitempty"` + RBDPool *string `json:"pool,omitempty"` + RadosUser *string `json:"user,omitempty"` + Keyring *string `json:"keyring,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// RBDPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the RBDPersistentVolumeSource type for use +// with apply. +func RBDPersistentVolumeSource() *RBDPersistentVolumeSourceApplyConfiguration { + return &RBDPersistentVolumeSourceApplyConfiguration{} +} + +// RBDPersistentVolumeSourceList represents a listAlias of RBDPersistentVolumeSourceApplyConfiguration. +type RBDPersistentVolumeSourceList []*RBDPersistentVolumeSourceApplyConfiguration + +// RBDPersistentVolumeSourceMap represents a map of RBDPersistentVolumeSourceApplyConfiguration. +type RBDPersistentVolumeSourceMap map[string]RBDPersistentVolumeSourceApplyConfiguration + +// RBDVolumeSourceApplyConfiguration represents a declarative configuration of the RBDVolumeSource type for use +// with apply. +type RBDVolumeSourceApplyConfiguration struct { + CephMonitors *[]string `json:"monitors,omitempty"` + RBDImage *string `json:"image,omitempty"` + FSType *string `json:"fsType,omitempty"` + RBDPool *string `json:"pool,omitempty"` + RadosUser *string `json:"user,omitempty"` + Keyring *string `json:"keyring,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// RBDVolumeSourceApplyConfiguration represents a declarative configuration of the RBDVolumeSource type for use +// with apply. +func RBDVolumeSource() *RBDVolumeSourceApplyConfiguration { + return &RBDVolumeSourceApplyConfiguration{} +} + +// RBDVolumeSourceList represents a listAlias of RBDVolumeSourceApplyConfiguration. +type RBDVolumeSourceList []*RBDVolumeSourceApplyConfiguration + +// RBDVolumeSourceMap represents a map of RBDVolumeSourceApplyConfiguration. +type RBDVolumeSourceMap map[string]RBDVolumeSourceApplyConfiguration + +// RangeAllocationApplyConfiguration represents a declarative configuration of the RangeAllocation type for use +// with apply. +type RangeAllocationApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Range *string `json:"range,omitempty"` + Data *[]byte `json:"data,omitempty"` +} + +// RangeAllocationApplyConfiguration represents a declarative configuration of the RangeAllocation type for use +// with apply. +func RangeAllocation() *RangeAllocationApplyConfiguration { + return &RangeAllocationApplyConfiguration{} +} + +// RangeAllocationList represents a listAlias of RangeAllocationApplyConfiguration. +type RangeAllocationList []*RangeAllocationApplyConfiguration + +// RangeAllocationMap represents a map of RangeAllocationApplyConfiguration. +type RangeAllocationMap map[string]RangeAllocationApplyConfiguration + +// ReplicationControllerApplyConfiguration represents a declarative configuration of the ReplicationController type for use +// with apply. +type ReplicationControllerApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ReplicationControllerSpecApplyConfiguration `json:"spec,omitempty"` + Status *ReplicationControllerStatusApplyConfiguration `json:"status,omitempty"` +} + +// ReplicationControllerApplyConfiguration represents a declarative configuration of the ReplicationController type for use +// with apply. +func ReplicationController() *ReplicationControllerApplyConfiguration { + return &ReplicationControllerApplyConfiguration{} +} + +// ReplicationControllerList represents a listAlias of ReplicationControllerApplyConfiguration. +type ReplicationControllerList []*ReplicationControllerApplyConfiguration + +// ReplicationControllerMap represents a map of ReplicationControllerApplyConfiguration. +type ReplicationControllerMap map[string]ReplicationControllerApplyConfiguration + +// ReplicationControllerConditionApplyConfiguration represents a declarative configuration of the ReplicationControllerCondition type for use +// with apply. +type ReplicationControllerConditionApplyConfiguration struct { + Type *corev1.ReplicationControllerConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ReplicationControllerConditionApplyConfiguration represents a declarative configuration of the ReplicationControllerCondition type for use +// with apply. +func ReplicationControllerCondition() *ReplicationControllerConditionApplyConfiguration { + return &ReplicationControllerConditionApplyConfiguration{} +} + +// ReplicationControllerConditionList represents a listAlias of ReplicationControllerConditionApplyConfiguration. +type ReplicationControllerConditionList []*ReplicationControllerConditionApplyConfiguration + +// ReplicationControllerConditionMap represents a map of ReplicationControllerConditionApplyConfiguration. +type ReplicationControllerConditionMap map[string]ReplicationControllerConditionApplyConfiguration + +// ReplicationControllerListApplyConfiguration represents a declarative configuration of the ReplicationControllerList type for use +// with apply. +type ReplicationControllerListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ReplicationControllerApplyConfiguration `json:"items,omitempty"` +} + +// ReplicationControllerListApplyConfiguration represents a declarative configuration of the ReplicationControllerList type for use +// with apply. +func ReplicationControllerList() *ReplicationControllerListApplyConfiguration { + return &ReplicationControllerListApplyConfiguration{} +} + +// ReplicationControllerListList represents a listAlias of ReplicationControllerListApplyConfiguration. +type ReplicationControllerListList []*ReplicationControllerListApplyConfiguration + +// ReplicationControllerListMap represents a map of ReplicationControllerListApplyConfiguration. +type ReplicationControllerListMap map[string]ReplicationControllerListApplyConfiguration + +// ReplicationControllerSpecApplyConfiguration represents a declarative configuration of the ReplicationControllerSpec type for use +// with apply. +type ReplicationControllerSpecApplyConfiguration struct { + Replicas *int32 `json:"replicas,omitempty"` + MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` + Selector *map[string]string `json:"selector,omitempty"` + Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"` +} + +// ReplicationControllerSpecApplyConfiguration represents a declarative configuration of the ReplicationControllerSpec type for use +// with apply. +func ReplicationControllerSpec() *ReplicationControllerSpecApplyConfiguration { + return &ReplicationControllerSpecApplyConfiguration{} +} + +// ReplicationControllerSpecList represents a listAlias of ReplicationControllerSpecApplyConfiguration. +type ReplicationControllerSpecList []*ReplicationControllerSpecApplyConfiguration + +// ReplicationControllerSpecMap represents a map of ReplicationControllerSpecApplyConfiguration. +type ReplicationControllerSpecMap map[string]ReplicationControllerSpecApplyConfiguration + +// ReplicationControllerStatusApplyConfiguration represents a declarative configuration of the ReplicationControllerStatus type for use +// with apply. +type ReplicationControllerStatusApplyConfiguration struct { + Replicas *int32 `json:"replicas,omitempty"` + FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"` + ReadyReplicas *int32 `json:"readyReplicas,omitempty"` + AvailableReplicas *int32 `json:"availableReplicas,omitempty"` + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Conditions *[]ReplicationControllerConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// ReplicationControllerStatusApplyConfiguration represents a declarative configuration of the ReplicationControllerStatus type for use +// with apply. +func ReplicationControllerStatus() *ReplicationControllerStatusApplyConfiguration { + return &ReplicationControllerStatusApplyConfiguration{} +} + +// ReplicationControllerStatusList represents a listAlias of ReplicationControllerStatusApplyConfiguration. +type ReplicationControllerStatusList []*ReplicationControllerStatusApplyConfiguration + +// ReplicationControllerStatusMap represents a map of ReplicationControllerStatusApplyConfiguration. +type ReplicationControllerStatusMap map[string]ReplicationControllerStatusApplyConfiguration + +// ResourceFieldSelectorApplyConfiguration represents a declarative configuration of the ResourceFieldSelector type for use +// with apply. +type ResourceFieldSelectorApplyConfiguration struct { + ContainerName *string `json:"containerName,omitempty"` + Resource *string `json:"resource,omitempty"` + Divisor *resource.Quantity `json:"divisor,omitempty"` +} + +// ResourceFieldSelectorApplyConfiguration represents a declarative configuration of the ResourceFieldSelector type for use +// with apply. +func ResourceFieldSelector() *ResourceFieldSelectorApplyConfiguration { + return &ResourceFieldSelectorApplyConfiguration{} +} + +// ResourceFieldSelectorList represents a listAlias of ResourceFieldSelectorApplyConfiguration. +type ResourceFieldSelectorList []*ResourceFieldSelectorApplyConfiguration + +// ResourceFieldSelectorMap represents a map of ResourceFieldSelectorApplyConfiguration. +type ResourceFieldSelectorMap map[string]ResourceFieldSelectorApplyConfiguration + +// ResourceQuotaApplyConfiguration represents a declarative configuration of the ResourceQuota type for use +// with apply. +type ResourceQuotaApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"` + Status *ResourceQuotaStatusApplyConfiguration `json:"status,omitempty"` +} + +// ResourceQuotaApplyConfiguration represents a declarative configuration of the ResourceQuota type for use +// with apply. +func ResourceQuota() *ResourceQuotaApplyConfiguration { + return &ResourceQuotaApplyConfiguration{} +} + +// ResourceQuotaList represents a listAlias of ResourceQuotaApplyConfiguration. +type ResourceQuotaList []*ResourceQuotaApplyConfiguration + +// ResourceQuotaMap represents a map of ResourceQuotaApplyConfiguration. +type ResourceQuotaMap map[string]ResourceQuotaApplyConfiguration + +// ResourceQuotaListApplyConfiguration represents a declarative configuration of the ResourceQuotaList type for use +// with apply. +type ResourceQuotaListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ResourceQuotaApplyConfiguration `json:"items,omitempty"` +} + +// ResourceQuotaListApplyConfiguration represents a declarative configuration of the ResourceQuotaList type for use +// with apply. +func ResourceQuotaList() *ResourceQuotaListApplyConfiguration { + return &ResourceQuotaListApplyConfiguration{} +} + +// ResourceQuotaListList represents a listAlias of ResourceQuotaListApplyConfiguration. +type ResourceQuotaListList []*ResourceQuotaListApplyConfiguration + +// ResourceQuotaListMap represents a map of ResourceQuotaListApplyConfiguration. +type ResourceQuotaListMap map[string]ResourceQuotaListApplyConfiguration + +// ResourceQuotaSpecApplyConfiguration represents a declarative configuration of the ResourceQuotaSpec type for use +// with apply. +type ResourceQuotaSpecApplyConfiguration struct { + Hard *corev1.ResourceList `json:"hard,omitempty"` + Scopes *[]corev1.ResourceQuotaScope `json:"scopes,omitempty"` + ScopeSelector *ScopeSelectorApplyConfiguration `json:"scopeSelector,omitempty"` +} + +// ResourceQuotaSpecApplyConfiguration represents a declarative configuration of the ResourceQuotaSpec type for use +// with apply. +func ResourceQuotaSpec() *ResourceQuotaSpecApplyConfiguration { + return &ResourceQuotaSpecApplyConfiguration{} +} + +// ResourceQuotaSpecList represents a listAlias of ResourceQuotaSpecApplyConfiguration. +type ResourceQuotaSpecList []*ResourceQuotaSpecApplyConfiguration + +// ResourceQuotaSpecMap represents a map of ResourceQuotaSpecApplyConfiguration. +type ResourceQuotaSpecMap map[string]ResourceQuotaSpecApplyConfiguration + +// ResourceQuotaStatusApplyConfiguration represents a declarative configuration of the ResourceQuotaStatus type for use +// with apply. +type ResourceQuotaStatusApplyConfiguration struct { + Hard *corev1.ResourceList `json:"hard,omitempty"` + Used *corev1.ResourceList `json:"used,omitempty"` +} + +// ResourceQuotaStatusApplyConfiguration represents a declarative configuration of the ResourceQuotaStatus type for use +// with apply. +func ResourceQuotaStatus() *ResourceQuotaStatusApplyConfiguration { + return &ResourceQuotaStatusApplyConfiguration{} +} + +// ResourceQuotaStatusList represents a listAlias of ResourceQuotaStatusApplyConfiguration. +type ResourceQuotaStatusList []*ResourceQuotaStatusApplyConfiguration + +// ResourceQuotaStatusMap represents a map of ResourceQuotaStatusApplyConfiguration. +type ResourceQuotaStatusMap map[string]ResourceQuotaStatusApplyConfiguration + +// ResourceRequirementsApplyConfiguration represents a declarative configuration of the ResourceRequirements type for use +// with apply. +type ResourceRequirementsApplyConfiguration struct { + Limits *corev1.ResourceList `json:"limits,omitempty"` + Requests *corev1.ResourceList `json:"requests,omitempty"` +} + +// ResourceRequirementsApplyConfiguration represents a declarative configuration of the ResourceRequirements type for use +// with apply. +func ResourceRequirements() *ResourceRequirementsApplyConfiguration { + return &ResourceRequirementsApplyConfiguration{} +} + +// ResourceRequirementsList represents a listAlias of ResourceRequirementsApplyConfiguration. +type ResourceRequirementsList []*ResourceRequirementsApplyConfiguration + +// ResourceRequirementsMap represents a map of ResourceRequirementsApplyConfiguration. +type ResourceRequirementsMap map[string]ResourceRequirementsApplyConfiguration + +// SELinuxOptionsApplyConfiguration represents a declarative configuration of the SELinuxOptions type for use +// with apply. +type SELinuxOptionsApplyConfiguration struct { + User *string `json:"user,omitempty"` + Role *string `json:"role,omitempty"` + Type *string `json:"type,omitempty"` + Level *string `json:"level,omitempty"` +} + +// SELinuxOptionsApplyConfiguration represents a declarative configuration of the SELinuxOptions type for use +// with apply. +func SELinuxOptions() *SELinuxOptionsApplyConfiguration { + return &SELinuxOptionsApplyConfiguration{} +} + +// SELinuxOptionsList represents a listAlias of SELinuxOptionsApplyConfiguration. +type SELinuxOptionsList []*SELinuxOptionsApplyConfiguration + +// SELinuxOptionsMap represents a map of SELinuxOptionsApplyConfiguration. +type SELinuxOptionsMap map[string]SELinuxOptionsApplyConfiguration + +// ScaleIOPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOPersistentVolumeSource type for use +// with apply. +type ScaleIOPersistentVolumeSourceApplyConfiguration struct { + Gateway *string `json:"gateway,omitempty"` + System *string `json:"system,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + SSLEnabled *bool `json:"sslEnabled,omitempty"` + ProtectionDomain *string `json:"protectionDomain,omitempty"` + StoragePool *string `json:"storagePool,omitempty"` + StorageMode *string `json:"storageMode,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// ScaleIOPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOPersistentVolumeSource type for use +// with apply. +func ScaleIOPersistentVolumeSource() *ScaleIOPersistentVolumeSourceApplyConfiguration { + return &ScaleIOPersistentVolumeSourceApplyConfiguration{} +} + +// ScaleIOPersistentVolumeSourceList represents a listAlias of ScaleIOPersistentVolumeSourceApplyConfiguration. +type ScaleIOPersistentVolumeSourceList []*ScaleIOPersistentVolumeSourceApplyConfiguration + +// ScaleIOPersistentVolumeSourceMap represents a map of ScaleIOPersistentVolumeSourceApplyConfiguration. +type ScaleIOPersistentVolumeSourceMap map[string]ScaleIOPersistentVolumeSourceApplyConfiguration + +// ScaleIOVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOVolumeSource type for use +// with apply. +type ScaleIOVolumeSourceApplyConfiguration struct { + Gateway *string `json:"gateway,omitempty"` + System *string `json:"system,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + SSLEnabled *bool `json:"sslEnabled,omitempty"` + ProtectionDomain *string `json:"protectionDomain,omitempty"` + StoragePool *string `json:"storagePool,omitempty"` + StorageMode *string `json:"storageMode,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// ScaleIOVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOVolumeSource type for use +// with apply. +func ScaleIOVolumeSource() *ScaleIOVolumeSourceApplyConfiguration { + return &ScaleIOVolumeSourceApplyConfiguration{} +} + +// ScaleIOVolumeSourceList represents a listAlias of ScaleIOVolumeSourceApplyConfiguration. +type ScaleIOVolumeSourceList []*ScaleIOVolumeSourceApplyConfiguration + +// ScaleIOVolumeSourceMap represents a map of ScaleIOVolumeSourceApplyConfiguration. +type ScaleIOVolumeSourceMap map[string]ScaleIOVolumeSourceApplyConfiguration + +// ScopeSelectorApplyConfiguration represents a declarative configuration of the ScopeSelector type for use +// with apply. +type ScopeSelectorApplyConfiguration struct { + MatchExpressions *[]ScopedResourceSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` +} + +// ScopeSelectorApplyConfiguration represents a declarative configuration of the ScopeSelector type for use +// with apply. +func ScopeSelector() *ScopeSelectorApplyConfiguration { + return &ScopeSelectorApplyConfiguration{} +} + +// ScopeSelectorList represents a listAlias of ScopeSelectorApplyConfiguration. +type ScopeSelectorList []*ScopeSelectorApplyConfiguration + +// ScopeSelectorMap represents a map of ScopeSelectorApplyConfiguration. +type ScopeSelectorMap map[string]ScopeSelectorApplyConfiguration + +// ScopedResourceSelectorRequirementApplyConfiguration represents a declarative configuration of the ScopedResourceSelectorRequirement type for use +// with apply. +type ScopedResourceSelectorRequirementApplyConfiguration struct { + ScopeName *corev1.ResourceQuotaScope `json:"scopeName,omitempty"` + Operator *corev1.ScopeSelectorOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// ScopedResourceSelectorRequirementApplyConfiguration represents a declarative configuration of the ScopedResourceSelectorRequirement type for use +// with apply. +func ScopedResourceSelectorRequirement() *ScopedResourceSelectorRequirementApplyConfiguration { + return &ScopedResourceSelectorRequirementApplyConfiguration{} +} + +// ScopedResourceSelectorRequirementList represents a listAlias of ScopedResourceSelectorRequirementApplyConfiguration. +type ScopedResourceSelectorRequirementList []*ScopedResourceSelectorRequirementApplyConfiguration + +// ScopedResourceSelectorRequirementMap represents a map of ScopedResourceSelectorRequirementApplyConfiguration. +type ScopedResourceSelectorRequirementMap map[string]ScopedResourceSelectorRequirementApplyConfiguration + +// SecretApplyConfiguration represents a declarative configuration of the Secret type for use +// with apply. +type SecretApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Immutable *bool `json:"immutable,omitempty"` + Data *map[string][]byte `json:"data,omitempty"` + StringData *map[string]string `json:"stringData,omitempty"` + Type *corev1.SecretType `json:"type,omitempty"` +} + +// SecretApplyConfiguration represents a declarative configuration of the Secret type for use +// with apply. +func Secret() *SecretApplyConfiguration { + return &SecretApplyConfiguration{} +} + +// SecretList represents a listAlias of SecretApplyConfiguration. +type SecretList []*SecretApplyConfiguration + +// SecretMap represents a map of SecretApplyConfiguration. +type SecretMap map[string]SecretApplyConfiguration + +// SecretEnvSourceApplyConfiguration represents a declarative configuration of the SecretEnvSource type for use +// with apply. +type SecretEnvSourceApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretEnvSourceApplyConfiguration represents a declarative configuration of the SecretEnvSource type for use +// with apply. +func SecretEnvSource() *SecretEnvSourceApplyConfiguration { + return &SecretEnvSourceApplyConfiguration{} +} + +// SecretEnvSourceList represents a listAlias of SecretEnvSourceApplyConfiguration. +type SecretEnvSourceList []*SecretEnvSourceApplyConfiguration + +// SecretEnvSourceMap represents a map of SecretEnvSourceApplyConfiguration. +type SecretEnvSourceMap map[string]SecretEnvSourceApplyConfiguration + +// SecretKeySelectorApplyConfiguration represents a declarative configuration of the SecretKeySelector type for use +// with apply. +type SecretKeySelectorApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Key *string `json:"key,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretKeySelectorApplyConfiguration represents a declarative configuration of the SecretKeySelector type for use +// with apply. +func SecretKeySelector() *SecretKeySelectorApplyConfiguration { + return &SecretKeySelectorApplyConfiguration{} +} + +// SecretKeySelectorList represents a listAlias of SecretKeySelectorApplyConfiguration. +type SecretKeySelectorList []*SecretKeySelectorApplyConfiguration + +// SecretKeySelectorMap represents a map of SecretKeySelectorApplyConfiguration. +type SecretKeySelectorMap map[string]SecretKeySelectorApplyConfiguration + +// SecretListApplyConfiguration represents a declarative configuration of the SecretList type for use +// with apply. +type SecretListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]SecretApplyConfiguration `json:"items,omitempty"` +} + +// SecretListApplyConfiguration represents a declarative configuration of the SecretList type for use +// with apply. +func SecretList() *SecretListApplyConfiguration { + return &SecretListApplyConfiguration{} +} + +// SecretListList represents a listAlias of SecretListApplyConfiguration. +type SecretListList []*SecretListApplyConfiguration + +// SecretListMap represents a map of SecretListApplyConfiguration. +type SecretListMap map[string]SecretListApplyConfiguration + +// SecretProjectionApplyConfiguration represents a declarative configuration of the SecretProjection type for use +// with apply. +type SecretProjectionApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretProjectionApplyConfiguration represents a declarative configuration of the SecretProjection type for use +// with apply. +func SecretProjection() *SecretProjectionApplyConfiguration { + return &SecretProjectionApplyConfiguration{} +} + +// SecretProjectionList represents a listAlias of SecretProjectionApplyConfiguration. +type SecretProjectionList []*SecretProjectionApplyConfiguration + +// SecretProjectionMap represents a map of SecretProjectionApplyConfiguration. +type SecretProjectionMap map[string]SecretProjectionApplyConfiguration + +// SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use +// with apply. +type SecretReferenceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use +// with apply. +func SecretReference() *SecretReferenceApplyConfiguration { + return &SecretReferenceApplyConfiguration{} +} + +// SecretReferenceList represents a listAlias of SecretReferenceApplyConfiguration. +type SecretReferenceList []*SecretReferenceApplyConfiguration + +// SecretReferenceMap represents a map of SecretReferenceApplyConfiguration. +type SecretReferenceMap map[string]SecretReferenceApplyConfiguration + +// SecretVolumeSourceApplyConfiguration represents a declarative configuration of the SecretVolumeSource type for use +// with apply. +type SecretVolumeSourceApplyConfiguration struct { + SecretName *string `json:"secretName,omitempty"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretVolumeSourceApplyConfiguration represents a declarative configuration of the SecretVolumeSource type for use +// with apply. +func SecretVolumeSource() *SecretVolumeSourceApplyConfiguration { + return &SecretVolumeSourceApplyConfiguration{} +} + +// SecretVolumeSourceList represents a listAlias of SecretVolumeSourceApplyConfiguration. +type SecretVolumeSourceList []*SecretVolumeSourceApplyConfiguration + +// SecretVolumeSourceMap represents a map of SecretVolumeSourceApplyConfiguration. +type SecretVolumeSourceMap map[string]SecretVolumeSourceApplyConfiguration + +// SecurityContextApplyConfiguration represents a declarative configuration of the SecurityContext type for use +// with apply. +type SecurityContextApplyConfiguration struct { + Capabilities *CapabilitiesApplyConfiguration `json:"capabilities,omitempty"` + Privileged *bool `json:"privileged,omitempty"` + SELinuxOptions *SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"` + WindowsOptions *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"` + RunAsUser *int64 `json:"runAsUser,omitempty"` + RunAsGroup *int64 `json:"runAsGroup,omitempty"` + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` + AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"` + ProcMount *corev1.ProcMountType `json:"procMount,omitempty"` +} + +// SecurityContextApplyConfiguration represents a declarative configuration of the SecurityContext type for use +// with apply. +func SecurityContext() *SecurityContextApplyConfiguration { + return &SecurityContextApplyConfiguration{} +} + +// SecurityContextList represents a listAlias of SecurityContextApplyConfiguration. +type SecurityContextList []*SecurityContextApplyConfiguration + +// SecurityContextMap represents a map of SecurityContextApplyConfiguration. +type SecurityContextMap map[string]SecurityContextApplyConfiguration + +// SerializedReferenceApplyConfiguration represents a declarative configuration of the SerializedReference type for use +// with apply. +type SerializedReferenceApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Reference *ObjectReferenceApplyConfiguration `json:"reference,omitempty"` +} + +// SerializedReferenceApplyConfiguration represents a declarative configuration of the SerializedReference type for use +// with apply. +func SerializedReference() *SerializedReferenceApplyConfiguration { + return &SerializedReferenceApplyConfiguration{} +} + +// SerializedReferenceList represents a listAlias of SerializedReferenceApplyConfiguration. +type SerializedReferenceList []*SerializedReferenceApplyConfiguration + +// SerializedReferenceMap represents a map of SerializedReferenceApplyConfiguration. +type SerializedReferenceMap map[string]SerializedReferenceApplyConfiguration + +// ServiceApplyConfiguration represents a declarative configuration of the Service type for use +// with apply. +type ServiceApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ServiceSpecApplyConfiguration `json:"spec,omitempty"` + Status *ServiceStatusApplyConfiguration `json:"status,omitempty"` +} + +// ServiceApplyConfiguration represents a declarative configuration of the Service type for use +// with apply. +func Service() *ServiceApplyConfiguration { + return &ServiceApplyConfiguration{} +} + +// ServiceList represents a listAlias of ServiceApplyConfiguration. +type ServiceList []*ServiceApplyConfiguration + +// ServiceMap represents a map of ServiceApplyConfiguration. +type ServiceMap map[string]ServiceApplyConfiguration + +// ServiceAccountApplyConfiguration represents a declarative configuration of the ServiceAccount type for use +// with apply. +type ServiceAccountApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Secrets *[]ObjectReferenceApplyConfiguration `json:"secrets,omitempty"` + ImagePullSecrets *[]LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` +} + +// ServiceAccountApplyConfiguration represents a declarative configuration of the ServiceAccount type for use +// with apply. +func ServiceAccount() *ServiceAccountApplyConfiguration { + return &ServiceAccountApplyConfiguration{} +} + +// ServiceAccountList represents a listAlias of ServiceAccountApplyConfiguration. +type ServiceAccountList []*ServiceAccountApplyConfiguration + +// ServiceAccountMap represents a map of ServiceAccountApplyConfiguration. +type ServiceAccountMap map[string]ServiceAccountApplyConfiguration + +// ServiceAccountListApplyConfiguration represents a declarative configuration of the ServiceAccountList type for use +// with apply. +type ServiceAccountListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ServiceAccountApplyConfiguration `json:"items,omitempty"` +} + +// ServiceAccountListApplyConfiguration represents a declarative configuration of the ServiceAccountList type for use +// with apply. +func ServiceAccountList() *ServiceAccountListApplyConfiguration { + return &ServiceAccountListApplyConfiguration{} +} + +// ServiceAccountListList represents a listAlias of ServiceAccountListApplyConfiguration. +type ServiceAccountListList []*ServiceAccountListApplyConfiguration + +// ServiceAccountListMap represents a map of ServiceAccountListApplyConfiguration. +type ServiceAccountListMap map[string]ServiceAccountListApplyConfiguration + +// ServiceAccountTokenProjectionApplyConfiguration represents a declarative configuration of the ServiceAccountTokenProjection type for use +// with apply. +type ServiceAccountTokenProjectionApplyConfiguration struct { + Audience *string `json:"audience,omitempty"` + ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"` + Path *string `json:"path,omitempty"` +} + +// ServiceAccountTokenProjectionApplyConfiguration represents a declarative configuration of the ServiceAccountTokenProjection type for use +// with apply. +func ServiceAccountTokenProjection() *ServiceAccountTokenProjectionApplyConfiguration { + return &ServiceAccountTokenProjectionApplyConfiguration{} +} + +// ServiceAccountTokenProjectionList represents a listAlias of ServiceAccountTokenProjectionApplyConfiguration. +type ServiceAccountTokenProjectionList []*ServiceAccountTokenProjectionApplyConfiguration + +// ServiceAccountTokenProjectionMap represents a map of ServiceAccountTokenProjectionApplyConfiguration. +type ServiceAccountTokenProjectionMap map[string]ServiceAccountTokenProjectionApplyConfiguration + +// ServiceListApplyConfiguration represents a declarative configuration of the ServiceList type for use +// with apply. +type ServiceListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ServiceApplyConfiguration `json:"items,omitempty"` +} + +// ServiceListApplyConfiguration represents a declarative configuration of the ServiceList type for use +// with apply. +func ServiceList() *ServiceListApplyConfiguration { + return &ServiceListApplyConfiguration{} +} + +// ServiceListList represents a listAlias of ServiceListApplyConfiguration. +type ServiceListList []*ServiceListApplyConfiguration + +// ServiceListMap represents a map of ServiceListApplyConfiguration. +type ServiceListMap map[string]ServiceListApplyConfiguration + +// ServicePortApplyConfiguration represents a declarative configuration of the ServicePort type for use +// with apply. +type ServicePortApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Protocol *corev1.Protocol `json:"protocol,omitempty"` + AppProtocol *string `json:"appProtocol,omitempty"` + Port *int32 `json:"port,omitempty"` + TargetPort *intstr.IntOrString `json:"targetPort,omitempty"` + NodePort *int32 `json:"nodePort,omitempty"` +} + +// ServicePortApplyConfiguration represents a declarative configuration of the ServicePort type for use +// with apply. +func ServicePort() *ServicePortApplyConfiguration { + return &ServicePortApplyConfiguration{} +} + +// ServicePortList represents a listAlias of ServicePortApplyConfiguration. +type ServicePortList []*ServicePortApplyConfiguration + +// ServicePortMap represents a map of ServicePortApplyConfiguration. +type ServicePortMap map[string]ServicePortApplyConfiguration + +// ServiceProxyOptionsApplyConfiguration represents a declarative configuration of the ServiceProxyOptions type for use +// with apply. +type ServiceProxyOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Path *string `json:"path,omitempty"` +} + +// ServiceProxyOptionsApplyConfiguration represents a declarative configuration of the ServiceProxyOptions type for use +// with apply. +func ServiceProxyOptions() *ServiceProxyOptionsApplyConfiguration { + return &ServiceProxyOptionsApplyConfiguration{} +} + +// ServiceProxyOptionsList represents a listAlias of ServiceProxyOptionsApplyConfiguration. +type ServiceProxyOptionsList []*ServiceProxyOptionsApplyConfiguration + +// ServiceProxyOptionsMap represents a map of ServiceProxyOptionsApplyConfiguration. +type ServiceProxyOptionsMap map[string]ServiceProxyOptionsApplyConfiguration + +// ServiceSpecApplyConfiguration represents a declarative configuration of the ServiceSpec type for use +// with apply. +type ServiceSpecApplyConfiguration struct { + Ports *[]ServicePortApplyConfiguration `json:"ports,omitempty"` + Selector *map[string]string `json:"selector,omitempty"` + ClusterIP *string `json:"clusterIP,omitempty"` + Type *corev1.ServiceType `json:"type,omitempty"` + ExternalIPs *[]string `json:"externalIPs,omitempty"` + SessionAffinity *corev1.ServiceAffinity `json:"sessionAffinity,omitempty"` + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + LoadBalancerSourceRanges *[]string `json:"loadBalancerSourceRanges,omitempty"` + ExternalName *string `json:"externalName,omitempty"` + ExternalTrafficPolicy *corev1.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty"` + HealthCheckNodePort *int32 `json:"healthCheckNodePort,omitempty"` + PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"` + SessionAffinityConfig *SessionAffinityConfigApplyConfiguration `json:"sessionAffinityConfig,omitempty"` + IPFamily *corev1.IPFamily `json:"ipFamily,omitempty"` + TopologyKeys *[]string `json:"topologyKeys,omitempty"` +} + +// ServiceSpecApplyConfiguration represents a declarative configuration of the ServiceSpec type for use +// with apply. +func ServiceSpec() *ServiceSpecApplyConfiguration { + return &ServiceSpecApplyConfiguration{} +} + +// ServiceSpecList represents a listAlias of ServiceSpecApplyConfiguration. +type ServiceSpecList []*ServiceSpecApplyConfiguration + +// ServiceSpecMap represents a map of ServiceSpecApplyConfiguration. +type ServiceSpecMap map[string]ServiceSpecApplyConfiguration + +// ServiceStatusApplyConfiguration represents a declarative configuration of the ServiceStatus type for use +// with apply. +type ServiceStatusApplyConfiguration struct { + LoadBalancer *LoadBalancerStatusApplyConfiguration `json:"loadBalancer,omitempty"` +} + +// ServiceStatusApplyConfiguration represents a declarative configuration of the ServiceStatus type for use +// with apply. +func ServiceStatus() *ServiceStatusApplyConfiguration { + return &ServiceStatusApplyConfiguration{} +} + +// ServiceStatusList represents a listAlias of ServiceStatusApplyConfiguration. +type ServiceStatusList []*ServiceStatusApplyConfiguration + +// ServiceStatusMap represents a map of ServiceStatusApplyConfiguration. +type ServiceStatusMap map[string]ServiceStatusApplyConfiguration + +// SessionAffinityConfigApplyConfiguration represents a declarative configuration of the SessionAffinityConfig type for use +// with apply. +type SessionAffinityConfigApplyConfiguration struct { + ClientIP *ClientIPConfigApplyConfiguration `json:"clientIP,omitempty"` +} + +// SessionAffinityConfigApplyConfiguration represents a declarative configuration of the SessionAffinityConfig type for use +// with apply. +func SessionAffinityConfig() *SessionAffinityConfigApplyConfiguration { + return &SessionAffinityConfigApplyConfiguration{} +} + +// SessionAffinityConfigList represents a listAlias of SessionAffinityConfigApplyConfiguration. +type SessionAffinityConfigList []*SessionAffinityConfigApplyConfiguration + +// SessionAffinityConfigMap represents a map of SessionAffinityConfigApplyConfiguration. +type SessionAffinityConfigMap map[string]SessionAffinityConfigApplyConfiguration + +// StorageOSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSPersistentVolumeSource type for use +// with apply. +type StorageOSPersistentVolumeSourceApplyConfiguration struct { + VolumeName *string `json:"volumeName,omitempty"` + VolumeNamespace *string `json:"volumeNamespace,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *ObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// StorageOSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSPersistentVolumeSource type for use +// with apply. +func StorageOSPersistentVolumeSource() *StorageOSPersistentVolumeSourceApplyConfiguration { + return &StorageOSPersistentVolumeSourceApplyConfiguration{} +} + +// StorageOSPersistentVolumeSourceList represents a listAlias of StorageOSPersistentVolumeSourceApplyConfiguration. +type StorageOSPersistentVolumeSourceList []*StorageOSPersistentVolumeSourceApplyConfiguration + +// StorageOSPersistentVolumeSourceMap represents a map of StorageOSPersistentVolumeSourceApplyConfiguration. +type StorageOSPersistentVolumeSourceMap map[string]StorageOSPersistentVolumeSourceApplyConfiguration + +// StorageOSVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSVolumeSource type for use +// with apply. +type StorageOSVolumeSourceApplyConfiguration struct { + VolumeName *string `json:"volumeName,omitempty"` + VolumeNamespace *string `json:"volumeNamespace,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// StorageOSVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSVolumeSource type for use +// with apply. +func StorageOSVolumeSource() *StorageOSVolumeSourceApplyConfiguration { + return &StorageOSVolumeSourceApplyConfiguration{} +} + +// StorageOSVolumeSourceList represents a listAlias of StorageOSVolumeSourceApplyConfiguration. +type StorageOSVolumeSourceList []*StorageOSVolumeSourceApplyConfiguration + +// StorageOSVolumeSourceMap represents a map of StorageOSVolumeSourceApplyConfiguration. +type StorageOSVolumeSourceMap map[string]StorageOSVolumeSourceApplyConfiguration + +// SysctlApplyConfiguration represents a declarative configuration of the Sysctl type for use +// with apply. +type SysctlApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// SysctlApplyConfiguration represents a declarative configuration of the Sysctl type for use +// with apply. +func Sysctl() *SysctlApplyConfiguration { + return &SysctlApplyConfiguration{} +} + +// SysctlList represents a listAlias of SysctlApplyConfiguration. +type SysctlList []*SysctlApplyConfiguration + +// SysctlMap represents a map of SysctlApplyConfiguration. +type SysctlMap map[string]SysctlApplyConfiguration + +// TCPSocketActionApplyConfiguration represents a declarative configuration of the TCPSocketAction type for use +// with apply. +type TCPSocketActionApplyConfiguration struct { + Port *intstr.IntOrString `json:"port,omitempty"` + Host *string `json:"host,omitempty"` +} + +// TCPSocketActionApplyConfiguration represents a declarative configuration of the TCPSocketAction type for use +// with apply. +func TCPSocketAction() *TCPSocketActionApplyConfiguration { + return &TCPSocketActionApplyConfiguration{} +} + +// TCPSocketActionList represents a listAlias of TCPSocketActionApplyConfiguration. +type TCPSocketActionList []*TCPSocketActionApplyConfiguration + +// TCPSocketActionMap represents a map of TCPSocketActionApplyConfiguration. +type TCPSocketActionMap map[string]TCPSocketActionApplyConfiguration + +// TaintApplyConfiguration represents a declarative configuration of the Taint type for use +// with apply. +type TaintApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + Effect *corev1.TaintEffect `json:"effect,omitempty"` + TimeAdded *apismetav1.Time `json:"timeAdded,omitempty"` +} + +// TaintApplyConfiguration represents a declarative configuration of the Taint type for use +// with apply. +func Taint() *TaintApplyConfiguration { + return &TaintApplyConfiguration{} +} + +// TaintList represents a listAlias of TaintApplyConfiguration. +type TaintList []*TaintApplyConfiguration + +// TaintMap represents a map of TaintApplyConfiguration. +type TaintMap map[string]TaintApplyConfiguration + +// TolerationApplyConfiguration represents a declarative configuration of the Toleration type for use +// with apply. +type TolerationApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Operator *corev1.TolerationOperator `json:"operator,omitempty"` + Value *string `json:"value,omitempty"` + Effect *corev1.TaintEffect `json:"effect,omitempty"` + TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"` +} + +// TolerationApplyConfiguration represents a declarative configuration of the Toleration type for use +// with apply. +func Toleration() *TolerationApplyConfiguration { + return &TolerationApplyConfiguration{} +} + +// TolerationList represents a listAlias of TolerationApplyConfiguration. +type TolerationList []*TolerationApplyConfiguration + +// TolerationMap represents a map of TolerationApplyConfiguration. +type TolerationMap map[string]TolerationApplyConfiguration + +// TopologySelectorLabelRequirementApplyConfiguration represents a declarative configuration of the TopologySelectorLabelRequirement type for use +// with apply. +type TopologySelectorLabelRequirementApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// TopologySelectorLabelRequirementApplyConfiguration represents a declarative configuration of the TopologySelectorLabelRequirement type for use +// with apply. +func TopologySelectorLabelRequirement() *TopologySelectorLabelRequirementApplyConfiguration { + return &TopologySelectorLabelRequirementApplyConfiguration{} +} + +// TopologySelectorLabelRequirementList represents a listAlias of TopologySelectorLabelRequirementApplyConfiguration. +type TopologySelectorLabelRequirementList []*TopologySelectorLabelRequirementApplyConfiguration + +// TopologySelectorLabelRequirementMap represents a map of TopologySelectorLabelRequirementApplyConfiguration. +type TopologySelectorLabelRequirementMap map[string]TopologySelectorLabelRequirementApplyConfiguration + +// TopologySelectorTermApplyConfiguration represents a declarative configuration of the TopologySelectorTerm type for use +// with apply. +type TopologySelectorTermApplyConfiguration struct { + MatchLabelExpressions *[]TopologySelectorLabelRequirementApplyConfiguration `json:"matchLabelExpressions,omitempty"` +} + +// TopologySelectorTermApplyConfiguration represents a declarative configuration of the TopologySelectorTerm type for use +// with apply. +func TopologySelectorTerm() *TopologySelectorTermApplyConfiguration { + return &TopologySelectorTermApplyConfiguration{} +} + +// TopologySelectorTermList represents a listAlias of TopologySelectorTermApplyConfiguration. +type TopologySelectorTermList []*TopologySelectorTermApplyConfiguration + +// TopologySelectorTermMap represents a map of TopologySelectorTermApplyConfiguration. +type TopologySelectorTermMap map[string]TopologySelectorTermApplyConfiguration + +// TopologySpreadConstraintApplyConfiguration represents a declarative configuration of the TopologySpreadConstraint type for use +// with apply. +type TopologySpreadConstraintApplyConfiguration struct { + MaxSkew *int32 `json:"maxSkew,omitempty"` + TopologyKey *string `json:"topologyKey,omitempty"` + WhenUnsatisfiable *corev1.UnsatisfiableConstraintAction `json:"whenUnsatisfiable,omitempty"` + LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` +} + +// TopologySpreadConstraintApplyConfiguration represents a declarative configuration of the TopologySpreadConstraint type for use +// with apply. +func TopologySpreadConstraint() *TopologySpreadConstraintApplyConfiguration { + return &TopologySpreadConstraintApplyConfiguration{} +} + +// TopologySpreadConstraintList represents a listAlias of TopologySpreadConstraintApplyConfiguration. +type TopologySpreadConstraintList []*TopologySpreadConstraintApplyConfiguration + +// TopologySpreadConstraintMap represents a map of TopologySpreadConstraintApplyConfiguration. +type TopologySpreadConstraintMap map[string]TopologySpreadConstraintApplyConfiguration + +// TypedLocalObjectReferenceApplyConfiguration represents a declarative configuration of the TypedLocalObjectReference type for use +// with apply. +type TypedLocalObjectReferenceApplyConfiguration struct { + APIGroup *string `json:"apiGroup,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` +} + +// TypedLocalObjectReferenceApplyConfiguration represents a declarative configuration of the TypedLocalObjectReference type for use +// with apply. +func TypedLocalObjectReference() *TypedLocalObjectReferenceApplyConfiguration { + return &TypedLocalObjectReferenceApplyConfiguration{} +} + +// TypedLocalObjectReferenceList represents a listAlias of TypedLocalObjectReferenceApplyConfiguration. +type TypedLocalObjectReferenceList []*TypedLocalObjectReferenceApplyConfiguration + +// TypedLocalObjectReferenceMap represents a map of TypedLocalObjectReferenceApplyConfiguration. +type TypedLocalObjectReferenceMap map[string]TypedLocalObjectReferenceApplyConfiguration + +// VolumeApplyConfiguration represents a declarative configuration of the Volume type for use +// with apply. +type VolumeApplyConfiguration struct { + Name *string `json:"name,omitempty"` + VolumeSourceApplyConfiguration `json:",inline"` +} + +// VolumeApplyConfiguration represents a declarative configuration of the Volume type for use +// with apply. +func Volume() *VolumeApplyConfiguration { + return &VolumeApplyConfiguration{} +} + +// VolumeList represents a listAlias of VolumeApplyConfiguration. +type VolumeList []*VolumeApplyConfiguration + +// VolumeMap represents a map of VolumeApplyConfiguration. +type VolumeMap map[string]VolumeApplyConfiguration + +// VolumeDeviceApplyConfiguration represents a declarative configuration of the VolumeDevice type for use +// with apply. +type VolumeDeviceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + DevicePath *string `json:"devicePath,omitempty"` +} + +// VolumeDeviceApplyConfiguration represents a declarative configuration of the VolumeDevice type for use +// with apply. +func VolumeDevice() *VolumeDeviceApplyConfiguration { + return &VolumeDeviceApplyConfiguration{} +} + +// VolumeDeviceList represents a listAlias of VolumeDeviceApplyConfiguration. +type VolumeDeviceList []*VolumeDeviceApplyConfiguration + +// VolumeDeviceMap represents a map of VolumeDeviceApplyConfiguration. +type VolumeDeviceMap map[string]VolumeDeviceApplyConfiguration + +// VolumeMountApplyConfiguration represents a declarative configuration of the VolumeMount type for use +// with apply. +type VolumeMountApplyConfiguration struct { + Name *string `json:"name,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + MountPath *string `json:"mountPath,omitempty"` + SubPath *string `json:"subPath,omitempty"` + MountPropagation *corev1.MountPropagationMode `json:"mountPropagation,omitempty"` + SubPathExpr *string `json:"subPathExpr,omitempty"` +} + +// VolumeMountApplyConfiguration represents a declarative configuration of the VolumeMount type for use +// with apply. +func VolumeMount() *VolumeMountApplyConfiguration { + return &VolumeMountApplyConfiguration{} +} + +// VolumeMountList represents a listAlias of VolumeMountApplyConfiguration. +type VolumeMountList []*VolumeMountApplyConfiguration + +// VolumeMountMap represents a map of VolumeMountApplyConfiguration. +type VolumeMountMap map[string]VolumeMountApplyConfiguration + +// VolumeNodeAffinityApplyConfiguration represents a declarative configuration of the VolumeNodeAffinity type for use +// with apply. +type VolumeNodeAffinityApplyConfiguration struct { + Required *NodeSelectorApplyConfiguration `json:"required,omitempty"` +} + +// VolumeNodeAffinityApplyConfiguration represents a declarative configuration of the VolumeNodeAffinity type for use +// with apply. +func VolumeNodeAffinity() *VolumeNodeAffinityApplyConfiguration { + return &VolumeNodeAffinityApplyConfiguration{} +} + +// VolumeNodeAffinityList represents a listAlias of VolumeNodeAffinityApplyConfiguration. +type VolumeNodeAffinityList []*VolumeNodeAffinityApplyConfiguration + +// VolumeNodeAffinityMap represents a map of VolumeNodeAffinityApplyConfiguration. +type VolumeNodeAffinityMap map[string]VolumeNodeAffinityApplyConfiguration + +// VolumeProjectionApplyConfiguration represents a declarative configuration of the VolumeProjection type for use +// with apply. +type VolumeProjectionApplyConfiguration struct { + Secret *SecretProjectionApplyConfiguration `json:"secret,omitempty"` + DownwardAPI *DownwardAPIProjectionApplyConfiguration `json:"downwardAPI,omitempty"` + ConfigMap *ConfigMapProjectionApplyConfiguration `json:"configMap,omitempty"` + ServiceAccountToken *ServiceAccountTokenProjectionApplyConfiguration `json:"serviceAccountToken,omitempty"` +} + +// VolumeProjectionApplyConfiguration represents a declarative configuration of the VolumeProjection type for use +// with apply. +func VolumeProjection() *VolumeProjectionApplyConfiguration { + return &VolumeProjectionApplyConfiguration{} +} + +// VolumeProjectionList represents a listAlias of VolumeProjectionApplyConfiguration. +type VolumeProjectionList []*VolumeProjectionApplyConfiguration + +// VolumeProjectionMap represents a map of VolumeProjectionApplyConfiguration. +type VolumeProjectionMap map[string]VolumeProjectionApplyConfiguration + +// VolumeSourceApplyConfiguration represents a declarative configuration of the VolumeSource type for use +// with apply. +type VolumeSourceApplyConfiguration struct { + HostPath *HostPathVolumeSourceApplyConfiguration `json:"hostPath,omitempty"` + EmptyDir *EmptyDirVolumeSourceApplyConfiguration `json:"emptyDir,omitempty"` + GCEPersistentDisk *GCEPersistentDiskVolumeSourceApplyConfiguration `json:"gcePersistentDisk,omitempty"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceApplyConfiguration `json:"awsElasticBlockStore,omitempty"` + GitRepo *GitRepoVolumeSourceApplyConfiguration `json:"gitRepo,omitempty"` + Secret *SecretVolumeSourceApplyConfiguration `json:"secret,omitempty"` + NFS *NFSVolumeSourceApplyConfiguration `json:"nfs,omitempty"` + ISCSI *ISCSIVolumeSourceApplyConfiguration `json:"iscsi,omitempty"` + Glusterfs *GlusterfsVolumeSourceApplyConfiguration `json:"glusterfs,omitempty"` + PersistentVolumeClaim *PersistentVolumeClaimVolumeSourceApplyConfiguration `json:"persistentVolumeClaim,omitempty"` + RBD *RBDVolumeSourceApplyConfiguration `json:"rbd,omitempty"` + FlexVolume *FlexVolumeSourceApplyConfiguration `json:"flexVolume,omitempty"` + Cinder *CinderVolumeSourceApplyConfiguration `json:"cinder,omitempty"` + CephFS *CephFSVolumeSourceApplyConfiguration `json:"cephfs,omitempty"` + Flocker *FlockerVolumeSourceApplyConfiguration `json:"flocker,omitempty"` + DownwardAPI *DownwardAPIVolumeSourceApplyConfiguration `json:"downwardAPI,omitempty"` + FC *FCVolumeSourceApplyConfiguration `json:"fc,omitempty"` + AzureFile *AzureFileVolumeSourceApplyConfiguration `json:"azureFile,omitempty"` + ConfigMap *ConfigMapVolumeSourceApplyConfiguration `json:"configMap,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSourceApplyConfiguration `json:"vsphereVolume,omitempty"` + Quobyte *QuobyteVolumeSourceApplyConfiguration `json:"quobyte,omitempty"` + AzureDisk *AzureDiskVolumeSourceApplyConfiguration `json:"azureDisk,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceApplyConfiguration `json:"photonPersistentDisk,omitempty"` + Projected *ProjectedVolumeSourceApplyConfiguration `json:"projected,omitempty"` + PortworxVolume *PortworxVolumeSourceApplyConfiguration `json:"portworxVolume,omitempty"` + ScaleIO *ScaleIOVolumeSourceApplyConfiguration `json:"scaleIO,omitempty"` + StorageOS *StorageOSVolumeSourceApplyConfiguration `json:"storageos,omitempty"` + CSI *CSIVolumeSourceApplyConfiguration `json:"csi,omitempty"` +} + +// VolumeSourceApplyConfiguration represents a declarative configuration of the VolumeSource type for use +// with apply. +func VolumeSource() *VolumeSourceApplyConfiguration { + return &VolumeSourceApplyConfiguration{} +} + +// VolumeSourceList represents a listAlias of VolumeSourceApplyConfiguration. +type VolumeSourceList []*VolumeSourceApplyConfiguration + +// VolumeSourceMap represents a map of VolumeSourceApplyConfiguration. +type VolumeSourceMap map[string]VolumeSourceApplyConfiguration + +// VsphereVirtualDiskVolumeSourceApplyConfiguration represents a declarative configuration of the VsphereVirtualDiskVolumeSource type for use +// with apply. +type VsphereVirtualDiskVolumeSourceApplyConfiguration struct { + VolumePath *string `json:"volumePath,omitempty"` + FSType *string `json:"fsType,omitempty"` + StoragePolicyName *string `json:"storagePolicyName,omitempty"` + StoragePolicyID *string `json:"storagePolicyID,omitempty"` +} + +// VsphereVirtualDiskVolumeSourceApplyConfiguration represents a declarative configuration of the VsphereVirtualDiskVolumeSource type for use +// with apply. +func VsphereVirtualDiskVolumeSource() *VsphereVirtualDiskVolumeSourceApplyConfiguration { + return &VsphereVirtualDiskVolumeSourceApplyConfiguration{} +} + +// VsphereVirtualDiskVolumeSourceList represents a listAlias of VsphereVirtualDiskVolumeSourceApplyConfiguration. +type VsphereVirtualDiskVolumeSourceList []*VsphereVirtualDiskVolumeSourceApplyConfiguration + +// VsphereVirtualDiskVolumeSourceMap represents a map of VsphereVirtualDiskVolumeSourceApplyConfiguration. +type VsphereVirtualDiskVolumeSourceMap map[string]VsphereVirtualDiskVolumeSourceApplyConfiguration + +// WeightedPodAffinityTermApplyConfiguration represents a declarative configuration of the WeightedPodAffinityTerm type for use +// with apply. +type WeightedPodAffinityTermApplyConfiguration struct { + Weight *int32 `json:"weight,omitempty"` + PodAffinityTerm *PodAffinityTermApplyConfiguration `json:"podAffinityTerm,omitempty"` +} + +// WeightedPodAffinityTermApplyConfiguration represents a declarative configuration of the WeightedPodAffinityTerm type for use +// with apply. +func WeightedPodAffinityTerm() *WeightedPodAffinityTermApplyConfiguration { + return &WeightedPodAffinityTermApplyConfiguration{} +} + +// WeightedPodAffinityTermList represents a listAlias of WeightedPodAffinityTermApplyConfiguration. +type WeightedPodAffinityTermList []*WeightedPodAffinityTermApplyConfiguration + +// WeightedPodAffinityTermMap represents a map of WeightedPodAffinityTermApplyConfiguration. +type WeightedPodAffinityTermMap map[string]WeightedPodAffinityTermApplyConfiguration + +// WindowsSecurityContextOptionsApplyConfiguration represents a declarative configuration of the WindowsSecurityContextOptions type for use +// with apply. +type WindowsSecurityContextOptionsApplyConfiguration struct { + GMSACredentialSpecName *string `json:"gmsaCredentialSpecName,omitempty"` + GMSACredentialSpec *string `json:"gmsaCredentialSpec,omitempty"` + RunAsUserName *string `json:"runAsUserName,omitempty"` +} + +// WindowsSecurityContextOptionsApplyConfiguration represents a declarative configuration of the WindowsSecurityContextOptions type for use +// with apply. +func WindowsSecurityContextOptions() *WindowsSecurityContextOptionsApplyConfiguration { + return &WindowsSecurityContextOptionsApplyConfiguration{} +} + +// WindowsSecurityContextOptionsList represents a listAlias of WindowsSecurityContextOptionsApplyConfiguration. +type WindowsSecurityContextOptionsList []*WindowsSecurityContextOptionsApplyConfiguration + +// WindowsSecurityContextOptionsMap represents a map of WindowsSecurityContextOptionsApplyConfiguration. +type WindowsSecurityContextOptionsMap map[string]WindowsSecurityContextOptionsApplyConfiguration diff --git a/pkg/applyconfigurations/testdata/ac/ac/meta/v1/v1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/ac/meta/v1/v1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..cb6beb6dd --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/ac/meta/v1/v1_zz_generated.applyconfigurations.go @@ -0,0 +1,865 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/types" +) + +// APIGroupApplyConfiguration represents a declarative configuration of the APIGroup type for use +// with apply. +type APIGroupApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Name *string `json:"name,omitempty"` + Versions *[]GroupVersionForDiscoveryApplyConfiguration `json:"versions,omitempty"` + PreferredVersion *GroupVersionForDiscoveryApplyConfiguration `json:"preferredVersion,omitempty"` + ServerAddressByClientCIDRs *[]ServerAddressByClientCIDRApplyConfiguration `json:"serverAddressByClientCIDRs,omitempty"` +} + +// APIGroupApplyConfiguration represents a declarative configuration of the APIGroup type for use +// with apply. +func APIGroup() *APIGroupApplyConfiguration { + return &APIGroupApplyConfiguration{} +} + +// APIGroupList represents a listAlias of APIGroupApplyConfiguration. +type APIGroupList []*APIGroupApplyConfiguration + +// APIGroupMap represents a map of APIGroupApplyConfiguration. +type APIGroupMap map[string]APIGroupApplyConfiguration + +// APIGroupListApplyConfiguration represents a declarative configuration of the APIGroupList type for use +// with apply. +type APIGroupListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Groups *[]APIGroupApplyConfiguration `json:"groups,omitempty"` +} + +// APIGroupListApplyConfiguration represents a declarative configuration of the APIGroupList type for use +// with apply. +func APIGroupList() *APIGroupListApplyConfiguration { + return &APIGroupListApplyConfiguration{} +} + +// APIGroupListList represents a listAlias of APIGroupListApplyConfiguration. +type APIGroupListList []*APIGroupListApplyConfiguration + +// APIGroupListMap represents a map of APIGroupListApplyConfiguration. +type APIGroupListMap map[string]APIGroupListApplyConfiguration + +// APIResourceApplyConfiguration represents a declarative configuration of the APIResource type for use +// with apply. +type APIResourceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + SingularName *string `json:"singularName,omitempty"` + Namespaced *bool `json:"namespaced,omitempty"` + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` + Kind *string `json:"kind,omitempty"` + Verbs *metav1.Verbs `json:"verbs,omitempty"` + ShortNames *[]string `json:"shortNames,omitempty"` + Categories *[]string `json:"categories,omitempty"` + StorageVersionHash *string `json:"storageVersionHash,omitempty"` +} + +// APIResourceApplyConfiguration represents a declarative configuration of the APIResource type for use +// with apply. +func APIResource() *APIResourceApplyConfiguration { + return &APIResourceApplyConfiguration{} +} + +// APIResourceList represents a listAlias of APIResourceApplyConfiguration. +type APIResourceList []*APIResourceApplyConfiguration + +// APIResourceMap represents a map of APIResourceApplyConfiguration. +type APIResourceMap map[string]APIResourceApplyConfiguration + +// APIResourceListApplyConfiguration represents a declarative configuration of the APIResourceList type for use +// with apply. +type APIResourceListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + GroupVersion *string `json:"groupVersion,omitempty"` + APIResources *[]APIResourceApplyConfiguration `json:"resources,omitempty"` +} + +// APIResourceListApplyConfiguration represents a declarative configuration of the APIResourceList type for use +// with apply. +func APIResourceList() *APIResourceListApplyConfiguration { + return &APIResourceListApplyConfiguration{} +} + +// APIResourceListList represents a listAlias of APIResourceListApplyConfiguration. +type APIResourceListList []*APIResourceListApplyConfiguration + +// APIResourceListMap represents a map of APIResourceListApplyConfiguration. +type APIResourceListMap map[string]APIResourceListApplyConfiguration + +// APIVersionsApplyConfiguration represents a declarative configuration of the APIVersions type for use +// with apply. +type APIVersionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Versions *[]string `json:"versions,omitempty"` + ServerAddressByClientCIDRs *[]ServerAddressByClientCIDRApplyConfiguration `json:"serverAddressByClientCIDRs,omitempty"` +} + +// APIVersionsApplyConfiguration represents a declarative configuration of the APIVersions type for use +// with apply. +func APIVersions() *APIVersionsApplyConfiguration { + return &APIVersionsApplyConfiguration{} +} + +// APIVersionsList represents a listAlias of APIVersionsApplyConfiguration. +type APIVersionsList []*APIVersionsApplyConfiguration + +// APIVersionsMap represents a map of APIVersionsApplyConfiguration. +type APIVersionsMap map[string]APIVersionsApplyConfiguration + +// CreateOptionsApplyConfiguration represents a declarative configuration of the CreateOptions type for use +// with apply. +type CreateOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + DryRun *[]string `json:"dryRun,omitempty"` + FieldManager *string `json:"fieldManager,omitempty"` +} + +// CreateOptionsApplyConfiguration represents a declarative configuration of the CreateOptions type for use +// with apply. +func CreateOptions() *CreateOptionsApplyConfiguration { + return &CreateOptionsApplyConfiguration{} +} + +// CreateOptionsList represents a listAlias of CreateOptionsApplyConfiguration. +type CreateOptionsList []*CreateOptionsApplyConfiguration + +// CreateOptionsMap represents a map of CreateOptionsApplyConfiguration. +type CreateOptionsMap map[string]CreateOptionsApplyConfiguration + +// DeleteOptionsApplyConfiguration represents a declarative configuration of the DeleteOptions type for use +// with apply. +type DeleteOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"` + Preconditions *PreconditionsApplyConfiguration `json:"preconditions,omitempty"` + OrphanDependents *bool `json:"orphanDependents,omitempty"` + PropagationPolicy *metav1.DeletionPropagation `json:"propagationPolicy,omitempty"` + DryRun *[]string `json:"dryRun,omitempty"` +} + +// DeleteOptionsApplyConfiguration represents a declarative configuration of the DeleteOptions type for use +// with apply. +func DeleteOptions() *DeleteOptionsApplyConfiguration { + return &DeleteOptionsApplyConfiguration{} +} + +// DeleteOptionsList represents a listAlias of DeleteOptionsApplyConfiguration. +type DeleteOptionsList []*DeleteOptionsApplyConfiguration + +// DeleteOptionsMap represents a map of DeleteOptionsApplyConfiguration. +type DeleteOptionsMap map[string]DeleteOptionsApplyConfiguration + +// ExportOptionsApplyConfiguration represents a declarative configuration of the ExportOptions type for use +// with apply. +type ExportOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Export *bool `json:"export,omitempty"` + Exact *bool `json:"exact,omitempty"` +} + +// ExportOptionsApplyConfiguration represents a declarative configuration of the ExportOptions type for use +// with apply. +func ExportOptions() *ExportOptionsApplyConfiguration { + return &ExportOptionsApplyConfiguration{} +} + +// ExportOptionsList represents a listAlias of ExportOptionsApplyConfiguration. +type ExportOptionsList []*ExportOptionsApplyConfiguration + +// ExportOptionsMap represents a map of ExportOptionsApplyConfiguration. +type ExportOptionsMap map[string]ExportOptionsApplyConfiguration + +// GetOptionsApplyConfiguration represents a declarative configuration of the GetOptions type for use +// with apply. +type GetOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + ResourceVersion *string `json:"resourceVersion,omitempty"` +} + +// GetOptionsApplyConfiguration represents a declarative configuration of the GetOptions type for use +// with apply. +func GetOptions() *GetOptionsApplyConfiguration { + return &GetOptionsApplyConfiguration{} +} + +// GetOptionsList represents a listAlias of GetOptionsApplyConfiguration. +type GetOptionsList []*GetOptionsApplyConfiguration + +// GetOptionsMap represents a map of GetOptionsApplyConfiguration. +type GetOptionsMap map[string]GetOptionsApplyConfiguration + +// GroupKindApplyConfiguration represents a declarative configuration of the GroupKind type for use +// with apply. +type GroupKindApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +// GroupKindApplyConfiguration represents a declarative configuration of the GroupKind type for use +// with apply. +func GroupKind() *GroupKindApplyConfiguration { + return &GroupKindApplyConfiguration{} +} + +// GroupKindList represents a listAlias of GroupKindApplyConfiguration. +type GroupKindList []*GroupKindApplyConfiguration + +// GroupKindMap represents a map of GroupKindApplyConfiguration. +type GroupKindMap map[string]GroupKindApplyConfiguration + +// GroupResourceApplyConfiguration represents a declarative configuration of the GroupResource type for use +// with apply. +type GroupResourceApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// GroupResourceApplyConfiguration represents a declarative configuration of the GroupResource type for use +// with apply. +func GroupResource() *GroupResourceApplyConfiguration { + return &GroupResourceApplyConfiguration{} +} + +// GroupResourceList represents a listAlias of GroupResourceApplyConfiguration. +type GroupResourceList []*GroupResourceApplyConfiguration + +// GroupResourceMap represents a map of GroupResourceApplyConfiguration. +type GroupResourceMap map[string]GroupResourceApplyConfiguration + +// GroupVersionApplyConfiguration represents a declarative configuration of the GroupVersion type for use +// with apply. +type GroupVersionApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` +} + +// GroupVersionApplyConfiguration represents a declarative configuration of the GroupVersion type for use +// with apply. +func GroupVersion() *GroupVersionApplyConfiguration { + return &GroupVersionApplyConfiguration{} +} + +// GroupVersionList represents a listAlias of GroupVersionApplyConfiguration. +type GroupVersionList []*GroupVersionApplyConfiguration + +// GroupVersionMap represents a map of GroupVersionApplyConfiguration. +type GroupVersionMap map[string]GroupVersionApplyConfiguration + +// GroupVersionForDiscoveryApplyConfiguration represents a declarative configuration of the GroupVersionForDiscovery type for use +// with apply. +type GroupVersionForDiscoveryApplyConfiguration struct { + GroupVersion *string `json:"groupVersion,omitempty"` + Version *string `json:"version,omitempty"` +} + +// GroupVersionForDiscoveryApplyConfiguration represents a declarative configuration of the GroupVersionForDiscovery type for use +// with apply. +func GroupVersionForDiscovery() *GroupVersionForDiscoveryApplyConfiguration { + return &GroupVersionForDiscoveryApplyConfiguration{} +} + +// GroupVersionForDiscoveryList represents a listAlias of GroupVersionForDiscoveryApplyConfiguration. +type GroupVersionForDiscoveryList []*GroupVersionForDiscoveryApplyConfiguration + +// GroupVersionForDiscoveryMap represents a map of GroupVersionForDiscoveryApplyConfiguration. +type GroupVersionForDiscoveryMap map[string]GroupVersionForDiscoveryApplyConfiguration + +// GroupVersionKindApplyConfiguration represents a declarative configuration of the GroupVersionKind type for use +// with apply. +type GroupVersionKindApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +// GroupVersionKindApplyConfiguration represents a declarative configuration of the GroupVersionKind type for use +// with apply. +func GroupVersionKind() *GroupVersionKindApplyConfiguration { + return &GroupVersionKindApplyConfiguration{} +} + +// GroupVersionKindList represents a listAlias of GroupVersionKindApplyConfiguration. +type GroupVersionKindList []*GroupVersionKindApplyConfiguration + +// GroupVersionKindMap represents a map of GroupVersionKindApplyConfiguration. +type GroupVersionKindMap map[string]GroupVersionKindApplyConfiguration + +// GroupVersionResourceApplyConfiguration represents a declarative configuration of the GroupVersionResource type for use +// with apply. +type GroupVersionResourceApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// GroupVersionResourceApplyConfiguration represents a declarative configuration of the GroupVersionResource type for use +// with apply. +func GroupVersionResource() *GroupVersionResourceApplyConfiguration { + return &GroupVersionResourceApplyConfiguration{} +} + +// GroupVersionResourceList represents a listAlias of GroupVersionResourceApplyConfiguration. +type GroupVersionResourceList []*GroupVersionResourceApplyConfiguration + +// GroupVersionResourceMap represents a map of GroupVersionResourceApplyConfiguration. +type GroupVersionResourceMap map[string]GroupVersionResourceApplyConfiguration + +// LabelSelectorApplyConfiguration represents a declarative configuration of the LabelSelector type for use +// with apply. +type LabelSelectorApplyConfiguration struct { + MatchLabels *map[string]string `json:"matchLabels,omitempty"` + MatchExpressions *[]LabelSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` +} + +// LabelSelectorApplyConfiguration represents a declarative configuration of the LabelSelector type for use +// with apply. +func LabelSelector() *LabelSelectorApplyConfiguration { + return &LabelSelectorApplyConfiguration{} +} + +// LabelSelectorList represents a listAlias of LabelSelectorApplyConfiguration. +type LabelSelectorList []*LabelSelectorApplyConfiguration + +// LabelSelectorMap represents a map of LabelSelectorApplyConfiguration. +type LabelSelectorMap map[string]LabelSelectorApplyConfiguration + +// LabelSelectorRequirementApplyConfiguration represents a declarative configuration of the LabelSelectorRequirement type for use +// with apply. +type LabelSelectorRequirementApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Operator *metav1.LabelSelectorOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// LabelSelectorRequirementApplyConfiguration represents a declarative configuration of the LabelSelectorRequirement type for use +// with apply. +func LabelSelectorRequirement() *LabelSelectorRequirementApplyConfiguration { + return &LabelSelectorRequirementApplyConfiguration{} +} + +// LabelSelectorRequirementList represents a listAlias of LabelSelectorRequirementApplyConfiguration. +type LabelSelectorRequirementList []*LabelSelectorRequirementApplyConfiguration + +// LabelSelectorRequirementMap represents a map of LabelSelectorRequirementApplyConfiguration. +type LabelSelectorRequirementMap map[string]LabelSelectorRequirementApplyConfiguration + +// ListApplyConfiguration represents a declarative configuration of the List type for use +// with apply. +type ListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]runtime.RawExtension `json:"items,omitempty"` +} + +// ListApplyConfiguration represents a declarative configuration of the List type for use +// with apply. +func List() *ListApplyConfiguration { + return &ListApplyConfiguration{} +} + +// ListList represents a listAlias of ListApplyConfiguration. +type ListList []*ListApplyConfiguration + +// ListMap represents a map of ListApplyConfiguration. +type ListMap map[string]ListApplyConfiguration + +// ListMetaApplyConfiguration represents a declarative configuration of the ListMeta type for use +// with apply. +type ListMetaApplyConfiguration struct { + SelfLink *string `json:"selfLink,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + Continue *string `json:"continue,omitempty"` + RemainingItemCount *int64 `json:"remainingItemCount,omitempty"` +} + +// ListMetaApplyConfiguration represents a declarative configuration of the ListMeta type for use +// with apply. +func ListMeta() *ListMetaApplyConfiguration { + return &ListMetaApplyConfiguration{} +} + +// ListMetaList represents a listAlias of ListMetaApplyConfiguration. +type ListMetaList []*ListMetaApplyConfiguration + +// ListMetaMap represents a map of ListMetaApplyConfiguration. +type ListMetaMap map[string]ListMetaApplyConfiguration + +// ListOptionsApplyConfiguration represents a declarative configuration of the ListOptions type for use +// with apply. +type ListOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + LabelSelector *string `json:"labelSelector,omitempty"` + FieldSelector *string `json:"fieldSelector,omitempty"` + Watch *bool `json:"watch,omitempty"` + AllowWatchBookmarks *bool `json:"allowWatchBookmarks,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Continue *string `json:"continue,omitempty"` +} + +// ListOptionsApplyConfiguration represents a declarative configuration of the ListOptions type for use +// with apply. +func ListOptions() *ListOptionsApplyConfiguration { + return &ListOptionsApplyConfiguration{} +} + +// ListOptionsList represents a listAlias of ListOptionsApplyConfiguration. +type ListOptionsList []*ListOptionsApplyConfiguration + +// ListOptionsMap represents a map of ListOptionsApplyConfiguration. +type ListOptionsMap map[string]ListOptionsApplyConfiguration + +// ManagedFieldsEntryApplyConfiguration represents a declarative configuration of the ManagedFieldsEntry type for use +// with apply. +type ManagedFieldsEntryApplyConfiguration struct { + Manager *string `json:"manager,omitempty"` + Operation *metav1.ManagedFieldsOperationType `json:"operation,omitempty"` + APIVersion *string `json:"apiVersion,omitempty"` + Time *metav1.Time `json:"time,omitempty"` + FieldsType *string `json:"fieldsType,omitempty"` + FieldsV1 *metav1.FieldsV1 `json:"fieldsV1,omitempty"` +} + +// ManagedFieldsEntryApplyConfiguration represents a declarative configuration of the ManagedFieldsEntry type for use +// with apply. +func ManagedFieldsEntry() *ManagedFieldsEntryApplyConfiguration { + return &ManagedFieldsEntryApplyConfiguration{} +} + +// ManagedFieldsEntryList represents a listAlias of ManagedFieldsEntryApplyConfiguration. +type ManagedFieldsEntryList []*ManagedFieldsEntryApplyConfiguration + +// ManagedFieldsEntryMap represents a map of ManagedFieldsEntryApplyConfiguration. +type ManagedFieldsEntryMap map[string]ManagedFieldsEntryApplyConfiguration + +// ObjectMetaApplyConfiguration represents a declarative configuration of the ObjectMeta type for use +// with apply. +type ObjectMetaApplyConfiguration struct { + Name *string `json:"name,omitempty"` + GenerateName *string `json:"generateName,omitempty"` + Namespace *string `json:"namespace,omitempty"` + SelfLink *string `json:"selfLink,omitempty"` + UID *types.UID `json:"uid,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + Generation *int64 `json:"generation,omitempty"` + CreationTimestamp *metav1.Time `json:"creationTimestamp,omitempty"` + DeletionTimestamp *metav1.Time `json:"deletionTimestamp,omitempty"` + DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` + OwnerReferences *[]OwnerReferenceApplyConfiguration `json:"ownerReferences,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + ClusterName *string `json:"clusterName,omitempty"` + ManagedFields *[]ManagedFieldsEntryApplyConfiguration `json:"managedFields,omitempty"` +} + +// ObjectMetaApplyConfiguration represents a declarative configuration of the ObjectMeta type for use +// with apply. +func ObjectMeta() *ObjectMetaApplyConfiguration { + return &ObjectMetaApplyConfiguration{} +} + +// ObjectMetaList represents a listAlias of ObjectMetaApplyConfiguration. +type ObjectMetaList []*ObjectMetaApplyConfiguration + +// ObjectMetaMap represents a map of ObjectMetaApplyConfiguration. +type ObjectMetaMap map[string]ObjectMetaApplyConfiguration + +// OwnerReferenceApplyConfiguration represents a declarative configuration of the OwnerReference type for use +// with apply. +type OwnerReferenceApplyConfiguration struct { + APIVersion *string `json:"apiVersion,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + UID *types.UID `json:"uid,omitempty"` + Controller *bool `json:"controller,omitempty"` + BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"` +} + +// OwnerReferenceApplyConfiguration represents a declarative configuration of the OwnerReference type for use +// with apply. +func OwnerReference() *OwnerReferenceApplyConfiguration { + return &OwnerReferenceApplyConfiguration{} +} + +// OwnerReferenceList represents a listAlias of OwnerReferenceApplyConfiguration. +type OwnerReferenceList []*OwnerReferenceApplyConfiguration + +// OwnerReferenceMap represents a map of OwnerReferenceApplyConfiguration. +type OwnerReferenceMap map[string]OwnerReferenceApplyConfiguration + +// PartialObjectMetadataApplyConfiguration represents a declarative configuration of the PartialObjectMetadata type for use +// with apply. +type PartialObjectMetadataApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ObjectMetaApplyConfiguration `json:"metadata,omitempty"` +} + +// PartialObjectMetadataApplyConfiguration represents a declarative configuration of the PartialObjectMetadata type for use +// with apply. +func PartialObjectMetadata() *PartialObjectMetadataApplyConfiguration { + return &PartialObjectMetadataApplyConfiguration{} +} + +// PartialObjectMetadataList represents a listAlias of PartialObjectMetadataApplyConfiguration. +type PartialObjectMetadataList []*PartialObjectMetadataApplyConfiguration + +// PartialObjectMetadataMap represents a map of PartialObjectMetadataApplyConfiguration. +type PartialObjectMetadataMap map[string]PartialObjectMetadataApplyConfiguration + +// PartialObjectMetadataListApplyConfiguration represents a declarative configuration of the PartialObjectMetadataList type for use +// with apply. +type PartialObjectMetadataListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PartialObjectMetadataApplyConfiguration `json:"items,omitempty"` +} + +// PartialObjectMetadataListApplyConfiguration represents a declarative configuration of the PartialObjectMetadataList type for use +// with apply. +func PartialObjectMetadataList() *PartialObjectMetadataListApplyConfiguration { + return &PartialObjectMetadataListApplyConfiguration{} +} + +// PartialObjectMetadataListList represents a listAlias of PartialObjectMetadataListApplyConfiguration. +type PartialObjectMetadataListList []*PartialObjectMetadataListApplyConfiguration + +// PartialObjectMetadataListMap represents a map of PartialObjectMetadataListApplyConfiguration. +type PartialObjectMetadataListMap map[string]PartialObjectMetadataListApplyConfiguration + +// PatchOptionsApplyConfiguration represents a declarative configuration of the PatchOptions type for use +// with apply. +type PatchOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + DryRun *[]string `json:"dryRun,omitempty"` + Force *bool `json:"force,omitempty"` + FieldManager *string `json:"fieldManager,omitempty"` +} + +// PatchOptionsApplyConfiguration represents a declarative configuration of the PatchOptions type for use +// with apply. +func PatchOptions() *PatchOptionsApplyConfiguration { + return &PatchOptionsApplyConfiguration{} +} + +// PatchOptionsList represents a listAlias of PatchOptionsApplyConfiguration. +type PatchOptionsList []*PatchOptionsApplyConfiguration + +// PatchOptionsMap represents a map of PatchOptionsApplyConfiguration. +type PatchOptionsMap map[string]PatchOptionsApplyConfiguration + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +type PreconditionsApplyConfiguration struct { + UID *types.UID `json:"uid,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` +} + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +func Preconditions() *PreconditionsApplyConfiguration { + return &PreconditionsApplyConfiguration{} +} + +// PreconditionsList represents a listAlias of PreconditionsApplyConfiguration. +type PreconditionsList []*PreconditionsApplyConfiguration + +// PreconditionsMap represents a map of PreconditionsApplyConfiguration. +type PreconditionsMap map[string]PreconditionsApplyConfiguration + +// RootPathsApplyConfiguration represents a declarative configuration of the RootPaths type for use +// with apply. +type RootPathsApplyConfiguration struct { + Paths *[]string `json:"paths,omitempty"` +} + +// RootPathsApplyConfiguration represents a declarative configuration of the RootPaths type for use +// with apply. +func RootPaths() *RootPathsApplyConfiguration { + return &RootPathsApplyConfiguration{} +} + +// RootPathsList represents a listAlias of RootPathsApplyConfiguration. +type RootPathsList []*RootPathsApplyConfiguration + +// RootPathsMap represents a map of RootPathsApplyConfiguration. +type RootPathsMap map[string]RootPathsApplyConfiguration + +// ServerAddressByClientCIDRApplyConfiguration represents a declarative configuration of the ServerAddressByClientCIDR type for use +// with apply. +type ServerAddressByClientCIDRApplyConfiguration struct { + ClientCIDR *string `json:"clientCIDR,omitempty"` + ServerAddress *string `json:"serverAddress,omitempty"` +} + +// ServerAddressByClientCIDRApplyConfiguration represents a declarative configuration of the ServerAddressByClientCIDR type for use +// with apply. +func ServerAddressByClientCIDR() *ServerAddressByClientCIDRApplyConfiguration { + return &ServerAddressByClientCIDRApplyConfiguration{} +} + +// ServerAddressByClientCIDRList represents a listAlias of ServerAddressByClientCIDRApplyConfiguration. +type ServerAddressByClientCIDRList []*ServerAddressByClientCIDRApplyConfiguration + +// ServerAddressByClientCIDRMap represents a map of ServerAddressByClientCIDRApplyConfiguration. +type ServerAddressByClientCIDRMap map[string]ServerAddressByClientCIDRApplyConfiguration + +// StatusApplyConfiguration represents a declarative configuration of the Status type for use +// with apply. +type StatusApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + Status *string `json:"status,omitempty"` + Message *string `json:"message,omitempty"` + Reason *metav1.StatusReason `json:"reason,omitempty"` + Details *StatusDetailsApplyConfiguration `json:"details,omitempty"` + Code *int32 `json:"code,omitempty"` +} + +// StatusApplyConfiguration represents a declarative configuration of the Status type for use +// with apply. +func Status() *StatusApplyConfiguration { + return &StatusApplyConfiguration{} +} + +// StatusList represents a listAlias of StatusApplyConfiguration. +type StatusList []*StatusApplyConfiguration + +// StatusMap represents a map of StatusApplyConfiguration. +type StatusMap map[string]StatusApplyConfiguration + +// StatusCauseApplyConfiguration represents a declarative configuration of the StatusCause type for use +// with apply. +type StatusCauseApplyConfiguration struct { + Type *metav1.CauseType `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` + Field *string `json:"field,omitempty"` +} + +// StatusCauseApplyConfiguration represents a declarative configuration of the StatusCause type for use +// with apply. +func StatusCause() *StatusCauseApplyConfiguration { + return &StatusCauseApplyConfiguration{} +} + +// StatusCauseList represents a listAlias of StatusCauseApplyConfiguration. +type StatusCauseList []*StatusCauseApplyConfiguration + +// StatusCauseMap represents a map of StatusCauseApplyConfiguration. +type StatusCauseMap map[string]StatusCauseApplyConfiguration + +// StatusDetailsApplyConfiguration represents a declarative configuration of the StatusDetails type for use +// with apply. +type StatusDetailsApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Group *string `json:"group,omitempty"` + Kind *string `json:"kind,omitempty"` + UID *types.UID `json:"uid,omitempty"` + Causes *[]StatusCauseApplyConfiguration `json:"causes,omitempty"` + RetryAfterSeconds *int32 `json:"retryAfterSeconds,omitempty"` +} + +// StatusDetailsApplyConfiguration represents a declarative configuration of the StatusDetails type for use +// with apply. +func StatusDetails() *StatusDetailsApplyConfiguration { + return &StatusDetailsApplyConfiguration{} +} + +// StatusDetailsList represents a listAlias of StatusDetailsApplyConfiguration. +type StatusDetailsList []*StatusDetailsApplyConfiguration + +// StatusDetailsMap represents a map of StatusDetailsApplyConfiguration. +type StatusDetailsMap map[string]StatusDetailsApplyConfiguration + +// TableApplyConfiguration represents a declarative configuration of the Table type for use +// with apply. +type TableApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + ColumnDefinitions *[]TableColumnDefinitionApplyConfiguration `json:"columnDefinitions,omitempty"` + Rows *[]TableRowApplyConfiguration `json:"rows,omitempty"` +} + +// TableApplyConfiguration represents a declarative configuration of the Table type for use +// with apply. +func Table() *TableApplyConfiguration { + return &TableApplyConfiguration{} +} + +// TableList represents a listAlias of TableApplyConfiguration. +type TableList []*TableApplyConfiguration + +// TableMap represents a map of TableApplyConfiguration. +type TableMap map[string]TableApplyConfiguration + +// TableColumnDefinitionApplyConfiguration represents a declarative configuration of the TableColumnDefinition type for use +// with apply. +type TableColumnDefinitionApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + Format *string `json:"format,omitempty"` + Description *string `json:"description,omitempty"` + Priority *int32 `json:"priority,omitempty"` +} + +// TableColumnDefinitionApplyConfiguration represents a declarative configuration of the TableColumnDefinition type for use +// with apply. +func TableColumnDefinition() *TableColumnDefinitionApplyConfiguration { + return &TableColumnDefinitionApplyConfiguration{} +} + +// TableColumnDefinitionList represents a listAlias of TableColumnDefinitionApplyConfiguration. +type TableColumnDefinitionList []*TableColumnDefinitionApplyConfiguration + +// TableColumnDefinitionMap represents a map of TableColumnDefinitionApplyConfiguration. +type TableColumnDefinitionMap map[string]TableColumnDefinitionApplyConfiguration + +// TableOptionsApplyConfiguration represents a declarative configuration of the TableOptions type for use +// with apply. +type TableOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + IncludeObject *metav1.IncludeObjectPolicy `json:"includeObject,omitempty"` +} + +// TableOptionsApplyConfiguration represents a declarative configuration of the TableOptions type for use +// with apply. +func TableOptions() *TableOptionsApplyConfiguration { + return &TableOptionsApplyConfiguration{} +} + +// TableOptionsList represents a listAlias of TableOptionsApplyConfiguration. +type TableOptionsList []*TableOptionsApplyConfiguration + +// TableOptionsMap represents a map of TableOptionsApplyConfiguration. +type TableOptionsMap map[string]TableOptionsApplyConfiguration + +// TableRowApplyConfiguration represents a declarative configuration of the TableRow type for use +// with apply. +type TableRowApplyConfiguration struct { + Cells *[]interface{} `json:"cells,omitempty"` + Conditions *[]TableRowConditionApplyConfiguration `json:"conditions,omitempty"` + Object *runtime.RawExtension `json:"object,omitempty"` +} + +// TableRowApplyConfiguration represents a declarative configuration of the TableRow type for use +// with apply. +func TableRow() *TableRowApplyConfiguration { + return &TableRowApplyConfiguration{} +} + +// TableRowList represents a listAlias of TableRowApplyConfiguration. +type TableRowList []*TableRowApplyConfiguration + +// TableRowMap represents a map of TableRowApplyConfiguration. +type TableRowMap map[string]TableRowApplyConfiguration + +// TableRowConditionApplyConfiguration represents a declarative configuration of the TableRowCondition type for use +// with apply. +type TableRowConditionApplyConfiguration struct { + Type *metav1.RowConditionType `json:"type,omitempty"` + Status *metav1.ConditionStatus `json:"status,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// TableRowConditionApplyConfiguration represents a declarative configuration of the TableRowCondition type for use +// with apply. +func TableRowCondition() *TableRowConditionApplyConfiguration { + return &TableRowConditionApplyConfiguration{} +} + +// TableRowConditionList represents a listAlias of TableRowConditionApplyConfiguration. +type TableRowConditionList []*TableRowConditionApplyConfiguration + +// TableRowConditionMap represents a map of TableRowConditionApplyConfiguration. +type TableRowConditionMap map[string]TableRowConditionApplyConfiguration + +// TimestampApplyConfiguration represents a declarative configuration of the Timestamp type for use +// with apply. +type TimestampApplyConfiguration struct { + Seconds *int64 `json:"seconds,omitempty"` + Nanos *int32 `json:"nanos,omitempty"` +} + +// TimestampApplyConfiguration represents a declarative configuration of the Timestamp type for use +// with apply. +func Timestamp() *TimestampApplyConfiguration { + return &TimestampApplyConfiguration{} +} + +// TimestampList represents a listAlias of TimestampApplyConfiguration. +type TimestampList []*TimestampApplyConfiguration + +// TimestampMap represents a map of TimestampApplyConfiguration. +type TimestampMap map[string]TimestampApplyConfiguration + +// TypeMetaApplyConfiguration represents a declarative configuration of the TypeMeta type for use +// with apply. +type TypeMetaApplyConfiguration struct { + Kind *string `json:"kind,omitempty"` + APIVersion *string `json:"apiVersion,omitempty"` +} + +// TypeMetaApplyConfiguration represents a declarative configuration of the TypeMeta type for use +// with apply. +func TypeMeta() *TypeMetaApplyConfiguration { + return &TypeMetaApplyConfiguration{} +} + +// TypeMetaList represents a listAlias of TypeMetaApplyConfiguration. +type TypeMetaList []*TypeMetaApplyConfiguration + +// TypeMetaMap represents a map of TypeMetaApplyConfiguration. +type TypeMetaMap map[string]TypeMetaApplyConfiguration + +// UpdateOptionsApplyConfiguration represents a declarative configuration of the UpdateOptions type for use +// with apply. +type UpdateOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + DryRun *[]string `json:"dryRun,omitempty"` + FieldManager *string `json:"fieldManager,omitempty"` +} + +// UpdateOptionsApplyConfiguration represents a declarative configuration of the UpdateOptions type for use +// with apply. +func UpdateOptions() *UpdateOptionsApplyConfiguration { + return &UpdateOptionsApplyConfiguration{} +} + +// UpdateOptionsList represents a listAlias of UpdateOptionsApplyConfiguration. +type UpdateOptionsList []*UpdateOptionsApplyConfiguration + +// UpdateOptionsMap represents a map of UpdateOptionsApplyConfiguration. +type UpdateOptionsMap map[string]UpdateOptionsApplyConfiguration + +// WatchEventApplyConfiguration represents a declarative configuration of the WatchEvent type for use +// with apply. +type WatchEventApplyConfiguration struct { + Type *string `json:"type,omitempty"` + Object *runtime.RawExtension `json:"object,omitempty"` +} + +// WatchEventApplyConfiguration represents a declarative configuration of the WatchEvent type for use +// with apply. +func WatchEvent() *WatchEventApplyConfiguration { + return &WatchEventApplyConfiguration{} +} + +// WatchEventList represents a listAlias of WatchEventApplyConfiguration. +type WatchEventList []*WatchEventApplyConfiguration + +// WatchEventMap represents a map of WatchEventApplyConfiguration. +type WatchEventMap map[string]WatchEventApplyConfiguration diff --git a/pkg/applyconfigurations/testdata/ac/batch/v1/v1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/batch/v1/v1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..e307c5e4a --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/batch/v1/v1_zz_generated.applyconfigurations.go @@ -0,0 +1,95 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1 + +import ( + batchv1 "k8s.io/api/batch/v1" + apicorev1 "k8s.io/api/core/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + corev1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/core/v1" + metav1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/meta/v1" +) + +// JobApplyConfiguration represents a declarative configuration of the Job type for use +// with apply. +type JobApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` + Status *JobStatusApplyConfiguration `json:"status,omitempty"` +} + +// JobApplyConfiguration represents a declarative configuration of the Job type for use +// with apply. +func Job() *JobApplyConfiguration { + return &JobApplyConfiguration{} +} + +// JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use +// with apply. +type JobConditionApplyConfiguration struct { + Type *batchv1.JobConditionType `json:"type,omitempty"` + Status *apicorev1.ConditionStatus `json:"status,omitempty"` + LastProbeTime *apismetav1.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use +// with apply. +func JobCondition() *JobConditionApplyConfiguration { + return &JobConditionApplyConfiguration{} +} + +// JobListApplyConfiguration represents a declarative configuration of the JobList type for use +// with apply. +type JobListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]JobApplyConfiguration `json:"items,omitempty"` +} + +// JobListApplyConfiguration represents a declarative configuration of the JobList type for use +// with apply. +func JobList() *JobListApplyConfiguration { + return &JobListApplyConfiguration{} +} + +// JobSpecApplyConfiguration represents a declarative configuration of the JobSpec type for use +// with apply. +type JobSpecApplyConfiguration struct { + Parallelism *int32 `json:"parallelism,omitempty"` + Completions *int32 `json:"completions,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + BackoffLimit *int32 `json:"backoffLimit,omitempty"` + Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"` + ManualSelector *bool `json:"manualSelector,omitempty"` + Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"` + TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` +} + +// JobSpecApplyConfiguration represents a declarative configuration of the JobSpec type for use +// with apply. +func JobSpec() *JobSpecApplyConfiguration { + return &JobSpecApplyConfiguration{} +} + +// JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use +// with apply. +type JobStatusApplyConfiguration struct { + Conditions *[]JobConditionApplyConfiguration `json:"conditions,omitempty"` + StartTime *apismetav1.Time `json:"startTime,omitempty"` + CompletionTime *apismetav1.Time `json:"completionTime,omitempty"` + Active *int32 `json:"active,omitempty"` + Succeeded *int32 `json:"succeeded,omitempty"` + Failed *int32 `json:"failed,omitempty"` +} + +// JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use +// with apply. +func JobStatus() *JobStatusApplyConfiguration { + return &JobStatusApplyConfiguration{} +} diff --git a/pkg/applyconfigurations/testdata/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..33afb787b --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/batch/v1beta1/v1beta1_zz_generated.applyconfigurations.go @@ -0,0 +1,100 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1beta1 + +import ( + batchv1beta1 "k8s.io/api/batch/v1beta1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + batchv1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/batch/v1" + corev1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/core/v1" + v1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/meta/v1" +) + +// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use +// with apply. +type CronJobApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` + Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` +} + +// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use +// with apply. +func CronJob() *CronJobApplyConfiguration { + return &CronJobApplyConfiguration{} +} + +// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use +// with apply. +type CronJobListApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]CronJobApplyConfiguration `json:"items,omitempty"` +} + +// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use +// with apply. +func CronJobList() *CronJobListApplyConfiguration { + return &CronJobListApplyConfiguration{} +} + +// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use +// with apply. +type CronJobSpecApplyConfiguration struct { + Schedule *string `json:"schedule,omitempty"` + StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` + ConcurrencyPolicy *batchv1beta1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` + Suspend *bool `json:"suspend,omitempty"` + JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"` + SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` + FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` +} + +// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use +// with apply. +func CronJobSpec() *CronJobSpecApplyConfiguration { + return &CronJobSpecApplyConfiguration{} +} + +// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use +// with apply. +type CronJobStatusApplyConfiguration struct { + Active *[]corev1.ObjectReferenceApplyConfiguration `json:"active,omitempty"` + LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` +} + +// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use +// with apply. +func CronJobStatus() *CronJobStatusApplyConfiguration { + return &CronJobStatusApplyConfiguration{} +} + +// JobTemplateApplyConfiguration represents a declarative configuration of the JobTemplate type for use +// with apply. +type JobTemplateApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Template *JobTemplateSpecApplyConfiguration `json:"template,omitempty"` +} + +// JobTemplateApplyConfiguration represents a declarative configuration of the JobTemplate type for use +// with apply. +func JobTemplate() *JobTemplateApplyConfiguration { + return &JobTemplateApplyConfiguration{} +} + +// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use +// with apply. +type JobTemplateSpecApplyConfiguration struct { + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *batchv1.JobSpecApplyConfiguration `json:"spec,omitempty"` +} + +// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use +// with apply. +func JobTemplateSpec() *JobTemplateSpecApplyConfiguration { + return &JobTemplateSpecApplyConfiguration{} +} diff --git a/pkg/applyconfigurations/testdata/ac/core/v1/v1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/core/v1/v1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..574fc8118 --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/core/v1/v1_zz_generated.applyconfigurations.go @@ -0,0 +1,3116 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1 + +import ( + corev1 "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/api/resource" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" + "k8s.io/apimachinery/pkg/util/intstr" + metav1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/meta/v1" +) + +// AWSElasticBlockStoreVolumeSourceApplyConfiguration represents a declarative configuration of the AWSElasticBlockStoreVolumeSource type for use +// with apply. +type AWSElasticBlockStoreVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + Partition *int32 `json:"partition,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// AWSElasticBlockStoreVolumeSourceApplyConfiguration represents a declarative configuration of the AWSElasticBlockStoreVolumeSource type for use +// with apply. +func AWSElasticBlockStoreVolumeSource() *AWSElasticBlockStoreVolumeSourceApplyConfiguration { + return &AWSElasticBlockStoreVolumeSourceApplyConfiguration{} +} + +// AffinityApplyConfiguration represents a declarative configuration of the Affinity type for use +// with apply. +type AffinityApplyConfiguration struct { + NodeAffinity *NodeAffinityApplyConfiguration `json:"nodeAffinity,omitempty"` + PodAffinity *PodAffinityApplyConfiguration `json:"podAffinity,omitempty"` + PodAntiAffinity *PodAntiAffinityApplyConfiguration `json:"podAntiAffinity,omitempty"` +} + +// AffinityApplyConfiguration represents a declarative configuration of the Affinity type for use +// with apply. +func Affinity() *AffinityApplyConfiguration { + return &AffinityApplyConfiguration{} +} + +// AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use +// with apply. +type AttachedVolumeApplyConfiguration struct { + Name *corev1.UniqueVolumeName `json:"name,omitempty"` + DevicePath *string `json:"devicePath,omitempty"` +} + +// AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use +// with apply. +func AttachedVolume() *AttachedVolumeApplyConfiguration { + return &AttachedVolumeApplyConfiguration{} +} + +// AvoidPodsApplyConfiguration represents a declarative configuration of the AvoidPods type for use +// with apply. +type AvoidPodsApplyConfiguration struct { + PreferAvoidPods *[]PreferAvoidPodsEntryApplyConfiguration `json:"preferAvoidPods,omitempty"` +} + +// AvoidPodsApplyConfiguration represents a declarative configuration of the AvoidPods type for use +// with apply. +func AvoidPods() *AvoidPodsApplyConfiguration { + return &AvoidPodsApplyConfiguration{} +} + +// AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use +// with apply. +type AzureDiskVolumeSourceApplyConfiguration struct { + DiskName *string `json:"diskName,omitempty"` + DataDiskURI *string `json:"diskURI,omitempty"` + CachingMode *corev1.AzureDataDiskCachingMode `json:"cachingMode,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Kind *corev1.AzureDataDiskKind `json:"kind,omitempty"` +} + +// AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use +// with apply. +func AzureDiskVolumeSource() *AzureDiskVolumeSourceApplyConfiguration { + return &AzureDiskVolumeSourceApplyConfiguration{} +} + +// AzureFilePersistentVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFilePersistentVolumeSource type for use +// with apply. +type AzureFilePersistentVolumeSourceApplyConfiguration struct { + SecretName *string `json:"secretName,omitempty"` + ShareName *string `json:"shareName,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretNamespace *string `json:"secretNamespace,omitempty"` +} + +// AzureFilePersistentVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFilePersistentVolumeSource type for use +// with apply. +func AzureFilePersistentVolumeSource() *AzureFilePersistentVolumeSourceApplyConfiguration { + return &AzureFilePersistentVolumeSourceApplyConfiguration{} +} + +// AzureFileVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFileVolumeSource type for use +// with apply. +type AzureFileVolumeSourceApplyConfiguration struct { + SecretName *string `json:"secretName,omitempty"` + ShareName *string `json:"shareName,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// AzureFileVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFileVolumeSource type for use +// with apply. +func AzureFileVolumeSource() *AzureFileVolumeSourceApplyConfiguration { + return &AzureFileVolumeSourceApplyConfiguration{} +} + +// BindingApplyConfiguration represents a declarative configuration of the Binding type for use +// with apply. +type BindingApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Target *ObjectReferenceApplyConfiguration `json:"target,omitempty"` +} + +// BindingApplyConfiguration represents a declarative configuration of the Binding type for use +// with apply. +func Binding() *BindingApplyConfiguration { + return &BindingApplyConfiguration{} +} + +// CSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CSIPersistentVolumeSource type for use +// with apply. +type CSIPersistentVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + VolumeHandle *string `json:"volumeHandle,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + FSType *string `json:"fsType,omitempty"` + VolumeAttributes *map[string]string `json:"volumeAttributes,omitempty"` + ControllerPublishSecretRef *SecretReferenceApplyConfiguration `json:"controllerPublishSecretRef,omitempty"` + NodeStageSecretRef *SecretReferenceApplyConfiguration `json:"nodeStageSecretRef,omitempty"` + NodePublishSecretRef *SecretReferenceApplyConfiguration `json:"nodePublishSecretRef,omitempty"` + ControllerExpandSecretRef *SecretReferenceApplyConfiguration `json:"controllerExpandSecretRef,omitempty"` +} + +// CSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CSIPersistentVolumeSource type for use +// with apply. +func CSIPersistentVolumeSource() *CSIPersistentVolumeSourceApplyConfiguration { + return &CSIPersistentVolumeSourceApplyConfiguration{} +} + +// CSIVolumeSourceApplyConfiguration represents a declarative configuration of the CSIVolumeSource type for use +// with apply. +type CSIVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + FSType *string `json:"fsType,omitempty"` + VolumeAttributes *map[string]string `json:"volumeAttributes,omitempty"` + NodePublishSecretRef *LocalObjectReferenceApplyConfiguration `json:"nodePublishSecretRef,omitempty"` +} + +// CSIVolumeSourceApplyConfiguration represents a declarative configuration of the CSIVolumeSource type for use +// with apply. +func CSIVolumeSource() *CSIVolumeSourceApplyConfiguration { + return &CSIVolumeSourceApplyConfiguration{} +} + +// CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use +// with apply. +type CapabilitiesApplyConfiguration struct { + Add *[]corev1.Capability `json:"add,omitempty"` + Drop *[]corev1.Capability `json:"drop,omitempty"` +} + +// CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use +// with apply. +func Capabilities() *CapabilitiesApplyConfiguration { + return &CapabilitiesApplyConfiguration{} +} + +// CephFSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSPersistentVolumeSource type for use +// with apply. +type CephFSPersistentVolumeSourceApplyConfiguration struct { + Monitors *[]string `json:"monitors,omitempty"` + Path *string `json:"path,omitempty"` + User *string `json:"user,omitempty"` + SecretFile *string `json:"secretFile,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// CephFSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSPersistentVolumeSource type for use +// with apply. +func CephFSPersistentVolumeSource() *CephFSPersistentVolumeSourceApplyConfiguration { + return &CephFSPersistentVolumeSourceApplyConfiguration{} +} + +// CephFSVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSVolumeSource type for use +// with apply. +type CephFSVolumeSourceApplyConfiguration struct { + Monitors *[]string `json:"monitors,omitempty"` + Path *string `json:"path,omitempty"` + User *string `json:"user,omitempty"` + SecretFile *string `json:"secretFile,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// CephFSVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSVolumeSource type for use +// with apply. +func CephFSVolumeSource() *CephFSVolumeSourceApplyConfiguration { + return &CephFSVolumeSourceApplyConfiguration{} +} + +// CinderPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CinderPersistentVolumeSource type for use +// with apply. +type CinderPersistentVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// CinderPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CinderPersistentVolumeSource type for use +// with apply. +func CinderPersistentVolumeSource() *CinderPersistentVolumeSourceApplyConfiguration { + return &CinderPersistentVolumeSourceApplyConfiguration{} +} + +// CinderVolumeSourceApplyConfiguration represents a declarative configuration of the CinderVolumeSource type for use +// with apply. +type CinderVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// CinderVolumeSourceApplyConfiguration represents a declarative configuration of the CinderVolumeSource type for use +// with apply. +func CinderVolumeSource() *CinderVolumeSourceApplyConfiguration { + return &CinderVolumeSourceApplyConfiguration{} +} + +// ClientIPConfigApplyConfiguration represents a declarative configuration of the ClientIPConfig type for use +// with apply. +type ClientIPConfigApplyConfiguration struct { + TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` +} + +// ClientIPConfigApplyConfiguration represents a declarative configuration of the ClientIPConfig type for use +// with apply. +func ClientIPConfig() *ClientIPConfigApplyConfiguration { + return &ClientIPConfigApplyConfiguration{} +} + +// ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use +// with apply. +type ComponentConditionApplyConfiguration struct { + Type *corev1.ComponentConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + Message *string `json:"message,omitempty"` + Error *string `json:"error,omitempty"` +} + +// ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use +// with apply. +func ComponentCondition() *ComponentConditionApplyConfiguration { + return &ComponentConditionApplyConfiguration{} +} + +// ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use +// with apply. +type ComponentStatusApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Conditions *[]ComponentConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use +// with apply. +func ComponentStatus() *ComponentStatusApplyConfiguration { + return &ComponentStatusApplyConfiguration{} +} + +// ComponentStatusListApplyConfiguration represents a declarative configuration of the ComponentStatusList type for use +// with apply. +type ComponentStatusListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ComponentStatusApplyConfiguration `json:"items,omitempty"` +} + +// ComponentStatusListApplyConfiguration represents a declarative configuration of the ComponentStatusList type for use +// with apply. +func ComponentStatusList() *ComponentStatusListApplyConfiguration { + return &ComponentStatusListApplyConfiguration{} +} + +// ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use +// with apply. +type ConfigMapApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Immutable *bool `json:"immutable,omitempty"` + Data *map[string]string `json:"data,omitempty"` + BinaryData *map[string][]byte `json:"binaryData,omitempty"` +} + +// ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use +// with apply. +func ConfigMap() *ConfigMapApplyConfiguration { + return &ConfigMapApplyConfiguration{} +} + +// ConfigMapEnvSourceApplyConfiguration represents a declarative configuration of the ConfigMapEnvSource type for use +// with apply. +type ConfigMapEnvSourceApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapEnvSourceApplyConfiguration represents a declarative configuration of the ConfigMapEnvSource type for use +// with apply. +func ConfigMapEnvSource() *ConfigMapEnvSourceApplyConfiguration { + return &ConfigMapEnvSourceApplyConfiguration{} +} + +// ConfigMapKeySelectorApplyConfiguration represents a declarative configuration of the ConfigMapKeySelector type for use +// with apply. +type ConfigMapKeySelectorApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Key *string `json:"key,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapKeySelectorApplyConfiguration represents a declarative configuration of the ConfigMapKeySelector type for use +// with apply. +func ConfigMapKeySelector() *ConfigMapKeySelectorApplyConfiguration { + return &ConfigMapKeySelectorApplyConfiguration{} +} + +// ConfigMapListApplyConfiguration represents a declarative configuration of the ConfigMapList type for use +// with apply. +type ConfigMapListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ConfigMapApplyConfiguration `json:"items,omitempty"` +} + +// ConfigMapListApplyConfiguration represents a declarative configuration of the ConfigMapList type for use +// with apply. +func ConfigMapList() *ConfigMapListApplyConfiguration { + return &ConfigMapListApplyConfiguration{} +} + +// ConfigMapNodeConfigSourceApplyConfiguration represents a declarative configuration of the ConfigMapNodeConfigSource type for use +// with apply. +type ConfigMapNodeConfigSourceApplyConfiguration struct { + Namespace *string `json:"namespace,omitempty"` + Name *string `json:"name,omitempty"` + UID *types.UID `json:"uid,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + KubeletConfigKey *string `json:"kubeletConfigKey,omitempty"` +} + +// ConfigMapNodeConfigSourceApplyConfiguration represents a declarative configuration of the ConfigMapNodeConfigSource type for use +// with apply. +func ConfigMapNodeConfigSource() *ConfigMapNodeConfigSourceApplyConfiguration { + return &ConfigMapNodeConfigSourceApplyConfiguration{} +} + +// ConfigMapProjectionApplyConfiguration represents a declarative configuration of the ConfigMapProjection type for use +// with apply. +type ConfigMapProjectionApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapProjectionApplyConfiguration represents a declarative configuration of the ConfigMapProjection type for use +// with apply. +func ConfigMapProjection() *ConfigMapProjectionApplyConfiguration { + return &ConfigMapProjectionApplyConfiguration{} +} + +// ConfigMapVolumeSourceApplyConfiguration represents a declarative configuration of the ConfigMapVolumeSource type for use +// with apply. +type ConfigMapVolumeSourceApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// ConfigMapVolumeSourceApplyConfiguration represents a declarative configuration of the ConfigMapVolumeSource type for use +// with apply. +func ConfigMapVolumeSource() *ConfigMapVolumeSourceApplyConfiguration { + return &ConfigMapVolumeSourceApplyConfiguration{} +} + +// ContainerApplyConfiguration represents a declarative configuration of the Container type for use +// with apply. +type ContainerApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Image *string `json:"image,omitempty"` + Command *[]string `json:"command,omitempty"` + Args *[]string `json:"args,omitempty"` + WorkingDir *string `json:"workingDir,omitempty"` + Ports *[]ContainerPortApplyConfiguration `json:"ports,omitempty"` + EnvFrom *[]EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"` + Env *[]EnvVarApplyConfiguration `json:"env,omitempty"` + Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"` + VolumeMounts *[]VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"` + VolumeDevices *[]VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"` + LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"` + ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"` + StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"` + Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"` + TerminationMessagePath *string `json:"terminationMessagePath,omitempty"` + TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` + ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` + SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"` + Stdin *bool `json:"stdin,omitempty"` + StdinOnce *bool `json:"stdinOnce,omitempty"` + TTY *bool `json:"tty,omitempty"` +} + +// ContainerApplyConfiguration represents a declarative configuration of the Container type for use +// with apply. +func Container() *ContainerApplyConfiguration { + return &ContainerApplyConfiguration{} +} + +// ContainerImageApplyConfiguration represents a declarative configuration of the ContainerImage type for use +// with apply. +type ContainerImageApplyConfiguration struct { + Names *[]string `json:"names,omitempty"` + SizeBytes *int64 `json:"sizeBytes,omitempty"` +} + +// ContainerImageApplyConfiguration represents a declarative configuration of the ContainerImage type for use +// with apply. +func ContainerImage() *ContainerImageApplyConfiguration { + return &ContainerImageApplyConfiguration{} +} + +// ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use +// with apply. +type ContainerPortApplyConfiguration struct { + Name *string `json:"name,omitempty"` + HostPort *int32 `json:"hostPort,omitempty"` + ContainerPort *int32 `json:"containerPort,omitempty"` + Protocol *corev1.Protocol `json:"protocol,omitempty"` + HostIP *string `json:"hostIP,omitempty"` +} + +// ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use +// with apply. +func ContainerPort() *ContainerPortApplyConfiguration { + return &ContainerPortApplyConfiguration{} +} + +// ContainerStateApplyConfiguration represents a declarative configuration of the ContainerState type for use +// with apply. +type ContainerStateApplyConfiguration struct { + Waiting *ContainerStateWaitingApplyConfiguration `json:"waiting,omitempty"` + Running *ContainerStateRunningApplyConfiguration `json:"running,omitempty"` + Terminated *ContainerStateTerminatedApplyConfiguration `json:"terminated,omitempty"` +} + +// ContainerStateApplyConfiguration represents a declarative configuration of the ContainerState type for use +// with apply. +func ContainerState() *ContainerStateApplyConfiguration { + return &ContainerStateApplyConfiguration{} +} + +// ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use +// with apply. +type ContainerStateRunningApplyConfiguration struct { + StartedAt *apismetav1.Time `json:"startedAt,omitempty"` +} + +// ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use +// with apply. +func ContainerStateRunning() *ContainerStateRunningApplyConfiguration { + return &ContainerStateRunningApplyConfiguration{} +} + +// ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use +// with apply. +type ContainerStateTerminatedApplyConfiguration struct { + ExitCode *int32 `json:"exitCode,omitempty"` + Signal *int32 `json:"signal,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` + StartedAt *apismetav1.Time `json:"startedAt,omitempty"` + FinishedAt *apismetav1.Time `json:"finishedAt,omitempty"` + ContainerID *string `json:"containerID,omitempty"` +} + +// ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use +// with apply. +func ContainerStateTerminated() *ContainerStateTerminatedApplyConfiguration { + return &ContainerStateTerminatedApplyConfiguration{} +} + +// ContainerStateWaitingApplyConfiguration represents a declarative configuration of the ContainerStateWaiting type for use +// with apply. +type ContainerStateWaitingApplyConfiguration struct { + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ContainerStateWaitingApplyConfiguration represents a declarative configuration of the ContainerStateWaiting type for use +// with apply. +func ContainerStateWaiting() *ContainerStateWaitingApplyConfiguration { + return &ContainerStateWaitingApplyConfiguration{} +} + +// ContainerStatusApplyConfiguration represents a declarative configuration of the ContainerStatus type for use +// with apply. +type ContainerStatusApplyConfiguration struct { + Name *string `json:"name,omitempty"` + State *ContainerStateApplyConfiguration `json:"state,omitempty"` + LastTerminationState *ContainerStateApplyConfiguration `json:"lastState,omitempty"` + Ready *bool `json:"ready,omitempty"` + RestartCount *int32 `json:"restartCount,omitempty"` + Image *string `json:"image,omitempty"` + ImageID *string `json:"imageID,omitempty"` + ContainerID *string `json:"containerID,omitempty"` + Started *bool `json:"started,omitempty"` +} + +// ContainerStatusApplyConfiguration represents a declarative configuration of the ContainerStatus type for use +// with apply. +func ContainerStatus() *ContainerStatusApplyConfiguration { + return &ContainerStatusApplyConfiguration{} +} + +// DaemonEndpointApplyConfiguration represents a declarative configuration of the DaemonEndpoint type for use +// with apply. +type DaemonEndpointApplyConfiguration struct { + Port *int32 `json:"Port,omitempty"` +} + +// DaemonEndpointApplyConfiguration represents a declarative configuration of the DaemonEndpoint type for use +// with apply. +func DaemonEndpoint() *DaemonEndpointApplyConfiguration { + return &DaemonEndpointApplyConfiguration{} +} + +// DownwardAPIProjectionApplyConfiguration represents a declarative configuration of the DownwardAPIProjection type for use +// with apply. +type DownwardAPIProjectionApplyConfiguration struct { + Items *[]DownwardAPIVolumeFileApplyConfiguration `json:"items,omitempty"` +} + +// DownwardAPIProjectionApplyConfiguration represents a declarative configuration of the DownwardAPIProjection type for use +// with apply. +func DownwardAPIProjection() *DownwardAPIProjectionApplyConfiguration { + return &DownwardAPIProjectionApplyConfiguration{} +} + +// DownwardAPIVolumeFileApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeFile type for use +// with apply. +type DownwardAPIVolumeFileApplyConfiguration struct { + Path *string `json:"path,omitempty"` + FieldRef *ObjectFieldSelectorApplyConfiguration `json:"fieldRef,omitempty"` + ResourceFieldRef *ResourceFieldSelectorApplyConfiguration `json:"resourceFieldRef,omitempty"` + Mode *int32 `json:"mode,omitempty"` +} + +// DownwardAPIVolumeFileApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeFile type for use +// with apply. +func DownwardAPIVolumeFile() *DownwardAPIVolumeFileApplyConfiguration { + return &DownwardAPIVolumeFileApplyConfiguration{} +} + +// DownwardAPIVolumeSourceApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeSource type for use +// with apply. +type DownwardAPIVolumeSourceApplyConfiguration struct { + Items *[]DownwardAPIVolumeFileApplyConfiguration `json:"items,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` +} + +// DownwardAPIVolumeSourceApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeSource type for use +// with apply. +func DownwardAPIVolumeSource() *DownwardAPIVolumeSourceApplyConfiguration { + return &DownwardAPIVolumeSourceApplyConfiguration{} +} + +// EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use +// with apply. +type EmptyDirVolumeSourceApplyConfiguration struct { + Medium *corev1.StorageMedium `json:"medium,omitempty"` + SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"` +} + +// EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use +// with apply. +func EmptyDirVolumeSource() *EmptyDirVolumeSourceApplyConfiguration { + return &EmptyDirVolumeSourceApplyConfiguration{} +} + +// EndpointAddressApplyConfiguration represents a declarative configuration of the EndpointAddress type for use +// with apply. +type EndpointAddressApplyConfiguration struct { + IP *string `json:"ip,omitempty"` + Hostname *string `json:"hostname,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + TargetRef *ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"` +} + +// EndpointAddressApplyConfiguration represents a declarative configuration of the EndpointAddress type for use +// with apply. +func EndpointAddress() *EndpointAddressApplyConfiguration { + return &EndpointAddressApplyConfiguration{} +} + +// EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use +// with apply. +type EndpointPortApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Port *int32 `json:"port,omitempty"` + Protocol *corev1.Protocol `json:"protocol,omitempty"` + AppProtocol *string `json:"appProtocol,omitempty"` +} + +// EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use +// with apply. +func EndpointPort() *EndpointPortApplyConfiguration { + return &EndpointPortApplyConfiguration{} +} + +// EndpointSubsetApplyConfiguration represents a declarative configuration of the EndpointSubset type for use +// with apply. +type EndpointSubsetApplyConfiguration struct { + Addresses *[]EndpointAddressApplyConfiguration `json:"addresses,omitempty"` + NotReadyAddresses *[]EndpointAddressApplyConfiguration `json:"notReadyAddresses,omitempty"` + Ports *[]EndpointPortApplyConfiguration `json:"ports,omitempty"` +} + +// EndpointSubsetApplyConfiguration represents a declarative configuration of the EndpointSubset type for use +// with apply. +func EndpointSubset() *EndpointSubsetApplyConfiguration { + return &EndpointSubsetApplyConfiguration{} +} + +// EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use +// with apply. +type EndpointsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Subsets *[]EndpointSubsetApplyConfiguration `json:"subsets,omitempty"` +} + +// EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use +// with apply. +func Endpoints() *EndpointsApplyConfiguration { + return &EndpointsApplyConfiguration{} +} + +// EndpointsListApplyConfiguration represents a declarative configuration of the EndpointsList type for use +// with apply. +type EndpointsListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]EndpointsApplyConfiguration `json:"items,omitempty"` +} + +// EndpointsListApplyConfiguration represents a declarative configuration of the EndpointsList type for use +// with apply. +func EndpointsList() *EndpointsListApplyConfiguration { + return &EndpointsListApplyConfiguration{} +} + +// EnvFromSourceApplyConfiguration represents a declarative configuration of the EnvFromSource type for use +// with apply. +type EnvFromSourceApplyConfiguration struct { + Prefix *string `json:"prefix,omitempty"` + ConfigMapRef *ConfigMapEnvSourceApplyConfiguration `json:"configMapRef,omitempty"` + SecretRef *SecretEnvSourceApplyConfiguration `json:"secretRef,omitempty"` +} + +// EnvFromSourceApplyConfiguration represents a declarative configuration of the EnvFromSource type for use +// with apply. +func EnvFromSource() *EnvFromSourceApplyConfiguration { + return &EnvFromSourceApplyConfiguration{} +} + +// EnvVarApplyConfiguration represents a declarative configuration of the EnvVar type for use +// with apply. +type EnvVarApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + ValueFrom *EnvVarSourceApplyConfiguration `json:"valueFrom,omitempty"` +} + +// EnvVarApplyConfiguration represents a declarative configuration of the EnvVar type for use +// with apply. +func EnvVar() *EnvVarApplyConfiguration { + return &EnvVarApplyConfiguration{} +} + +// EnvVarSourceApplyConfiguration represents a declarative configuration of the EnvVarSource type for use +// with apply. +type EnvVarSourceApplyConfiguration struct { + FieldRef *ObjectFieldSelectorApplyConfiguration `json:"fieldRef,omitempty"` + ResourceFieldRef *ResourceFieldSelectorApplyConfiguration `json:"resourceFieldRef,omitempty"` + ConfigMapKeyRef *ConfigMapKeySelectorApplyConfiguration `json:"configMapKeyRef,omitempty"` + SecretKeyRef *SecretKeySelectorApplyConfiguration `json:"secretKeyRef,omitempty"` +} + +// EnvVarSourceApplyConfiguration represents a declarative configuration of the EnvVarSource type for use +// with apply. +func EnvVarSource() *EnvVarSourceApplyConfiguration { + return &EnvVarSourceApplyConfiguration{} +} + +// EphemeralContainerApplyConfiguration represents a declarative configuration of the EphemeralContainer type for use +// with apply. +type EphemeralContainerApplyConfiguration struct { + EphemeralContainerCommonApplyConfiguration `json:",inline"` + TargetContainerName *string `json:"targetContainerName,omitempty"` +} + +// EphemeralContainerApplyConfiguration represents a declarative configuration of the EphemeralContainer type for use +// with apply. +func EphemeralContainer() *EphemeralContainerApplyConfiguration { + return &EphemeralContainerApplyConfiguration{} +} + +// EphemeralContainerCommonApplyConfiguration represents a declarative configuration of the EphemeralContainerCommon type for use +// with apply. +type EphemeralContainerCommonApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Image *string `json:"image,omitempty"` + Command *[]string `json:"command,omitempty"` + Args *[]string `json:"args,omitempty"` + WorkingDir *string `json:"workingDir,omitempty"` + Ports *[]ContainerPortApplyConfiguration `json:"ports,omitempty"` + EnvFrom *[]EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"` + Env *[]EnvVarApplyConfiguration `json:"env,omitempty"` + Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"` + VolumeMounts *[]VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"` + VolumeDevices *[]VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"` + LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"` + ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"` + StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"` + Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"` + TerminationMessagePath *string `json:"terminationMessagePath,omitempty"` + TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` + ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` + SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"` + Stdin *bool `json:"stdin,omitempty"` + StdinOnce *bool `json:"stdinOnce,omitempty"` + TTY *bool `json:"tty,omitempty"` +} + +// EphemeralContainerCommonApplyConfiguration represents a declarative configuration of the EphemeralContainerCommon type for use +// with apply. +func EphemeralContainerCommon() *EphemeralContainerCommonApplyConfiguration { + return &EphemeralContainerCommonApplyConfiguration{} +} + +// EphemeralContainersApplyConfiguration represents a declarative configuration of the EphemeralContainers type for use +// with apply. +type EphemeralContainersApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + EphemeralContainers *[]EphemeralContainerApplyConfiguration `json:"ephemeralContainers,omitempty"` +} + +// EphemeralContainersApplyConfiguration represents a declarative configuration of the EphemeralContainers type for use +// with apply. +func EphemeralContainers() *EphemeralContainersApplyConfiguration { + return &EphemeralContainersApplyConfiguration{} +} + +// EventApplyConfiguration represents a declarative configuration of the Event type for use +// with apply. +type EventApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + InvolvedObject *ObjectReferenceApplyConfiguration `json:"involvedObject,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` + Source *EventSourceApplyConfiguration `json:"source,omitempty"` + FirstTimestamp *apismetav1.Time `json:"firstTimestamp,omitempty"` + LastTimestamp *apismetav1.Time `json:"lastTimestamp,omitempty"` + Count *int32 `json:"count,omitempty"` + Type *string `json:"type,omitempty"` + EventTime *apismetav1.MicroTime `json:"eventTime,omitempty"` + Series *EventSeriesApplyConfiguration `json:"series,omitempty"` + Action *string `json:"action,omitempty"` + Related *ObjectReferenceApplyConfiguration `json:"related,omitempty"` + ReportingController *string `json:"reportingComponent,omitempty"` + ReportingInstance *string `json:"reportingInstance,omitempty"` +} + +// EventApplyConfiguration represents a declarative configuration of the Event type for use +// with apply. +func Event() *EventApplyConfiguration { + return &EventApplyConfiguration{} +} + +// EventListApplyConfiguration represents a declarative configuration of the EventList type for use +// with apply. +type EventListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]EventApplyConfiguration `json:"items,omitempty"` +} + +// EventListApplyConfiguration represents a declarative configuration of the EventList type for use +// with apply. +func EventList() *EventListApplyConfiguration { + return &EventListApplyConfiguration{} +} + +// EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use +// with apply. +type EventSeriesApplyConfiguration struct { + Count *int32 `json:"count,omitempty"` + LastObservedTime *apismetav1.MicroTime `json:"lastObservedTime,omitempty"` + State *corev1.EventSeriesState `json:"state,omitempty"` +} + +// EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use +// with apply. +func EventSeries() *EventSeriesApplyConfiguration { + return &EventSeriesApplyConfiguration{} +} + +// EventSourceApplyConfiguration represents a declarative configuration of the EventSource type for use +// with apply. +type EventSourceApplyConfiguration struct { + Component *string `json:"component,omitempty"` + Host *string `json:"host,omitempty"` +} + +// EventSourceApplyConfiguration represents a declarative configuration of the EventSource type for use +// with apply. +func EventSource() *EventSourceApplyConfiguration { + return &EventSourceApplyConfiguration{} +} + +// ExecActionApplyConfiguration represents a declarative configuration of the ExecAction type for use +// with apply. +type ExecActionApplyConfiguration struct { + Command *[]string `json:"command,omitempty"` +} + +// ExecActionApplyConfiguration represents a declarative configuration of the ExecAction type for use +// with apply. +func ExecAction() *ExecActionApplyConfiguration { + return &ExecActionApplyConfiguration{} +} + +// FCVolumeSourceApplyConfiguration represents a declarative configuration of the FCVolumeSource type for use +// with apply. +type FCVolumeSourceApplyConfiguration struct { + TargetWWNs *[]string `json:"targetWWNs,omitempty"` + Lun *int32 `json:"lun,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + WWIDs *[]string `json:"wwids,omitempty"` +} + +// FCVolumeSourceApplyConfiguration represents a declarative configuration of the FCVolumeSource type for use +// with apply. +func FCVolumeSource() *FCVolumeSourceApplyConfiguration { + return &FCVolumeSourceApplyConfiguration{} +} + +// FlexPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the FlexPersistentVolumeSource type for use +// with apply. +type FlexPersistentVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + FSType *string `json:"fsType,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Options *map[string]string `json:"options,omitempty"` +} + +// FlexPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the FlexPersistentVolumeSource type for use +// with apply. +func FlexPersistentVolumeSource() *FlexPersistentVolumeSourceApplyConfiguration { + return &FlexPersistentVolumeSourceApplyConfiguration{} +} + +// FlexVolumeSourceApplyConfiguration represents a declarative configuration of the FlexVolumeSource type for use +// with apply. +type FlexVolumeSourceApplyConfiguration struct { + Driver *string `json:"driver,omitempty"` + FSType *string `json:"fsType,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Options *map[string]string `json:"options,omitempty"` +} + +// FlexVolumeSourceApplyConfiguration represents a declarative configuration of the FlexVolumeSource type for use +// with apply. +func FlexVolumeSource() *FlexVolumeSourceApplyConfiguration { + return &FlexVolumeSourceApplyConfiguration{} +} + +// FlockerVolumeSourceApplyConfiguration represents a declarative configuration of the FlockerVolumeSource type for use +// with apply. +type FlockerVolumeSourceApplyConfiguration struct { + DatasetName *string `json:"datasetName,omitempty"` + DatasetUUID *string `json:"datasetUUID,omitempty"` +} + +// FlockerVolumeSourceApplyConfiguration represents a declarative configuration of the FlockerVolumeSource type for use +// with apply. +func FlockerVolumeSource() *FlockerVolumeSourceApplyConfiguration { + return &FlockerVolumeSourceApplyConfiguration{} +} + +// GCEPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the GCEPersistentDiskVolumeSource type for use +// with apply. +type GCEPersistentDiskVolumeSourceApplyConfiguration struct { + PDName *string `json:"pdName,omitempty"` + FSType *string `json:"fsType,omitempty"` + Partition *int32 `json:"partition,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// GCEPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the GCEPersistentDiskVolumeSource type for use +// with apply. +func GCEPersistentDiskVolumeSource() *GCEPersistentDiskVolumeSourceApplyConfiguration { + return &GCEPersistentDiskVolumeSourceApplyConfiguration{} +} + +// GitRepoVolumeSourceApplyConfiguration represents a declarative configuration of the GitRepoVolumeSource type for use +// with apply. +type GitRepoVolumeSourceApplyConfiguration struct { + Repository *string `json:"repository,omitempty"` + Revision *string `json:"revision,omitempty"` + Directory *string `json:"directory,omitempty"` +} + +// GitRepoVolumeSourceApplyConfiguration represents a declarative configuration of the GitRepoVolumeSource type for use +// with apply. +func GitRepoVolumeSource() *GitRepoVolumeSourceApplyConfiguration { + return &GitRepoVolumeSourceApplyConfiguration{} +} + +// GlusterfsPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsPersistentVolumeSource type for use +// with apply. +type GlusterfsPersistentVolumeSourceApplyConfiguration struct { + EndpointsName *string `json:"endpoints,omitempty"` + Path *string `json:"path,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + EndpointsNamespace *string `json:"endpointsNamespace,omitempty"` +} + +// GlusterfsPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsPersistentVolumeSource type for use +// with apply. +func GlusterfsPersistentVolumeSource() *GlusterfsPersistentVolumeSourceApplyConfiguration { + return &GlusterfsPersistentVolumeSourceApplyConfiguration{} +} + +// GlusterfsVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsVolumeSource type for use +// with apply. +type GlusterfsVolumeSourceApplyConfiguration struct { + EndpointsName *string `json:"endpoints,omitempty"` + Path *string `json:"path,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// GlusterfsVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsVolumeSource type for use +// with apply. +func GlusterfsVolumeSource() *GlusterfsVolumeSourceApplyConfiguration { + return &GlusterfsVolumeSourceApplyConfiguration{} +} + +// HTTPGetActionApplyConfiguration represents a declarative configuration of the HTTPGetAction type for use +// with apply. +type HTTPGetActionApplyConfiguration struct { + Path *string `json:"path,omitempty"` + Port *intstr.IntOrString `json:"port,omitempty"` + Host *string `json:"host,omitempty"` + Scheme *corev1.URIScheme `json:"scheme,omitempty"` + HTTPHeaders *[]HTTPHeaderApplyConfiguration `json:"httpHeaders,omitempty"` +} + +// HTTPGetActionApplyConfiguration represents a declarative configuration of the HTTPGetAction type for use +// with apply. +func HTTPGetAction() *HTTPGetActionApplyConfiguration { + return &HTTPGetActionApplyConfiguration{} +} + +// HTTPHeaderApplyConfiguration represents a declarative configuration of the HTTPHeader type for use +// with apply. +type HTTPHeaderApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// HTTPHeaderApplyConfiguration represents a declarative configuration of the HTTPHeader type for use +// with apply. +func HTTPHeader() *HTTPHeaderApplyConfiguration { + return &HTTPHeaderApplyConfiguration{} +} + +// HandlerApplyConfiguration represents a declarative configuration of the Handler type for use +// with apply. +type HandlerApplyConfiguration struct { + Exec *ExecActionApplyConfiguration `json:"exec,omitempty"` + HTTPGet *HTTPGetActionApplyConfiguration `json:"httpGet,omitempty"` + TCPSocket *TCPSocketActionApplyConfiguration `json:"tcpSocket,omitempty"` +} + +// HandlerApplyConfiguration represents a declarative configuration of the Handler type for use +// with apply. +func Handler() *HandlerApplyConfiguration { + return &HandlerApplyConfiguration{} +} + +// HostAliasApplyConfiguration represents a declarative configuration of the HostAlias type for use +// with apply. +type HostAliasApplyConfiguration struct { + IP *string `json:"ip,omitempty"` + Hostnames *[]string `json:"hostnames,omitempty"` +} + +// HostAliasApplyConfiguration represents a declarative configuration of the HostAlias type for use +// with apply. +func HostAlias() *HostAliasApplyConfiguration { + return &HostAliasApplyConfiguration{} +} + +// HostPathVolumeSourceApplyConfiguration represents a declarative configuration of the HostPathVolumeSource type for use +// with apply. +type HostPathVolumeSourceApplyConfiguration struct { + Path *string `json:"path,omitempty"` + Type *corev1.HostPathType `json:"type,omitempty"` +} + +// HostPathVolumeSourceApplyConfiguration represents a declarative configuration of the HostPathVolumeSource type for use +// with apply. +func HostPathVolumeSource() *HostPathVolumeSourceApplyConfiguration { + return &HostPathVolumeSourceApplyConfiguration{} +} + +// ISCSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIPersistentVolumeSource type for use +// with apply. +type ISCSIPersistentVolumeSourceApplyConfiguration struct { + TargetPortal *string `json:"targetPortal,omitempty"` + IQN *string `json:"iqn,omitempty"` + Lun *int32 `json:"lun,omitempty"` + ISCSIInterface *string `json:"iscsiInterface,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Portals *[]string `json:"portals,omitempty"` + DiscoveryCHAPAuth *bool `json:"chapAuthDiscovery,omitempty"` + SessionCHAPAuth *bool `json:"chapAuthSession,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + InitiatorName *string `json:"initiatorName,omitempty"` +} + +// ISCSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIPersistentVolumeSource type for use +// with apply. +func ISCSIPersistentVolumeSource() *ISCSIPersistentVolumeSourceApplyConfiguration { + return &ISCSIPersistentVolumeSourceApplyConfiguration{} +} + +// ISCSIVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIVolumeSource type for use +// with apply. +type ISCSIVolumeSourceApplyConfiguration struct { + TargetPortal *string `json:"targetPortal,omitempty"` + IQN *string `json:"iqn,omitempty"` + Lun *int32 `json:"lun,omitempty"` + ISCSIInterface *string `json:"iscsiInterface,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Portals *[]string `json:"portals,omitempty"` + DiscoveryCHAPAuth *bool `json:"chapAuthDiscovery,omitempty"` + SessionCHAPAuth *bool `json:"chapAuthSession,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + InitiatorName *string `json:"initiatorName,omitempty"` +} + +// ISCSIVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIVolumeSource type for use +// with apply. +func ISCSIVolumeSource() *ISCSIVolumeSourceApplyConfiguration { + return &ISCSIVolumeSourceApplyConfiguration{} +} + +// KeyToPathApplyConfiguration represents a declarative configuration of the KeyToPath type for use +// with apply. +type KeyToPathApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Path *string `json:"path,omitempty"` + Mode *int32 `json:"mode,omitempty"` +} + +// KeyToPathApplyConfiguration represents a declarative configuration of the KeyToPath type for use +// with apply. +func KeyToPath() *KeyToPathApplyConfiguration { + return &KeyToPathApplyConfiguration{} +} + +// LifecycleApplyConfiguration represents a declarative configuration of the Lifecycle type for use +// with apply. +type LifecycleApplyConfiguration struct { + PostStart *HandlerApplyConfiguration `json:"postStart,omitempty"` + PreStop *HandlerApplyConfiguration `json:"preStop,omitempty"` +} + +// LifecycleApplyConfiguration represents a declarative configuration of the Lifecycle type for use +// with apply. +func Lifecycle() *LifecycleApplyConfiguration { + return &LifecycleApplyConfiguration{} +} + +// LimitRangeApplyConfiguration represents a declarative configuration of the LimitRange type for use +// with apply. +type LimitRangeApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *LimitRangeSpecApplyConfiguration `json:"spec,omitempty"` +} + +// LimitRangeApplyConfiguration represents a declarative configuration of the LimitRange type for use +// with apply. +func LimitRange() *LimitRangeApplyConfiguration { + return &LimitRangeApplyConfiguration{} +} + +// LimitRangeItemApplyConfiguration represents a declarative configuration of the LimitRangeItem type for use +// with apply. +type LimitRangeItemApplyConfiguration struct { + Type *corev1.LimitType `json:"type,omitempty"` + Max *corev1.ResourceList `json:"max,omitempty"` + Min *corev1.ResourceList `json:"min,omitempty"` + Default *corev1.ResourceList `json:"default,omitempty"` + DefaultRequest *corev1.ResourceList `json:"defaultRequest,omitempty"` + MaxLimitRequestRatio *corev1.ResourceList `json:"maxLimitRequestRatio,omitempty"` +} + +// LimitRangeItemApplyConfiguration represents a declarative configuration of the LimitRangeItem type for use +// with apply. +func LimitRangeItem() *LimitRangeItemApplyConfiguration { + return &LimitRangeItemApplyConfiguration{} +} + +// LimitRangeListApplyConfiguration represents a declarative configuration of the LimitRangeList type for use +// with apply. +type LimitRangeListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]LimitRangeApplyConfiguration `json:"items,omitempty"` +} + +// LimitRangeListApplyConfiguration represents a declarative configuration of the LimitRangeList type for use +// with apply. +func LimitRangeList() *LimitRangeListApplyConfiguration { + return &LimitRangeListApplyConfiguration{} +} + +// LimitRangeSpecApplyConfiguration represents a declarative configuration of the LimitRangeSpec type for use +// with apply. +type LimitRangeSpecApplyConfiguration struct { + Limits *[]LimitRangeItemApplyConfiguration `json:"limits,omitempty"` +} + +// LimitRangeSpecApplyConfiguration represents a declarative configuration of the LimitRangeSpec type for use +// with apply. +func LimitRangeSpec() *LimitRangeSpecApplyConfiguration { + return &LimitRangeSpecApplyConfiguration{} +} + +// LoadBalancerIngressApplyConfiguration represents a declarative configuration of the LoadBalancerIngress type for use +// with apply. +type LoadBalancerIngressApplyConfiguration struct { + IP *string `json:"ip,omitempty"` + Hostname *string `json:"hostname,omitempty"` +} + +// LoadBalancerIngressApplyConfiguration represents a declarative configuration of the LoadBalancerIngress type for use +// with apply. +func LoadBalancerIngress() *LoadBalancerIngressApplyConfiguration { + return &LoadBalancerIngressApplyConfiguration{} +} + +// LoadBalancerStatusApplyConfiguration represents a declarative configuration of the LoadBalancerStatus type for use +// with apply. +type LoadBalancerStatusApplyConfiguration struct { + Ingress *[]LoadBalancerIngressApplyConfiguration `json:"ingress,omitempty"` +} + +// LoadBalancerStatusApplyConfiguration represents a declarative configuration of the LoadBalancerStatus type for use +// with apply. +func LoadBalancerStatus() *LoadBalancerStatusApplyConfiguration { + return &LoadBalancerStatusApplyConfiguration{} +} + +// LocalObjectReferenceApplyConfiguration represents a declarative configuration of the LocalObjectReference type for use +// with apply. +type LocalObjectReferenceApplyConfiguration struct { + Name *string `json:"name,omitempty"` +} + +// LocalObjectReferenceApplyConfiguration represents a declarative configuration of the LocalObjectReference type for use +// with apply. +func LocalObjectReference() *LocalObjectReferenceApplyConfiguration { + return &LocalObjectReferenceApplyConfiguration{} +} + +// LocalVolumeSourceApplyConfiguration represents a declarative configuration of the LocalVolumeSource type for use +// with apply. +type LocalVolumeSourceApplyConfiguration struct { + Path *string `json:"path,omitempty"` + FSType *string `json:"fsType,omitempty"` +} + +// LocalVolumeSourceApplyConfiguration represents a declarative configuration of the LocalVolumeSource type for use +// with apply. +func LocalVolumeSource() *LocalVolumeSourceApplyConfiguration { + return &LocalVolumeSourceApplyConfiguration{} +} + +// NFSVolumeSourceApplyConfiguration represents a declarative configuration of the NFSVolumeSource type for use +// with apply. +type NFSVolumeSourceApplyConfiguration struct { + Server *string `json:"server,omitempty"` + Path *string `json:"path,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// NFSVolumeSourceApplyConfiguration represents a declarative configuration of the NFSVolumeSource type for use +// with apply. +func NFSVolumeSource() *NFSVolumeSourceApplyConfiguration { + return &NFSVolumeSourceApplyConfiguration{} +} + +// NamespaceApplyConfiguration represents a declarative configuration of the Namespace type for use +// with apply. +type NamespaceApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *NamespaceSpecApplyConfiguration `json:"spec,omitempty"` + Status *NamespaceStatusApplyConfiguration `json:"status,omitempty"` +} + +// NamespaceApplyConfiguration represents a declarative configuration of the Namespace type for use +// with apply. +func Namespace() *NamespaceApplyConfiguration { + return &NamespaceApplyConfiguration{} +} + +// NamespaceConditionApplyConfiguration represents a declarative configuration of the NamespaceCondition type for use +// with apply. +type NamespaceConditionApplyConfiguration struct { + Type *corev1.NamespaceConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NamespaceConditionApplyConfiguration represents a declarative configuration of the NamespaceCondition type for use +// with apply. +func NamespaceCondition() *NamespaceConditionApplyConfiguration { + return &NamespaceConditionApplyConfiguration{} +} + +// NamespaceListApplyConfiguration represents a declarative configuration of the NamespaceList type for use +// with apply. +type NamespaceListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]NamespaceApplyConfiguration `json:"items,omitempty"` +} + +// NamespaceListApplyConfiguration represents a declarative configuration of the NamespaceList type for use +// with apply. +func NamespaceList() *NamespaceListApplyConfiguration { + return &NamespaceListApplyConfiguration{} +} + +// NamespaceSpecApplyConfiguration represents a declarative configuration of the NamespaceSpec type for use +// with apply. +type NamespaceSpecApplyConfiguration struct { + Finalizers *[]corev1.FinalizerName `json:"finalizers,omitempty"` +} + +// NamespaceSpecApplyConfiguration represents a declarative configuration of the NamespaceSpec type for use +// with apply. +func NamespaceSpec() *NamespaceSpecApplyConfiguration { + return &NamespaceSpecApplyConfiguration{} +} + +// NamespaceStatusApplyConfiguration represents a declarative configuration of the NamespaceStatus type for use +// with apply. +type NamespaceStatusApplyConfiguration struct { + Phase *corev1.NamespacePhase `json:"phase,omitempty"` + Conditions *[]NamespaceConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// NamespaceStatusApplyConfiguration represents a declarative configuration of the NamespaceStatus type for use +// with apply. +func NamespaceStatus() *NamespaceStatusApplyConfiguration { + return &NamespaceStatusApplyConfiguration{} +} + +// NodeApplyConfiguration represents a declarative configuration of the Node type for use +// with apply. +type NodeApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *NodeSpecApplyConfiguration `json:"spec,omitempty"` + Status *NodeStatusApplyConfiguration `json:"status,omitempty"` +} + +// NodeApplyConfiguration represents a declarative configuration of the Node type for use +// with apply. +func Node() *NodeApplyConfiguration { + return &NodeApplyConfiguration{} +} + +// NodeAddressApplyConfiguration represents a declarative configuration of the NodeAddress type for use +// with apply. +type NodeAddressApplyConfiguration struct { + Type *corev1.NodeAddressType `json:"type,omitempty"` + Address *string `json:"address,omitempty"` +} + +// NodeAddressApplyConfiguration represents a declarative configuration of the NodeAddress type for use +// with apply. +func NodeAddress() *NodeAddressApplyConfiguration { + return &NodeAddressApplyConfiguration{} +} + +// NodeAffinityApplyConfiguration represents a declarative configuration of the NodeAffinity type for use +// with apply. +type NodeAffinityApplyConfiguration struct { + RequiredDuringSchedulingIgnoredDuringExecution *NodeSelectorApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + PreferredDuringSchedulingIgnoredDuringExecution *[]PreferredSchedulingTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// NodeAffinityApplyConfiguration represents a declarative configuration of the NodeAffinity type for use +// with apply. +func NodeAffinity() *NodeAffinityApplyConfiguration { + return &NodeAffinityApplyConfiguration{} +} + +// NodeConditionApplyConfiguration represents a declarative configuration of the NodeCondition type for use +// with apply. +type NodeConditionApplyConfiguration struct { + Type *corev1.NodeConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastHeartbeatTime *apismetav1.Time `json:"lastHeartbeatTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NodeConditionApplyConfiguration represents a declarative configuration of the NodeCondition type for use +// with apply. +func NodeCondition() *NodeConditionApplyConfiguration { + return &NodeConditionApplyConfiguration{} +} + +// NodeConfigSourceApplyConfiguration represents a declarative configuration of the NodeConfigSource type for use +// with apply. +type NodeConfigSourceApplyConfiguration struct { + ConfigMap *ConfigMapNodeConfigSourceApplyConfiguration `json:"configMap,omitempty"` +} + +// NodeConfigSourceApplyConfiguration represents a declarative configuration of the NodeConfigSource type for use +// with apply. +func NodeConfigSource() *NodeConfigSourceApplyConfiguration { + return &NodeConfigSourceApplyConfiguration{} +} + +// NodeConfigStatusApplyConfiguration represents a declarative configuration of the NodeConfigStatus type for use +// with apply. +type NodeConfigStatusApplyConfiguration struct { + Assigned *NodeConfigSourceApplyConfiguration `json:"assigned,omitempty"` + Active *NodeConfigSourceApplyConfiguration `json:"active,omitempty"` + LastKnownGood *NodeConfigSourceApplyConfiguration `json:"lastKnownGood,omitempty"` + Error *string `json:"error,omitempty"` +} + +// NodeConfigStatusApplyConfiguration represents a declarative configuration of the NodeConfigStatus type for use +// with apply. +func NodeConfigStatus() *NodeConfigStatusApplyConfiguration { + return &NodeConfigStatusApplyConfiguration{} +} + +// NodeDaemonEndpointsApplyConfiguration represents a declarative configuration of the NodeDaemonEndpoints type for use +// with apply. +type NodeDaemonEndpointsApplyConfiguration struct { + KubeletEndpoint *DaemonEndpointApplyConfiguration `json:"kubeletEndpoint,omitempty"` +} + +// NodeDaemonEndpointsApplyConfiguration represents a declarative configuration of the NodeDaemonEndpoints type for use +// with apply. +func NodeDaemonEndpoints() *NodeDaemonEndpointsApplyConfiguration { + return &NodeDaemonEndpointsApplyConfiguration{} +} + +// NodeListApplyConfiguration represents a declarative configuration of the NodeList type for use +// with apply. +type NodeListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]NodeApplyConfiguration `json:"items,omitempty"` +} + +// NodeListApplyConfiguration represents a declarative configuration of the NodeList type for use +// with apply. +func NodeList() *NodeListApplyConfiguration { + return &NodeListApplyConfiguration{} +} + +// NodeProxyOptionsApplyConfiguration represents a declarative configuration of the NodeProxyOptions type for use +// with apply. +type NodeProxyOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Path *string `json:"path,omitempty"` +} + +// NodeProxyOptionsApplyConfiguration represents a declarative configuration of the NodeProxyOptions type for use +// with apply. +func NodeProxyOptions() *NodeProxyOptionsApplyConfiguration { + return &NodeProxyOptionsApplyConfiguration{} +} + +// NodeSelectorApplyConfiguration represents a declarative configuration of the NodeSelector type for use +// with apply. +type NodeSelectorApplyConfiguration struct { + NodeSelectorTerms *[]NodeSelectorTermApplyConfiguration `json:"nodeSelectorTerms,omitempty"` +} + +// NodeSelectorApplyConfiguration represents a declarative configuration of the NodeSelector type for use +// with apply. +func NodeSelector() *NodeSelectorApplyConfiguration { + return &NodeSelectorApplyConfiguration{} +} + +// NodeSelectorRequirementApplyConfiguration represents a declarative configuration of the NodeSelectorRequirement type for use +// with apply. +type NodeSelectorRequirementApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Operator *corev1.NodeSelectorOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// NodeSelectorRequirementApplyConfiguration represents a declarative configuration of the NodeSelectorRequirement type for use +// with apply. +func NodeSelectorRequirement() *NodeSelectorRequirementApplyConfiguration { + return &NodeSelectorRequirementApplyConfiguration{} +} + +// NodeSelectorTermApplyConfiguration represents a declarative configuration of the NodeSelectorTerm type for use +// with apply. +type NodeSelectorTermApplyConfiguration struct { + MatchExpressions *[]NodeSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` + MatchFields *[]NodeSelectorRequirementApplyConfiguration `json:"matchFields,omitempty"` +} + +// NodeSelectorTermApplyConfiguration represents a declarative configuration of the NodeSelectorTerm type for use +// with apply. +func NodeSelectorTerm() *NodeSelectorTermApplyConfiguration { + return &NodeSelectorTermApplyConfiguration{} +} + +// NodeSpecApplyConfiguration represents a declarative configuration of the NodeSpec type for use +// with apply. +type NodeSpecApplyConfiguration struct { + PodCIDR *string `json:"podCIDR,omitempty"` + PodCIDRs *[]string `json:"podCIDRs,omitempty"` + ProviderID *string `json:"providerID,omitempty"` + Unschedulable *bool `json:"unschedulable,omitempty"` + Taints *[]TaintApplyConfiguration `json:"taints,omitempty"` + ConfigSource *NodeConfigSourceApplyConfiguration `json:"configSource,omitempty"` + DoNotUseExternalID *string `json:"externalID,omitempty"` +} + +// NodeSpecApplyConfiguration represents a declarative configuration of the NodeSpec type for use +// with apply. +func NodeSpec() *NodeSpecApplyConfiguration { + return &NodeSpecApplyConfiguration{} +} + +// NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use +// with apply. +type NodeStatusApplyConfiguration struct { + Capacity *corev1.ResourceList `json:"capacity,omitempty"` + Allocatable *corev1.ResourceList `json:"allocatable,omitempty"` + Phase *corev1.NodePhase `json:"phase,omitempty"` + Conditions *[]NodeConditionApplyConfiguration `json:"conditions,omitempty"` + Addresses *[]NodeAddressApplyConfiguration `json:"addresses,omitempty"` + DaemonEndpoints *NodeDaemonEndpointsApplyConfiguration `json:"daemonEndpoints,omitempty"` + NodeInfo *NodeSystemInfoApplyConfiguration `json:"nodeInfo,omitempty"` + Images *[]ContainerImageApplyConfiguration `json:"images,omitempty"` + VolumesInUse *[]corev1.UniqueVolumeName `json:"volumesInUse,omitempty"` + VolumesAttached *[]AttachedVolumeApplyConfiguration `json:"volumesAttached,omitempty"` + Config *NodeConfigStatusApplyConfiguration `json:"config,omitempty"` +} + +// NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use +// with apply. +func NodeStatus() *NodeStatusApplyConfiguration { + return &NodeStatusApplyConfiguration{} +} + +// NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use +// with apply. +type NodeSystemInfoApplyConfiguration struct { + MachineID *string `json:"machineID,omitempty"` + SystemUUID *string `json:"systemUUID,omitempty"` + BootID *string `json:"bootID,omitempty"` + KernelVersion *string `json:"kernelVersion,omitempty"` + OSImage *string `json:"osImage,omitempty"` + ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"` + KubeletVersion *string `json:"kubeletVersion,omitempty"` + KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"` + OperatingSystem *string `json:"operatingSystem,omitempty"` + Architecture *string `json:"architecture,omitempty"` +} + +// NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use +// with apply. +func NodeSystemInfo() *NodeSystemInfoApplyConfiguration { + return &NodeSystemInfoApplyConfiguration{} +} + +// ObjectFieldSelectorApplyConfiguration represents a declarative configuration of the ObjectFieldSelector type for use +// with apply. +type ObjectFieldSelectorApplyConfiguration struct { + APIVersion *string `json:"apiVersion,omitempty"` + FieldPath *string `json:"fieldPath,omitempty"` +} + +// ObjectFieldSelectorApplyConfiguration represents a declarative configuration of the ObjectFieldSelector type for use +// with apply. +func ObjectFieldSelector() *ObjectFieldSelectorApplyConfiguration { + return &ObjectFieldSelectorApplyConfiguration{} +} + +// ObjectReferenceApplyConfiguration represents a declarative configuration of the ObjectReference type for use +// with apply. +type ObjectReferenceApplyConfiguration struct { + Kind *string `json:"kind,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Name *string `json:"name,omitempty"` + UID *types.UID `json:"uid,omitempty"` + APIVersion *string `json:"apiVersion,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + FieldPath *string `json:"fieldPath,omitempty"` +} + +// ObjectReferenceApplyConfiguration represents a declarative configuration of the ObjectReference type for use +// with apply. +func ObjectReference() *ObjectReferenceApplyConfiguration { + return &ObjectReferenceApplyConfiguration{} +} + +// PersistentVolumeApplyConfiguration represents a declarative configuration of the PersistentVolume type for use +// with apply. +type PersistentVolumeApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PersistentVolumeSpecApplyConfiguration `json:"spec,omitempty"` + Status *PersistentVolumeStatusApplyConfiguration `json:"status,omitempty"` +} + +// PersistentVolumeApplyConfiguration represents a declarative configuration of the PersistentVolume type for use +// with apply. +func PersistentVolume() *PersistentVolumeApplyConfiguration { + return &PersistentVolumeApplyConfiguration{} +} + +// PersistentVolumeClaimApplyConfiguration represents a declarative configuration of the PersistentVolumeClaim type for use +// with apply. +type PersistentVolumeClaimApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PersistentVolumeClaimSpecApplyConfiguration `json:"spec,omitempty"` + Status *PersistentVolumeClaimStatusApplyConfiguration `json:"status,omitempty"` +} + +// PersistentVolumeClaimApplyConfiguration represents a declarative configuration of the PersistentVolumeClaim type for use +// with apply. +func PersistentVolumeClaim() *PersistentVolumeClaimApplyConfiguration { + return &PersistentVolumeClaimApplyConfiguration{} +} + +// PersistentVolumeClaimConditionApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimCondition type for use +// with apply. +type PersistentVolumeClaimConditionApplyConfiguration struct { + Type *corev1.PersistentVolumeClaimConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastProbeTime *apismetav1.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// PersistentVolumeClaimConditionApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimCondition type for use +// with apply. +func PersistentVolumeClaimCondition() *PersistentVolumeClaimConditionApplyConfiguration { + return &PersistentVolumeClaimConditionApplyConfiguration{} +} + +// PersistentVolumeClaimListApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimList type for use +// with apply. +type PersistentVolumeClaimListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PersistentVolumeClaimApplyConfiguration `json:"items,omitempty"` +} + +// PersistentVolumeClaimListApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimList type for use +// with apply. +func PersistentVolumeClaimList() *PersistentVolumeClaimListApplyConfiguration { + return &PersistentVolumeClaimListApplyConfiguration{} +} + +// PersistentVolumeClaimSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimSpec type for use +// with apply. +type PersistentVolumeClaimSpecApplyConfiguration struct { + AccessModes *[]corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"` + Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + StorageClassName *string `json:"storageClassName,omitempty"` + VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` + DataSource *TypedLocalObjectReferenceApplyConfiguration `json:"dataSource,omitempty"` +} + +// PersistentVolumeClaimSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimSpec type for use +// with apply. +func PersistentVolumeClaimSpec() *PersistentVolumeClaimSpecApplyConfiguration { + return &PersistentVolumeClaimSpecApplyConfiguration{} +} + +// PersistentVolumeClaimStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimStatus type for use +// with apply. +type PersistentVolumeClaimStatusApplyConfiguration struct { + Phase *corev1.PersistentVolumeClaimPhase `json:"phase,omitempty"` + AccessModes *[]corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + Capacity *corev1.ResourceList `json:"capacity,omitempty"` + Conditions *[]PersistentVolumeClaimConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// PersistentVolumeClaimStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimStatus type for use +// with apply. +func PersistentVolumeClaimStatus() *PersistentVolumeClaimStatusApplyConfiguration { + return &PersistentVolumeClaimStatusApplyConfiguration{} +} + +// PersistentVolumeClaimVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimVolumeSource type for use +// with apply. +type PersistentVolumeClaimVolumeSourceApplyConfiguration struct { + ClaimName *string `json:"claimName,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// PersistentVolumeClaimVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimVolumeSource type for use +// with apply. +func PersistentVolumeClaimVolumeSource() *PersistentVolumeClaimVolumeSourceApplyConfiguration { + return &PersistentVolumeClaimVolumeSourceApplyConfiguration{} +} + +// PersistentVolumeListApplyConfiguration represents a declarative configuration of the PersistentVolumeList type for use +// with apply. +type PersistentVolumeListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PersistentVolumeApplyConfiguration `json:"items,omitempty"` +} + +// PersistentVolumeListApplyConfiguration represents a declarative configuration of the PersistentVolumeList type for use +// with apply. +func PersistentVolumeList() *PersistentVolumeListApplyConfiguration { + return &PersistentVolumeListApplyConfiguration{} +} + +// PersistentVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeSource type for use +// with apply. +type PersistentVolumeSourceApplyConfiguration struct { + GCEPersistentDisk *GCEPersistentDiskVolumeSourceApplyConfiguration `json:"gcePersistentDisk,omitempty"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceApplyConfiguration `json:"awsElasticBlockStore,omitempty"` + HostPath *HostPathVolumeSourceApplyConfiguration `json:"hostPath,omitempty"` + Glusterfs *GlusterfsPersistentVolumeSourceApplyConfiguration `json:"glusterfs,omitempty"` + NFS *NFSVolumeSourceApplyConfiguration `json:"nfs,omitempty"` + RBD *RBDPersistentVolumeSourceApplyConfiguration `json:"rbd,omitempty"` + ISCSI *ISCSIPersistentVolumeSourceApplyConfiguration `json:"iscsi,omitempty"` + Cinder *CinderPersistentVolumeSourceApplyConfiguration `json:"cinder,omitempty"` + CephFS *CephFSPersistentVolumeSourceApplyConfiguration `json:"cephfs,omitempty"` + FC *FCVolumeSourceApplyConfiguration `json:"fc,omitempty"` + Flocker *FlockerVolumeSourceApplyConfiguration `json:"flocker,omitempty"` + FlexVolume *FlexPersistentVolumeSourceApplyConfiguration `json:"flexVolume,omitempty"` + AzureFile *AzureFilePersistentVolumeSourceApplyConfiguration `json:"azureFile,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSourceApplyConfiguration `json:"vsphereVolume,omitempty"` + Quobyte *QuobyteVolumeSourceApplyConfiguration `json:"quobyte,omitempty"` + AzureDisk *AzureDiskVolumeSourceApplyConfiguration `json:"azureDisk,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceApplyConfiguration `json:"photonPersistentDisk,omitempty"` + PortworxVolume *PortworxVolumeSourceApplyConfiguration `json:"portworxVolume,omitempty"` + ScaleIO *ScaleIOPersistentVolumeSourceApplyConfiguration `json:"scaleIO,omitempty"` + Local *LocalVolumeSourceApplyConfiguration `json:"local,omitempty"` + StorageOS *StorageOSPersistentVolumeSourceApplyConfiguration `json:"storageos,omitempty"` + CSI *CSIPersistentVolumeSourceApplyConfiguration `json:"csi,omitempty"` +} + +// PersistentVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeSource type for use +// with apply. +func PersistentVolumeSource() *PersistentVolumeSourceApplyConfiguration { + return &PersistentVolumeSourceApplyConfiguration{} +} + +// PersistentVolumeSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeSpec type for use +// with apply. +type PersistentVolumeSpecApplyConfiguration struct { + Capacity *corev1.ResourceList `json:"capacity,omitempty"` + PersistentVolumeSourceApplyConfiguration `json:",inline"` + AccessModes *[]corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + ClaimRef *ObjectReferenceApplyConfiguration `json:"claimRef,omitempty"` + PersistentVolumeReclaimPolicy *corev1.PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"` + StorageClassName *string `json:"storageClassName,omitempty"` + MountOptions *[]string `json:"mountOptions,omitempty"` + VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` + NodeAffinity *VolumeNodeAffinityApplyConfiguration `json:"nodeAffinity,omitempty"` +} + +// PersistentVolumeSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeSpec type for use +// with apply. +func PersistentVolumeSpec() *PersistentVolumeSpecApplyConfiguration { + return &PersistentVolumeSpecApplyConfiguration{} +} + +// PersistentVolumeStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeStatus type for use +// with apply. +type PersistentVolumeStatusApplyConfiguration struct { + Phase *corev1.PersistentVolumePhase `json:"phase,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// PersistentVolumeStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeStatus type for use +// with apply. +func PersistentVolumeStatus() *PersistentVolumeStatusApplyConfiguration { + return &PersistentVolumeStatusApplyConfiguration{} +} + +// PhotonPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the PhotonPersistentDiskVolumeSource type for use +// with apply. +type PhotonPersistentDiskVolumeSourceApplyConfiguration struct { + PdID *string `json:"pdID,omitempty"` + FSType *string `json:"fsType,omitempty"` +} + +// PhotonPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the PhotonPersistentDiskVolumeSource type for use +// with apply. +func PhotonPersistentDiskVolumeSource() *PhotonPersistentDiskVolumeSourceApplyConfiguration { + return &PhotonPersistentDiskVolumeSourceApplyConfiguration{} +} + +// PodApplyConfiguration represents a declarative configuration of the Pod type for use +// with apply. +type PodApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PodSpecApplyConfiguration `json:"spec,omitempty"` + Status *PodStatusApplyConfiguration `json:"status,omitempty"` +} + +// PodApplyConfiguration represents a declarative configuration of the Pod type for use +// with apply. +func Pod() *PodApplyConfiguration { + return &PodApplyConfiguration{} +} + +// PodAffinityApplyConfiguration represents a declarative configuration of the PodAffinity type for use +// with apply. +type PodAffinityApplyConfiguration struct { + RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTermApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + PreferredDuringSchedulingIgnoredDuringExecution *[]WeightedPodAffinityTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// PodAffinityApplyConfiguration represents a declarative configuration of the PodAffinity type for use +// with apply. +func PodAffinity() *PodAffinityApplyConfiguration { + return &PodAffinityApplyConfiguration{} +} + +// PodAffinityTermApplyConfiguration represents a declarative configuration of the PodAffinityTerm type for use +// with apply. +type PodAffinityTermApplyConfiguration struct { + LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` + TopologyKey *string `json:"topologyKey,omitempty"` +} + +// PodAffinityTermApplyConfiguration represents a declarative configuration of the PodAffinityTerm type for use +// with apply. +func PodAffinityTerm() *PodAffinityTermApplyConfiguration { + return &PodAffinityTermApplyConfiguration{} +} + +// PodAntiAffinityApplyConfiguration represents a declarative configuration of the PodAntiAffinity type for use +// with apply. +type PodAntiAffinityApplyConfiguration struct { + RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTermApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + PreferredDuringSchedulingIgnoredDuringExecution *[]WeightedPodAffinityTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// PodAntiAffinityApplyConfiguration represents a declarative configuration of the PodAntiAffinity type for use +// with apply. +func PodAntiAffinity() *PodAntiAffinityApplyConfiguration { + return &PodAntiAffinityApplyConfiguration{} +} + +// PodAttachOptionsApplyConfiguration represents a declarative configuration of the PodAttachOptions type for use +// with apply. +type PodAttachOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Stdin *bool `json:"stdin,omitempty"` + Stdout *bool `json:"stdout,omitempty"` + Stderr *bool `json:"stderr,omitempty"` + TTY *bool `json:"tty,omitempty"` + Container *string `json:"container,omitempty"` +} + +// PodAttachOptionsApplyConfiguration represents a declarative configuration of the PodAttachOptions type for use +// with apply. +func PodAttachOptions() *PodAttachOptionsApplyConfiguration { + return &PodAttachOptionsApplyConfiguration{} +} + +// PodConditionApplyConfiguration represents a declarative configuration of the PodCondition type for use +// with apply. +type PodConditionApplyConfiguration struct { + Type *corev1.PodConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastProbeTime *apismetav1.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// PodConditionApplyConfiguration represents a declarative configuration of the PodCondition type for use +// with apply. +func PodCondition() *PodConditionApplyConfiguration { + return &PodConditionApplyConfiguration{} +} + +// PodDNSConfigApplyConfiguration represents a declarative configuration of the PodDNSConfig type for use +// with apply. +type PodDNSConfigApplyConfiguration struct { + Nameservers *[]string `json:"nameservers,omitempty"` + Searches *[]string `json:"searches,omitempty"` + Options *[]PodDNSConfigOptionApplyConfiguration `json:"options,omitempty"` +} + +// PodDNSConfigApplyConfiguration represents a declarative configuration of the PodDNSConfig type for use +// with apply. +func PodDNSConfig() *PodDNSConfigApplyConfiguration { + return &PodDNSConfigApplyConfiguration{} +} + +// PodDNSConfigOptionApplyConfiguration represents a declarative configuration of the PodDNSConfigOption type for use +// with apply. +type PodDNSConfigOptionApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// PodDNSConfigOptionApplyConfiguration represents a declarative configuration of the PodDNSConfigOption type for use +// with apply. +func PodDNSConfigOption() *PodDNSConfigOptionApplyConfiguration { + return &PodDNSConfigOptionApplyConfiguration{} +} + +// PodExecOptionsApplyConfiguration represents a declarative configuration of the PodExecOptions type for use +// with apply. +type PodExecOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Stdin *bool `json:"stdin,omitempty"` + Stdout *bool `json:"stdout,omitempty"` + Stderr *bool `json:"stderr,omitempty"` + TTY *bool `json:"tty,omitempty"` + Container *string `json:"container,omitempty"` + Command *[]string `json:"command,omitempty"` +} + +// PodExecOptionsApplyConfiguration represents a declarative configuration of the PodExecOptions type for use +// with apply. +func PodExecOptions() *PodExecOptionsApplyConfiguration { + return &PodExecOptionsApplyConfiguration{} +} + +// PodIPApplyConfiguration represents a declarative configuration of the PodIP type for use +// with apply. +type PodIPApplyConfiguration struct { + IP *string `json:"ip,omitempty"` +} + +// PodIPApplyConfiguration represents a declarative configuration of the PodIP type for use +// with apply. +func PodIP() *PodIPApplyConfiguration { + return &PodIPApplyConfiguration{} +} + +// PodListApplyConfiguration represents a declarative configuration of the PodList type for use +// with apply. +type PodListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PodApplyConfiguration `json:"items,omitempty"` +} + +// PodListApplyConfiguration represents a declarative configuration of the PodList type for use +// with apply. +func PodList() *PodListApplyConfiguration { + return &PodListApplyConfiguration{} +} + +// PodLogOptionsApplyConfiguration represents a declarative configuration of the PodLogOptions type for use +// with apply. +type PodLogOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Container *string `json:"container,omitempty"` + Follow *bool `json:"follow,omitempty"` + Previous *bool `json:"previous,omitempty"` + SinceSeconds *int64 `json:"sinceSeconds,omitempty"` + SinceTime *apismetav1.Time `json:"sinceTime,omitempty"` + Timestamps *bool `json:"timestamps,omitempty"` + TailLines *int64 `json:"tailLines,omitempty"` + LimitBytes *int64 `json:"limitBytes,omitempty"` + InsecureSkipTLSVerifyBackend *bool `json:"insecureSkipTLSVerifyBackend,omitempty"` +} + +// PodLogOptionsApplyConfiguration represents a declarative configuration of the PodLogOptions type for use +// with apply. +func PodLogOptions() *PodLogOptionsApplyConfiguration { + return &PodLogOptionsApplyConfiguration{} +} + +// PodPortForwardOptionsApplyConfiguration represents a declarative configuration of the PodPortForwardOptions type for use +// with apply. +type PodPortForwardOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Ports *[]int32 `json:"ports,omitempty"` +} + +// PodPortForwardOptionsApplyConfiguration represents a declarative configuration of the PodPortForwardOptions type for use +// with apply. +func PodPortForwardOptions() *PodPortForwardOptionsApplyConfiguration { + return &PodPortForwardOptionsApplyConfiguration{} +} + +// PodProxyOptionsApplyConfiguration represents a declarative configuration of the PodProxyOptions type for use +// with apply. +type PodProxyOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Path *string `json:"path,omitempty"` +} + +// PodProxyOptionsApplyConfiguration represents a declarative configuration of the PodProxyOptions type for use +// with apply. +func PodProxyOptions() *PodProxyOptionsApplyConfiguration { + return &PodProxyOptionsApplyConfiguration{} +} + +// PodReadinessGateApplyConfiguration represents a declarative configuration of the PodReadinessGate type for use +// with apply. +type PodReadinessGateApplyConfiguration struct { + ConditionType *corev1.PodConditionType `json:"conditionType,omitempty"` +} + +// PodReadinessGateApplyConfiguration represents a declarative configuration of the PodReadinessGate type for use +// with apply. +func PodReadinessGate() *PodReadinessGateApplyConfiguration { + return &PodReadinessGateApplyConfiguration{} +} + +// PodSecurityContextApplyConfiguration represents a declarative configuration of the PodSecurityContext type for use +// with apply. +type PodSecurityContextApplyConfiguration struct { + SELinuxOptions *SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"` + WindowsOptions *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"` + RunAsUser *int64 `json:"runAsUser,omitempty"` + RunAsGroup *int64 `json:"runAsGroup,omitempty"` + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + SupplementalGroups *[]int64 `json:"supplementalGroups,omitempty"` + FSGroup *int64 `json:"fsGroup,omitempty"` + Sysctls *[]SysctlApplyConfiguration `json:"sysctls,omitempty"` + FSGroupChangePolicy *corev1.PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty"` +} + +// PodSecurityContextApplyConfiguration represents a declarative configuration of the PodSecurityContext type for use +// with apply. +func PodSecurityContext() *PodSecurityContextApplyConfiguration { + return &PodSecurityContextApplyConfiguration{} +} + +// PodSignatureApplyConfiguration represents a declarative configuration of the PodSignature type for use +// with apply. +type PodSignatureApplyConfiguration struct { + PodController *metav1.OwnerReferenceApplyConfiguration `json:"podController,omitempty"` +} + +// PodSignatureApplyConfiguration represents a declarative configuration of the PodSignature type for use +// with apply. +func PodSignature() *PodSignatureApplyConfiguration { + return &PodSignatureApplyConfiguration{} +} + +// PodSpecApplyConfiguration represents a declarative configuration of the PodSpec type for use +// with apply. +type PodSpecApplyConfiguration struct { + Volumes *[]VolumeApplyConfiguration `json:"volumes,omitempty"` + InitContainers *[]ContainerApplyConfiguration `json:"initContainers,omitempty"` + Containers *[]ContainerApplyConfiguration `json:"containers,omitempty"` + EphemeralContainers *[]EphemeralContainerApplyConfiguration `json:"ephemeralContainers,omitempty"` + RestartPolicy *corev1.RestartPolicy `json:"restartPolicy,omitempty"` + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + DNSPolicy *corev1.DNSPolicy `json:"dnsPolicy,omitempty"` + NodeSelector *map[string]string `json:"nodeSelector,omitempty"` + ServiceAccountName *string `json:"serviceAccountName,omitempty"` + DeprecatedServiceAccount *string `json:"serviceAccount,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + HostNetwork *bool `json:"hostNetwork,omitempty"` + HostPID *bool `json:"hostPID,omitempty"` + HostIPC *bool `json:"hostIPC,omitempty"` + ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` + SecurityContext *PodSecurityContextApplyConfiguration `json:"securityContext,omitempty"` + ImagePullSecrets *[]LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"` + Hostname *string `json:"hostname,omitempty"` + Subdomain *string `json:"subdomain,omitempty"` + Affinity *AffinityApplyConfiguration `json:"affinity,omitempty"` + SchedulerName *string `json:"schedulerName,omitempty"` + Tolerations *[]TolerationApplyConfiguration `json:"tolerations,omitempty"` + HostAliases *[]HostAliasApplyConfiguration `json:"hostAliases,omitempty"` + PriorityClassName *string `json:"priorityClassName,omitempty"` + Priority *int32 `json:"priority,omitempty"` + DNSConfig *PodDNSConfigApplyConfiguration `json:"dnsConfig,omitempty"` + ReadinessGates *[]PodReadinessGateApplyConfiguration `json:"readinessGates,omitempty"` + RuntimeClassName *string `json:"runtimeClassName,omitempty"` + EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` + PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"` + Overhead *corev1.ResourceList `json:"overhead,omitempty"` + TopologySpreadConstraints *[]TopologySpreadConstraintApplyConfiguration `json:"topologySpreadConstraints,omitempty"` +} + +// PodSpecApplyConfiguration represents a declarative configuration of the PodSpec type for use +// with apply. +func PodSpec() *PodSpecApplyConfiguration { + return &PodSpecApplyConfiguration{} +} + +// PodStatusApplyConfiguration represents a declarative configuration of the PodStatus type for use +// with apply. +type PodStatusApplyConfiguration struct { + Phase *corev1.PodPhase `json:"phase,omitempty"` + Conditions *[]PodConditionApplyConfiguration `json:"conditions,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + NominatedNodeName *string `json:"nominatedNodeName,omitempty"` + HostIP *string `json:"hostIP,omitempty"` + PodIP *string `json:"podIP,omitempty"` + PodIPs *[]PodIPApplyConfiguration `json:"podIPs,omitempty"` + StartTime *apismetav1.Time `json:"startTime,omitempty"` + InitContainerStatuses *[]ContainerStatusApplyConfiguration `json:"initContainerStatuses,omitempty"` + ContainerStatuses *[]ContainerStatusApplyConfiguration `json:"containerStatuses,omitempty"` + QOSClass *corev1.PodQOSClass `json:"qosClass,omitempty"` + EphemeralContainerStatuses *[]ContainerStatusApplyConfiguration `json:"ephemeralContainerStatuses,omitempty"` +} + +// PodStatusApplyConfiguration represents a declarative configuration of the PodStatus type for use +// with apply. +func PodStatus() *PodStatusApplyConfiguration { + return &PodStatusApplyConfiguration{} +} + +// PodStatusResultApplyConfiguration represents a declarative configuration of the PodStatusResult type for use +// with apply. +type PodStatusResultApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Status *PodStatusApplyConfiguration `json:"status,omitempty"` +} + +// PodStatusResultApplyConfiguration represents a declarative configuration of the PodStatusResult type for use +// with apply. +func PodStatusResult() *PodStatusResultApplyConfiguration { + return &PodStatusResultApplyConfiguration{} +} + +// PodTemplateApplyConfiguration represents a declarative configuration of the PodTemplate type for use +// with apply. +type PodTemplateApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"` +} + +// PodTemplateApplyConfiguration represents a declarative configuration of the PodTemplate type for use +// with apply. +func PodTemplate() *PodTemplateApplyConfiguration { + return &PodTemplateApplyConfiguration{} +} + +// PodTemplateListApplyConfiguration represents a declarative configuration of the PodTemplateList type for use +// with apply. +type PodTemplateListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PodTemplateApplyConfiguration `json:"items,omitempty"` +} + +// PodTemplateListApplyConfiguration represents a declarative configuration of the PodTemplateList type for use +// with apply. +func PodTemplateList() *PodTemplateListApplyConfiguration { + return &PodTemplateListApplyConfiguration{} +} + +// PodTemplateSpecApplyConfiguration represents a declarative configuration of the PodTemplateSpec type for use +// with apply. +type PodTemplateSpecApplyConfiguration struct { + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *PodSpecApplyConfiguration `json:"spec,omitempty"` +} + +// PodTemplateSpecApplyConfiguration represents a declarative configuration of the PodTemplateSpec type for use +// with apply. +func PodTemplateSpec() *PodTemplateSpecApplyConfiguration { + return &PodTemplateSpecApplyConfiguration{} +} + +// PortworxVolumeSourceApplyConfiguration represents a declarative configuration of the PortworxVolumeSource type for use +// with apply. +type PortworxVolumeSourceApplyConfiguration struct { + VolumeID *string `json:"volumeID,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// PortworxVolumeSourceApplyConfiguration represents a declarative configuration of the PortworxVolumeSource type for use +// with apply. +func PortworxVolumeSource() *PortworxVolumeSourceApplyConfiguration { + return &PortworxVolumeSourceApplyConfiguration{} +} + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +type PreconditionsApplyConfiguration struct { + UID *types.UID `json:"uid,omitempty"` +} + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +func Preconditions() *PreconditionsApplyConfiguration { + return &PreconditionsApplyConfiguration{} +} + +// PreferAvoidPodsEntryApplyConfiguration represents a declarative configuration of the PreferAvoidPodsEntry type for use +// with apply. +type PreferAvoidPodsEntryApplyConfiguration struct { + PodSignature *PodSignatureApplyConfiguration `json:"podSignature,omitempty"` + EvictionTime *apismetav1.Time `json:"evictionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// PreferAvoidPodsEntryApplyConfiguration represents a declarative configuration of the PreferAvoidPodsEntry type for use +// with apply. +func PreferAvoidPodsEntry() *PreferAvoidPodsEntryApplyConfiguration { + return &PreferAvoidPodsEntryApplyConfiguration{} +} + +// PreferredSchedulingTermApplyConfiguration represents a declarative configuration of the PreferredSchedulingTerm type for use +// with apply. +type PreferredSchedulingTermApplyConfiguration struct { + Weight *int32 `json:"weight,omitempty"` + Preference *NodeSelectorTermApplyConfiguration `json:"preference,omitempty"` +} + +// PreferredSchedulingTermApplyConfiguration represents a declarative configuration of the PreferredSchedulingTerm type for use +// with apply. +func PreferredSchedulingTerm() *PreferredSchedulingTermApplyConfiguration { + return &PreferredSchedulingTermApplyConfiguration{} +} + +// ProbeApplyConfiguration represents a declarative configuration of the Probe type for use +// with apply. +type ProbeApplyConfiguration struct { + HandlerApplyConfiguration `json:",inline"` + InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` + TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` + PeriodSeconds *int32 `json:"periodSeconds,omitempty"` + SuccessThreshold *int32 `json:"successThreshold,omitempty"` + FailureThreshold *int32 `json:"failureThreshold,omitempty"` +} + +// ProbeApplyConfiguration represents a declarative configuration of the Probe type for use +// with apply. +func Probe() *ProbeApplyConfiguration { + return &ProbeApplyConfiguration{} +} + +// ProjectedVolumeSourceApplyConfiguration represents a declarative configuration of the ProjectedVolumeSource type for use +// with apply. +type ProjectedVolumeSourceApplyConfiguration struct { + Sources *[]VolumeProjectionApplyConfiguration `json:"sources,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` +} + +// ProjectedVolumeSourceApplyConfiguration represents a declarative configuration of the ProjectedVolumeSource type for use +// with apply. +func ProjectedVolumeSource() *ProjectedVolumeSourceApplyConfiguration { + return &ProjectedVolumeSourceApplyConfiguration{} +} + +// QuobyteVolumeSourceApplyConfiguration represents a declarative configuration of the QuobyteVolumeSource type for use +// with apply. +type QuobyteVolumeSourceApplyConfiguration struct { + Registry *string `json:"registry,omitempty"` + Volume *string `json:"volume,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + User *string `json:"user,omitempty"` + Group *string `json:"group,omitempty"` + Tenant *string `json:"tenant,omitempty"` +} + +// QuobyteVolumeSourceApplyConfiguration represents a declarative configuration of the QuobyteVolumeSource type for use +// with apply. +func QuobyteVolumeSource() *QuobyteVolumeSourceApplyConfiguration { + return &QuobyteVolumeSourceApplyConfiguration{} +} + +// RBDPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the RBDPersistentVolumeSource type for use +// with apply. +type RBDPersistentVolumeSourceApplyConfiguration struct { + CephMonitors *[]string `json:"monitors,omitempty"` + RBDImage *string `json:"image,omitempty"` + FSType *string `json:"fsType,omitempty"` + RBDPool *string `json:"pool,omitempty"` + RadosUser *string `json:"user,omitempty"` + Keyring *string `json:"keyring,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// RBDPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the RBDPersistentVolumeSource type for use +// with apply. +func RBDPersistentVolumeSource() *RBDPersistentVolumeSourceApplyConfiguration { + return &RBDPersistentVolumeSourceApplyConfiguration{} +} + +// RBDVolumeSourceApplyConfiguration represents a declarative configuration of the RBDVolumeSource type for use +// with apply. +type RBDVolumeSourceApplyConfiguration struct { + CephMonitors *[]string `json:"monitors,omitempty"` + RBDImage *string `json:"image,omitempty"` + FSType *string `json:"fsType,omitempty"` + RBDPool *string `json:"pool,omitempty"` + RadosUser *string `json:"user,omitempty"` + Keyring *string `json:"keyring,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// RBDVolumeSourceApplyConfiguration represents a declarative configuration of the RBDVolumeSource type for use +// with apply. +func RBDVolumeSource() *RBDVolumeSourceApplyConfiguration { + return &RBDVolumeSourceApplyConfiguration{} +} + +// RangeAllocationApplyConfiguration represents a declarative configuration of the RangeAllocation type for use +// with apply. +type RangeAllocationApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Range *string `json:"range,omitempty"` + Data *[]byte `json:"data,omitempty"` +} + +// RangeAllocationApplyConfiguration represents a declarative configuration of the RangeAllocation type for use +// with apply. +func RangeAllocation() *RangeAllocationApplyConfiguration { + return &RangeAllocationApplyConfiguration{} +} + +// ReplicationControllerApplyConfiguration represents a declarative configuration of the ReplicationController type for use +// with apply. +type ReplicationControllerApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ReplicationControllerSpecApplyConfiguration `json:"spec,omitempty"` + Status *ReplicationControllerStatusApplyConfiguration `json:"status,omitempty"` +} + +// ReplicationControllerApplyConfiguration represents a declarative configuration of the ReplicationController type for use +// with apply. +func ReplicationController() *ReplicationControllerApplyConfiguration { + return &ReplicationControllerApplyConfiguration{} +} + +// ReplicationControllerConditionApplyConfiguration represents a declarative configuration of the ReplicationControllerCondition type for use +// with apply. +type ReplicationControllerConditionApplyConfiguration struct { + Type *corev1.ReplicationControllerConditionType `json:"type,omitempty"` + Status *corev1.ConditionStatus `json:"status,omitempty"` + LastTransitionTime *apismetav1.Time `json:"lastTransitionTime,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ReplicationControllerConditionApplyConfiguration represents a declarative configuration of the ReplicationControllerCondition type for use +// with apply. +func ReplicationControllerCondition() *ReplicationControllerConditionApplyConfiguration { + return &ReplicationControllerConditionApplyConfiguration{} +} + +// ReplicationControllerListApplyConfiguration represents a declarative configuration of the ReplicationControllerList type for use +// with apply. +type ReplicationControllerListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ReplicationControllerApplyConfiguration `json:"items,omitempty"` +} + +// ReplicationControllerListApplyConfiguration represents a declarative configuration of the ReplicationControllerList type for use +// with apply. +func ReplicationControllerList() *ReplicationControllerListApplyConfiguration { + return &ReplicationControllerListApplyConfiguration{} +} + +// ReplicationControllerSpecApplyConfiguration represents a declarative configuration of the ReplicationControllerSpec type for use +// with apply. +type ReplicationControllerSpecApplyConfiguration struct { + Replicas *int32 `json:"replicas,omitempty"` + MinReadySeconds *int32 `json:"minReadySeconds,omitempty"` + Selector *map[string]string `json:"selector,omitempty"` + Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"` +} + +// ReplicationControllerSpecApplyConfiguration represents a declarative configuration of the ReplicationControllerSpec type for use +// with apply. +func ReplicationControllerSpec() *ReplicationControllerSpecApplyConfiguration { + return &ReplicationControllerSpecApplyConfiguration{} +} + +// ReplicationControllerStatusApplyConfiguration represents a declarative configuration of the ReplicationControllerStatus type for use +// with apply. +type ReplicationControllerStatusApplyConfiguration struct { + Replicas *int32 `json:"replicas,omitempty"` + FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"` + ReadyReplicas *int32 `json:"readyReplicas,omitempty"` + AvailableReplicas *int32 `json:"availableReplicas,omitempty"` + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Conditions *[]ReplicationControllerConditionApplyConfiguration `json:"conditions,omitempty"` +} + +// ReplicationControllerStatusApplyConfiguration represents a declarative configuration of the ReplicationControllerStatus type for use +// with apply. +func ReplicationControllerStatus() *ReplicationControllerStatusApplyConfiguration { + return &ReplicationControllerStatusApplyConfiguration{} +} + +// ResourceFieldSelectorApplyConfiguration represents a declarative configuration of the ResourceFieldSelector type for use +// with apply. +type ResourceFieldSelectorApplyConfiguration struct { + ContainerName *string `json:"containerName,omitempty"` + Resource *string `json:"resource,omitempty"` + Divisor *resource.Quantity `json:"divisor,omitempty"` +} + +// ResourceFieldSelectorApplyConfiguration represents a declarative configuration of the ResourceFieldSelector type for use +// with apply. +func ResourceFieldSelector() *ResourceFieldSelectorApplyConfiguration { + return &ResourceFieldSelectorApplyConfiguration{} +} + +// ResourceQuotaApplyConfiguration represents a declarative configuration of the ResourceQuota type for use +// with apply. +type ResourceQuotaApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"` + Status *ResourceQuotaStatusApplyConfiguration `json:"status,omitempty"` +} + +// ResourceQuotaApplyConfiguration represents a declarative configuration of the ResourceQuota type for use +// with apply. +func ResourceQuota() *ResourceQuotaApplyConfiguration { + return &ResourceQuotaApplyConfiguration{} +} + +// ResourceQuotaListApplyConfiguration represents a declarative configuration of the ResourceQuotaList type for use +// with apply. +type ResourceQuotaListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ResourceQuotaApplyConfiguration `json:"items,omitempty"` +} + +// ResourceQuotaListApplyConfiguration represents a declarative configuration of the ResourceQuotaList type for use +// with apply. +func ResourceQuotaList() *ResourceQuotaListApplyConfiguration { + return &ResourceQuotaListApplyConfiguration{} +} + +// ResourceQuotaSpecApplyConfiguration represents a declarative configuration of the ResourceQuotaSpec type for use +// with apply. +type ResourceQuotaSpecApplyConfiguration struct { + Hard *corev1.ResourceList `json:"hard,omitempty"` + Scopes *[]corev1.ResourceQuotaScope `json:"scopes,omitempty"` + ScopeSelector *ScopeSelectorApplyConfiguration `json:"scopeSelector,omitempty"` +} + +// ResourceQuotaSpecApplyConfiguration represents a declarative configuration of the ResourceQuotaSpec type for use +// with apply. +func ResourceQuotaSpec() *ResourceQuotaSpecApplyConfiguration { + return &ResourceQuotaSpecApplyConfiguration{} +} + +// ResourceQuotaStatusApplyConfiguration represents a declarative configuration of the ResourceQuotaStatus type for use +// with apply. +type ResourceQuotaStatusApplyConfiguration struct { + Hard *corev1.ResourceList `json:"hard,omitempty"` + Used *corev1.ResourceList `json:"used,omitempty"` +} + +// ResourceQuotaStatusApplyConfiguration represents a declarative configuration of the ResourceQuotaStatus type for use +// with apply. +func ResourceQuotaStatus() *ResourceQuotaStatusApplyConfiguration { + return &ResourceQuotaStatusApplyConfiguration{} +} + +// ResourceRequirementsApplyConfiguration represents a declarative configuration of the ResourceRequirements type for use +// with apply. +type ResourceRequirementsApplyConfiguration struct { + Limits *corev1.ResourceList `json:"limits,omitempty"` + Requests *corev1.ResourceList `json:"requests,omitempty"` +} + +// ResourceRequirementsApplyConfiguration represents a declarative configuration of the ResourceRequirements type for use +// with apply. +func ResourceRequirements() *ResourceRequirementsApplyConfiguration { + return &ResourceRequirementsApplyConfiguration{} +} + +// SELinuxOptionsApplyConfiguration represents a declarative configuration of the SELinuxOptions type for use +// with apply. +type SELinuxOptionsApplyConfiguration struct { + User *string `json:"user,omitempty"` + Role *string `json:"role,omitempty"` + Type *string `json:"type,omitempty"` + Level *string `json:"level,omitempty"` +} + +// SELinuxOptionsApplyConfiguration represents a declarative configuration of the SELinuxOptions type for use +// with apply. +func SELinuxOptions() *SELinuxOptionsApplyConfiguration { + return &SELinuxOptionsApplyConfiguration{} +} + +// ScaleIOPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOPersistentVolumeSource type for use +// with apply. +type ScaleIOPersistentVolumeSourceApplyConfiguration struct { + Gateway *string `json:"gateway,omitempty"` + System *string `json:"system,omitempty"` + SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"` + SSLEnabled *bool `json:"sslEnabled,omitempty"` + ProtectionDomain *string `json:"protectionDomain,omitempty"` + StoragePool *string `json:"storagePool,omitempty"` + StorageMode *string `json:"storageMode,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// ScaleIOPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOPersistentVolumeSource type for use +// with apply. +func ScaleIOPersistentVolumeSource() *ScaleIOPersistentVolumeSourceApplyConfiguration { + return &ScaleIOPersistentVolumeSourceApplyConfiguration{} +} + +// ScaleIOVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOVolumeSource type for use +// with apply. +type ScaleIOVolumeSourceApplyConfiguration struct { + Gateway *string `json:"gateway,omitempty"` + System *string `json:"system,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` + SSLEnabled *bool `json:"sslEnabled,omitempty"` + ProtectionDomain *string `json:"protectionDomain,omitempty"` + StoragePool *string `json:"storagePool,omitempty"` + StorageMode *string `json:"storageMode,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// ScaleIOVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOVolumeSource type for use +// with apply. +func ScaleIOVolumeSource() *ScaleIOVolumeSourceApplyConfiguration { + return &ScaleIOVolumeSourceApplyConfiguration{} +} + +// ScopeSelectorApplyConfiguration represents a declarative configuration of the ScopeSelector type for use +// with apply. +type ScopeSelectorApplyConfiguration struct { + MatchExpressions *[]ScopedResourceSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` +} + +// ScopeSelectorApplyConfiguration represents a declarative configuration of the ScopeSelector type for use +// with apply. +func ScopeSelector() *ScopeSelectorApplyConfiguration { + return &ScopeSelectorApplyConfiguration{} +} + +// ScopedResourceSelectorRequirementApplyConfiguration represents a declarative configuration of the ScopedResourceSelectorRequirement type for use +// with apply. +type ScopedResourceSelectorRequirementApplyConfiguration struct { + ScopeName *corev1.ResourceQuotaScope `json:"scopeName,omitempty"` + Operator *corev1.ScopeSelectorOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// ScopedResourceSelectorRequirementApplyConfiguration represents a declarative configuration of the ScopedResourceSelectorRequirement type for use +// with apply. +func ScopedResourceSelectorRequirement() *ScopedResourceSelectorRequirementApplyConfiguration { + return &ScopedResourceSelectorRequirementApplyConfiguration{} +} + +// SecretApplyConfiguration represents a declarative configuration of the Secret type for use +// with apply. +type SecretApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Immutable *bool `json:"immutable,omitempty"` + Data *map[string][]byte `json:"data,omitempty"` + StringData *map[string]string `json:"stringData,omitempty"` + Type *corev1.SecretType `json:"type,omitempty"` +} + +// SecretApplyConfiguration represents a declarative configuration of the Secret type for use +// with apply. +func Secret() *SecretApplyConfiguration { + return &SecretApplyConfiguration{} +} + +// SecretEnvSourceApplyConfiguration represents a declarative configuration of the SecretEnvSource type for use +// with apply. +type SecretEnvSourceApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretEnvSourceApplyConfiguration represents a declarative configuration of the SecretEnvSource type for use +// with apply. +func SecretEnvSource() *SecretEnvSourceApplyConfiguration { + return &SecretEnvSourceApplyConfiguration{} +} + +// SecretKeySelectorApplyConfiguration represents a declarative configuration of the SecretKeySelector type for use +// with apply. +type SecretKeySelectorApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Key *string `json:"key,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretKeySelectorApplyConfiguration represents a declarative configuration of the SecretKeySelector type for use +// with apply. +func SecretKeySelector() *SecretKeySelectorApplyConfiguration { + return &SecretKeySelectorApplyConfiguration{} +} + +// SecretListApplyConfiguration represents a declarative configuration of the SecretList type for use +// with apply. +type SecretListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]SecretApplyConfiguration `json:"items,omitempty"` +} + +// SecretListApplyConfiguration represents a declarative configuration of the SecretList type for use +// with apply. +func SecretList() *SecretListApplyConfiguration { + return &SecretListApplyConfiguration{} +} + +// SecretProjectionApplyConfiguration represents a declarative configuration of the SecretProjection type for use +// with apply. +type SecretProjectionApplyConfiguration struct { + LocalObjectReferenceApplyConfiguration `json:",inline"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretProjectionApplyConfiguration represents a declarative configuration of the SecretProjection type for use +// with apply. +func SecretProjection() *SecretProjectionApplyConfiguration { + return &SecretProjectionApplyConfiguration{} +} + +// SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use +// with apply. +type SecretReferenceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use +// with apply. +func SecretReference() *SecretReferenceApplyConfiguration { + return &SecretReferenceApplyConfiguration{} +} + +// SecretVolumeSourceApplyConfiguration represents a declarative configuration of the SecretVolumeSource type for use +// with apply. +type SecretVolumeSourceApplyConfiguration struct { + SecretName *string `json:"secretName,omitempty"` + Items *[]KeyToPathApplyConfiguration `json:"items,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` + Optional *bool `json:"optional,omitempty"` +} + +// SecretVolumeSourceApplyConfiguration represents a declarative configuration of the SecretVolumeSource type for use +// with apply. +func SecretVolumeSource() *SecretVolumeSourceApplyConfiguration { + return &SecretVolumeSourceApplyConfiguration{} +} + +// SecurityContextApplyConfiguration represents a declarative configuration of the SecurityContext type for use +// with apply. +type SecurityContextApplyConfiguration struct { + Capabilities *CapabilitiesApplyConfiguration `json:"capabilities,omitempty"` + Privileged *bool `json:"privileged,omitempty"` + SELinuxOptions *SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"` + WindowsOptions *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"` + RunAsUser *int64 `json:"runAsUser,omitempty"` + RunAsGroup *int64 `json:"runAsGroup,omitempty"` + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` + AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"` + ProcMount *corev1.ProcMountType `json:"procMount,omitempty"` +} + +// SecurityContextApplyConfiguration represents a declarative configuration of the SecurityContext type for use +// with apply. +func SecurityContext() *SecurityContextApplyConfiguration { + return &SecurityContextApplyConfiguration{} +} + +// SerializedReferenceApplyConfiguration represents a declarative configuration of the SerializedReference type for use +// with apply. +type SerializedReferenceApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Reference *ObjectReferenceApplyConfiguration `json:"reference,omitempty"` +} + +// SerializedReferenceApplyConfiguration represents a declarative configuration of the SerializedReference type for use +// with apply. +func SerializedReference() *SerializedReferenceApplyConfiguration { + return &SerializedReferenceApplyConfiguration{} +} + +// ServiceApplyConfiguration represents a declarative configuration of the Service type for use +// with apply. +type ServiceApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ServiceSpecApplyConfiguration `json:"spec,omitempty"` + Status *ServiceStatusApplyConfiguration `json:"status,omitempty"` +} + +// ServiceApplyConfiguration represents a declarative configuration of the Service type for use +// with apply. +func Service() *ServiceApplyConfiguration { + return &ServiceApplyConfiguration{} +} + +// ServiceAccountApplyConfiguration represents a declarative configuration of the ServiceAccount type for use +// with apply. +type ServiceAccountApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Secrets *[]ObjectReferenceApplyConfiguration `json:"secrets,omitempty"` + ImagePullSecrets *[]LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` +} + +// ServiceAccountApplyConfiguration represents a declarative configuration of the ServiceAccount type for use +// with apply. +func ServiceAccount() *ServiceAccountApplyConfiguration { + return &ServiceAccountApplyConfiguration{} +} + +// ServiceAccountListApplyConfiguration represents a declarative configuration of the ServiceAccountList type for use +// with apply. +type ServiceAccountListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ServiceAccountApplyConfiguration `json:"items,omitempty"` +} + +// ServiceAccountListApplyConfiguration represents a declarative configuration of the ServiceAccountList type for use +// with apply. +func ServiceAccountList() *ServiceAccountListApplyConfiguration { + return &ServiceAccountListApplyConfiguration{} +} + +// ServiceAccountTokenProjectionApplyConfiguration represents a declarative configuration of the ServiceAccountTokenProjection type for use +// with apply. +type ServiceAccountTokenProjectionApplyConfiguration struct { + Audience *string `json:"audience,omitempty"` + ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"` + Path *string `json:"path,omitempty"` +} + +// ServiceAccountTokenProjectionApplyConfiguration represents a declarative configuration of the ServiceAccountTokenProjection type for use +// with apply. +func ServiceAccountTokenProjection() *ServiceAccountTokenProjectionApplyConfiguration { + return &ServiceAccountTokenProjectionApplyConfiguration{} +} + +// ServiceListApplyConfiguration represents a declarative configuration of the ServiceList type for use +// with apply. +type ServiceListApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]ServiceApplyConfiguration `json:"items,omitempty"` +} + +// ServiceListApplyConfiguration represents a declarative configuration of the ServiceList type for use +// with apply. +func ServiceList() *ServiceListApplyConfiguration { + return &ServiceListApplyConfiguration{} +} + +// ServicePortApplyConfiguration represents a declarative configuration of the ServicePort type for use +// with apply. +type ServicePortApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Protocol *corev1.Protocol `json:"protocol,omitempty"` + AppProtocol *string `json:"appProtocol,omitempty"` + Port *int32 `json:"port,omitempty"` + TargetPort *intstr.IntOrString `json:"targetPort,omitempty"` + NodePort *int32 `json:"nodePort,omitempty"` +} + +// ServicePortApplyConfiguration represents a declarative configuration of the ServicePort type for use +// with apply. +func ServicePort() *ServicePortApplyConfiguration { + return &ServicePortApplyConfiguration{} +} + +// ServiceProxyOptionsApplyConfiguration represents a declarative configuration of the ServiceProxyOptions type for use +// with apply. +type ServiceProxyOptionsApplyConfiguration struct { + metav1.TypeMetaApplyConfiguration `json:",inline"` + Path *string `json:"path,omitempty"` +} + +// ServiceProxyOptionsApplyConfiguration represents a declarative configuration of the ServiceProxyOptions type for use +// with apply. +func ServiceProxyOptions() *ServiceProxyOptionsApplyConfiguration { + return &ServiceProxyOptionsApplyConfiguration{} +} + +// ServiceSpecApplyConfiguration represents a declarative configuration of the ServiceSpec type for use +// with apply. +type ServiceSpecApplyConfiguration struct { + Ports *[]ServicePortApplyConfiguration `json:"ports,omitempty"` + Selector *map[string]string `json:"selector,omitempty"` + ClusterIP *string `json:"clusterIP,omitempty"` + Type *corev1.ServiceType `json:"type,omitempty"` + ExternalIPs *[]string `json:"externalIPs,omitempty"` + SessionAffinity *corev1.ServiceAffinity `json:"sessionAffinity,omitempty"` + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + LoadBalancerSourceRanges *[]string `json:"loadBalancerSourceRanges,omitempty"` + ExternalName *string `json:"externalName,omitempty"` + ExternalTrafficPolicy *corev1.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty"` + HealthCheckNodePort *int32 `json:"healthCheckNodePort,omitempty"` + PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"` + SessionAffinityConfig *SessionAffinityConfigApplyConfiguration `json:"sessionAffinityConfig,omitempty"` + IPFamily *corev1.IPFamily `json:"ipFamily,omitempty"` + TopologyKeys *[]string `json:"topologyKeys,omitempty"` +} + +// ServiceSpecApplyConfiguration represents a declarative configuration of the ServiceSpec type for use +// with apply. +func ServiceSpec() *ServiceSpecApplyConfiguration { + return &ServiceSpecApplyConfiguration{} +} + +// ServiceStatusApplyConfiguration represents a declarative configuration of the ServiceStatus type for use +// with apply. +type ServiceStatusApplyConfiguration struct { + LoadBalancer *LoadBalancerStatusApplyConfiguration `json:"loadBalancer,omitempty"` +} + +// ServiceStatusApplyConfiguration represents a declarative configuration of the ServiceStatus type for use +// with apply. +func ServiceStatus() *ServiceStatusApplyConfiguration { + return &ServiceStatusApplyConfiguration{} +} + +// SessionAffinityConfigApplyConfiguration represents a declarative configuration of the SessionAffinityConfig type for use +// with apply. +type SessionAffinityConfigApplyConfiguration struct { + ClientIP *ClientIPConfigApplyConfiguration `json:"clientIP,omitempty"` +} + +// SessionAffinityConfigApplyConfiguration represents a declarative configuration of the SessionAffinityConfig type for use +// with apply. +func SessionAffinityConfig() *SessionAffinityConfigApplyConfiguration { + return &SessionAffinityConfigApplyConfiguration{} +} + +// StorageOSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSPersistentVolumeSource type for use +// with apply. +type StorageOSPersistentVolumeSourceApplyConfiguration struct { + VolumeName *string `json:"volumeName,omitempty"` + VolumeNamespace *string `json:"volumeNamespace,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *ObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// StorageOSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSPersistentVolumeSource type for use +// with apply. +func StorageOSPersistentVolumeSource() *StorageOSPersistentVolumeSourceApplyConfiguration { + return &StorageOSPersistentVolumeSourceApplyConfiguration{} +} + +// StorageOSVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSVolumeSource type for use +// with apply. +type StorageOSVolumeSourceApplyConfiguration struct { + VolumeName *string `json:"volumeName,omitempty"` + VolumeNamespace *string `json:"volumeNamespace,omitempty"` + FSType *string `json:"fsType,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"` +} + +// StorageOSVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSVolumeSource type for use +// with apply. +func StorageOSVolumeSource() *StorageOSVolumeSourceApplyConfiguration { + return &StorageOSVolumeSourceApplyConfiguration{} +} + +// SysctlApplyConfiguration represents a declarative configuration of the Sysctl type for use +// with apply. +type SysctlApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} + +// SysctlApplyConfiguration represents a declarative configuration of the Sysctl type for use +// with apply. +func Sysctl() *SysctlApplyConfiguration { + return &SysctlApplyConfiguration{} +} + +// TCPSocketActionApplyConfiguration represents a declarative configuration of the TCPSocketAction type for use +// with apply. +type TCPSocketActionApplyConfiguration struct { + Port *intstr.IntOrString `json:"port,omitempty"` + Host *string `json:"host,omitempty"` +} + +// TCPSocketActionApplyConfiguration represents a declarative configuration of the TCPSocketAction type for use +// with apply. +func TCPSocketAction() *TCPSocketActionApplyConfiguration { + return &TCPSocketActionApplyConfiguration{} +} + +// TaintApplyConfiguration represents a declarative configuration of the Taint type for use +// with apply. +type TaintApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + Effect *corev1.TaintEffect `json:"effect,omitempty"` + TimeAdded *apismetav1.Time `json:"timeAdded,omitempty"` +} + +// TaintApplyConfiguration represents a declarative configuration of the Taint type for use +// with apply. +func Taint() *TaintApplyConfiguration { + return &TaintApplyConfiguration{} +} + +// TolerationApplyConfiguration represents a declarative configuration of the Toleration type for use +// with apply. +type TolerationApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Operator *corev1.TolerationOperator `json:"operator,omitempty"` + Value *string `json:"value,omitempty"` + Effect *corev1.TaintEffect `json:"effect,omitempty"` + TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"` +} + +// TolerationApplyConfiguration represents a declarative configuration of the Toleration type for use +// with apply. +func Toleration() *TolerationApplyConfiguration { + return &TolerationApplyConfiguration{} +} + +// TopologySelectorLabelRequirementApplyConfiguration represents a declarative configuration of the TopologySelectorLabelRequirement type for use +// with apply. +type TopologySelectorLabelRequirementApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// TopologySelectorLabelRequirementApplyConfiguration represents a declarative configuration of the TopologySelectorLabelRequirement type for use +// with apply. +func TopologySelectorLabelRequirement() *TopologySelectorLabelRequirementApplyConfiguration { + return &TopologySelectorLabelRequirementApplyConfiguration{} +} + +// TopologySelectorTermApplyConfiguration represents a declarative configuration of the TopologySelectorTerm type for use +// with apply. +type TopologySelectorTermApplyConfiguration struct { + MatchLabelExpressions *[]TopologySelectorLabelRequirementApplyConfiguration `json:"matchLabelExpressions,omitempty"` +} + +// TopologySelectorTermApplyConfiguration represents a declarative configuration of the TopologySelectorTerm type for use +// with apply. +func TopologySelectorTerm() *TopologySelectorTermApplyConfiguration { + return &TopologySelectorTermApplyConfiguration{} +} + +// TopologySpreadConstraintApplyConfiguration represents a declarative configuration of the TopologySpreadConstraint type for use +// with apply. +type TopologySpreadConstraintApplyConfiguration struct { + MaxSkew *int32 `json:"maxSkew,omitempty"` + TopologyKey *string `json:"topologyKey,omitempty"` + WhenUnsatisfiable *corev1.UnsatisfiableConstraintAction `json:"whenUnsatisfiable,omitempty"` + LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` +} + +// TopologySpreadConstraintApplyConfiguration represents a declarative configuration of the TopologySpreadConstraint type for use +// with apply. +func TopologySpreadConstraint() *TopologySpreadConstraintApplyConfiguration { + return &TopologySpreadConstraintApplyConfiguration{} +} + +// TypedLocalObjectReferenceApplyConfiguration represents a declarative configuration of the TypedLocalObjectReference type for use +// with apply. +type TypedLocalObjectReferenceApplyConfiguration struct { + APIGroup *string `json:"apiGroup,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` +} + +// TypedLocalObjectReferenceApplyConfiguration represents a declarative configuration of the TypedLocalObjectReference type for use +// with apply. +func TypedLocalObjectReference() *TypedLocalObjectReferenceApplyConfiguration { + return &TypedLocalObjectReferenceApplyConfiguration{} +} + +// VolumeApplyConfiguration represents a declarative configuration of the Volume type for use +// with apply. +type VolumeApplyConfiguration struct { + Name *string `json:"name,omitempty"` + VolumeSourceApplyConfiguration `json:",inline"` +} + +// VolumeApplyConfiguration represents a declarative configuration of the Volume type for use +// with apply. +func Volume() *VolumeApplyConfiguration { + return &VolumeApplyConfiguration{} +} + +// VolumeDeviceApplyConfiguration represents a declarative configuration of the VolumeDevice type for use +// with apply. +type VolumeDeviceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + DevicePath *string `json:"devicePath,omitempty"` +} + +// VolumeDeviceApplyConfiguration represents a declarative configuration of the VolumeDevice type for use +// with apply. +func VolumeDevice() *VolumeDeviceApplyConfiguration { + return &VolumeDeviceApplyConfiguration{} +} + +// VolumeMountApplyConfiguration represents a declarative configuration of the VolumeMount type for use +// with apply. +type VolumeMountApplyConfiguration struct { + Name *string `json:"name,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + MountPath *string `json:"mountPath,omitempty"` + SubPath *string `json:"subPath,omitempty"` + MountPropagation *corev1.MountPropagationMode `json:"mountPropagation,omitempty"` + SubPathExpr *string `json:"subPathExpr,omitempty"` +} + +// VolumeMountApplyConfiguration represents a declarative configuration of the VolumeMount type for use +// with apply. +func VolumeMount() *VolumeMountApplyConfiguration { + return &VolumeMountApplyConfiguration{} +} + +// VolumeNodeAffinityApplyConfiguration represents a declarative configuration of the VolumeNodeAffinity type for use +// with apply. +type VolumeNodeAffinityApplyConfiguration struct { + Required *NodeSelectorApplyConfiguration `json:"required,omitempty"` +} + +// VolumeNodeAffinityApplyConfiguration represents a declarative configuration of the VolumeNodeAffinity type for use +// with apply. +func VolumeNodeAffinity() *VolumeNodeAffinityApplyConfiguration { + return &VolumeNodeAffinityApplyConfiguration{} +} + +// VolumeProjectionApplyConfiguration represents a declarative configuration of the VolumeProjection type for use +// with apply. +type VolumeProjectionApplyConfiguration struct { + Secret *SecretProjectionApplyConfiguration `json:"secret,omitempty"` + DownwardAPI *DownwardAPIProjectionApplyConfiguration `json:"downwardAPI,omitempty"` + ConfigMap *ConfigMapProjectionApplyConfiguration `json:"configMap,omitempty"` + ServiceAccountToken *ServiceAccountTokenProjectionApplyConfiguration `json:"serviceAccountToken,omitempty"` +} + +// VolumeProjectionApplyConfiguration represents a declarative configuration of the VolumeProjection type for use +// with apply. +func VolumeProjection() *VolumeProjectionApplyConfiguration { + return &VolumeProjectionApplyConfiguration{} +} + +// VolumeSourceApplyConfiguration represents a declarative configuration of the VolumeSource type for use +// with apply. +type VolumeSourceApplyConfiguration struct { + HostPath *HostPathVolumeSourceApplyConfiguration `json:"hostPath,omitempty"` + EmptyDir *EmptyDirVolumeSourceApplyConfiguration `json:"emptyDir,omitempty"` + GCEPersistentDisk *GCEPersistentDiskVolumeSourceApplyConfiguration `json:"gcePersistentDisk,omitempty"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceApplyConfiguration `json:"awsElasticBlockStore,omitempty"` + GitRepo *GitRepoVolumeSourceApplyConfiguration `json:"gitRepo,omitempty"` + Secret *SecretVolumeSourceApplyConfiguration `json:"secret,omitempty"` + NFS *NFSVolumeSourceApplyConfiguration `json:"nfs,omitempty"` + ISCSI *ISCSIVolumeSourceApplyConfiguration `json:"iscsi,omitempty"` + Glusterfs *GlusterfsVolumeSourceApplyConfiguration `json:"glusterfs,omitempty"` + PersistentVolumeClaim *PersistentVolumeClaimVolumeSourceApplyConfiguration `json:"persistentVolumeClaim,omitempty"` + RBD *RBDVolumeSourceApplyConfiguration `json:"rbd,omitempty"` + FlexVolume *FlexVolumeSourceApplyConfiguration `json:"flexVolume,omitempty"` + Cinder *CinderVolumeSourceApplyConfiguration `json:"cinder,omitempty"` + CephFS *CephFSVolumeSourceApplyConfiguration `json:"cephfs,omitempty"` + Flocker *FlockerVolumeSourceApplyConfiguration `json:"flocker,omitempty"` + DownwardAPI *DownwardAPIVolumeSourceApplyConfiguration `json:"downwardAPI,omitempty"` + FC *FCVolumeSourceApplyConfiguration `json:"fc,omitempty"` + AzureFile *AzureFileVolumeSourceApplyConfiguration `json:"azureFile,omitempty"` + ConfigMap *ConfigMapVolumeSourceApplyConfiguration `json:"configMap,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSourceApplyConfiguration `json:"vsphereVolume,omitempty"` + Quobyte *QuobyteVolumeSourceApplyConfiguration `json:"quobyte,omitempty"` + AzureDisk *AzureDiskVolumeSourceApplyConfiguration `json:"azureDisk,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceApplyConfiguration `json:"photonPersistentDisk,omitempty"` + Projected *ProjectedVolumeSourceApplyConfiguration `json:"projected,omitempty"` + PortworxVolume *PortworxVolumeSourceApplyConfiguration `json:"portworxVolume,omitempty"` + ScaleIO *ScaleIOVolumeSourceApplyConfiguration `json:"scaleIO,omitempty"` + StorageOS *StorageOSVolumeSourceApplyConfiguration `json:"storageos,omitempty"` + CSI *CSIVolumeSourceApplyConfiguration `json:"csi,omitempty"` +} + +// VolumeSourceApplyConfiguration represents a declarative configuration of the VolumeSource type for use +// with apply. +func VolumeSource() *VolumeSourceApplyConfiguration { + return &VolumeSourceApplyConfiguration{} +} + +// VsphereVirtualDiskVolumeSourceApplyConfiguration represents a declarative configuration of the VsphereVirtualDiskVolumeSource type for use +// with apply. +type VsphereVirtualDiskVolumeSourceApplyConfiguration struct { + VolumePath *string `json:"volumePath,omitempty"` + FSType *string `json:"fsType,omitempty"` + StoragePolicyName *string `json:"storagePolicyName,omitempty"` + StoragePolicyID *string `json:"storagePolicyID,omitempty"` +} + +// VsphereVirtualDiskVolumeSourceApplyConfiguration represents a declarative configuration of the VsphereVirtualDiskVolumeSource type for use +// with apply. +func VsphereVirtualDiskVolumeSource() *VsphereVirtualDiskVolumeSourceApplyConfiguration { + return &VsphereVirtualDiskVolumeSourceApplyConfiguration{} +} + +// WeightedPodAffinityTermApplyConfiguration represents a declarative configuration of the WeightedPodAffinityTerm type for use +// with apply. +type WeightedPodAffinityTermApplyConfiguration struct { + Weight *int32 `json:"weight,omitempty"` + PodAffinityTerm *PodAffinityTermApplyConfiguration `json:"podAffinityTerm,omitempty"` +} + +// WeightedPodAffinityTermApplyConfiguration represents a declarative configuration of the WeightedPodAffinityTerm type for use +// with apply. +func WeightedPodAffinityTerm() *WeightedPodAffinityTermApplyConfiguration { + return &WeightedPodAffinityTermApplyConfiguration{} +} + +// WindowsSecurityContextOptionsApplyConfiguration represents a declarative configuration of the WindowsSecurityContextOptions type for use +// with apply. +type WindowsSecurityContextOptionsApplyConfiguration struct { + GMSACredentialSpecName *string `json:"gmsaCredentialSpecName,omitempty"` + GMSACredentialSpec *string `json:"gmsaCredentialSpec,omitempty"` + RunAsUserName *string `json:"runAsUserName,omitempty"` +} + +// WindowsSecurityContextOptionsApplyConfiguration represents a declarative configuration of the WindowsSecurityContextOptions type for use +// with apply. +func WindowsSecurityContextOptions() *WindowsSecurityContextOptionsApplyConfiguration { + return &WindowsSecurityContextOptionsApplyConfiguration{} +} diff --git a/pkg/applyconfigurations/testdata/ac/cronjob_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/cronjob_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..37cb11899 --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/cronjob_zz_generated.applyconfigurations.go @@ -0,0 +1,161 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package cronjob + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + testdata "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata" + v1beta1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/batch/v1beta1" + v1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/core/v1" + acmetav1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/meta/v1" +) + +// AssociativeTypeApplyConfiguration represents a declarative configuration of the AssociativeType type for use +// with apply. +type AssociativeTypeApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Secondary *int `json:"secondary,omitempty"` + Foo *string `json:"foo,omitempty"` +} + +// AssociativeTypeApplyConfiguration represents a declarative configuration of the AssociativeType type for use +// with apply. +func AssociativeType() *AssociativeTypeApplyConfiguration { + return &AssociativeTypeApplyConfiguration{} +} + +// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use +// with apply. +type CronJobApplyConfiguration struct { + acmetav1.TypeMetaApplyConfiguration `json:",inline"` + *acmetav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` + Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` +} + +// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use +// with apply. +func CronJob() *CronJobApplyConfiguration { + return &CronJobApplyConfiguration{} +} + +// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use +// with apply. +type CronJobListApplyConfiguration struct { + acmetav1.TypeMetaApplyConfiguration `json:",inline"` + *acmetav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]CronJobApplyConfiguration `json:"items,omitempty"` +} + +// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use +// with apply. +func CronJobList() *CronJobListApplyConfiguration { + return &CronJobListApplyConfiguration{} +} + +// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use +// with apply. +type CronJobSpecApplyConfiguration struct { + Schedule *string `json:"schedule,omitempty"` + StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` + ConcurrencyPolicy *testdata.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` + Suspend *bool `json:"suspend,omitempty"` + NoReallySuspend *testdata.TotallyABool `json:"noReallySuspend,omitempty"` + BinaryName *[]byte `json:"binaryName,omitempty"` + CanBeNull *string `json:"canBeNull,omitempty"` + JobTemplate *v1beta1.JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"` + SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` + FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` + ByteSliceData *map[string][]byte `json:"byteSliceData,omitempty"` + StringSliceData *map[string][]string `json:"stringSliceData,omitempty"` + PtrData *map[string]*string `json:"ptrData,omitempty"` + TwoOfAKindPart0 *string `json:"twoOfAKindPart0,omitempty"` + TwoOfAKindPart1 *testdata.LongerString `json:"twoOfAKindPart1,omitempty"` + DefaultedString *string `json:"defaultedString,omitempty"` + DefaultedSlice *[]string `json:"defaultedSlice,omitempty"` + DefaultedObject *[]RootObjectApplyConfiguration `json:"defaultedObject,omitempty"` + PatternObject *string `json:"patternObject,omitempty"` + EmbeddedResource *runtime.RawExtension `json:"embeddedResource,omitempty"` + UnprunedJSON *NestedObjectApplyConfiguration `json:"unprunedJSON,omitempty"` + UnprunedEmbeddedResource *runtime.RawExtension `json:"unprunedEmbeddedResource,omitempty"` + UnprunedFromType *PreservedApplyConfiguration `json:"unprunedFomType,omitempty"` + AssociativeList *[]AssociativeTypeApplyConfiguration `json:"associativeList,omitempty"` + MapOfInfo *map[string][]byte `json:"mapOfInfo,omitempty"` + StructWithSeveralFields *NestedObjectApplyConfiguration `json:"structWithSeveralFields,omitempty"` + JustNestedObject *testdata.JustNestedObjectApplyConfiguration `json:"justNestedObject,omitempty"` + MinMaxProperties *MinMaxObjectApplyConfiguration `json:"minMaxProperties,omitempty"` +} + +// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use +// with apply. +func CronJobSpec() *CronJobSpecApplyConfiguration { + return &CronJobSpecApplyConfiguration{} +} + +// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use +// with apply. +type CronJobStatusApplyConfiguration struct { + Active *[]v1.ObjectReferenceApplyConfiguration `json:"active,omitempty"` + LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` + LastScheduleMicroTime *metav1.MicroTime `json:"lastScheduleMicroTime,omitempty"` +} + +// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use +// with apply. +func CronJobStatus() *CronJobStatusApplyConfiguration { + return &CronJobStatusApplyConfiguration{} +} + +// MinMaxObjectApplyConfiguration represents a declarative configuration of the MinMaxObject type for use +// with apply. +type MinMaxObjectApplyConfiguration struct { + Foo *string `json:"foo,omitempty"` + Bar *string `json:"bar,omitempty"` + Baz *string `json:"baz,omitempty"` +} + +// MinMaxObjectApplyConfiguration represents a declarative configuration of the MinMaxObject type for use +// with apply. +func MinMaxObject() *MinMaxObjectApplyConfiguration { + return &MinMaxObjectApplyConfiguration{} +} + +// NestedObjectApplyConfiguration represents a declarative configuration of the NestedObject type for use +// with apply. +type NestedObjectApplyConfiguration struct { + Foo *string `json:"foo,omitempty"` + Bar *bool `json:"bar,omitempty"` +} + +// NestedObjectApplyConfiguration represents a declarative configuration of the NestedObject type for use +// with apply. +func NestedObject() *NestedObjectApplyConfiguration { + return &NestedObjectApplyConfiguration{} +} + +// PreservedApplyConfiguration represents a declarative configuration of the Preserved type for use +// with apply. +type PreservedApplyConfiguration struct { + ConcreteField *string `json:"concreteField,omitempty"` +} + +// PreservedApplyConfiguration represents a declarative configuration of the Preserved type for use +// with apply. +func Preserved() *PreservedApplyConfiguration { + return &PreservedApplyConfiguration{} +} + +// RootObjectApplyConfiguration represents a declarative configuration of the RootObject type for use +// with apply. +type RootObjectApplyConfiguration struct { + Nested *NestedObjectApplyConfiguration `json:"nested,omitempty"` +} + +// RootObjectApplyConfiguration represents a declarative configuration of the RootObject type for use +// with apply. +func RootObject() *RootObjectApplyConfiguration { + return &RootObjectApplyConfiguration{} +} diff --git a/pkg/applyconfigurations/testdata/ac/meta/v1/v1_zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/meta/v1/v1_zz_generated.applyconfigurations.go new file mode 100644 index 000000000..2c6cd575f --- /dev/null +++ b/pkg/applyconfigurations/testdata/ac/meta/v1/v1_zz_generated.applyconfigurations.go @@ -0,0 +1,619 @@ +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/types" +) + +// APIGroupApplyConfiguration represents a declarative configuration of the APIGroup type for use +// with apply. +type APIGroupApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Name *string `json:"name,omitempty"` + Versions *[]GroupVersionForDiscoveryApplyConfiguration `json:"versions,omitempty"` + PreferredVersion *GroupVersionForDiscoveryApplyConfiguration `json:"preferredVersion,omitempty"` + ServerAddressByClientCIDRs *[]ServerAddressByClientCIDRApplyConfiguration `json:"serverAddressByClientCIDRs,omitempty"` +} + +// APIGroupApplyConfiguration represents a declarative configuration of the APIGroup type for use +// with apply. +func APIGroup() *APIGroupApplyConfiguration { + return &APIGroupApplyConfiguration{} +} + +// APIGroupListApplyConfiguration represents a declarative configuration of the APIGroupList type for use +// with apply. +type APIGroupListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Groups *[]APIGroupApplyConfiguration `json:"groups,omitempty"` +} + +// APIGroupListApplyConfiguration represents a declarative configuration of the APIGroupList type for use +// with apply. +func APIGroupList() *APIGroupListApplyConfiguration { + return &APIGroupListApplyConfiguration{} +} + +// APIResourceApplyConfiguration represents a declarative configuration of the APIResource type for use +// with apply. +type APIResourceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + SingularName *string `json:"singularName,omitempty"` + Namespaced *bool `json:"namespaced,omitempty"` + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` + Kind *string `json:"kind,omitempty"` + Verbs *metav1.Verbs `json:"verbs,omitempty"` + ShortNames *[]string `json:"shortNames,omitempty"` + Categories *[]string `json:"categories,omitempty"` + StorageVersionHash *string `json:"storageVersionHash,omitempty"` +} + +// APIResourceApplyConfiguration represents a declarative configuration of the APIResource type for use +// with apply. +func APIResource() *APIResourceApplyConfiguration { + return &APIResourceApplyConfiguration{} +} + +// APIResourceListApplyConfiguration represents a declarative configuration of the APIResourceList type for use +// with apply. +type APIResourceListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + GroupVersion *string `json:"groupVersion,omitempty"` + APIResources *[]APIResourceApplyConfiguration `json:"resources,omitempty"` +} + +// APIResourceListApplyConfiguration represents a declarative configuration of the APIResourceList type for use +// with apply. +func APIResourceList() *APIResourceListApplyConfiguration { + return &APIResourceListApplyConfiguration{} +} + +// APIVersionsApplyConfiguration represents a declarative configuration of the APIVersions type for use +// with apply. +type APIVersionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Versions *[]string `json:"versions,omitempty"` + ServerAddressByClientCIDRs *[]ServerAddressByClientCIDRApplyConfiguration `json:"serverAddressByClientCIDRs,omitempty"` +} + +// APIVersionsApplyConfiguration represents a declarative configuration of the APIVersions type for use +// with apply. +func APIVersions() *APIVersionsApplyConfiguration { + return &APIVersionsApplyConfiguration{} +} + +// CreateOptionsApplyConfiguration represents a declarative configuration of the CreateOptions type for use +// with apply. +type CreateOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + DryRun *[]string `json:"dryRun,omitempty"` + FieldManager *string `json:"fieldManager,omitempty"` +} + +// CreateOptionsApplyConfiguration represents a declarative configuration of the CreateOptions type for use +// with apply. +func CreateOptions() *CreateOptionsApplyConfiguration { + return &CreateOptionsApplyConfiguration{} +} + +// DeleteOptionsApplyConfiguration represents a declarative configuration of the DeleteOptions type for use +// with apply. +type DeleteOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"` + Preconditions *PreconditionsApplyConfiguration `json:"preconditions,omitempty"` + OrphanDependents *bool `json:"orphanDependents,omitempty"` + PropagationPolicy *metav1.DeletionPropagation `json:"propagationPolicy,omitempty"` + DryRun *[]string `json:"dryRun,omitempty"` +} + +// DeleteOptionsApplyConfiguration represents a declarative configuration of the DeleteOptions type for use +// with apply. +func DeleteOptions() *DeleteOptionsApplyConfiguration { + return &DeleteOptionsApplyConfiguration{} +} + +// ExportOptionsApplyConfiguration represents a declarative configuration of the ExportOptions type for use +// with apply. +type ExportOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + Export *bool `json:"export,omitempty"` + Exact *bool `json:"exact,omitempty"` +} + +// ExportOptionsApplyConfiguration represents a declarative configuration of the ExportOptions type for use +// with apply. +func ExportOptions() *ExportOptionsApplyConfiguration { + return &ExportOptionsApplyConfiguration{} +} + +// GetOptionsApplyConfiguration represents a declarative configuration of the GetOptions type for use +// with apply. +type GetOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + ResourceVersion *string `json:"resourceVersion,omitempty"` +} + +// GetOptionsApplyConfiguration represents a declarative configuration of the GetOptions type for use +// with apply. +func GetOptions() *GetOptionsApplyConfiguration { + return &GetOptionsApplyConfiguration{} +} + +// GroupKindApplyConfiguration represents a declarative configuration of the GroupKind type for use +// with apply. +type GroupKindApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +// GroupKindApplyConfiguration represents a declarative configuration of the GroupKind type for use +// with apply. +func GroupKind() *GroupKindApplyConfiguration { + return &GroupKindApplyConfiguration{} +} + +// GroupResourceApplyConfiguration represents a declarative configuration of the GroupResource type for use +// with apply. +type GroupResourceApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// GroupResourceApplyConfiguration represents a declarative configuration of the GroupResource type for use +// with apply. +func GroupResource() *GroupResourceApplyConfiguration { + return &GroupResourceApplyConfiguration{} +} + +// GroupVersionApplyConfiguration represents a declarative configuration of the GroupVersion type for use +// with apply. +type GroupVersionApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` +} + +// GroupVersionApplyConfiguration represents a declarative configuration of the GroupVersion type for use +// with apply. +func GroupVersion() *GroupVersionApplyConfiguration { + return &GroupVersionApplyConfiguration{} +} + +// GroupVersionForDiscoveryApplyConfiguration represents a declarative configuration of the GroupVersionForDiscovery type for use +// with apply. +type GroupVersionForDiscoveryApplyConfiguration struct { + GroupVersion *string `json:"groupVersion,omitempty"` + Version *string `json:"version,omitempty"` +} + +// GroupVersionForDiscoveryApplyConfiguration represents a declarative configuration of the GroupVersionForDiscovery type for use +// with apply. +func GroupVersionForDiscovery() *GroupVersionForDiscoveryApplyConfiguration { + return &GroupVersionForDiscoveryApplyConfiguration{} +} + +// GroupVersionKindApplyConfiguration represents a declarative configuration of the GroupVersionKind type for use +// with apply. +type GroupVersionKindApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +// GroupVersionKindApplyConfiguration represents a declarative configuration of the GroupVersionKind type for use +// with apply. +func GroupVersionKind() *GroupVersionKindApplyConfiguration { + return &GroupVersionKindApplyConfiguration{} +} + +// GroupVersionResourceApplyConfiguration represents a declarative configuration of the GroupVersionResource type for use +// with apply. +type GroupVersionResourceApplyConfiguration struct { + Group *string `json:"group,omitempty"` + Version *string `json:"version,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// GroupVersionResourceApplyConfiguration represents a declarative configuration of the GroupVersionResource type for use +// with apply. +func GroupVersionResource() *GroupVersionResourceApplyConfiguration { + return &GroupVersionResourceApplyConfiguration{} +} + +// LabelSelectorApplyConfiguration represents a declarative configuration of the LabelSelector type for use +// with apply. +type LabelSelectorApplyConfiguration struct { + MatchLabels *map[string]string `json:"matchLabels,omitempty"` + MatchExpressions *[]LabelSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` +} + +// LabelSelectorApplyConfiguration represents a declarative configuration of the LabelSelector type for use +// with apply. +func LabelSelector() *LabelSelectorApplyConfiguration { + return &LabelSelectorApplyConfiguration{} +} + +// LabelSelectorRequirementApplyConfiguration represents a declarative configuration of the LabelSelectorRequirement type for use +// with apply. +type LabelSelectorRequirementApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Operator *metav1.LabelSelectorOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// LabelSelectorRequirementApplyConfiguration represents a declarative configuration of the LabelSelectorRequirement type for use +// with apply. +func LabelSelectorRequirement() *LabelSelectorRequirementApplyConfiguration { + return &LabelSelectorRequirementApplyConfiguration{} +} + +// ListApplyConfiguration represents a declarative configuration of the List type for use +// with apply. +type ListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]runtime.RawExtension `json:"items,omitempty"` +} + +// ListApplyConfiguration represents a declarative configuration of the List type for use +// with apply. +func List() *ListApplyConfiguration { + return &ListApplyConfiguration{} +} + +// ListMetaApplyConfiguration represents a declarative configuration of the ListMeta type for use +// with apply. +type ListMetaApplyConfiguration struct { + SelfLink *string `json:"selfLink,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + Continue *string `json:"continue,omitempty"` + RemainingItemCount *int64 `json:"remainingItemCount,omitempty"` +} + +// ListMetaApplyConfiguration represents a declarative configuration of the ListMeta type for use +// with apply. +func ListMeta() *ListMetaApplyConfiguration { + return &ListMetaApplyConfiguration{} +} + +// ListOptionsApplyConfiguration represents a declarative configuration of the ListOptions type for use +// with apply. +type ListOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + LabelSelector *string `json:"labelSelector,omitempty"` + FieldSelector *string `json:"fieldSelector,omitempty"` + Watch *bool `json:"watch,omitempty"` + AllowWatchBookmarks *bool `json:"allowWatchBookmarks,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Continue *string `json:"continue,omitempty"` +} + +// ListOptionsApplyConfiguration represents a declarative configuration of the ListOptions type for use +// with apply. +func ListOptions() *ListOptionsApplyConfiguration { + return &ListOptionsApplyConfiguration{} +} + +// ManagedFieldsEntryApplyConfiguration represents a declarative configuration of the ManagedFieldsEntry type for use +// with apply. +type ManagedFieldsEntryApplyConfiguration struct { + Manager *string `json:"manager,omitempty"` + Operation *metav1.ManagedFieldsOperationType `json:"operation,omitempty"` + APIVersion *string `json:"apiVersion,omitempty"` + Time *metav1.Time `json:"time,omitempty"` + FieldsType *string `json:"fieldsType,omitempty"` + FieldsV1 *metav1.FieldsV1 `json:"fieldsV1,omitempty"` +} + +// ManagedFieldsEntryApplyConfiguration represents a declarative configuration of the ManagedFieldsEntry type for use +// with apply. +func ManagedFieldsEntry() *ManagedFieldsEntryApplyConfiguration { + return &ManagedFieldsEntryApplyConfiguration{} +} + +// ObjectMetaApplyConfiguration represents a declarative configuration of the ObjectMeta type for use +// with apply. +type ObjectMetaApplyConfiguration struct { + Name *string `json:"name,omitempty"` + GenerateName *string `json:"generateName,omitempty"` + Namespace *string `json:"namespace,omitempty"` + SelfLink *string `json:"selfLink,omitempty"` + UID *types.UID `json:"uid,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` + Generation *int64 `json:"generation,omitempty"` + CreationTimestamp *metav1.Time `json:"creationTimestamp,omitempty"` + DeletionTimestamp *metav1.Time `json:"deletionTimestamp,omitempty"` + DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` + OwnerReferences *[]OwnerReferenceApplyConfiguration `json:"ownerReferences,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + ClusterName *string `json:"clusterName,omitempty"` + ManagedFields *[]ManagedFieldsEntryApplyConfiguration `json:"managedFields,omitempty"` +} + +// ObjectMetaApplyConfiguration represents a declarative configuration of the ObjectMeta type for use +// with apply. +func ObjectMeta() *ObjectMetaApplyConfiguration { + return &ObjectMetaApplyConfiguration{} +} + +// OwnerReferenceApplyConfiguration represents a declarative configuration of the OwnerReference type for use +// with apply. +type OwnerReferenceApplyConfiguration struct { + APIVersion *string `json:"apiVersion,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + UID *types.UID `json:"uid,omitempty"` + Controller *bool `json:"controller,omitempty"` + BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"` +} + +// OwnerReferenceApplyConfiguration represents a declarative configuration of the OwnerReference type for use +// with apply. +func OwnerReference() *OwnerReferenceApplyConfiguration { + return &OwnerReferenceApplyConfiguration{} +} + +// PartialObjectMetadataApplyConfiguration represents a declarative configuration of the PartialObjectMetadata type for use +// with apply. +type PartialObjectMetadataApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ObjectMetaApplyConfiguration `json:"metadata,omitempty"` +} + +// PartialObjectMetadataApplyConfiguration represents a declarative configuration of the PartialObjectMetadata type for use +// with apply. +func PartialObjectMetadata() *PartialObjectMetadataApplyConfiguration { + return &PartialObjectMetadataApplyConfiguration{} +} + +// PartialObjectMetadataListApplyConfiguration represents a declarative configuration of the PartialObjectMetadataList type for use +// with apply. +type PartialObjectMetadataListApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]PartialObjectMetadataApplyConfiguration `json:"items,omitempty"` +} + +// PartialObjectMetadataListApplyConfiguration represents a declarative configuration of the PartialObjectMetadataList type for use +// with apply. +func PartialObjectMetadataList() *PartialObjectMetadataListApplyConfiguration { + return &PartialObjectMetadataListApplyConfiguration{} +} + +// PatchOptionsApplyConfiguration represents a declarative configuration of the PatchOptions type for use +// with apply. +type PatchOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + DryRun *[]string `json:"dryRun,omitempty"` + Force *bool `json:"force,omitempty"` + FieldManager *string `json:"fieldManager,omitempty"` +} + +// PatchOptionsApplyConfiguration represents a declarative configuration of the PatchOptions type for use +// with apply. +func PatchOptions() *PatchOptionsApplyConfiguration { + return &PatchOptionsApplyConfiguration{} +} + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +type PreconditionsApplyConfiguration struct { + UID *types.UID `json:"uid,omitempty"` + ResourceVersion *string `json:"resourceVersion,omitempty"` +} + +// PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use +// with apply. +func Preconditions() *PreconditionsApplyConfiguration { + return &PreconditionsApplyConfiguration{} +} + +// RootPathsApplyConfiguration represents a declarative configuration of the RootPaths type for use +// with apply. +type RootPathsApplyConfiguration struct { + Paths *[]string `json:"paths,omitempty"` +} + +// RootPathsApplyConfiguration represents a declarative configuration of the RootPaths type for use +// with apply. +func RootPaths() *RootPathsApplyConfiguration { + return &RootPathsApplyConfiguration{} +} + +// ServerAddressByClientCIDRApplyConfiguration represents a declarative configuration of the ServerAddressByClientCIDR type for use +// with apply. +type ServerAddressByClientCIDRApplyConfiguration struct { + ClientCIDR *string `json:"clientCIDR,omitempty"` + ServerAddress *string `json:"serverAddress,omitempty"` +} + +// ServerAddressByClientCIDRApplyConfiguration represents a declarative configuration of the ServerAddressByClientCIDR type for use +// with apply. +func ServerAddressByClientCIDR() *ServerAddressByClientCIDRApplyConfiguration { + return &ServerAddressByClientCIDRApplyConfiguration{} +} + +// StatusApplyConfiguration represents a declarative configuration of the Status type for use +// with apply. +type StatusApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + Status *string `json:"status,omitempty"` + Message *string `json:"message,omitempty"` + Reason *metav1.StatusReason `json:"reason,omitempty"` + Details *StatusDetailsApplyConfiguration `json:"details,omitempty"` + Code *int32 `json:"code,omitempty"` +} + +// StatusApplyConfiguration represents a declarative configuration of the Status type for use +// with apply. +func Status() *StatusApplyConfiguration { + return &StatusApplyConfiguration{} +} + +// StatusCauseApplyConfiguration represents a declarative configuration of the StatusCause type for use +// with apply. +type StatusCauseApplyConfiguration struct { + Type *metav1.CauseType `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` + Field *string `json:"field,omitempty"` +} + +// StatusCauseApplyConfiguration represents a declarative configuration of the StatusCause type for use +// with apply. +func StatusCause() *StatusCauseApplyConfiguration { + return &StatusCauseApplyConfiguration{} +} + +// StatusDetailsApplyConfiguration represents a declarative configuration of the StatusDetails type for use +// with apply. +type StatusDetailsApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Group *string `json:"group,omitempty"` + Kind *string `json:"kind,omitempty"` + UID *types.UID `json:"uid,omitempty"` + Causes *[]StatusCauseApplyConfiguration `json:"causes,omitempty"` + RetryAfterSeconds *int32 `json:"retryAfterSeconds,omitempty"` +} + +// StatusDetailsApplyConfiguration represents a declarative configuration of the StatusDetails type for use +// with apply. +func StatusDetails() *StatusDetailsApplyConfiguration { + return &StatusDetailsApplyConfiguration{} +} + +// TableApplyConfiguration represents a declarative configuration of the Table type for use +// with apply. +type TableApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + *ListMetaApplyConfiguration `json:"metadata,omitempty"` + ColumnDefinitions *[]TableColumnDefinitionApplyConfiguration `json:"columnDefinitions,omitempty"` + Rows *[]TableRowApplyConfiguration `json:"rows,omitempty"` +} + +// TableApplyConfiguration represents a declarative configuration of the Table type for use +// with apply. +func Table() *TableApplyConfiguration { + return &TableApplyConfiguration{} +} + +// TableColumnDefinitionApplyConfiguration represents a declarative configuration of the TableColumnDefinition type for use +// with apply. +type TableColumnDefinitionApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + Format *string `json:"format,omitempty"` + Description *string `json:"description,omitempty"` + Priority *int32 `json:"priority,omitempty"` +} + +// TableColumnDefinitionApplyConfiguration represents a declarative configuration of the TableColumnDefinition type for use +// with apply. +func TableColumnDefinition() *TableColumnDefinitionApplyConfiguration { + return &TableColumnDefinitionApplyConfiguration{} +} + +// TableOptionsApplyConfiguration represents a declarative configuration of the TableOptions type for use +// with apply. +type TableOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + IncludeObject *metav1.IncludeObjectPolicy `json:"includeObject,omitempty"` +} + +// TableOptionsApplyConfiguration represents a declarative configuration of the TableOptions type for use +// with apply. +func TableOptions() *TableOptionsApplyConfiguration { + return &TableOptionsApplyConfiguration{} +} + +// TableRowApplyConfiguration represents a declarative configuration of the TableRow type for use +// with apply. +type TableRowApplyConfiguration struct { + Cells *[]interface{} `json:"cells,omitempty"` + Conditions *[]TableRowConditionApplyConfiguration `json:"conditions,omitempty"` + Object *runtime.RawExtension `json:"object,omitempty"` +} + +// TableRowApplyConfiguration represents a declarative configuration of the TableRow type for use +// with apply. +func TableRow() *TableRowApplyConfiguration { + return &TableRowApplyConfiguration{} +} + +// TableRowConditionApplyConfiguration represents a declarative configuration of the TableRowCondition type for use +// with apply. +type TableRowConditionApplyConfiguration struct { + Type *metav1.RowConditionType `json:"type,omitempty"` + Status *metav1.ConditionStatus `json:"status,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// TableRowConditionApplyConfiguration represents a declarative configuration of the TableRowCondition type for use +// with apply. +func TableRowCondition() *TableRowConditionApplyConfiguration { + return &TableRowConditionApplyConfiguration{} +} + +// TimestampApplyConfiguration represents a declarative configuration of the Timestamp type for use +// with apply. +type TimestampApplyConfiguration struct { + Seconds *int64 `json:"seconds,omitempty"` + Nanos *int32 `json:"nanos,omitempty"` +} + +// TimestampApplyConfiguration represents a declarative configuration of the Timestamp type for use +// with apply. +func Timestamp() *TimestampApplyConfiguration { + return &TimestampApplyConfiguration{} +} + +// TypeMetaApplyConfiguration represents a declarative configuration of the TypeMeta type for use +// with apply. +type TypeMetaApplyConfiguration struct { + Kind *string `json:"kind,omitempty"` + APIVersion *string `json:"apiVersion,omitempty"` +} + +// TypeMetaApplyConfiguration represents a declarative configuration of the TypeMeta type for use +// with apply. +func TypeMeta() *TypeMetaApplyConfiguration { + return &TypeMetaApplyConfiguration{} +} + +// UpdateOptionsApplyConfiguration represents a declarative configuration of the UpdateOptions type for use +// with apply. +type UpdateOptionsApplyConfiguration struct { + TypeMetaApplyConfiguration `json:",inline"` + DryRun *[]string `json:"dryRun,omitempty"` + FieldManager *string `json:"fieldManager,omitempty"` +} + +// UpdateOptionsApplyConfiguration represents a declarative configuration of the UpdateOptions type for use +// with apply. +func UpdateOptions() *UpdateOptionsApplyConfiguration { + return &UpdateOptionsApplyConfiguration{} +} + +// WatchEventApplyConfiguration represents a declarative configuration of the WatchEvent type for use +// with apply. +type WatchEventApplyConfiguration struct { + Type *string `json:"type,omitempty"` + Object *runtime.RawExtension `json:"object,omitempty"` +} + +// WatchEventApplyConfiguration represents a declarative configuration of the WatchEvent type for use +// with apply. +func WatchEvent() *WatchEventApplyConfiguration { + return &WatchEventApplyConfiguration{} +} diff --git a/pkg/applyconfigurations/testdata/zz_generated.deepcopy.go b/pkg/applyconfigurations/testdata/ac/zz_generated.deepcopy.go similarity index 100% rename from pkg/applyconfigurations/testdata/zz_generated.deepcopy.go rename to pkg/applyconfigurations/testdata/ac/zz_generated.deepcopy.go diff --git a/pkg/applyconfigurations/testdata/zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/zz_generated.applyconfigurations.go deleted file mode 100644 index 4022553c3..000000000 --- a/pkg/applyconfigurations/testdata/zz_generated.applyconfigurations.go +++ /dev/null @@ -1,230 +0,0 @@ -// +build !ignore_autogenerated - -// Code generated by controller-gen. DO NOT EDIT. - -package cronjob - -import ( - "k8s.io/api/batch/v1beta1" - "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// AssociativeTypeApplyConfiguration represents a declarative configuration of the AssociativeType type for use -// with apply. -type AssociativeTypeApplyConfiguration struct { - Name *string `json:"name,omitempty"` - Secondary *int `json:"secondary,omitempty"` - Foo *string `json:"foo,omitempty"` -} - -// AssociativeTypeApplyConfiguration represents a declarative configuration of the AssociativeType type for use -// with apply. -func AssociativeType() *AssociativeTypeApplyConfiguration { - return &AssociativeTypeApplyConfiguration{} -} - -// AssociativeTypeList represents a listAlias of AssociativeTypeApplyConfiguration. -type AssociativeTypeList []*AssociativeTypeApplyConfiguration - -// AssociativeTypeMap represents a map of AssociativeTypeApplyConfiguration. -type AssociativeTypeMap map[string]AssociativeTypeApplyConfiguration - -// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use -// with apply. -type CronJobApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - *metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` - Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` -} - -// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use -// with apply. -func CronJob() *CronJobApplyConfiguration { - return &CronJobApplyConfiguration{} -} - -// CronJobList represents a listAlias of CronJobApplyConfiguration. -type CronJobList []*CronJobApplyConfiguration - -// CronJobMap represents a map of CronJobApplyConfiguration. -type CronJobMap map[string]CronJobApplyConfiguration - -// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use -// with apply. -type CronJobListApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - *metav1.ListMeta `json:"metadata,omitempty"` - Items *[]CronJobApplyConfiguration `json:"items,omitempty"` -} - -// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use -// with apply. -func CronJobList() *CronJobListApplyConfiguration { - return &CronJobListApplyConfiguration{} -} - -// CronJobListList represents a listAlias of CronJobListApplyConfiguration. -type CronJobListList []*CronJobListApplyConfiguration - -// CronJobListMap represents a map of CronJobListApplyConfiguration. -type CronJobListMap map[string]CronJobListApplyConfiguration - -// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use -// with apply. -type CronJobSpecApplyConfiguration struct { - Schedule *string `json:"schedule,omitempty"` - StartingDeadlineSeconds **int64 `json:"startingDeadlineSeconds,omitempty"` - ConcurrencyPolicy *ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` - Suspend **bool `json:"suspend,omitempty"` - NoReallySuspend **TotallyABool `json:"noReallySuspend,omitempty"` - BinaryName *[]byte `json:"binaryName,omitempty"` - CanBeNull *string `json:"canBeNull,omitempty"` - JobTemplate *v1beta1.JobTemplateSpec `json:"jobTemplate,omitempty"` - SuccessfulJobsHistoryLimit **int32 `json:"successfulJobsHistoryLimit,omitempty"` - FailedJobsHistoryLimit **int32 `json:"failedJobsHistoryLimit,omitempty"` - ByteSliceData *map[string][]byte `json:"byteSliceData,omitempty"` - StringSliceData *map[string][]string `json:"stringSliceData,omitempty"` - PtrData *map[string]*string `json:"ptrData,omitempty"` - TwoOfAKindPart0 *string `json:"twoOfAKindPart0,omitempty"` - TwoOfAKindPart1 *LongerString `json:"twoOfAKindPart1,omitempty"` - DefaultedString *string `json:"defaultedString,omitempty"` - DefaultedSlice *[]string `json:"defaultedSlice,omitempty"` - DefaultedObject *[]RootObjectApplyConfiguration `json:"defaultedObject,omitempty"` - PatternObject *string `json:"patternObject,omitempty"` - EmbeddedResource *runtime.RawExtension `json:"embeddedResource,omitempty"` - UnprunedJSON *NestedObjectApplyConfiguration `json:"unprunedJSON,omitempty"` - UnprunedEmbeddedResource *runtime.RawExtension `json:"unprunedEmbeddedResource,omitempty"` - UnprunedFromType *PreservedApplyConfiguration `json:"unprunedFomType,omitempty"` - AssociativeList *[]AssociativeTypeApplyConfiguration `json:"associativeList,omitempty"` - MapOfInfo *map[string][]byte `json:"mapOfInfo,omitempty"` - StructWithSeveralFields *NestedObjectApplyConfiguration `json:"structWithSeveralFields,omitempty"` - JustNestedObject **JustNestedObjectApplyConfiguration `json:"justNestedObject,omitempty"` - MinMaxProperties *MinMaxObjectApplyConfiguration `json:"minMaxProperties,omitempty"` -} - -// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use -// with apply. -func CronJobSpec() *CronJobSpecApplyConfiguration { - return &CronJobSpecApplyConfiguration{} -} - -// CronJobSpecList represents a listAlias of CronJobSpecApplyConfiguration. -type CronJobSpecList []*CronJobSpecApplyConfiguration - -// CronJobSpecMap represents a map of CronJobSpecApplyConfiguration. -type CronJobSpecMap map[string]CronJobSpecApplyConfiguration - -// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use -// with apply. -type CronJobStatusApplyConfiguration struct { - Active *[]v1.ObjectReference `json:"active,omitempty"` - LastScheduleTime **metav1.Time `json:"lastScheduleTime,omitempty"` - LastScheduleMicroTime **metav1.MicroTime `json:"lastScheduleMicroTime,omitempty"` -} - -// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use -// with apply. -func CronJobStatus() *CronJobStatusApplyConfiguration { - return &CronJobStatusApplyConfiguration{} -} - -// CronJobStatusList represents a listAlias of CronJobStatusApplyConfiguration. -type CronJobStatusList []*CronJobStatusApplyConfiguration - -// CronJobStatusMap represents a map of CronJobStatusApplyConfiguration. -type CronJobStatusMap map[string]CronJobStatusApplyConfiguration - -// JustNestedObjectApplyConfiguration represents a declarative configuration of the JustNestedObject type for use -// with apply. -type JustNestedObjectApplyConfiguration struct { -} - -// JustNestedObjectApplyConfiguration represents a declarative configuration of the JustNestedObject type for use -// with apply. -func JustNestedObject() *JustNestedObjectApplyConfiguration { - return &JustNestedObjectApplyConfiguration{} -} - -// JustNestedObjectList represents a listAlias of JustNestedObjectApplyConfiguration. -type JustNestedObjectList []*JustNestedObjectApplyConfiguration - -// JustNestedObjectMap represents a map of JustNestedObjectApplyConfiguration. -type JustNestedObjectMap map[string]JustNestedObjectApplyConfiguration - -// MinMaxObjectApplyConfiguration represents a declarative configuration of the MinMaxObject type for use -// with apply. -type MinMaxObjectApplyConfiguration struct { - Foo *string `json:"foo,omitempty"` - Bar *string `json:"bar,omitempty"` - Baz *string `json:"baz,omitempty"` -} - -// MinMaxObjectApplyConfiguration represents a declarative configuration of the MinMaxObject type for use -// with apply. -func MinMaxObject() *MinMaxObjectApplyConfiguration { - return &MinMaxObjectApplyConfiguration{} -} - -// MinMaxObjectList represents a listAlias of MinMaxObjectApplyConfiguration. -type MinMaxObjectList []*MinMaxObjectApplyConfiguration - -// MinMaxObjectMap represents a map of MinMaxObjectApplyConfiguration. -type MinMaxObjectMap map[string]MinMaxObjectApplyConfiguration - -// NestedObjectApplyConfiguration represents a declarative configuration of the NestedObject type for use -// with apply. -type NestedObjectApplyConfiguration struct { - Foo *string `json:"foo,omitempty"` - Bar *bool `json:"bar,omitempty"` -} - -// NestedObjectApplyConfiguration represents a declarative configuration of the NestedObject type for use -// with apply. -func NestedObject() *NestedObjectApplyConfiguration { - return &NestedObjectApplyConfiguration{} -} - -// NestedObjectList represents a listAlias of NestedObjectApplyConfiguration. -type NestedObjectList []*NestedObjectApplyConfiguration - -// NestedObjectMap represents a map of NestedObjectApplyConfiguration. -type NestedObjectMap map[string]NestedObjectApplyConfiguration - -// PreservedApplyConfiguration represents a declarative configuration of the Preserved type for use -// with apply. -type PreservedApplyConfiguration struct { - ConcreteField *string `json:"concreteField,omitempty"` -} - -// PreservedApplyConfiguration represents a declarative configuration of the Preserved type for use -// with apply. -func Preserved() *PreservedApplyConfiguration { - return &PreservedApplyConfiguration{} -} - -// PreservedList represents a listAlias of PreservedApplyConfiguration. -type PreservedList []*PreservedApplyConfiguration - -// PreservedMap represents a map of PreservedApplyConfiguration. -type PreservedMap map[string]PreservedApplyConfiguration - -// RootObjectApplyConfiguration represents a declarative configuration of the RootObject type for use -// with apply. -type RootObjectApplyConfiguration struct { - Nested *NestedObjectApplyConfiguration `json:"nested,omitempty"` -} - -// RootObjectApplyConfiguration represents a declarative configuration of the RootObject type for use -// with apply. -func RootObject() *RootObjectApplyConfiguration { - return &RootObjectApplyConfiguration{} -} - -// RootObjectList represents a listAlias of RootObjectApplyConfiguration. -type RootObjectList []*RootObjectApplyConfiguration - -// RootObjectMap represents a map of RootObjectApplyConfiguration. -type RootObjectMap map[string]RootObjectApplyConfiguration diff --git a/pkg/applyconfigurations/testdata/zz_generated.applyconfigurations_builder.go b/pkg/applyconfigurations/testdata/zz_generated.applyconfigurations_builder.go deleted file mode 100644 index 55666a89f..000000000 --- a/pkg/applyconfigurations/testdata/zz_generated.applyconfigurations_builder.go +++ /dev/null @@ -1,1601 +0,0 @@ -// +build !ignore_autogenerated - -// Code generated by controller-gen. DO NOT EDIT. - -package cronjob - -import ( - "encoding/json" - "k8s.io/api/batch/v1beta1" - "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// AssociativeTypeApplyConfiguration represents a declarative configuration of the AssociativeType type for use -// with apply. -type AssociativeTypeApplyConfiguration struct { - fields associativeTypeFields -} - -// associativeType owns all fields except inlined fields -type associativeTypeFields struct { - Name *string `json:"name,omitempty"` - Secondary *int `json:"secondary,omitempty"` - Foo *string `json:"foo,omitempty"` -} - -// SetName sets the Name field in the declarative configuration to the given value -func (b *AssociativeTypeApplyConfiguration) SetName(value string) *AssociativeTypeApplyConfiguration { - b.fields.Name = &value - return b -} - -// RemoveName removes the Name field in the declarative configuration -func (b *AssociativeTypeApplyConfiguration) RemoveName(value string) *AssociativeTypeApplyConfiguration { - b.fields.Name = nil - return b -} - -// GetName gets the Name field in the declarative configuration -func (b *AssociativeTypeApplyConfiguration) GetName() (value string, ok bool) { - if v := b.fields.Name; v != nil { - return *v, true - } - return value, false -} - -// SetSecondary sets the Secondary field in the declarative configuration to the given value -func (b *AssociativeTypeApplyConfiguration) SetSecondary(value int) *AssociativeTypeApplyConfiguration { - b.fields.Secondary = &value - return b -} - -// RemoveSecondary removes the Secondary field in the declarative configuration -func (b *AssociativeTypeApplyConfiguration) RemoveSecondary(value int) *AssociativeTypeApplyConfiguration { - b.fields.Secondary = nil - return b -} - -// GetSecondary gets the Secondary field in the declarative configuration -func (b *AssociativeTypeApplyConfiguration) GetSecondary() (value int, ok bool) { - if v := b.fields.Secondary; v != nil { - return *v, true - } - return value, false -} - -// SetFoo sets the Foo field in the declarative configuration to the given value -func (b *AssociativeTypeApplyConfiguration) SetFoo(value string) *AssociativeTypeApplyConfiguration { - b.fields.Foo = &value - return b -} - -// RemoveFoo removes the Foo field in the declarative configuration -func (b *AssociativeTypeApplyConfiguration) RemoveFoo(value string) *AssociativeTypeApplyConfiguration { - b.fields.Foo = nil - return b -} - -// GetFoo gets the Foo field in the declarative configuration -func (b *AssociativeTypeApplyConfiguration) GetFoo() (value string, ok bool) { - if v := b.fields.Foo; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts AssociativeType to unstructured. -func (b *AssociativeTypeApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to AssociativeTypeApplyConfiguration, replacing the contents -// of AssociativeTypeApplyConfiguration. -func (b *AssociativeTypeApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &associativeTypeFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals AssociativeTypeApplyConfiguration to JSON. -func (b *AssociativeTypeApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into AssociativeTypeApplyConfiguration, replacing the contents of -// AssociativeTypeApplyConfiguration. -func (b *AssociativeTypeApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *AssociativeTypeApplyConfiguration) preMarshal() { -} -func (b *AssociativeTypeApplyConfiguration) postUnmarshal() { -} - -// AssociativeTypeList represents a listAlias of AssociativeTypeApplyConfiguration. -type AssociativeTypeList []*AssociativeTypeApplyConfiguration - -// AssociativeTypeMap represents a map of AssociativeTypeApplyConfiguration. -type AssociativeTypeMap map[string]AssociativeTypeApplyConfiguration - -// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use -// with apply. -type CronJobApplyConfiguration struct { - metav1.TypeMeta // inlined type - fields cronJobFields -} - -// cronJob owns all fields except inlined fields -type cronJobFields struct { - *metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` - Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` -} - -// SetSpec sets the Spec field in the declarative configuration to the given value -func (b *CronJobApplyConfiguration) SetSpec(value CronJobSpecApplyConfiguration) *CronJobApplyConfiguration { - b.fields.Spec = &value - return b -} - -// RemoveSpec removes the Spec field in the declarative configuration -func (b *CronJobApplyConfiguration) RemoveSpec(value CronJobSpecApplyConfiguration) *CronJobApplyConfiguration { - b.fields.Spec = nil - return b -} - -// GetSpec gets the Spec field in the declarative configuration -func (b *CronJobApplyConfiguration) GetSpec() (value CronJobSpecApplyConfiguration, ok bool) { - if v := b.fields.Spec; v != nil { - return *v, true - } - return value, false -} - -// SetStatus sets the Status field in the declarative configuration to the given value -func (b *CronJobApplyConfiguration) SetStatus(value CronJobStatusApplyConfiguration) *CronJobApplyConfiguration { - b.fields.Status = &value - return b -} - -// RemoveStatus removes the Status field in the declarative configuration -func (b *CronJobApplyConfiguration) RemoveStatus(value CronJobStatusApplyConfiguration) *CronJobApplyConfiguration { - b.fields.Status = nil - return b -} - -// GetStatus gets the Status field in the declarative configuration -func (b *CronJobApplyConfiguration) GetStatus() (value CronJobStatusApplyConfiguration, ok bool) { - if v := b.fields.Status; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts CronJob to unstructured. -func (b *CronJobApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to CronJobApplyConfiguration, replacing the contents -// of CronJobApplyConfiguration. -func (b *CronJobApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &cronJobFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals CronJobApplyConfiguration to JSON. -func (b *CronJobApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into CronJobApplyConfiguration, replacing the contents of -// CronJobApplyConfiguration. -func (b *CronJobApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *CronJobApplyConfiguration) preMarshal() { -} -func (b *CronJobApplyConfiguration) postUnmarshal() { -} - -// CronJobList represents a listAlias of CronJobApplyConfiguration. -type CronJobList []*CronJobApplyConfiguration - -// CronJobMap represents a map of CronJobApplyConfiguration. -type CronJobMap map[string]CronJobApplyConfiguration - -// CronJobListApplyConfiguration represents a declarative configuration of the CronJobList type for use -// with apply. -type CronJobListApplyConfiguration struct { - metav1.TypeMeta // inlined type - fields cronJobListFields -} - -// cronJobList owns all fields except inlined fields -type cronJobListFields struct { - *metav1.ListMeta `json:"metadata,omitempty"` - Items *[]CronJobApplyConfiguration `json:"items,omitempty"` -} - -// SetItems sets the Items field in the declarative configuration to the given value -func (b *CronJobListApplyConfiguration) SetItems(value []CronJobApplyConfiguration) *CronJobListApplyConfiguration { - b.fields.Items = &value - return b -} - -// RemoveItems removes the Items field in the declarative configuration -func (b *CronJobListApplyConfiguration) RemoveItems(value []CronJobApplyConfiguration) *CronJobListApplyConfiguration { - b.fields.Items = nil - return b -} - -// GetItems gets the Items field in the declarative configuration -func (b *CronJobListApplyConfiguration) GetItems() (value []CronJobApplyConfiguration, ok bool) { - if v := b.fields.Items; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts CronJobList to unstructured. -func (b *CronJobListApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to CronJobListApplyConfiguration, replacing the contents -// of CronJobListApplyConfiguration. -func (b *CronJobListApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &cronJobListFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals CronJobListApplyConfiguration to JSON. -func (b *CronJobListApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into CronJobListApplyConfiguration, replacing the contents of -// CronJobListApplyConfiguration. -func (b *CronJobListApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *CronJobListApplyConfiguration) preMarshal() { -} -func (b *CronJobListApplyConfiguration) postUnmarshal() { -} - -// CronJobListList represents a listAlias of CronJobListApplyConfiguration. -type CronJobListList []*CronJobListApplyConfiguration - -// CronJobListMap represents a map of CronJobListApplyConfiguration. -type CronJobListMap map[string]CronJobListApplyConfiguration - -// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use -// with apply. -type CronJobSpecApplyConfiguration struct { - fields cronJobSpecFields -} - -// cronJobSpec owns all fields except inlined fields -type cronJobSpecFields struct { - Schedule *string `json:"schedule,omitempty"` - StartingDeadlineSeconds **int64 `json:"startingDeadlineSeconds,omitempty"` - ConcurrencyPolicy *ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` - Suspend **bool `json:"suspend,omitempty"` - NoReallySuspend **TotallyABool `json:"noReallySuspend,omitempty"` - BinaryName *[]byte `json:"binaryName,omitempty"` - CanBeNull *string `json:"canBeNull,omitempty"` - JobTemplate *v1beta1.JobTemplateSpec `json:"jobTemplate,omitempty"` - SuccessfulJobsHistoryLimit **int32 `json:"successfulJobsHistoryLimit,omitempty"` - FailedJobsHistoryLimit **int32 `json:"failedJobsHistoryLimit,omitempty"` - ByteSliceData *map[string][]byte `json:"byteSliceData,omitempty"` - StringSliceData *map[string][]string `json:"stringSliceData,omitempty"` - PtrData *map[string]*string `json:"ptrData,omitempty"` - TwoOfAKindPart0 *string `json:"twoOfAKindPart0,omitempty"` - TwoOfAKindPart1 *LongerString `json:"twoOfAKindPart1,omitempty"` - DefaultedString *string `json:"defaultedString,omitempty"` - DefaultedSlice *[]string `json:"defaultedSlice,omitempty"` - DefaultedObject *[]RootObjectApplyConfiguration `json:"defaultedObject,omitempty"` - PatternObject *string `json:"patternObject,omitempty"` - EmbeddedResource *runtime.RawExtension `json:"embeddedResource,omitempty"` - UnprunedJSON *NestedObjectApplyConfiguration `json:"unprunedJSON,omitempty"` - UnprunedEmbeddedResource *runtime.RawExtension `json:"unprunedEmbeddedResource,omitempty"` - UnprunedFromType *PreservedApplyConfiguration `json:"unprunedFomType,omitempty"` - AssociativeList *[]AssociativeTypeApplyConfiguration `json:"associativeList,omitempty"` - MapOfInfo *map[string][]byte `json:"mapOfInfo,omitempty"` - StructWithSeveralFields *NestedObjectApplyConfiguration `json:"structWithSeveralFields,omitempty"` - JustNestedObject **JustNestedObjectApplyConfiguration `json:"justNestedObject,omitempty"` - MinMaxProperties *MinMaxObjectApplyConfiguration `json:"minMaxProperties,omitempty"` -} - -// SetSchedule sets the Schedule field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetSchedule(value string) *CronJobSpecApplyConfiguration { - b.fields.Schedule = &value - return b -} - -// RemoveSchedule removes the Schedule field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveSchedule(value string) *CronJobSpecApplyConfiguration { - b.fields.Schedule = nil - return b -} - -// GetSchedule gets the Schedule field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetSchedule() (value string, ok bool) { - if v := b.fields.Schedule; v != nil { - return *v, true - } - return value, false -} - -// SetStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetStartingDeadlineSeconds(value *int64) *CronJobSpecApplyConfiguration { - b.fields.StartingDeadlineSeconds = &value - return b -} - -// RemoveStartingDeadlineSeconds removes the StartingDeadlineSeconds field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveStartingDeadlineSeconds(value *int64) *CronJobSpecApplyConfiguration { - b.fields.StartingDeadlineSeconds = nil - return b -} - -// GetStartingDeadlineSeconds gets the StartingDeadlineSeconds field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetStartingDeadlineSeconds() (value *int64, ok bool) { - if v := b.fields.StartingDeadlineSeconds; v != nil { - return *v, true - } - return value, false -} - -// SetConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetConcurrencyPolicy(value ConcurrencyPolicy) *CronJobSpecApplyConfiguration { - b.fields.ConcurrencyPolicy = &value - return b -} - -// RemoveConcurrencyPolicy removes the ConcurrencyPolicy field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveConcurrencyPolicy(value ConcurrencyPolicy) *CronJobSpecApplyConfiguration { - b.fields.ConcurrencyPolicy = nil - return b -} - -// GetConcurrencyPolicy gets the ConcurrencyPolicy field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetConcurrencyPolicy() (value ConcurrencyPolicy, ok bool) { - if v := b.fields.ConcurrencyPolicy; v != nil { - return *v, true - } - return value, false -} - -// SetSuspend sets the Suspend field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetSuspend(value *bool) *CronJobSpecApplyConfiguration { - b.fields.Suspend = &value - return b -} - -// RemoveSuspend removes the Suspend field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveSuspend(value *bool) *CronJobSpecApplyConfiguration { - b.fields.Suspend = nil - return b -} - -// GetSuspend gets the Suspend field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetSuspend() (value *bool, ok bool) { - if v := b.fields.Suspend; v != nil { - return *v, true - } - return value, false -} - -// SetInternalData sets the InternalData field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetInternalData(value string) *CronJobSpecApplyConfiguration { - return b -} - -// RemoveInternalData removes the InternalData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveInternalData(value string) *CronJobSpecApplyConfiguration { - b.fields.InternalData = nil - return b -} - -// GetInternalData gets the InternalData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetInternalData() (value string, ok bool) { -} - -// SetNoReallySuspend sets the NoReallySuspend field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetNoReallySuspend(value *TotallyABool) *CronJobSpecApplyConfiguration { - b.fields.NoReallySuspend = &value - return b -} - -// RemoveNoReallySuspend removes the NoReallySuspend field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveNoReallySuspend(value *TotallyABool) *CronJobSpecApplyConfiguration { - b.fields.NoReallySuspend = nil - return b -} - -// GetNoReallySuspend gets the NoReallySuspend field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetNoReallySuspend() (value *TotallyABool, ok bool) { - if v := b.fields.NoReallySuspend; v != nil { - return *v, true - } - return value, false -} - -// SetBinaryName sets the BinaryName field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetBinaryName(value []byte) *CronJobSpecApplyConfiguration { - b.fields.BinaryName = &value - return b -} - -// RemoveBinaryName removes the BinaryName field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveBinaryName(value []byte) *CronJobSpecApplyConfiguration { - b.fields.BinaryName = nil - return b -} - -// GetBinaryName gets the BinaryName field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetBinaryName() (value []byte, ok bool) { - if v := b.fields.BinaryName; v != nil { - return *v, true - } - return value, false -} - -// SetCanBeNull sets the CanBeNull field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetCanBeNull(value string) *CronJobSpecApplyConfiguration { - b.fields.CanBeNull = &value - return b -} - -// RemoveCanBeNull removes the CanBeNull field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveCanBeNull(value string) *CronJobSpecApplyConfiguration { - b.fields.CanBeNull = nil - return b -} - -// GetCanBeNull gets the CanBeNull field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetCanBeNull() (value string, ok bool) { - if v := b.fields.CanBeNull; v != nil { - return *v, true - } - return value, false -} - -// SetJobTemplate sets the JobTemplate field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetJobTemplate(value v1beta1.JobTemplateSpec) *CronJobSpecApplyConfiguration { - b.fields.JobTemplate = &value - return b -} - -// RemoveJobTemplate removes the JobTemplate field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveJobTemplate(value v1beta1.JobTemplateSpec) *CronJobSpecApplyConfiguration { - b.fields.JobTemplate = nil - return b -} - -// GetJobTemplate gets the JobTemplate field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetJobTemplate() (value v1beta1.JobTemplateSpec, ok bool) { - if v := b.fields.JobTemplate; v != nil { - return *v, true - } - return value, false -} - -// SetSuccessfulJobsHistoryLimit sets the SuccessfulJobsHistoryLimit field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetSuccessfulJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.fields.SuccessfulJobsHistoryLimit = &value - return b -} - -// RemoveSuccessfulJobsHistoryLimit removes the SuccessfulJobsHistoryLimit field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveSuccessfulJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.fields.SuccessfulJobsHistoryLimit = nil - return b -} - -// GetSuccessfulJobsHistoryLimit gets the SuccessfulJobsHistoryLimit field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetSuccessfulJobsHistoryLimit() (value *int32, ok bool) { - if v := b.fields.SuccessfulJobsHistoryLimit; v != nil { - return *v, true - } - return value, false -} - -// SetFailedJobsHistoryLimit sets the FailedJobsHistoryLimit field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetFailedJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.fields.FailedJobsHistoryLimit = &value - return b -} - -// RemoveFailedJobsHistoryLimit removes the FailedJobsHistoryLimit field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveFailedJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.fields.FailedJobsHistoryLimit = nil - return b -} - -// GetFailedJobsHistoryLimit gets the FailedJobsHistoryLimit field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetFailedJobsHistoryLimit() (value *int32, ok bool) { - if v := b.fields.FailedJobsHistoryLimit; v != nil { - return *v, true - } - return value, false -} - -// SetByteSliceData sets the ByteSliceData field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetByteSliceData(value map[string][]byte) *CronJobSpecApplyConfiguration { - b.fields.ByteSliceData = &value - return b -} - -// RemoveByteSliceData removes the ByteSliceData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveByteSliceData(value map[string][]byte) *CronJobSpecApplyConfiguration { - b.fields.ByteSliceData = nil - return b -} - -// GetByteSliceData gets the ByteSliceData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetByteSliceData() (value map[string][]byte, ok bool) { - if v := b.fields.ByteSliceData; v != nil { - return *v, true - } - return value, false -} - -// SetStringSliceData sets the StringSliceData field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetStringSliceData(value map[string][]string) *CronJobSpecApplyConfiguration { - b.fields.StringSliceData = &value - return b -} - -// RemoveStringSliceData removes the StringSliceData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveStringSliceData(value map[string][]string) *CronJobSpecApplyConfiguration { - b.fields.StringSliceData = nil - return b -} - -// GetStringSliceData gets the StringSliceData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetStringSliceData() (value map[string][]string, ok bool) { - if v := b.fields.StringSliceData; v != nil { - return *v, true - } - return value, false -} - -// SetPtrData sets the PtrData field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetPtrData(value map[string]*string) *CronJobSpecApplyConfiguration { - b.fields.PtrData = &value - return b -} - -// RemovePtrData removes the PtrData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemovePtrData(value map[string]*string) *CronJobSpecApplyConfiguration { - b.fields.PtrData = nil - return b -} - -// GetPtrData gets the PtrData field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetPtrData() (value map[string]*string, ok bool) { - if v := b.fields.PtrData; v != nil { - return *v, true - } - return value, false -} - -// SetTwoOfAKindPart0 sets the TwoOfAKindPart0 field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetTwoOfAKindPart0(value string) *CronJobSpecApplyConfiguration { - b.fields.TwoOfAKindPart0 = &value - return b -} - -// RemoveTwoOfAKindPart0 removes the TwoOfAKindPart0 field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveTwoOfAKindPart0(value string) *CronJobSpecApplyConfiguration { - b.fields.TwoOfAKindPart0 = nil - return b -} - -// GetTwoOfAKindPart0 gets the TwoOfAKindPart0 field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetTwoOfAKindPart0() (value string, ok bool) { - if v := b.fields.TwoOfAKindPart0; v != nil { - return *v, true - } - return value, false -} - -// SetTwoOfAKindPart1 sets the TwoOfAKindPart1 field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetTwoOfAKindPart1(value LongerString) *CronJobSpecApplyConfiguration { - b.fields.TwoOfAKindPart1 = &value - return b -} - -// RemoveTwoOfAKindPart1 removes the TwoOfAKindPart1 field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveTwoOfAKindPart1(value LongerString) *CronJobSpecApplyConfiguration { - b.fields.TwoOfAKindPart1 = nil - return b -} - -// GetTwoOfAKindPart1 gets the TwoOfAKindPart1 field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetTwoOfAKindPart1() (value LongerString, ok bool) { - if v := b.fields.TwoOfAKindPart1; v != nil { - return *v, true - } - return value, false -} - -// SetDefaultedString sets the DefaultedString field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetDefaultedString(value string) *CronJobSpecApplyConfiguration { - b.fields.DefaultedString = &value - return b -} - -// RemoveDefaultedString removes the DefaultedString field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveDefaultedString(value string) *CronJobSpecApplyConfiguration { - b.fields.DefaultedString = nil - return b -} - -// GetDefaultedString gets the DefaultedString field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetDefaultedString() (value string, ok bool) { - if v := b.fields.DefaultedString; v != nil { - return *v, true - } - return value, false -} - -// SetDefaultedSlice sets the DefaultedSlice field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetDefaultedSlice(value []string) *CronJobSpecApplyConfiguration { - b.fields.DefaultedSlice = &value - return b -} - -// RemoveDefaultedSlice removes the DefaultedSlice field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveDefaultedSlice(value []string) *CronJobSpecApplyConfiguration { - b.fields.DefaultedSlice = nil - return b -} - -// GetDefaultedSlice gets the DefaultedSlice field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetDefaultedSlice() (value []string, ok bool) { - if v := b.fields.DefaultedSlice; v != nil { - return *v, true - } - return value, false -} - -// SetDefaultedObject sets the DefaultedObject field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetDefaultedObject(value []RootObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.DefaultedObject = &value - return b -} - -// RemoveDefaultedObject removes the DefaultedObject field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveDefaultedObject(value []RootObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.DefaultedObject = nil - return b -} - -// GetDefaultedObject gets the DefaultedObject field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetDefaultedObject() (value []RootObjectApplyConfiguration, ok bool) { - if v := b.fields.DefaultedObject; v != nil { - return *v, true - } - return value, false -} - -// SetPatternObject sets the PatternObject field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetPatternObject(value string) *CronJobSpecApplyConfiguration { - b.fields.PatternObject = &value - return b -} - -// RemovePatternObject removes the PatternObject field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemovePatternObject(value string) *CronJobSpecApplyConfiguration { - b.fields.PatternObject = nil - return b -} - -// GetPatternObject gets the PatternObject field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetPatternObject() (value string, ok bool) { - if v := b.fields.PatternObject; v != nil { - return *v, true - } - return value, false -} - -// SetEmbeddedResource sets the EmbeddedResource field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetEmbeddedResource(value runtime.RawExtension) *CronJobSpecApplyConfiguration { - b.fields.EmbeddedResource = &value - return b -} - -// RemoveEmbeddedResource removes the EmbeddedResource field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveEmbeddedResource(value runtime.RawExtension) *CronJobSpecApplyConfiguration { - b.fields.EmbeddedResource = nil - return b -} - -// GetEmbeddedResource gets the EmbeddedResource field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetEmbeddedResource() (value runtime.RawExtension, ok bool) { - if v := b.fields.EmbeddedResource; v != nil { - return *v, true - } - return value, false -} - -// SetUnprunedJSON sets the UnprunedJSON field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetUnprunedJSON(value NestedObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.UnprunedJSON = &value - return b -} - -// RemoveUnprunedJSON removes the UnprunedJSON field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveUnprunedJSON(value NestedObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.UnprunedJSON = nil - return b -} - -// GetUnprunedJSON gets the UnprunedJSON field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetUnprunedJSON() (value NestedObjectApplyConfiguration, ok bool) { - if v := b.fields.UnprunedJSON; v != nil { - return *v, true - } - return value, false -} - -// SetUnprunedEmbeddedResource sets the UnprunedEmbeddedResource field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetUnprunedEmbeddedResource(value runtime.RawExtension) *CronJobSpecApplyConfiguration { - b.fields.UnprunedEmbeddedResource = &value - return b -} - -// RemoveUnprunedEmbeddedResource removes the UnprunedEmbeddedResource field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveUnprunedEmbeddedResource(value runtime.RawExtension) *CronJobSpecApplyConfiguration { - b.fields.UnprunedEmbeddedResource = nil - return b -} - -// GetUnprunedEmbeddedResource gets the UnprunedEmbeddedResource field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetUnprunedEmbeddedResource() (value runtime.RawExtension, ok bool) { - if v := b.fields.UnprunedEmbeddedResource; v != nil { - return *v, true - } - return value, false -} - -// SetUnprunedFromType sets the UnprunedFromType field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetUnprunedFromType(value PreservedApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.UnprunedFromType = &value - return b -} - -// RemoveUnprunedFromType removes the UnprunedFromType field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveUnprunedFromType(value PreservedApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.UnprunedFromType = nil - return b -} - -// GetUnprunedFromType gets the UnprunedFromType field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetUnprunedFromType() (value PreservedApplyConfiguration, ok bool) { - if v := b.fields.UnprunedFromType; v != nil { - return *v, true - } - return value, false -} - -// SetAssociativeList sets the AssociativeList field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetAssociativeList(value []AssociativeTypeApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.AssociativeList = &value - return b -} - -// RemoveAssociativeList removes the AssociativeList field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveAssociativeList(value []AssociativeTypeApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.AssociativeList = nil - return b -} - -// GetAssociativeList gets the AssociativeList field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetAssociativeList() (value []AssociativeTypeApplyConfiguration, ok bool) { - if v := b.fields.AssociativeList; v != nil { - return *v, true - } - return value, false -} - -// SetMapOfInfo sets the MapOfInfo field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetMapOfInfo(value map[string][]byte) *CronJobSpecApplyConfiguration { - b.fields.MapOfInfo = &value - return b -} - -// RemoveMapOfInfo removes the MapOfInfo field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveMapOfInfo(value map[string][]byte) *CronJobSpecApplyConfiguration { - b.fields.MapOfInfo = nil - return b -} - -// GetMapOfInfo gets the MapOfInfo field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetMapOfInfo() (value map[string][]byte, ok bool) { - if v := b.fields.MapOfInfo; v != nil { - return *v, true - } - return value, false -} - -// SetStructWithSeveralFields sets the StructWithSeveralFields field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetStructWithSeveralFields(value NestedObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.StructWithSeveralFields = &value - return b -} - -// RemoveStructWithSeveralFields removes the StructWithSeveralFields field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveStructWithSeveralFields(value NestedObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.StructWithSeveralFields = nil - return b -} - -// GetStructWithSeveralFields gets the StructWithSeveralFields field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetStructWithSeveralFields() (value NestedObjectApplyConfiguration, ok bool) { - if v := b.fields.StructWithSeveralFields; v != nil { - return *v, true - } - return value, false -} - -// SetJustNestedObject sets the JustNestedObject field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetJustNestedObject(value *JustNestedObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.JustNestedObject = &value - return b -} - -// RemoveJustNestedObject removes the JustNestedObject field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveJustNestedObject(value *JustNestedObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.JustNestedObject = nil - return b -} - -// GetJustNestedObject gets the JustNestedObject field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetJustNestedObject() (value *JustNestedObjectApplyConfiguration, ok bool) { - if v := b.fields.JustNestedObject; v != nil { - return *v, true - } - return value, false -} - -// SetMinMaxProperties sets the MinMaxProperties field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) SetMinMaxProperties(value MinMaxObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.MinMaxProperties = &value - return b -} - -// RemoveMinMaxProperties removes the MinMaxProperties field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) RemoveMinMaxProperties(value MinMaxObjectApplyConfiguration) *CronJobSpecApplyConfiguration { - b.fields.MinMaxProperties = nil - return b -} - -// GetMinMaxProperties gets the MinMaxProperties field in the declarative configuration -func (b *CronJobSpecApplyConfiguration) GetMinMaxProperties() (value MinMaxObjectApplyConfiguration, ok bool) { - if v := b.fields.MinMaxProperties; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts CronJobSpec to unstructured. -func (b *CronJobSpecApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to CronJobSpecApplyConfiguration, replacing the contents -// of CronJobSpecApplyConfiguration. -func (b *CronJobSpecApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &cronJobSpecFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals CronJobSpecApplyConfiguration to JSON. -func (b *CronJobSpecApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into CronJobSpecApplyConfiguration, replacing the contents of -// CronJobSpecApplyConfiguration. -func (b *CronJobSpecApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *CronJobSpecApplyConfiguration) preMarshal() { -} -func (b *CronJobSpecApplyConfiguration) postUnmarshal() { -} - -// CronJobSpecList represents a listAlias of CronJobSpecApplyConfiguration. -type CronJobSpecList []*CronJobSpecApplyConfiguration - -// CronJobSpecMap represents a map of CronJobSpecApplyConfiguration. -type CronJobSpecMap map[string]CronJobSpecApplyConfiguration - -// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use -// with apply. -type CronJobStatusApplyConfiguration struct { - fields cronJobStatusFields -} - -// cronJobStatus owns all fields except inlined fields -type cronJobStatusFields struct { - Active *[]v1.ObjectReference `json:"active,omitempty"` - LastScheduleTime **metav1.Time `json:"lastScheduleTime,omitempty"` - LastScheduleMicroTime **metav1.MicroTime `json:"lastScheduleMicroTime,omitempty"` -} - -// SetActive sets the Active field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) SetActive(value []v1.ObjectReference) *CronJobStatusApplyConfiguration { - b.fields.Active = &value - return b -} - -// RemoveActive removes the Active field in the declarative configuration -func (b *CronJobStatusApplyConfiguration) RemoveActive(value []v1.ObjectReference) *CronJobStatusApplyConfiguration { - b.fields.Active = nil - return b -} - -// GetActive gets the Active field in the declarative configuration -func (b *CronJobStatusApplyConfiguration) GetActive() (value []v1.ObjectReference, ok bool) { - if v := b.fields.Active; v != nil { - return *v, true - } - return value, false -} - -// SetLastScheduleTime sets the LastScheduleTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) SetLastScheduleTime(value *metav1.Time) *CronJobStatusApplyConfiguration { - b.fields.LastScheduleTime = &value - return b -} - -// RemoveLastScheduleTime removes the LastScheduleTime field in the declarative configuration -func (b *CronJobStatusApplyConfiguration) RemoveLastScheduleTime(value *metav1.Time) *CronJobStatusApplyConfiguration { - b.fields.LastScheduleTime = nil - return b -} - -// GetLastScheduleTime gets the LastScheduleTime field in the declarative configuration -func (b *CronJobStatusApplyConfiguration) GetLastScheduleTime() (value *metav1.Time, ok bool) { - if v := b.fields.LastScheduleTime; v != nil { - return *v, true - } - return value, false -} - -// SetLastScheduleMicroTime sets the LastScheduleMicroTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) SetLastScheduleMicroTime(value *metav1.MicroTime) *CronJobStatusApplyConfiguration { - b.fields.LastScheduleMicroTime = &value - return b -} - -// RemoveLastScheduleMicroTime removes the LastScheduleMicroTime field in the declarative configuration -func (b *CronJobStatusApplyConfiguration) RemoveLastScheduleMicroTime(value *metav1.MicroTime) *CronJobStatusApplyConfiguration { - b.fields.LastScheduleMicroTime = nil - return b -} - -// GetLastScheduleMicroTime gets the LastScheduleMicroTime field in the declarative configuration -func (b *CronJobStatusApplyConfiguration) GetLastScheduleMicroTime() (value *metav1.MicroTime, ok bool) { - if v := b.fields.LastScheduleMicroTime; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts CronJobStatus to unstructured. -func (b *CronJobStatusApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to CronJobStatusApplyConfiguration, replacing the contents -// of CronJobStatusApplyConfiguration. -func (b *CronJobStatusApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &cronJobStatusFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals CronJobStatusApplyConfiguration to JSON. -func (b *CronJobStatusApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into CronJobStatusApplyConfiguration, replacing the contents of -// CronJobStatusApplyConfiguration. -func (b *CronJobStatusApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *CronJobStatusApplyConfiguration) preMarshal() { -} -func (b *CronJobStatusApplyConfiguration) postUnmarshal() { -} - -// CronJobStatusList represents a listAlias of CronJobStatusApplyConfiguration. -type CronJobStatusList []*CronJobStatusApplyConfiguration - -// CronJobStatusMap represents a map of CronJobStatusApplyConfiguration. -type CronJobStatusMap map[string]CronJobStatusApplyConfiguration - -// JustNestedObjectApplyConfiguration represents a declarative configuration of the JustNestedObject type for use -// with apply. -type JustNestedObjectApplyConfiguration struct { - fields justNestedObjectFields -} - -// justNestedObject owns all fields except inlined fields -type justNestedObjectFields struct { -} - -// ToUnstructured converts JustNestedObject to unstructured. -func (b *JustNestedObjectApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to JustNestedObjectApplyConfiguration, replacing the contents -// of JustNestedObjectApplyConfiguration. -func (b *JustNestedObjectApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &justNestedObjectFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals JustNestedObjectApplyConfiguration to JSON. -func (b *JustNestedObjectApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into JustNestedObjectApplyConfiguration, replacing the contents of -// JustNestedObjectApplyConfiguration. -func (b *JustNestedObjectApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *JustNestedObjectApplyConfiguration) preMarshal() { -} -func (b *JustNestedObjectApplyConfiguration) postUnmarshal() { -} - -// JustNestedObjectList represents a listAlias of JustNestedObjectApplyConfiguration. -type JustNestedObjectList []*JustNestedObjectApplyConfiguration - -// JustNestedObjectMap represents a map of JustNestedObjectApplyConfiguration. -type JustNestedObjectMap map[string]JustNestedObjectApplyConfiguration - -// MinMaxObjectApplyConfiguration represents a declarative configuration of the MinMaxObject type for use -// with apply. -type MinMaxObjectApplyConfiguration struct { - fields minMaxObjectFields -} - -// minMaxObject owns all fields except inlined fields -type minMaxObjectFields struct { - Foo *string `json:"foo,omitempty"` - Bar *string `json:"bar,omitempty"` - Baz *string `json:"baz,omitempty"` -} - -// SetFoo sets the Foo field in the declarative configuration to the given value -func (b *MinMaxObjectApplyConfiguration) SetFoo(value string) *MinMaxObjectApplyConfiguration { - b.fields.Foo = &value - return b -} - -// RemoveFoo removes the Foo field in the declarative configuration -func (b *MinMaxObjectApplyConfiguration) RemoveFoo(value string) *MinMaxObjectApplyConfiguration { - b.fields.Foo = nil - return b -} - -// GetFoo gets the Foo field in the declarative configuration -func (b *MinMaxObjectApplyConfiguration) GetFoo() (value string, ok bool) { - if v := b.fields.Foo; v != nil { - return *v, true - } - return value, false -} - -// SetBar sets the Bar field in the declarative configuration to the given value -func (b *MinMaxObjectApplyConfiguration) SetBar(value string) *MinMaxObjectApplyConfiguration { - b.fields.Bar = &value - return b -} - -// RemoveBar removes the Bar field in the declarative configuration -func (b *MinMaxObjectApplyConfiguration) RemoveBar(value string) *MinMaxObjectApplyConfiguration { - b.fields.Bar = nil - return b -} - -// GetBar gets the Bar field in the declarative configuration -func (b *MinMaxObjectApplyConfiguration) GetBar() (value string, ok bool) { - if v := b.fields.Bar; v != nil { - return *v, true - } - return value, false -} - -// SetBaz sets the Baz field in the declarative configuration to the given value -func (b *MinMaxObjectApplyConfiguration) SetBaz(value string) *MinMaxObjectApplyConfiguration { - b.fields.Baz = &value - return b -} - -// RemoveBaz removes the Baz field in the declarative configuration -func (b *MinMaxObjectApplyConfiguration) RemoveBaz(value string) *MinMaxObjectApplyConfiguration { - b.fields.Baz = nil - return b -} - -// GetBaz gets the Baz field in the declarative configuration -func (b *MinMaxObjectApplyConfiguration) GetBaz() (value string, ok bool) { - if v := b.fields.Baz; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts MinMaxObject to unstructured. -func (b *MinMaxObjectApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to MinMaxObjectApplyConfiguration, replacing the contents -// of MinMaxObjectApplyConfiguration. -func (b *MinMaxObjectApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &minMaxObjectFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals MinMaxObjectApplyConfiguration to JSON. -func (b *MinMaxObjectApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into MinMaxObjectApplyConfiguration, replacing the contents of -// MinMaxObjectApplyConfiguration. -func (b *MinMaxObjectApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *MinMaxObjectApplyConfiguration) preMarshal() { -} -func (b *MinMaxObjectApplyConfiguration) postUnmarshal() { -} - -// MinMaxObjectList represents a listAlias of MinMaxObjectApplyConfiguration. -type MinMaxObjectList []*MinMaxObjectApplyConfiguration - -// MinMaxObjectMap represents a map of MinMaxObjectApplyConfiguration. -type MinMaxObjectMap map[string]MinMaxObjectApplyConfiguration - -// NestedObjectApplyConfiguration represents a declarative configuration of the NestedObject type for use -// with apply. -type NestedObjectApplyConfiguration struct { - fields nestedObjectFields -} - -// nestedObject owns all fields except inlined fields -type nestedObjectFields struct { - Foo *string `json:"foo,omitempty"` - Bar *bool `json:"bar,omitempty"` -} - -// SetFoo sets the Foo field in the declarative configuration to the given value -func (b *NestedObjectApplyConfiguration) SetFoo(value string) *NestedObjectApplyConfiguration { - b.fields.Foo = &value - return b -} - -// RemoveFoo removes the Foo field in the declarative configuration -func (b *NestedObjectApplyConfiguration) RemoveFoo(value string) *NestedObjectApplyConfiguration { - b.fields.Foo = nil - return b -} - -// GetFoo gets the Foo field in the declarative configuration -func (b *NestedObjectApplyConfiguration) GetFoo() (value string, ok bool) { - if v := b.fields.Foo; v != nil { - return *v, true - } - return value, false -} - -// SetBar sets the Bar field in the declarative configuration to the given value -func (b *NestedObjectApplyConfiguration) SetBar(value bool) *NestedObjectApplyConfiguration { - b.fields.Bar = &value - return b -} - -// RemoveBar removes the Bar field in the declarative configuration -func (b *NestedObjectApplyConfiguration) RemoveBar(value bool) *NestedObjectApplyConfiguration { - b.fields.Bar = nil - return b -} - -// GetBar gets the Bar field in the declarative configuration -func (b *NestedObjectApplyConfiguration) GetBar() (value bool, ok bool) { - if v := b.fields.Bar; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts NestedObject to unstructured. -func (b *NestedObjectApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to NestedObjectApplyConfiguration, replacing the contents -// of NestedObjectApplyConfiguration. -func (b *NestedObjectApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &nestedObjectFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals NestedObjectApplyConfiguration to JSON. -func (b *NestedObjectApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into NestedObjectApplyConfiguration, replacing the contents of -// NestedObjectApplyConfiguration. -func (b *NestedObjectApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *NestedObjectApplyConfiguration) preMarshal() { -} -func (b *NestedObjectApplyConfiguration) postUnmarshal() { -} - -// NestedObjectList represents a listAlias of NestedObjectApplyConfiguration. -type NestedObjectList []*NestedObjectApplyConfiguration - -// NestedObjectMap represents a map of NestedObjectApplyConfiguration. -type NestedObjectMap map[string]NestedObjectApplyConfiguration - -// PreservedApplyConfiguration represents a declarative configuration of the Preserved type for use -// with apply. -type PreservedApplyConfiguration struct { - fields preservedFields -} - -// preserved owns all fields except inlined fields -type preservedFields struct { - ConcreteField *string `json:"concreteField,omitempty"` -} - -// SetConcreteField sets the ConcreteField field in the declarative configuration to the given value -func (b *PreservedApplyConfiguration) SetConcreteField(value string) *PreservedApplyConfiguration { - b.fields.ConcreteField = &value - return b -} - -// RemoveConcreteField removes the ConcreteField field in the declarative configuration -func (b *PreservedApplyConfiguration) RemoveConcreteField(value string) *PreservedApplyConfiguration { - b.fields.ConcreteField = nil - return b -} - -// GetConcreteField gets the ConcreteField field in the declarative configuration -func (b *PreservedApplyConfiguration) GetConcreteField() (value string, ok bool) { - if v := b.fields.ConcreteField; v != nil { - return *v, true - } - return value, false -} - -// SetRest sets the Rest field in the declarative configuration to the given value -func (b *PreservedApplyConfiguration) SetRest(value map[string]interface{}) *PreservedApplyConfiguration { - return b -} - -// RemoveRest removes the Rest field in the declarative configuration -func (b *PreservedApplyConfiguration) RemoveRest(value map[string]interface{}) *PreservedApplyConfiguration { - b.fields.Rest = nil - return b -} - -// GetRest gets the Rest field in the declarative configuration -func (b *PreservedApplyConfiguration) GetRest() (value map[string]interface{}, ok bool) { -} - -// ToUnstructured converts Preserved to unstructured. -func (b *PreservedApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to PreservedApplyConfiguration, replacing the contents -// of PreservedApplyConfiguration. -func (b *PreservedApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &preservedFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals PreservedApplyConfiguration to JSON. -func (b *PreservedApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into PreservedApplyConfiguration, replacing the contents of -// PreservedApplyConfiguration. -func (b *PreservedApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *PreservedApplyConfiguration) preMarshal() { -} -func (b *PreservedApplyConfiguration) postUnmarshal() { -} - -// PreservedList represents a listAlias of PreservedApplyConfiguration. -type PreservedList []*PreservedApplyConfiguration - -// PreservedMap represents a map of PreservedApplyConfiguration. -type PreservedMap map[string]PreservedApplyConfiguration - -// RootObjectApplyConfiguration represents a declarative configuration of the RootObject type for use -// with apply. -type RootObjectApplyConfiguration struct { - fields rootObjectFields -} - -// rootObject owns all fields except inlined fields -type rootObjectFields struct { - Nested *NestedObjectApplyConfiguration `json:"nested,omitempty"` -} - -// SetNested sets the Nested field in the declarative configuration to the given value -func (b *RootObjectApplyConfiguration) SetNested(value NestedObjectApplyConfiguration) *RootObjectApplyConfiguration { - b.fields.Nested = &value - return b -} - -// RemoveNested removes the Nested field in the declarative configuration -func (b *RootObjectApplyConfiguration) RemoveNested(value NestedObjectApplyConfiguration) *RootObjectApplyConfiguration { - b.fields.Nested = nil - return b -} - -// GetNested gets the Nested field in the declarative configuration -func (b *RootObjectApplyConfiguration) GetNested() (value NestedObjectApplyConfiguration, ok bool) { - if v := b.fields.Nested; v != nil { - return *v, true - } - return value, false -} - -// ToUnstructured converts RootObject to unstructured. -func (b *RootObjectApplyConfiguration) ToUnstructured() interface{} { - if b == nil { - return nil - } - b.preMarshal() - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&b.fields) - if err != nil { - panic(err) - } - return u -} - -// FromUnstructured converts unstructured to RootObjectApplyConfiguration, replacing the contents -// of RootObjectApplyConfiguration. -func (b *RootObjectApplyConfiguration) FromUnstructured(u map[string]interface{}) error { - m := &rootObjectFields{} - err := runtime.DefaultUnstructuredConverter.FromUnstructured(u, m) - if err != nil { - return err - } - b.fields = *m - b.postUnmarshal() - return nil -} - -// MarshalJSON marshals RootObjectApplyConfiguration to JSON. -func (b *RootObjectApplyConfiguration) MarshalJSON() ([]byte, error) { - b.preMarshal() - return json.Marshal(b.fields) -} - -// UnmarshalJSON unmarshals JSON into RootObjectApplyConfiguration, replacing the contents of -// RootObjectApplyConfiguration. -func (b *RootObjectApplyConfiguration) UnmarshalJSON(data []byte) error { - if err := json.Unmarshal(data, &b.fields); err != nil { - return err - } - b.postUnmarshal() - return nil -} - -func (b *RootObjectApplyConfiguration) preMarshal() { -} -func (b *RootObjectApplyConfiguration) postUnmarshal() { -} - -// RootObjectList represents a listAlias of RootObjectApplyConfiguration. -type RootObjectList []*RootObjectApplyConfiguration - -// RootObjectMap represents a map of RootObjectApplyConfiguration. -type RootObjectMap map[string]RootObjectApplyConfiguration diff --git a/pkg/applyconfigurations/traverse.go b/pkg/applyconfigurations/traverse.go index f5b60a25f..abe35cc3c 100644 --- a/pkg/applyconfigurations/traverse.go +++ b/pkg/applyconfigurations/traverse.go @@ -136,15 +136,14 @@ type namingInfo struct { nameOverride string } +// func ChangeImport() // Syntax calculates the code representation of the given type or name, // and returns the apply representation -func (n *namingInfo) Syntax(basePkg *loader.Package, imports *importsList) string { +func (n *namingInfo) Syntax(universe *Universe, basePkg *loader.Package, imports *importsList) string { if n.nameOverride != "" { return n.nameOverride } - // NB(directxman12): typeInfo.String gets us most of the way there, - // but fails (for us) on named imports, since it uses the full package path. switch typeInfo := n.typeInfo.(type) { case *types.Named: // register that we need an import for this type, @@ -152,35 +151,61 @@ func (n *namingInfo) Syntax(basePkg *loader.Package, imports *importsList) strin var lastType types.Type appendString := "ApplyConfiguration" + // var isBasic, isStruct bool for underlyingType := typeInfo.Underlying(); underlyingType != lastType; lastType, underlyingType = underlyingType, underlyingType.Underlying() { - if _, isBasic := underlyingType.(*types.Basic); isBasic { + if _, ok := underlyingType.(*types.Basic); ok { + // isBasic = true appendString = "" } } typeName := typeInfo.Obj() otherPkg := typeName.Pkg() - if otherPkg == basePkg.Types { - // local import - return typeName.Name() + appendString + + var exists bool + for _, b := range universe.eligibleTypes { + if b == typeInfo { + exists = true + break + } + } + if !exists { + //TODO|jefftree: This is a hack, we need some way of specifying the import path for the root package + if otherPkg.Path() == "command-line-arguments" { + path := "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata" + alias := imports.NeedImport(path) + return alias + "." + typeName.Name() + appendString + } + alias := imports.NeedImport(loader.NonVendorPath(otherPkg.Path())) + return alias + "." + typeName.Name() + } else { + if otherPkg == basePkg.Types { + return typeName.Name() + appendString + } + path := loader.NonVendorPath(otherPkg.Path()) + path = groupAndPackageVersion(path) + //TODO|jefftree: Remove hardcode + path = "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/" + path + alias := imports.NeedImport(path) + return alias + "." + typeName.Name() + appendString } - alias := imports.NeedImport(loader.NonVendorPath(otherPkg.Path())) - return alias + "." + typeName.Name() case *types.Basic: return typeInfo.String() case *types.Pointer: - return "*" + (&namingInfo{typeInfo: typeInfo.Elem()}).Syntax(basePkg, imports) + return "*" + (&namingInfo{typeInfo: typeInfo.Elem()}).Syntax(universe, basePkg, imports) case *types.Slice: - return "[]" + (&namingInfo{typeInfo: typeInfo.Elem()}).Syntax(basePkg, imports) + return "[]" + (&namingInfo{typeInfo: typeInfo.Elem()}).Syntax(universe, basePkg, imports) case *types.Map: return fmt.Sprintf( "map[%s]%s", - (&namingInfo{typeInfo: typeInfo.Key()}).Syntax(basePkg, imports), - (&namingInfo{typeInfo: typeInfo.Elem()}).Syntax(basePkg, imports)) + (&namingInfo{typeInfo: typeInfo.Key()}).Syntax(universe, basePkg, imports), + (&namingInfo{typeInfo: typeInfo.Elem()}).Syntax(universe, basePkg, imports)) case *types.Interface: return "interface{}" + case *types.Signature: + return typeInfo.String() default: - basePkg.AddError(fmt.Errorf("name requested for invalid type: %s", typeInfo)) + // basePkg.AddError(fmt.Errorf("name requested for invalid type: %s", typeInfo)) return typeInfo.String() } } @@ -188,36 +213,41 @@ func (n *namingInfo) Syntax(basePkg *loader.Package, imports *importsList) strin // copyMethodMakers makes apply configurations for Go types, // writing them to its codeWriter. type applyConfigurationMaker struct { - pkg *loader.Package + applyConfigMap map[string]string + pkg *loader.Package *importsList *codeWriter } // GenerateTypesFor makes makes apply configuration types for the given type, when appropriate -func (c *applyConfigurationMaker) GenerateTypesFor(root *loader.Package, info *markers.TypeInfo) { +func (c *applyConfigurationMaker) GenerateTypesFor(universe *Universe, root *loader.Package, info *markers.TypeInfo) { typeInfo := root.TypesInfo.TypeOf(info.RawSpec.Name) if typeInfo == types.Typ[types.Invalid] { root.AddError(loader.ErrFromNode(fmt.Errorf("unknown type: %s", info.Name), info.RawSpec)) } + if len(info.Fields) == 0 { + return + } // TODO(jpbetz): Generate output here c.Linef("// %sApplyConfiguration represents a declarative configuration of the %s type for use", info.Name, info.Name) c.Linef("// with apply.") c.Linef("type %sApplyConfiguration struct {", info.Name) - if len(info.Fields) > 0 { - for _, field := range info.Fields { - fieldName := field.Name - fieldType := root.TypesInfo.TypeOf(field.RawField.Type) - fieldNamingInfo := namingInfo{typeInfo: fieldType} - fieldTypeString := fieldNamingInfo.Syntax(root, c.importsList) - if tags, ok := lookupJsonTags(field); ok { - if tags.inline { - c.Linef("%s %s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) - } else { - tags.omitempty = true - c.Linef("%s *%s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) - } + for _, field := range info.Fields { + fieldName := field.Name + fieldType := root.TypesInfo.TypeOf(field.RawField.Type) + fieldNamingInfo := namingInfo{typeInfo: fieldType} + fieldTypeString := fieldNamingInfo.Syntax(universe, root, c.importsList) + if tags, ok := lookupJsonTags(field); ok { + if tags.inline { + c.Linef("%s %s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) + } else if isPointer(fieldNamingInfo.typeInfo) { + tags.omitempty = true + c.Linef("%s %s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) + } else { + tags.omitempty = true + c.Linef("%s *%s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) } } } @@ -233,7 +263,7 @@ func generatePrivateName(s string) string { return fmt.Sprintf("%s", s2) } -func (c *applyConfigurationMaker) GenerateStruct(root *loader.Package, info *markers.TypeInfo) { +func (c *applyConfigurationMaker) GenerateStruct(universe *Universe, root *loader.Package, info *markers.TypeInfo) { typeInfo := root.TypesInfo.TypeOf(info.RawSpec.Name) if typeInfo == types.Typ[types.Invalid] { root.AddError(loader.ErrFromNode(fmt.Errorf("unknown type: %s", info.Name), info.RawSpec)) @@ -246,7 +276,7 @@ func (c *applyConfigurationMaker) GenerateStruct(root *loader.Package, info *mar privateFieldName := generatePrivateName(field.Name) fieldType := root.TypesInfo.TypeOf(field.RawField.Type) fieldNamingInfo := namingInfo{typeInfo: fieldType} - fieldTypeString := fieldNamingInfo.Syntax(root, c.importsList) + fieldTypeString := fieldNamingInfo.Syntax(universe, root, c.importsList) if tags, ok := lookupJsonTags(field); ok { if !tags.inline { continue @@ -258,7 +288,7 @@ func (c *applyConfigurationMaker) GenerateStruct(root *loader.Package, info *mar c.Linef("}") } -func (c *applyConfigurationMaker) GenerateFieldsStruct(root *loader.Package, info *markers.TypeInfo) { +func (c *applyConfigurationMaker) GenerateFieldsStruct(universe *Universe, root *loader.Package, info *markers.TypeInfo) { typeInfo := root.TypesInfo.TypeOf(info.RawSpec.Name) if typeInfo == types.Typ[types.Invalid] { root.AddError(loader.ErrFromNode(fmt.Errorf("unknown type: %s", info.Name), info.RawSpec)) @@ -273,7 +303,7 @@ func (c *applyConfigurationMaker) GenerateFieldsStruct(root *loader.Package, inf fieldName := field.Name fieldType := root.TypesInfo.TypeOf(field.RawField.Type) fieldNamingInfo := namingInfo{typeInfo: fieldType} - fieldTypeString := fieldNamingInfo.Syntax(root, c.importsList) + fieldTypeString := fieldNamingInfo.Syntax(universe, root, c.importsList) if tags, ok := lookupJsonTags(field); ok { // TODO:jefftree: Handle inline objects if tags.inline { @@ -295,20 +325,46 @@ func (c *applyConfigurationMaker) GenerateStructConstructor(root *loader.Package c.Linef("}") } -func (c *applyConfigurationMaker) GenerateMemberSet(field markers.FieldInfo, root *loader.Package, info *markers.TypeInfo) { +func isApplyConfig(t types.Type) bool { + switch typeInfo := t.(type) { + case *types.Named: + return isApplyConfig(typeInfo.Underlying()) + case *types.Struct: + return true + case *types.Pointer: + return isApplyConfig(typeInfo.Elem()) + default: + return false + } +} + +func isPointer(t types.Type) bool { + switch t.(type) { + case *types.Pointer: + return true + default: + return false + } +} + +func (c *applyConfigurationMaker) GenerateMemberSet(universe *Universe, field markers.FieldInfo, root *loader.Package, info *markers.TypeInfo) { fieldType := root.TypesInfo.TypeOf(field.RawField.Type) fieldNamingInfo := namingInfo{typeInfo: fieldType} - fieldTypeString := fieldNamingInfo.Syntax(root, c.importsList) + fieldTypeString := fieldNamingInfo.Syntax(universe, root, c.importsList) c.Linef("// Set%s sets the %s field in the declarative configuration to the given value", field.Name, field.Name) + if isApplyConfig(fieldNamingInfo.typeInfo) { + fieldTypeString = "*" + fieldTypeString + } c.Linef("func (b *%sApplyConfiguration) Set%s(value %s) *%sApplyConfiguration {", info.Name, field.Name, fieldTypeString, info.Name) if tags, ok := lookupJsonTags(field); ok { - // TODO|jefftree: Do we support double pointers? if tags.inline { c.Linef("if value != nil {") c.Linef("b.%s = *value", field.Name) c.Linef("}") + } else if isApplyConfig(fieldNamingInfo.typeInfo) { + c.Linef("b.fields.%s = value", field.Name) } else { // TODO|jefftree: Confirm with jpbetz on how to handle fields that are already pointers c.Linef("b.fields.%s = &value", field.Name) @@ -318,10 +374,13 @@ func (c *applyConfigurationMaker) GenerateMemberSet(field markers.FieldInfo, roo c.Linef("}") } -func (c *applyConfigurationMaker) GenerateMemberRemove(field markers.FieldInfo, root *loader.Package, info *markers.TypeInfo) { +func (c *applyConfigurationMaker) GenerateMemberRemove(universe *Universe, field markers.FieldInfo, root *loader.Package, info *markers.TypeInfo) { fieldType := root.TypesInfo.TypeOf(field.RawField.Type) fieldNamingInfo := namingInfo{typeInfo: fieldType} - fieldTypeString := fieldNamingInfo.Syntax(root, c.importsList) + fieldTypeString := fieldNamingInfo.Syntax(universe, root, c.importsList) + if isApplyConfig(fieldNamingInfo.typeInfo) { + fieldTypeString = "*" + fieldTypeString + } if tags, ok := lookupJsonTags(field); ok { if tags.inline { @@ -336,10 +395,13 @@ func (c *applyConfigurationMaker) GenerateMemberRemove(field markers.FieldInfo, c.Linef("}") } -func (c *applyConfigurationMaker) GenerateMemberGet(field markers.FieldInfo, root *loader.Package, info *markers.TypeInfo) { +func (c *applyConfigurationMaker) GenerateMemberGet(universe *Universe, field markers.FieldInfo, root *loader.Package, info *markers.TypeInfo) { fieldType := root.TypesInfo.TypeOf(field.RawField.Type) fieldNamingInfo := namingInfo{typeInfo: fieldType} - fieldTypeString := fieldNamingInfo.Syntax(root, c.importsList) + fieldTypeString := fieldNamingInfo.Syntax(universe, root, c.importsList) + if isApplyConfig(fieldNamingInfo.typeInfo) { + fieldTypeString = "*" + fieldTypeString + } c.Linef("// Get%s gets the %s field in the declarative configuration", field.Name, field.Name) c.Linef("func (b *%sApplyConfiguration) Get%s() (value %s, ok bool) {", info.Name, field.Name, fieldTypeString) @@ -347,10 +409,9 @@ func (c *applyConfigurationMaker) GenerateMemberGet(field markers.FieldInfo, roo if tags, ok := lookupJsonTags(field); ok { if tags.inline { c.Linef("return b.%s, true", field.Name) + } else if isApplyConfig(fieldNamingInfo.typeInfo) { + c.Linef("return b.fields.%[1]s, b.fields.%[1]s != nil", field.Name) } else { - // TODO|jefftree: Confirm with jpbetz on how to handle fields that are already pointers - - // c.Linef("return b.fields.%s, b.fields.%s != nil", field.Name, field.Name) c.Linef("if v := b.fields.%s; v != nil {", field.Name) c.Linef("return *v, true") c.Linef("}") @@ -484,11 +545,6 @@ func shouldBeApplyConfiguration(pkg *loader.Package, info *markers.TypeInfo) boo lastType := typeInfo if _, isNamed := typeInfo.(*types.Named); isNamed { for underlyingType := typeInfo.Underlying(); underlyingType != lastType; lastType, underlyingType = underlyingType, underlyingType.Underlying() { - // aliases to other things besides basics need copy methods - // (basics can be straight-up shallow-copied) - if _, isBasic := underlyingType.(*types.Basic); !isBasic { - return true - } } }