From a2997740caeefef3afb2f0cc51a72f723d742955 Mon Sep 17 00:00:00 2001 From: Jefftree Date: Tue, 4 May 2021 14:07:50 -0700 Subject: [PATCH] Update based on feedback --- pkg/applyconfigurations/gen.go | 102 +- .../v1/zz_generated.applyconfigurations.go | 412 - .../zz_generated.applyconfigurations.go | 190 - .../v1/zz_generated.applyconfigurations.go | 8022 ----------------- .../v1/zz_generated.applyconfigurations.go | 1501 --- .../ac/zz_generated.applyconfigurations.go | 32 +- pkg/applyconfigurations/traverse.go | 32 +- 7 files changed, 82 insertions(+), 10209 deletions(-) delete mode 100644 pkg/applyconfigurations/testdata/ac/batch/v1/zz_generated.applyconfigurations.go delete mode 100644 pkg/applyconfigurations/testdata/ac/batch/v1beta1/zz_generated.applyconfigurations.go delete mode 100644 pkg/applyconfigurations/testdata/ac/core/v1/zz_generated.applyconfigurations.go delete mode 100644 pkg/applyconfigurations/testdata/ac/meta/v1/zz_generated.applyconfigurations.go diff --git a/pkg/applyconfigurations/gen.go b/pkg/applyconfigurations/gen.go index 351473764..0d1bced04 100644 --- a/pkg/applyconfigurations/gen.go +++ b/pkg/applyconfigurations/gen.go @@ -24,7 +24,6 @@ import ( "go/types" "io" "path/filepath" - "regexp" "sort" "strings" @@ -37,12 +36,16 @@ import ( // Based on deepcopy gen but with legacy marker support removed. var ( - enablePkgMarker = markers.Must(markers.MakeDefinition("kubebuilder:ac:generate", markers.DescribesPackage, false)) enableTypeMarker = markers.Must(markers.MakeDefinition("kubebuilder:ac:generate", markers.DescribesType, false)) isObjectMarker = markers.Must(markers.MakeDefinition("kubebuilder:ac:root", markers.DescribesType, false)) ) +var importMapping = map[string]string{"k8s.io/apimachinery/pkg/apis/": "k8s.io/client-go/applyconfigurations/", "k8s.io/api/": "k8s.io/client-go/applyconfigurations/"} + +const importPathSuffix = "ac" +const packageFileName = "zz_generated.applyconfigurations.go" + // +controllertools:marker:generateHelp // Generator generates code containing apply configuration type implementations. @@ -108,18 +111,29 @@ func groupAndPackageVersion(pkg string) string { return parts[len(parts)-2] + "/" + parts[len(parts)-1] } -func createApplyConfigPackage(universe Universe, pkg *loader.Package) *loader.Package { +func createApplyConfigPackage(universe *Universe, pkg *loader.Package) *loader.Package { newPkg := &loader.Package{Package: &packages.Package{}} if filepath.Dir(pkg.CompiledGoFiles[0]) == universe.baseFilePath { - newPkg.CompiledGoFiles = append(newPkg.CompiledGoFiles, universe.baseFilePath+"/"+universe.importPathSuffix+"/") + newPkg.CompiledGoFiles = append(newPkg.CompiledGoFiles, universe.baseFilePath+"/"+importPathSuffix+"/") } else { - desiredPath := universe.baseFilePath + "/" + universe.importPathSuffix + "/" + groupAndPackageVersion(pkg.PkgPath) + "/" + desiredPath := universe.baseFilePath + "/" + importPathSuffix + "/" + groupAndPackageVersion(pkg.PkgPath) + "/" newPkg.CompiledGoFiles = append(newPkg.CompiledGoFiles, desiredPath) } return newPkg } +type PkgInfo struct { + objGenCtx *ObjectGenCtx + pkg *loader.Package + used bool + typeInfo []types.Type +} + +func (p *PkgInfo) GenerateTypes() { + p.typeInfo = p.objGenCtx.generateEligibleTypes(p.pkg) +} + func (d Generator) Generate(ctx *genall.GenerationContext) error { var headerText string @@ -139,15 +153,17 @@ func (d Generator) Generate(ctx *genall.GenerationContext) error { } var pkgList []*loader.Package + var generatedList []*loader.Package //TODO|jefftree: This might cause problems if multiple packages are provided crdRoot := ctx.Roots[0] for _, root := range ctx.Roots { pkgList = append(pkgList, root) + generatedList = append(generatedList, root) } - visited := make(map[string]*loader.Package) + visited := make(map[string]*PkgInfo) for len(pkgList) != 0 { pkg := pkgList[0] pkgList = pkgList[1:] @@ -155,34 +171,37 @@ func (d Generator) Generate(ctx *genall.GenerationContext) error { continue } - visited[pkg.PkgPath] = pkg + importPkgInfo := &PkgInfo{ + objGenCtx: &objGenCtx, + pkg: pkg, + used: false, + } + + visited[pkg.PkgPath] = importPkgInfo for _, imp := range pkg.Imports() { - // Only index k8s types - match, _ := regexp.MatchString("k8s.io/.*apis?/.+", imp.PkgPath) - if !match { - continue - } pkgList = append(pkgList, imp) } } var eligibleTypes []types.Type for _, pkg := range visited { - eligibleTypes = append(eligibleTypes, objGenCtx.generateEligibleTypes(pkg)...) + eligibleTypes = append(eligibleTypes, objGenCtx.generateEligibleTypes(pkg.pkg)...) } - universe := Universe{ - eligibleTypes: eligibleTypes, - baseImportPath: crdRoot.PkgPath, - importPathSuffix: "ac", - baseFilePath: filepath.Dir(crdRoot.CompiledGoFiles[0]), - importMapping: map[string]string{"k8s.io/apimachinery/pkg/apis/meta/v1": "k8s.io/client-go/applyconfigurations/meta/v1", "k8s.io/api/core/v1": "k8s.io/client-go/applyconfigurations/core/v1"}, + universe := &Universe{ + eligibleTypes: eligibleTypes, + baseImportPath: crdRoot.PkgPath, + baseFilePath: filepath.Dir(crdRoot.CompiledGoFiles[0]), + importMapping: importMapping, + visited: visited, + crawlPaths: generatedList, } - // universe.baseImportPath = "k8s.io/client-go/applyconfigurations" + for len(universe.crawlPaths) != 0 { + pkg := universe.crawlPaths[0] + universe.crawlPaths = universe.crawlPaths[1:] - for _, pkg := range visited { outContents := objGenCtx.generateForPackage(universe, pkg) if outContents == nil { continue @@ -247,12 +266,17 @@ type Universe struct { baseImportPath string importPathSuffix string baseFilePath string - importMapping map[string]string + importMapping map[string]string + visited map[string]*PkgInfo + crawlPaths []*loader.Package } func (u *Universe) existingApplyConfig(typeInfo *types.Named, pkgPath string) (string, bool) { - if path, ok := u.importMapping[pkgPath]; ok { - return path, true + for prefix, replacePath := range u.importMapping { + if strings.HasPrefix(pkgPath, prefix) { + path := replacePath + strings.TrimPrefix(pkgPath, prefix) + return path, true + } } return "", false } @@ -260,12 +284,16 @@ func (u *Universe) existingApplyConfig(typeInfo *types.Named, pkgPath string) (s func (u *Universe) IsApplyConfigGenerated(typeInfo *types.Named, pkgPath string) bool { exists := false for _, b := range u.eligibleTypes { - if typeInfo.Obj().Name() == "ObjectMeta" || typeInfo.Obj().Name() == "TypeMeta" || typeInfo.Obj().Name() == "ListMeta" { - exists = false - break - } if b == typeInfo { exists = true + + if _, ok := u.visited[pkgPath]; ok { + if u.visited[pkgPath].used == false { + u.visited[pkgPath].used = true + u.crawlPaths = append(u.crawlPaths, u.visited[pkgPath].pkg) + } + } + break } } @@ -273,14 +301,14 @@ func (u *Universe) IsApplyConfigGenerated(typeInfo *types.Named, pkgPath string) } func (u *Universe) GetApplyConfigPath(typeInfo *types.Named, pkgPath string) (string, bool) { - if !u.IsApplyConfigGenerated(typeInfo, pkgPath) { - return pkgPath, false - } - if path, ok := u.existingApplyConfig(typeInfo, pkgPath); ok { return path, ok } + if !u.IsApplyConfigGenerated(typeInfo, pkgPath) { + return pkgPath, false + } + path := loader.NonVendorPath(pkgPath) path = groupAndPackageVersion(path) return u.baseImportPath + "/" + u.importPathSuffix + "/" + path, true @@ -289,7 +317,7 @@ func (u *Universe) GetApplyConfigPath(typeInfo *types.Named, pkgPath string) (st // 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 { +func (ctx *ObjectGenCtx) generateForPackage(universe *Universe, root *loader.Package) []byte { byType := make(map[string][]byte) imports := &importsList{ byPath: make(map[string]string), @@ -313,17 +341,17 @@ func (ctx *ObjectGenCtx) generateForPackage(universe Universe, root *loader.Pack codeWriter: &codeWriter{out: outContent}, } - copyCtx.GenerateTypesFor(&universe, root, info) + copyCtx.GenerateTypesFor(universe, root, info) for _, field := range info.Fields { if field.Name != "" { - copyCtx.GenerateMemberSet(&universe, field, root, info) + copyCtx.GenerateMemberSet(universe, field, root, info) } } copyCtx.GenerateStructConstructor(root, info) if isRootType(info) { - copyCtx.GenerateTypeGetter(&universe, root, info) + copyCtx.GenerateRootFunctions(universe, root, info) } outBytes := outContent.Bytes() @@ -374,7 +402,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, packageFileName) if err != nil { root.AddError(err) return diff --git a/pkg/applyconfigurations/testdata/ac/batch/v1/zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/batch/v1/zz_generated.applyconfigurations.go deleted file mode 100644 index c196ad387..000000000 --- a/pkg/applyconfigurations/testdata/ac/batch/v1/zz_generated.applyconfigurations.go +++ /dev/null @@ -1,412 +0,0 @@ -// +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" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/client-go/applyconfigurations/core/v1" - applyconfigurationsmetav1 "k8s.io/client-go/applyconfigurations/meta/v1" -) - -// 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"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *CronJobApplyConfiguration) WithSpec(value *CronJobSpecApplyConfiguration) *CronJobApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *CronJobApplyConfiguration) WithStatus(value *CronJobStatusApplyConfiguration) *CronJobApplyConfiguration { - b.Status = value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]CronJobApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *CronJobListApplyConfiguration) WithItems(value []CronJobApplyConfiguration) *CronJobListApplyConfiguration { - b.Items = &value - return b -} - -// 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 *batchv1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` - Suspend *bool `json:"suspend,omitempty"` - JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"` - SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` - FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` -} - -// WithSchedule sets the Schedule field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithSchedule(value string) *CronJobSpecApplyConfiguration { - b.Schedule = &value - return b -} - -// WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds(value *int64) *CronJobSpecApplyConfiguration { - b.StartingDeadlineSeconds = value - return b -} - -// WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value batchv1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration { - b.ConcurrencyPolicy = &value - return b -} - -// WithSuspend sets the Suspend field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithSuspend(value *bool) *CronJobSpecApplyConfiguration { - b.Suspend = value - return b -} - -// WithJobTemplate sets the JobTemplate field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithJobTemplate(value *JobTemplateSpecApplyConfiguration) *CronJobSpecApplyConfiguration { - b.JobTemplate = value - return b -} - -// WithSuccessfulJobsHistoryLimit sets the SuccessfulJobsHistoryLimit field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithSuccessfulJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.SuccessfulJobsHistoryLimit = value - return b -} - -// WithFailedJobsHistoryLimit sets the FailedJobsHistoryLimit field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithFailedJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.FailedJobsHistoryLimit = value - return b -} - -// 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"` - LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty"` -} - -// WithActive sets the Active field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithActive(value []corev1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration { - b.Active = &value - return b -} - -// WithLastScheduleTime sets the LastScheduleTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value *metav1.Time) *CronJobStatusApplyConfiguration { - b.LastScheduleTime = value - return b -} - -// WithLastSuccessfulTime sets the LastSuccessfulTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithLastSuccessfulTime(value *metav1.Time) *CronJobStatusApplyConfiguration { - b.LastSuccessfulTime = value - return b -} - -// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use -// with apply. -func CronJobStatus() *CronJobStatusApplyConfiguration { - return &CronJobStatusApplyConfiguration{} -} - -// JobApplyConfiguration represents a declarative configuration of the Job type for use -// with apply. -type JobApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` - Status *JobStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *JobApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *JobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JobApplyConfiguration { - b.Status = value - return b -} - -// 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 *metav1.Time `json:"lastProbeTime,omitempty"` - LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *JobConditionApplyConfiguration) WithType(value batchv1.JobConditionType) *JobConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *JobConditionApplyConfiguration) WithStatus(value apicorev1.ConditionStatus) *JobConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithLastProbeTime sets the LastProbeTime field in the declarative configuration to the given value -func (b *JobConditionApplyConfiguration) WithLastProbeTime(value *metav1.Time) *JobConditionApplyConfiguration { - b.LastProbeTime = value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *JobConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *JobConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *JobConditionApplyConfiguration) WithReason(value string) *JobConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *JobConditionApplyConfiguration) WithMessage(value string) *JobConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]JobApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *JobListApplyConfiguration) WithItems(value []JobApplyConfiguration) *JobListApplyConfiguration { - b.Items = &value - return b -} - -// 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 *applyconfigurationsmetav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"` - ManualSelector *bool `json:"manualSelector,omitempty"` - Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"` - TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` - CompletionMode *batchv1.CompletionMode `json:"completionMode,omitempty"` - Suspend *bool `json:"suspend,omitempty"` -} - -// WithParallelism sets the Parallelism field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithParallelism(value *int32) *JobSpecApplyConfiguration { - b.Parallelism = value - return b -} - -// WithCompletions sets the Completions field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithCompletions(value *int32) *JobSpecApplyConfiguration { - b.Completions = value - return b -} - -// WithActiveDeadlineSeconds sets the ActiveDeadlineSeconds field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithActiveDeadlineSeconds(value *int64) *JobSpecApplyConfiguration { - b.ActiveDeadlineSeconds = value - return b -} - -// WithBackoffLimit sets the BackoffLimit field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithBackoffLimit(value *int32) *JobSpecApplyConfiguration { - b.BackoffLimit = value - return b -} - -// WithSelector sets the Selector field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithSelector(value *applyconfigurationsmetav1.LabelSelectorApplyConfiguration) *JobSpecApplyConfiguration { - b.Selector = value - return b -} - -// WithManualSelector sets the ManualSelector field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithManualSelector(value *bool) *JobSpecApplyConfiguration { - b.ManualSelector = value - return b -} - -// WithTemplate sets the Template field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithTemplate(value *corev1.PodTemplateSpecApplyConfiguration) *JobSpecApplyConfiguration { - b.Template = value - return b -} - -// WithTTLSecondsAfterFinished sets the TTLSecondsAfterFinished field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithTTLSecondsAfterFinished(value *int32) *JobSpecApplyConfiguration { - b.TTLSecondsAfterFinished = value - return b -} - -// WithCompletionMode sets the CompletionMode field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithCompletionMode(value *batchv1.CompletionMode) *JobSpecApplyConfiguration { - b.CompletionMode = value - return b -} - -// WithSuspend sets the Suspend field in the declarative configuration to the given value -func (b *JobSpecApplyConfiguration) WithSuspend(value *bool) *JobSpecApplyConfiguration { - b.Suspend = value - return b -} - -// 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 *metav1.Time `json:"startTime,omitempty"` - CompletionTime *metav1.Time `json:"completionTime,omitempty"` - Active *int32 `json:"active,omitempty"` - Succeeded *int32 `json:"succeeded,omitempty"` - Failed *int32 `json:"failed,omitempty"` - CompletedIndexes *string `json:"completedIndexes,omitempty"` -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithConditions(value []JobConditionApplyConfiguration) *JobStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// WithStartTime sets the StartTime field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithStartTime(value *metav1.Time) *JobStatusApplyConfiguration { - b.StartTime = value - return b -} - -// WithCompletionTime sets the CompletionTime field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithCompletionTime(value *metav1.Time) *JobStatusApplyConfiguration { - b.CompletionTime = value - return b -} - -// WithActive sets the Active field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithActive(value int32) *JobStatusApplyConfiguration { - b.Active = &value - return b -} - -// WithSucceeded sets the Succeeded field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithSucceeded(value int32) *JobStatusApplyConfiguration { - b.Succeeded = &value - return b -} - -// WithFailed sets the Failed field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyConfiguration { - b.Failed = &value - return b -} - -// WithCompletedIndexes sets the CompletedIndexes field in the declarative configuration to the given value -func (b *JobStatusApplyConfiguration) WithCompletedIndexes(value string) *JobStatusApplyConfiguration { - b.CompletedIndexes = &value - return b -} - -// JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use -// with apply. -func JobStatus() *JobStatusApplyConfiguration { - return &JobStatusApplyConfiguration{} -} - -// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use -// with apply. -type JobTemplateSpecApplyConfiguration struct { - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *JobTemplateSpecApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobTemplateSpecApplyConfiguration { - b.Spec = value - return b -} - -// 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/batch/v1beta1/zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/batch/v1beta1/zz_generated.applyconfigurations.go deleted file mode 100644 index 3c9cf972c..000000000 --- a/pkg/applyconfigurations/testdata/ac/batch/v1beta1/zz_generated.applyconfigurations.go +++ /dev/null @@ -1,190 +0,0 @@ -// +build !ignore_autogenerated - -// Code generated by controller-gen. DO NOT EDIT. - -package v1beta1 - -import ( - batchv1beta1 "k8s.io/api/batch/v1beta1" - "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/client-go/applyconfigurations/core/v1" - batchv1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/batch/v1" -) - -// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use -// with apply. -type CronJobApplyConfiguration struct { - v1.TypeMeta `json:",inline"` - v1.ObjectMeta `json:"metadata,omitempty"` - Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` - Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *CronJobApplyConfiguration) WithSpec(value *CronJobSpecApplyConfiguration) *CronJobApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *CronJobApplyConfiguration) WithStatus(value *CronJobStatusApplyConfiguration) *CronJobApplyConfiguration { - b.Status = value - return b -} - -// 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.TypeMeta `json:",inline"` - v1.ListMeta `json:"metadata,omitempty"` - Items *[]CronJobApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *CronJobListApplyConfiguration) WithItems(value []CronJobApplyConfiguration) *CronJobListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithSchedule sets the Schedule field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithSchedule(value string) *CronJobSpecApplyConfiguration { - b.Schedule = &value - return b -} - -// WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds(value *int64) *CronJobSpecApplyConfiguration { - b.StartingDeadlineSeconds = value - return b -} - -// WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value batchv1beta1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration { - b.ConcurrencyPolicy = &value - return b -} - -// WithSuspend sets the Suspend field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithSuspend(value *bool) *CronJobSpecApplyConfiguration { - b.Suspend = value - return b -} - -// WithJobTemplate sets the JobTemplate field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithJobTemplate(value *JobTemplateSpecApplyConfiguration) *CronJobSpecApplyConfiguration { - b.JobTemplate = value - return b -} - -// WithSuccessfulJobsHistoryLimit sets the SuccessfulJobsHistoryLimit field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithSuccessfulJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.SuccessfulJobsHistoryLimit = value - return b -} - -// WithFailedJobsHistoryLimit sets the FailedJobsHistoryLimit field in the declarative configuration to the given value -func (b *CronJobSpecApplyConfiguration) WithFailedJobsHistoryLimit(value *int32) *CronJobSpecApplyConfiguration { - b.FailedJobsHistoryLimit = value - return b -} - -// 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 *v1.Time `json:"lastScheduleTime,omitempty"` - LastSuccessfulTime *v1.Time `json:"lastSuccessfulTime,omitempty"` -} - -// WithActive sets the Active field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithActive(value []corev1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration { - b.Active = &value - return b -} - -// WithLastScheduleTime sets the LastScheduleTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value *v1.Time) *CronJobStatusApplyConfiguration { - b.LastScheduleTime = value - return b -} - -// WithLastSuccessfulTime sets the LastSuccessfulTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithLastSuccessfulTime(value *v1.Time) *CronJobStatusApplyConfiguration { - b.LastSuccessfulTime = value - return b -} - -// 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.TypeMeta `json:",inline"` - v1.ObjectMeta `json:"metadata,omitempty"` - Template *JobTemplateSpecApplyConfiguration `json:"template,omitempty"` -} - -// WithTemplate sets the Template field in the declarative configuration to the given value -func (b *JobTemplateApplyConfiguration) WithTemplate(value *JobTemplateSpecApplyConfiguration) *JobTemplateApplyConfiguration { - b.Template = value - return b -} - -// 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.ObjectMeta `json:"metadata,omitempty"` - Spec *batchv1.JobSpecApplyConfiguration `json:"spec,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *JobTemplateSpecApplyConfiguration) WithSpec(value *batchv1.JobSpecApplyConfiguration) *JobTemplateSpecApplyConfiguration { - b.Spec = value - return b -} - -// 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/zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/core/v1/zz_generated.applyconfigurations.go deleted file mode 100644 index 51195741b..000000000 --- a/pkg/applyconfigurations/testdata/ac/core/v1/zz_generated.applyconfigurations.go +++ /dev/null @@ -1,8022 +0,0 @@ -// +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" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - "k8s.io/apimachinery/pkg/util/intstr" - applyconfigurationsmetav1 "k8s.io/client-go/applyconfigurations/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"` -} - -// WithVolumeID sets the VolumeID field in the declarative configuration to the given value -func (b *AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithVolumeID(value string) *AWSElasticBlockStoreVolumeSourceApplyConfiguration { - b.VolumeID = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithFSType(value string) *AWSElasticBlockStoreVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithPartition sets the Partition field in the declarative configuration to the given value -func (b *AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithPartition(value int32) *AWSElasticBlockStoreVolumeSourceApplyConfiguration { - b.Partition = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithReadOnly(value bool) *AWSElasticBlockStoreVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithNodeAffinity sets the NodeAffinity field in the declarative configuration to the given value -func (b *AffinityApplyConfiguration) WithNodeAffinity(value *NodeAffinityApplyConfiguration) *AffinityApplyConfiguration { - b.NodeAffinity = value - return b -} - -// WithPodAffinity sets the PodAffinity field in the declarative configuration to the given value -func (b *AffinityApplyConfiguration) WithPodAffinity(value *PodAffinityApplyConfiguration) *AffinityApplyConfiguration { - b.PodAffinity = value - return b -} - -// WithPodAntiAffinity sets the PodAntiAffinity field in the declarative configuration to the given value -func (b *AffinityApplyConfiguration) WithPodAntiAffinity(value *PodAntiAffinityApplyConfiguration) *AffinityApplyConfiguration { - b.PodAntiAffinity = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *AttachedVolumeApplyConfiguration) WithName(value corev1.UniqueVolumeName) *AttachedVolumeApplyConfiguration { - b.Name = &value - return b -} - -// WithDevicePath sets the DevicePath field in the declarative configuration to the given value -func (b *AttachedVolumeApplyConfiguration) WithDevicePath(value string) *AttachedVolumeApplyConfiguration { - b.DevicePath = &value - return b -} - -// 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"` -} - -// WithPreferAvoidPods sets the PreferAvoidPods field in the declarative configuration to the given value -func (b *AvoidPodsApplyConfiguration) WithPreferAvoidPods(value []PreferAvoidPodsEntryApplyConfiguration) *AvoidPodsApplyConfiguration { - b.PreferAvoidPods = &value - return b -} - -// 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"` -} - -// WithDiskName sets the DiskName field in the declarative configuration to the given value -func (b *AzureDiskVolumeSourceApplyConfiguration) WithDiskName(value string) *AzureDiskVolumeSourceApplyConfiguration { - b.DiskName = &value - return b -} - -// WithDataDiskURI sets the DataDiskURI field in the declarative configuration to the given value -func (b *AzureDiskVolumeSourceApplyConfiguration) WithDataDiskURI(value string) *AzureDiskVolumeSourceApplyConfiguration { - b.DataDiskURI = &value - return b -} - -// WithCachingMode sets the CachingMode field in the declarative configuration to the given value -func (b *AzureDiskVolumeSourceApplyConfiguration) WithCachingMode(value *corev1.AzureDataDiskCachingMode) *AzureDiskVolumeSourceApplyConfiguration { - b.CachingMode = value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *AzureDiskVolumeSourceApplyConfiguration) WithFSType(value *string) *AzureDiskVolumeSourceApplyConfiguration { - b.FSType = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *AzureDiskVolumeSourceApplyConfiguration) WithReadOnly(value *bool) *AzureDiskVolumeSourceApplyConfiguration { - b.ReadOnly = value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *AzureDiskVolumeSourceApplyConfiguration) WithKind(value *corev1.AzureDataDiskKind) *AzureDiskVolumeSourceApplyConfiguration { - b.Kind = value - return b -} - -// 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"` -} - -// WithSecretName sets the SecretName field in the declarative configuration to the given value -func (b *AzureFilePersistentVolumeSourceApplyConfiguration) WithSecretName(value string) *AzureFilePersistentVolumeSourceApplyConfiguration { - b.SecretName = &value - return b -} - -// WithShareName sets the ShareName field in the declarative configuration to the given value -func (b *AzureFilePersistentVolumeSourceApplyConfiguration) WithShareName(value string) *AzureFilePersistentVolumeSourceApplyConfiguration { - b.ShareName = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *AzureFilePersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *AzureFilePersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithSecretNamespace sets the SecretNamespace field in the declarative configuration to the given value -func (b *AzureFilePersistentVolumeSourceApplyConfiguration) WithSecretNamespace(value *string) *AzureFilePersistentVolumeSourceApplyConfiguration { - b.SecretNamespace = value - return b -} - -// 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"` -} - -// WithSecretName sets the SecretName field in the declarative configuration to the given value -func (b *AzureFileVolumeSourceApplyConfiguration) WithSecretName(value string) *AzureFileVolumeSourceApplyConfiguration { - b.SecretName = &value - return b -} - -// WithShareName sets the ShareName field in the declarative configuration to the given value -func (b *AzureFileVolumeSourceApplyConfiguration) WithShareName(value string) *AzureFileVolumeSourceApplyConfiguration { - b.ShareName = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *AzureFileVolumeSourceApplyConfiguration) WithReadOnly(value bool) *AzureFileVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Target *ObjectReferenceApplyConfiguration `json:"target,omitempty"` -} - -// WithTarget sets the Target field in the declarative configuration to the given value -func (b *BindingApplyConfiguration) WithTarget(value *ObjectReferenceApplyConfiguration) *BindingApplyConfiguration { - b.Target = value - return b -} - -// 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"` -} - -// WithDriver sets the Driver field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithDriver(value string) *CSIPersistentVolumeSourceApplyConfiguration { - b.Driver = &value - return b -} - -// WithVolumeHandle sets the VolumeHandle field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithVolumeHandle(value string) *CSIPersistentVolumeSourceApplyConfiguration { - b.VolumeHandle = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *CSIPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *CSIPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithVolumeAttributes sets the VolumeAttributes field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithVolumeAttributes(value map[string]string) *CSIPersistentVolumeSourceApplyConfiguration { - b.VolumeAttributes = &value - return b -} - -// WithControllerPublishSecretRef sets the ControllerPublishSecretRef field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithControllerPublishSecretRef(value *SecretReferenceApplyConfiguration) *CSIPersistentVolumeSourceApplyConfiguration { - b.ControllerPublishSecretRef = value - return b -} - -// WithNodeStageSecretRef sets the NodeStageSecretRef field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithNodeStageSecretRef(value *SecretReferenceApplyConfiguration) *CSIPersistentVolumeSourceApplyConfiguration { - b.NodeStageSecretRef = value - return b -} - -// WithNodePublishSecretRef sets the NodePublishSecretRef field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithNodePublishSecretRef(value *SecretReferenceApplyConfiguration) *CSIPersistentVolumeSourceApplyConfiguration { - b.NodePublishSecretRef = value - return b -} - -// WithControllerExpandSecretRef sets the ControllerExpandSecretRef field in the declarative configuration to the given value -func (b *CSIPersistentVolumeSourceApplyConfiguration) WithControllerExpandSecretRef(value *SecretReferenceApplyConfiguration) *CSIPersistentVolumeSourceApplyConfiguration { - b.ControllerExpandSecretRef = value - return b -} - -// 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"` -} - -// WithDriver sets the Driver field in the declarative configuration to the given value -func (b *CSIVolumeSourceApplyConfiguration) WithDriver(value string) *CSIVolumeSourceApplyConfiguration { - b.Driver = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *CSIVolumeSourceApplyConfiguration) WithReadOnly(value *bool) *CSIVolumeSourceApplyConfiguration { - b.ReadOnly = value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *CSIVolumeSourceApplyConfiguration) WithFSType(value *string) *CSIVolumeSourceApplyConfiguration { - b.FSType = value - return b -} - -// WithVolumeAttributes sets the VolumeAttributes field in the declarative configuration to the given value -func (b *CSIVolumeSourceApplyConfiguration) WithVolumeAttributes(value map[string]string) *CSIVolumeSourceApplyConfiguration { - b.VolumeAttributes = &value - return b -} - -// WithNodePublishSecretRef sets the NodePublishSecretRef field in the declarative configuration to the given value -func (b *CSIVolumeSourceApplyConfiguration) WithNodePublishSecretRef(value *LocalObjectReferenceApplyConfiguration) *CSIVolumeSourceApplyConfiguration { - b.NodePublishSecretRef = value - return b -} - -// 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"` -} - -// WithAdd sets the Add field in the declarative configuration to the given value -func (b *CapabilitiesApplyConfiguration) WithAdd(value []corev1.Capability) *CapabilitiesApplyConfiguration { - b.Add = &value - return b -} - -// WithDrop sets the Drop field in the declarative configuration to the given value -func (b *CapabilitiesApplyConfiguration) WithDrop(value []corev1.Capability) *CapabilitiesApplyConfiguration { - b.Drop = &value - return b -} - -// 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"` -} - -// WithMonitors sets the Monitors field in the declarative configuration to the given value -func (b *CephFSPersistentVolumeSourceApplyConfiguration) WithMonitors(value []string) *CephFSPersistentVolumeSourceApplyConfiguration { - b.Monitors = &value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *CephFSPersistentVolumeSourceApplyConfiguration) WithPath(value string) *CephFSPersistentVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithUser sets the User field in the declarative configuration to the given value -func (b *CephFSPersistentVolumeSourceApplyConfiguration) WithUser(value string) *CephFSPersistentVolumeSourceApplyConfiguration { - b.User = &value - return b -} - -// WithSecretFile sets the SecretFile field in the declarative configuration to the given value -func (b *CephFSPersistentVolumeSourceApplyConfiguration) WithSecretFile(value string) *CephFSPersistentVolumeSourceApplyConfiguration { - b.SecretFile = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *CephFSPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *CephFSPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *CephFSPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *CephFSPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithMonitors sets the Monitors field in the declarative configuration to the given value -func (b *CephFSVolumeSourceApplyConfiguration) WithMonitors(value []string) *CephFSVolumeSourceApplyConfiguration { - b.Monitors = &value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *CephFSVolumeSourceApplyConfiguration) WithPath(value string) *CephFSVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithUser sets the User field in the declarative configuration to the given value -func (b *CephFSVolumeSourceApplyConfiguration) WithUser(value string) *CephFSVolumeSourceApplyConfiguration { - b.User = &value - return b -} - -// WithSecretFile sets the SecretFile field in the declarative configuration to the given value -func (b *CephFSVolumeSourceApplyConfiguration) WithSecretFile(value string) *CephFSVolumeSourceApplyConfiguration { - b.SecretFile = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *CephFSVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *CephFSVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *CephFSVolumeSourceApplyConfiguration) WithReadOnly(value bool) *CephFSVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithVolumeID sets the VolumeID field in the declarative configuration to the given value -func (b *CinderPersistentVolumeSourceApplyConfiguration) WithVolumeID(value string) *CinderPersistentVolumeSourceApplyConfiguration { - b.VolumeID = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *CinderPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *CinderPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *CinderPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *CinderPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *CinderPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *CinderPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// 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"` -} - -// WithVolumeID sets the VolumeID field in the declarative configuration to the given value -func (b *CinderVolumeSourceApplyConfiguration) WithVolumeID(value string) *CinderVolumeSourceApplyConfiguration { - b.VolumeID = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *CinderVolumeSourceApplyConfiguration) WithFSType(value string) *CinderVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *CinderVolumeSourceApplyConfiguration) WithReadOnly(value bool) *CinderVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *CinderVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *CinderVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// 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"` -} - -// WithTimeoutSeconds sets the TimeoutSeconds field in the declarative configuration to the given value -func (b *ClientIPConfigApplyConfiguration) WithTimeoutSeconds(value *int32) *ClientIPConfigApplyConfiguration { - b.TimeoutSeconds = value - return b -} - -// 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"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *ComponentConditionApplyConfiguration) WithType(value corev1.ComponentConditionType) *ComponentConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *ComponentConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *ComponentConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *ComponentConditionApplyConfiguration) WithMessage(value string) *ComponentConditionApplyConfiguration { - b.Message = &value - return b -} - -// WithError sets the Error field in the declarative configuration to the given value -func (b *ComponentConditionApplyConfiguration) WithError(value string) *ComponentConditionApplyConfiguration { - b.Error = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Conditions *[]ComponentConditionApplyConfiguration `json:"conditions,omitempty"` -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *ComponentStatusApplyConfiguration) WithConditions(value []ComponentConditionApplyConfiguration) *ComponentStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]ComponentStatusApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ComponentStatusListApplyConfiguration) WithItems(value []ComponentStatusApplyConfiguration) *ComponentStatusListApplyConfiguration { - b.Items = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Immutable *bool `json:"immutable,omitempty"` - Data *map[string]string `json:"data,omitempty"` - BinaryData *map[string][]byte `json:"binaryData,omitempty"` -} - -// WithImmutable sets the Immutable field in the declarative configuration to the given value -func (b *ConfigMapApplyConfiguration) WithImmutable(value *bool) *ConfigMapApplyConfiguration { - b.Immutable = value - return b -} - -// WithData sets the Data field in the declarative configuration to the given value -func (b *ConfigMapApplyConfiguration) WithData(value map[string]string) *ConfigMapApplyConfiguration { - b.Data = &value - return b -} - -// WithBinaryData sets the BinaryData field in the declarative configuration to the given value -func (b *ConfigMapApplyConfiguration) WithBinaryData(value map[string][]byte) *ConfigMapApplyConfiguration { - b.BinaryData = &value - return b -} - -// 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"` -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *ConfigMapEnvSourceApplyConfiguration) WithOptional(value *bool) *ConfigMapEnvSourceApplyConfiguration { - b.Optional = value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *ConfigMapKeySelectorApplyConfiguration) WithKey(value string) *ConfigMapKeySelectorApplyConfiguration { - b.Key = &value - return b -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *ConfigMapKeySelectorApplyConfiguration) WithOptional(value *bool) *ConfigMapKeySelectorApplyConfiguration { - b.Optional = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]ConfigMapApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ConfigMapListApplyConfiguration) WithItems(value []ConfigMapApplyConfiguration) *ConfigMapListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithNamespace sets the Namespace field in the declarative configuration to the given value -func (b *ConfigMapNodeConfigSourceApplyConfiguration) WithNamespace(value string) *ConfigMapNodeConfigSourceApplyConfiguration { - b.Namespace = &value - return b -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ConfigMapNodeConfigSourceApplyConfiguration) WithName(value string) *ConfigMapNodeConfigSourceApplyConfiguration { - b.Name = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *ConfigMapNodeConfigSourceApplyConfiguration) WithUID(value types.UID) *ConfigMapNodeConfigSourceApplyConfiguration { - b.UID = &value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *ConfigMapNodeConfigSourceApplyConfiguration) WithResourceVersion(value string) *ConfigMapNodeConfigSourceApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// WithKubeletConfigKey sets the KubeletConfigKey field in the declarative configuration to the given value -func (b *ConfigMapNodeConfigSourceApplyConfiguration) WithKubeletConfigKey(value string) *ConfigMapNodeConfigSourceApplyConfiguration { - b.KubeletConfigKey = &value - return b -} - -// 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"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ConfigMapProjectionApplyConfiguration) WithItems(value []KeyToPathApplyConfiguration) *ConfigMapProjectionApplyConfiguration { - b.Items = &value - return b -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *ConfigMapProjectionApplyConfiguration) WithOptional(value *bool) *ConfigMapProjectionApplyConfiguration { - b.Optional = value - return b -} - -// 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"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ConfigMapVolumeSourceApplyConfiguration) WithItems(value []KeyToPathApplyConfiguration) *ConfigMapVolumeSourceApplyConfiguration { - b.Items = &value - return b -} - -// WithDefaultMode sets the DefaultMode field in the declarative configuration to the given value -func (b *ConfigMapVolumeSourceApplyConfiguration) WithDefaultMode(value *int32) *ConfigMapVolumeSourceApplyConfiguration { - b.DefaultMode = value - return b -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *ConfigMapVolumeSourceApplyConfiguration) WithOptional(value *bool) *ConfigMapVolumeSourceApplyConfiguration { - b.Optional = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithName(value string) *ContainerApplyConfiguration { - b.Name = &value - return b -} - -// WithImage sets the Image field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithImage(value string) *ContainerApplyConfiguration { - b.Image = &value - return b -} - -// WithCommand sets the Command field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithCommand(value []string) *ContainerApplyConfiguration { - b.Command = &value - return b -} - -// WithArgs sets the Args field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithArgs(value []string) *ContainerApplyConfiguration { - b.Args = &value - return b -} - -// WithWorkingDir sets the WorkingDir field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithWorkingDir(value string) *ContainerApplyConfiguration { - b.WorkingDir = &value - return b -} - -// WithPorts sets the Ports field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithPorts(value []ContainerPortApplyConfiguration) *ContainerApplyConfiguration { - b.Ports = &value - return b -} - -// WithEnvFrom sets the EnvFrom field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithEnvFrom(value []EnvFromSourceApplyConfiguration) *ContainerApplyConfiguration { - b.EnvFrom = &value - return b -} - -// WithEnv sets the Env field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithEnv(value []EnvVarApplyConfiguration) *ContainerApplyConfiguration { - b.Env = &value - return b -} - -// WithResources sets the Resources field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithResources(value *ResourceRequirementsApplyConfiguration) *ContainerApplyConfiguration { - b.Resources = value - return b -} - -// WithVolumeMounts sets the VolumeMounts field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithVolumeMounts(value []VolumeMountApplyConfiguration) *ContainerApplyConfiguration { - b.VolumeMounts = &value - return b -} - -// WithVolumeDevices sets the VolumeDevices field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithVolumeDevices(value []VolumeDeviceApplyConfiguration) *ContainerApplyConfiguration { - b.VolumeDevices = &value - return b -} - -// WithLivenessProbe sets the LivenessProbe field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithLivenessProbe(value *ProbeApplyConfiguration) *ContainerApplyConfiguration { - b.LivenessProbe = value - return b -} - -// WithReadinessProbe sets the ReadinessProbe field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithReadinessProbe(value *ProbeApplyConfiguration) *ContainerApplyConfiguration { - b.ReadinessProbe = value - return b -} - -// WithStartupProbe sets the StartupProbe field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithStartupProbe(value *ProbeApplyConfiguration) *ContainerApplyConfiguration { - b.StartupProbe = value - return b -} - -// WithLifecycle sets the Lifecycle field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithLifecycle(value *LifecycleApplyConfiguration) *ContainerApplyConfiguration { - b.Lifecycle = value - return b -} - -// WithTerminationMessagePath sets the TerminationMessagePath field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithTerminationMessagePath(value string) *ContainerApplyConfiguration { - b.TerminationMessagePath = &value - return b -} - -// WithTerminationMessagePolicy sets the TerminationMessagePolicy field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithTerminationMessagePolicy(value corev1.TerminationMessagePolicy) *ContainerApplyConfiguration { - b.TerminationMessagePolicy = &value - return b -} - -// WithImagePullPolicy sets the ImagePullPolicy field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithImagePullPolicy(value corev1.PullPolicy) *ContainerApplyConfiguration { - b.ImagePullPolicy = &value - return b -} - -// WithSecurityContext sets the SecurityContext field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithSecurityContext(value *SecurityContextApplyConfiguration) *ContainerApplyConfiguration { - b.SecurityContext = value - return b -} - -// WithStdin sets the Stdin field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithStdin(value bool) *ContainerApplyConfiguration { - b.Stdin = &value - return b -} - -// WithStdinOnce sets the StdinOnce field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithStdinOnce(value bool) *ContainerApplyConfiguration { - b.StdinOnce = &value - return b -} - -// WithTTY sets the TTY field in the declarative configuration to the given value -func (b *ContainerApplyConfiguration) WithTTY(value bool) *ContainerApplyConfiguration { - b.TTY = &value - return b -} - -// 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"` -} - -// WithNames sets the Names field in the declarative configuration to the given value -func (b *ContainerImageApplyConfiguration) WithNames(value []string) *ContainerImageApplyConfiguration { - b.Names = &value - return b -} - -// WithSizeBytes sets the SizeBytes field in the declarative configuration to the given value -func (b *ContainerImageApplyConfiguration) WithSizeBytes(value int64) *ContainerImageApplyConfiguration { - b.SizeBytes = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ContainerPortApplyConfiguration) WithName(value string) *ContainerPortApplyConfiguration { - b.Name = &value - return b -} - -// WithHostPort sets the HostPort field in the declarative configuration to the given value -func (b *ContainerPortApplyConfiguration) WithHostPort(value int32) *ContainerPortApplyConfiguration { - b.HostPort = &value - return b -} - -// WithContainerPort sets the ContainerPort field in the declarative configuration to the given value -func (b *ContainerPortApplyConfiguration) WithContainerPort(value int32) *ContainerPortApplyConfiguration { - b.ContainerPort = &value - return b -} - -// WithProtocol sets the Protocol field in the declarative configuration to the given value -func (b *ContainerPortApplyConfiguration) WithProtocol(value corev1.Protocol) *ContainerPortApplyConfiguration { - b.Protocol = &value - return b -} - -// WithHostIP sets the HostIP field in the declarative configuration to the given value -func (b *ContainerPortApplyConfiguration) WithHostIP(value string) *ContainerPortApplyConfiguration { - b.HostIP = &value - return b -} - -// 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"` -} - -// WithWaiting sets the Waiting field in the declarative configuration to the given value -func (b *ContainerStateApplyConfiguration) WithWaiting(value *ContainerStateWaitingApplyConfiguration) *ContainerStateApplyConfiguration { - b.Waiting = value - return b -} - -// WithRunning sets the Running field in the declarative configuration to the given value -func (b *ContainerStateApplyConfiguration) WithRunning(value *ContainerStateRunningApplyConfiguration) *ContainerStateApplyConfiguration { - b.Running = value - return b -} - -// WithTerminated sets the Terminated field in the declarative configuration to the given value -func (b *ContainerStateApplyConfiguration) WithTerminated(value *ContainerStateTerminatedApplyConfiguration) *ContainerStateApplyConfiguration { - b.Terminated = value - return b -} - -// 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 *metav1.Time `json:"startedAt,omitempty"` -} - -// WithStartedAt sets the StartedAt field in the declarative configuration to the given value -func (b *ContainerStateRunningApplyConfiguration) WithStartedAt(value *metav1.Time) *ContainerStateRunningApplyConfiguration { - b.StartedAt = value - return b -} - -// 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 *metav1.Time `json:"startedAt,omitempty"` - FinishedAt *metav1.Time `json:"finishedAt,omitempty"` - ContainerID *string `json:"containerID,omitempty"` -} - -// WithExitCode sets the ExitCode field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithExitCode(value int32) *ContainerStateTerminatedApplyConfiguration { - b.ExitCode = &value - return b -} - -// WithSignal sets the Signal field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithSignal(value int32) *ContainerStateTerminatedApplyConfiguration { - b.Signal = &value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithReason(value string) *ContainerStateTerminatedApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithMessage(value string) *ContainerStateTerminatedApplyConfiguration { - b.Message = &value - return b -} - -// WithStartedAt sets the StartedAt field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithStartedAt(value *metav1.Time) *ContainerStateTerminatedApplyConfiguration { - b.StartedAt = value - return b -} - -// WithFinishedAt sets the FinishedAt field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithFinishedAt(value *metav1.Time) *ContainerStateTerminatedApplyConfiguration { - b.FinishedAt = value - return b -} - -// WithContainerID sets the ContainerID field in the declarative configuration to the given value -func (b *ContainerStateTerminatedApplyConfiguration) WithContainerID(value string) *ContainerStateTerminatedApplyConfiguration { - b.ContainerID = &value - return b -} - -// 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"` -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *ContainerStateWaitingApplyConfiguration) WithReason(value string) *ContainerStateWaitingApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *ContainerStateWaitingApplyConfiguration) WithMessage(value string) *ContainerStateWaitingApplyConfiguration { - b.Message = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithName(value string) *ContainerStatusApplyConfiguration { - b.Name = &value - return b -} - -// WithState sets the State field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithState(value *ContainerStateApplyConfiguration) *ContainerStatusApplyConfiguration { - b.State = value - return b -} - -// WithLastTerminationState sets the LastTerminationState field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithLastTerminationState(value *ContainerStateApplyConfiguration) *ContainerStatusApplyConfiguration { - b.LastTerminationState = value - return b -} - -// WithReady sets the Ready field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithReady(value bool) *ContainerStatusApplyConfiguration { - b.Ready = &value - return b -} - -// WithRestartCount sets the RestartCount field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithRestartCount(value int32) *ContainerStatusApplyConfiguration { - b.RestartCount = &value - return b -} - -// WithImage sets the Image field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithImage(value string) *ContainerStatusApplyConfiguration { - b.Image = &value - return b -} - -// WithImageID sets the ImageID field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithImageID(value string) *ContainerStatusApplyConfiguration { - b.ImageID = &value - return b -} - -// WithContainerID sets the ContainerID field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithContainerID(value string) *ContainerStatusApplyConfiguration { - b.ContainerID = &value - return b -} - -// WithStarted sets the Started field in the declarative configuration to the given value -func (b *ContainerStatusApplyConfiguration) WithStarted(value *bool) *ContainerStatusApplyConfiguration { - b.Started = value - return b -} - -// 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"` -} - -// WithPort sets the Port field in the declarative configuration to the given value -func (b *DaemonEndpointApplyConfiguration) WithPort(value int32) *DaemonEndpointApplyConfiguration { - b.Port = &value - return b -} - -// 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"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *DownwardAPIProjectionApplyConfiguration) WithItems(value []DownwardAPIVolumeFileApplyConfiguration) *DownwardAPIProjectionApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *DownwardAPIVolumeFileApplyConfiguration) WithPath(value string) *DownwardAPIVolumeFileApplyConfiguration { - b.Path = &value - return b -} - -// WithFieldRef sets the FieldRef field in the declarative configuration to the given value -func (b *DownwardAPIVolumeFileApplyConfiguration) WithFieldRef(value *ObjectFieldSelectorApplyConfiguration) *DownwardAPIVolumeFileApplyConfiguration { - b.FieldRef = value - return b -} - -// WithResourceFieldRef sets the ResourceFieldRef field in the declarative configuration to the given value -func (b *DownwardAPIVolumeFileApplyConfiguration) WithResourceFieldRef(value *ResourceFieldSelectorApplyConfiguration) *DownwardAPIVolumeFileApplyConfiguration { - b.ResourceFieldRef = value - return b -} - -// WithMode sets the Mode field in the declarative configuration to the given value -func (b *DownwardAPIVolumeFileApplyConfiguration) WithMode(value *int32) *DownwardAPIVolumeFileApplyConfiguration { - b.Mode = value - return b -} - -// 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"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *DownwardAPIVolumeSourceApplyConfiguration) WithItems(value []DownwardAPIVolumeFileApplyConfiguration) *DownwardAPIVolumeSourceApplyConfiguration { - b.Items = &value - return b -} - -// WithDefaultMode sets the DefaultMode field in the declarative configuration to the given value -func (b *DownwardAPIVolumeSourceApplyConfiguration) WithDefaultMode(value *int32) *DownwardAPIVolumeSourceApplyConfiguration { - b.DefaultMode = value - return b -} - -// 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"` -} - -// WithMedium sets the Medium field in the declarative configuration to the given value -func (b *EmptyDirVolumeSourceApplyConfiguration) WithMedium(value corev1.StorageMedium) *EmptyDirVolumeSourceApplyConfiguration { - b.Medium = &value - return b -} - -// WithSizeLimit sets the SizeLimit field in the declarative configuration to the given value -func (b *EmptyDirVolumeSourceApplyConfiguration) WithSizeLimit(value *resource.Quantity) *EmptyDirVolumeSourceApplyConfiguration { - b.SizeLimit = value - return b -} - -// 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"` -} - -// WithIP sets the IP field in the declarative configuration to the given value -func (b *EndpointAddressApplyConfiguration) WithIP(value string) *EndpointAddressApplyConfiguration { - b.IP = &value - return b -} - -// WithHostname sets the Hostname field in the declarative configuration to the given value -func (b *EndpointAddressApplyConfiguration) WithHostname(value string) *EndpointAddressApplyConfiguration { - b.Hostname = &value - return b -} - -// WithNodeName sets the NodeName field in the declarative configuration to the given value -func (b *EndpointAddressApplyConfiguration) WithNodeName(value *string) *EndpointAddressApplyConfiguration { - b.NodeName = value - return b -} - -// WithTargetRef sets the TargetRef field in the declarative configuration to the given value -func (b *EndpointAddressApplyConfiguration) WithTargetRef(value *ObjectReferenceApplyConfiguration) *EndpointAddressApplyConfiguration { - b.TargetRef = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *EndpointPortApplyConfiguration) WithName(value string) *EndpointPortApplyConfiguration { - b.Name = &value - return b -} - -// WithPort sets the Port field in the declarative configuration to the given value -func (b *EndpointPortApplyConfiguration) WithPort(value int32) *EndpointPortApplyConfiguration { - b.Port = &value - return b -} - -// WithProtocol sets the Protocol field in the declarative configuration to the given value -func (b *EndpointPortApplyConfiguration) WithProtocol(value corev1.Protocol) *EndpointPortApplyConfiguration { - b.Protocol = &value - return b -} - -// WithAppProtocol sets the AppProtocol field in the declarative configuration to the given value -func (b *EndpointPortApplyConfiguration) WithAppProtocol(value *string) *EndpointPortApplyConfiguration { - b.AppProtocol = value - return b -} - -// 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"` -} - -// WithAddresses sets the Addresses field in the declarative configuration to the given value -func (b *EndpointSubsetApplyConfiguration) WithAddresses(value []EndpointAddressApplyConfiguration) *EndpointSubsetApplyConfiguration { - b.Addresses = &value - return b -} - -// WithNotReadyAddresses sets the NotReadyAddresses field in the declarative configuration to the given value -func (b *EndpointSubsetApplyConfiguration) WithNotReadyAddresses(value []EndpointAddressApplyConfiguration) *EndpointSubsetApplyConfiguration { - b.NotReadyAddresses = &value - return b -} - -// WithPorts sets the Ports field in the declarative configuration to the given value -func (b *EndpointSubsetApplyConfiguration) WithPorts(value []EndpointPortApplyConfiguration) *EndpointSubsetApplyConfiguration { - b.Ports = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Subsets *[]EndpointSubsetApplyConfiguration `json:"subsets,omitempty"` -} - -// WithSubsets sets the Subsets field in the declarative configuration to the given value -func (b *EndpointsApplyConfiguration) WithSubsets(value []EndpointSubsetApplyConfiguration) *EndpointsApplyConfiguration { - b.Subsets = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]EndpointsApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *EndpointsListApplyConfiguration) WithItems(value []EndpointsApplyConfiguration) *EndpointsListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithPrefix sets the Prefix field in the declarative configuration to the given value -func (b *EnvFromSourceApplyConfiguration) WithPrefix(value string) *EnvFromSourceApplyConfiguration { - b.Prefix = &value - return b -} - -// WithConfigMapRef sets the ConfigMapRef field in the declarative configuration to the given value -func (b *EnvFromSourceApplyConfiguration) WithConfigMapRef(value *ConfigMapEnvSourceApplyConfiguration) *EnvFromSourceApplyConfiguration { - b.ConfigMapRef = value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *EnvFromSourceApplyConfiguration) WithSecretRef(value *SecretEnvSourceApplyConfiguration) *EnvFromSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *EnvVarApplyConfiguration) WithName(value string) *EnvVarApplyConfiguration { - b.Name = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -func (b *EnvVarApplyConfiguration) WithValue(value string) *EnvVarApplyConfiguration { - b.Value = &value - return b -} - -// WithValueFrom sets the ValueFrom field in the declarative configuration to the given value -func (b *EnvVarApplyConfiguration) WithValueFrom(value *EnvVarSourceApplyConfiguration) *EnvVarApplyConfiguration { - b.ValueFrom = value - return b -} - -// 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"` -} - -// WithFieldRef sets the FieldRef field in the declarative configuration to the given value -func (b *EnvVarSourceApplyConfiguration) WithFieldRef(value *ObjectFieldSelectorApplyConfiguration) *EnvVarSourceApplyConfiguration { - b.FieldRef = value - return b -} - -// WithResourceFieldRef sets the ResourceFieldRef field in the declarative configuration to the given value -func (b *EnvVarSourceApplyConfiguration) WithResourceFieldRef(value *ResourceFieldSelectorApplyConfiguration) *EnvVarSourceApplyConfiguration { - b.ResourceFieldRef = value - return b -} - -// WithConfigMapKeyRef sets the ConfigMapKeyRef field in the declarative configuration to the given value -func (b *EnvVarSourceApplyConfiguration) WithConfigMapKeyRef(value *ConfigMapKeySelectorApplyConfiguration) *EnvVarSourceApplyConfiguration { - b.ConfigMapKeyRef = value - return b -} - -// WithSecretKeyRef sets the SecretKeyRef field in the declarative configuration to the given value -func (b *EnvVarSourceApplyConfiguration) WithSecretKeyRef(value *SecretKeySelectorApplyConfiguration) *EnvVarSourceApplyConfiguration { - b.SecretKeyRef = value - return b -} - -// 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"` -} - -// WithTargetContainerName sets the TargetContainerName field in the declarative configuration to the given value -func (b *EphemeralContainerApplyConfiguration) WithTargetContainerName(value string) *EphemeralContainerApplyConfiguration { - b.TargetContainerName = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithName(value string) *EphemeralContainerCommonApplyConfiguration { - b.Name = &value - return b -} - -// WithImage sets the Image field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithImage(value string) *EphemeralContainerCommonApplyConfiguration { - b.Image = &value - return b -} - -// WithCommand sets the Command field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithCommand(value []string) *EphemeralContainerCommonApplyConfiguration { - b.Command = &value - return b -} - -// WithArgs sets the Args field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithArgs(value []string) *EphemeralContainerCommonApplyConfiguration { - b.Args = &value - return b -} - -// WithWorkingDir sets the WorkingDir field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithWorkingDir(value string) *EphemeralContainerCommonApplyConfiguration { - b.WorkingDir = &value - return b -} - -// WithPorts sets the Ports field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithPorts(value []ContainerPortApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.Ports = &value - return b -} - -// WithEnvFrom sets the EnvFrom field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithEnvFrom(value []EnvFromSourceApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.EnvFrom = &value - return b -} - -// WithEnv sets the Env field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithEnv(value []EnvVarApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.Env = &value - return b -} - -// WithResources sets the Resources field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithResources(value *ResourceRequirementsApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.Resources = value - return b -} - -// WithVolumeMounts sets the VolumeMounts field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithVolumeMounts(value []VolumeMountApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.VolumeMounts = &value - return b -} - -// WithVolumeDevices sets the VolumeDevices field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithVolumeDevices(value []VolumeDeviceApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.VolumeDevices = &value - return b -} - -// WithLivenessProbe sets the LivenessProbe field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithLivenessProbe(value *ProbeApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.LivenessProbe = value - return b -} - -// WithReadinessProbe sets the ReadinessProbe field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithReadinessProbe(value *ProbeApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.ReadinessProbe = value - return b -} - -// WithStartupProbe sets the StartupProbe field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithStartupProbe(value *ProbeApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.StartupProbe = value - return b -} - -// WithLifecycle sets the Lifecycle field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithLifecycle(value *LifecycleApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.Lifecycle = value - return b -} - -// WithTerminationMessagePath sets the TerminationMessagePath field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithTerminationMessagePath(value string) *EphemeralContainerCommonApplyConfiguration { - b.TerminationMessagePath = &value - return b -} - -// WithTerminationMessagePolicy sets the TerminationMessagePolicy field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithTerminationMessagePolicy(value corev1.TerminationMessagePolicy) *EphemeralContainerCommonApplyConfiguration { - b.TerminationMessagePolicy = &value - return b -} - -// WithImagePullPolicy sets the ImagePullPolicy field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithImagePullPolicy(value corev1.PullPolicy) *EphemeralContainerCommonApplyConfiguration { - b.ImagePullPolicy = &value - return b -} - -// WithSecurityContext sets the SecurityContext field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithSecurityContext(value *SecurityContextApplyConfiguration) *EphemeralContainerCommonApplyConfiguration { - b.SecurityContext = value - return b -} - -// WithStdin sets the Stdin field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithStdin(value bool) *EphemeralContainerCommonApplyConfiguration { - b.Stdin = &value - return b -} - -// WithStdinOnce sets the StdinOnce field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithStdinOnce(value bool) *EphemeralContainerCommonApplyConfiguration { - b.StdinOnce = &value - return b -} - -// WithTTY sets the TTY field in the declarative configuration to the given value -func (b *EphemeralContainerCommonApplyConfiguration) WithTTY(value bool) *EphemeralContainerCommonApplyConfiguration { - b.TTY = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - EphemeralContainers *[]EphemeralContainerApplyConfiguration `json:"ephemeralContainers,omitempty"` -} - -// WithEphemeralContainers sets the EphemeralContainers field in the declarative configuration to the given value -func (b *EphemeralContainersApplyConfiguration) WithEphemeralContainers(value []EphemeralContainerApplyConfiguration) *EphemeralContainersApplyConfiguration { - b.EphemeralContainers = &value - return b -} - -// EphemeralContainersApplyConfiguration represents a declarative configuration of the EphemeralContainers type for use -// with apply. -func EphemeralContainers() *EphemeralContainersApplyConfiguration { - return &EphemeralContainersApplyConfiguration{} -} - -// EphemeralVolumeSourceApplyConfiguration represents a declarative configuration of the EphemeralVolumeSource type for use -// with apply. -type EphemeralVolumeSourceApplyConfiguration struct { - VolumeClaimTemplate *PersistentVolumeClaimTemplateApplyConfiguration `json:"volumeClaimTemplate,omitempty"` -} - -// WithVolumeClaimTemplate sets the VolumeClaimTemplate field in the declarative configuration to the given value -func (b *EphemeralVolumeSourceApplyConfiguration) WithVolumeClaimTemplate(value *PersistentVolumeClaimTemplateApplyConfiguration) *EphemeralVolumeSourceApplyConfiguration { - b.VolumeClaimTemplate = value - return b -} - -// EphemeralVolumeSourceApplyConfiguration represents a declarative configuration of the EphemeralVolumeSource type for use -// with apply. -func EphemeralVolumeSource() *EphemeralVolumeSourceApplyConfiguration { - return &EphemeralVolumeSourceApplyConfiguration{} -} - -// EventApplyConfiguration represents a declarative configuration of the Event type for use -// with apply. -type EventApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata"` - InvolvedObject *ObjectReferenceApplyConfiguration `json:"involvedObject,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` - Source *EventSourceApplyConfiguration `json:"source,omitempty"` - FirstTimestamp *metav1.Time `json:"firstTimestamp,omitempty"` - LastTimestamp *metav1.Time `json:"lastTimestamp,omitempty"` - Count *int32 `json:"count,omitempty"` - Type *string `json:"type,omitempty"` - EventTime *metav1.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"` -} - -// WithInvolvedObject sets the InvolvedObject field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithInvolvedObject(value *ObjectReferenceApplyConfiguration) *EventApplyConfiguration { - b.InvolvedObject = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithReason(value string) *EventApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithMessage(value string) *EventApplyConfiguration { - b.Message = &value - return b -} - -// WithSource sets the Source field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithSource(value *EventSourceApplyConfiguration) *EventApplyConfiguration { - b.Source = value - return b -} - -// WithFirstTimestamp sets the FirstTimestamp field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithFirstTimestamp(value *metav1.Time) *EventApplyConfiguration { - b.FirstTimestamp = value - return b -} - -// WithLastTimestamp sets the LastTimestamp field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithLastTimestamp(value *metav1.Time) *EventApplyConfiguration { - b.LastTimestamp = value - return b -} - -// WithCount sets the Count field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithCount(value int32) *EventApplyConfiguration { - b.Count = &value - return b -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithType(value string) *EventApplyConfiguration { - b.Type = &value - return b -} - -// WithEventTime sets the EventTime field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithEventTime(value *metav1.MicroTime) *EventApplyConfiguration { - b.EventTime = value - return b -} - -// WithSeries sets the Series field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithSeries(value *EventSeriesApplyConfiguration) *EventApplyConfiguration { - b.Series = value - return b -} - -// WithAction sets the Action field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithAction(value string) *EventApplyConfiguration { - b.Action = &value - return b -} - -// WithRelated sets the Related field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithRelated(value *ObjectReferenceApplyConfiguration) *EventApplyConfiguration { - b.Related = value - return b -} - -// WithReportingController sets the ReportingController field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithReportingController(value string) *EventApplyConfiguration { - b.ReportingController = &value - return b -} - -// WithReportingInstance sets the ReportingInstance field in the declarative configuration to the given value -func (b *EventApplyConfiguration) WithReportingInstance(value string) *EventApplyConfiguration { - b.ReportingInstance = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]EventApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *EventListApplyConfiguration) WithItems(value []EventApplyConfiguration) *EventListApplyConfiguration { - b.Items = &value - return b -} - -// 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 *metav1.MicroTime `json:"lastObservedTime,omitempty"` -} - -// WithCount sets the Count field in the declarative configuration to the given value -func (b *EventSeriesApplyConfiguration) WithCount(value int32) *EventSeriesApplyConfiguration { - b.Count = &value - return b -} - -// WithLastObservedTime sets the LastObservedTime field in the declarative configuration to the given value -func (b *EventSeriesApplyConfiguration) WithLastObservedTime(value *metav1.MicroTime) *EventSeriesApplyConfiguration { - b.LastObservedTime = value - return b -} - -// 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"` -} - -// WithComponent sets the Component field in the declarative configuration to the given value -func (b *EventSourceApplyConfiguration) WithComponent(value string) *EventSourceApplyConfiguration { - b.Component = &value - return b -} - -// WithHost sets the Host field in the declarative configuration to the given value -func (b *EventSourceApplyConfiguration) WithHost(value string) *EventSourceApplyConfiguration { - b.Host = &value - return b -} - -// 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"` -} - -// WithCommand sets the Command field in the declarative configuration to the given value -func (b *ExecActionApplyConfiguration) WithCommand(value []string) *ExecActionApplyConfiguration { - b.Command = &value - return b -} - -// 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"` -} - -// WithTargetWWNs sets the TargetWWNs field in the declarative configuration to the given value -func (b *FCVolumeSourceApplyConfiguration) WithTargetWWNs(value []string) *FCVolumeSourceApplyConfiguration { - b.TargetWWNs = &value - return b -} - -// WithLun sets the Lun field in the declarative configuration to the given value -func (b *FCVolumeSourceApplyConfiguration) WithLun(value *int32) *FCVolumeSourceApplyConfiguration { - b.Lun = value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *FCVolumeSourceApplyConfiguration) WithFSType(value string) *FCVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *FCVolumeSourceApplyConfiguration) WithReadOnly(value bool) *FCVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithWWIDs sets the WWIDs field in the declarative configuration to the given value -func (b *FCVolumeSourceApplyConfiguration) WithWWIDs(value []string) *FCVolumeSourceApplyConfiguration { - b.WWIDs = &value - return b -} - -// 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"` -} - -// WithDriver sets the Driver field in the declarative configuration to the given value -func (b *FlexPersistentVolumeSourceApplyConfiguration) WithDriver(value string) *FlexPersistentVolumeSourceApplyConfiguration { - b.Driver = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *FlexPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *FlexPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *FlexPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *FlexPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *FlexPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *FlexPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithOptions sets the Options field in the declarative configuration to the given value -func (b *FlexPersistentVolumeSourceApplyConfiguration) WithOptions(value map[string]string) *FlexPersistentVolumeSourceApplyConfiguration { - b.Options = &value - return b -} - -// 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"` -} - -// WithDriver sets the Driver field in the declarative configuration to the given value -func (b *FlexVolumeSourceApplyConfiguration) WithDriver(value string) *FlexVolumeSourceApplyConfiguration { - b.Driver = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *FlexVolumeSourceApplyConfiguration) WithFSType(value string) *FlexVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *FlexVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *FlexVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *FlexVolumeSourceApplyConfiguration) WithReadOnly(value bool) *FlexVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithOptions sets the Options field in the declarative configuration to the given value -func (b *FlexVolumeSourceApplyConfiguration) WithOptions(value map[string]string) *FlexVolumeSourceApplyConfiguration { - b.Options = &value - return b -} - -// 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"` -} - -// WithDatasetName sets the DatasetName field in the declarative configuration to the given value -func (b *FlockerVolumeSourceApplyConfiguration) WithDatasetName(value string) *FlockerVolumeSourceApplyConfiguration { - b.DatasetName = &value - return b -} - -// WithDatasetUUID sets the DatasetUUID field in the declarative configuration to the given value -func (b *FlockerVolumeSourceApplyConfiguration) WithDatasetUUID(value string) *FlockerVolumeSourceApplyConfiguration { - b.DatasetUUID = &value - return b -} - -// 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"` -} - -// WithPDName sets the PDName field in the declarative configuration to the given value -func (b *GCEPersistentDiskVolumeSourceApplyConfiguration) WithPDName(value string) *GCEPersistentDiskVolumeSourceApplyConfiguration { - b.PDName = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *GCEPersistentDiskVolumeSourceApplyConfiguration) WithFSType(value string) *GCEPersistentDiskVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithPartition sets the Partition field in the declarative configuration to the given value -func (b *GCEPersistentDiskVolumeSourceApplyConfiguration) WithPartition(value int32) *GCEPersistentDiskVolumeSourceApplyConfiguration { - b.Partition = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *GCEPersistentDiskVolumeSourceApplyConfiguration) WithReadOnly(value bool) *GCEPersistentDiskVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithRepository sets the Repository field in the declarative configuration to the given value -func (b *GitRepoVolumeSourceApplyConfiguration) WithRepository(value string) *GitRepoVolumeSourceApplyConfiguration { - b.Repository = &value - return b -} - -// WithRevision sets the Revision field in the declarative configuration to the given value -func (b *GitRepoVolumeSourceApplyConfiguration) WithRevision(value string) *GitRepoVolumeSourceApplyConfiguration { - b.Revision = &value - return b -} - -// WithDirectory sets the Directory field in the declarative configuration to the given value -func (b *GitRepoVolumeSourceApplyConfiguration) WithDirectory(value string) *GitRepoVolumeSourceApplyConfiguration { - b.Directory = &value - return b -} - -// 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"` -} - -// WithEndpointsName sets the EndpointsName field in the declarative configuration to the given value -func (b *GlusterfsPersistentVolumeSourceApplyConfiguration) WithEndpointsName(value string) *GlusterfsPersistentVolumeSourceApplyConfiguration { - b.EndpointsName = &value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *GlusterfsPersistentVolumeSourceApplyConfiguration) WithPath(value string) *GlusterfsPersistentVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *GlusterfsPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *GlusterfsPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithEndpointsNamespace sets the EndpointsNamespace field in the declarative configuration to the given value -func (b *GlusterfsPersistentVolumeSourceApplyConfiguration) WithEndpointsNamespace(value *string) *GlusterfsPersistentVolumeSourceApplyConfiguration { - b.EndpointsNamespace = value - return b -} - -// 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"` -} - -// WithEndpointsName sets the EndpointsName field in the declarative configuration to the given value -func (b *GlusterfsVolumeSourceApplyConfiguration) WithEndpointsName(value string) *GlusterfsVolumeSourceApplyConfiguration { - b.EndpointsName = &value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *GlusterfsVolumeSourceApplyConfiguration) WithPath(value string) *GlusterfsVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *GlusterfsVolumeSourceApplyConfiguration) WithReadOnly(value bool) *GlusterfsVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *HTTPGetActionApplyConfiguration) WithPath(value string) *HTTPGetActionApplyConfiguration { - b.Path = &value - return b -} - -// WithPort sets the Port field in the declarative configuration to the given value -func (b *HTTPGetActionApplyConfiguration) WithPort(value *intstr.IntOrString) *HTTPGetActionApplyConfiguration { - b.Port = value - return b -} - -// WithHost sets the Host field in the declarative configuration to the given value -func (b *HTTPGetActionApplyConfiguration) WithHost(value string) *HTTPGetActionApplyConfiguration { - b.Host = &value - return b -} - -// WithScheme sets the Scheme field in the declarative configuration to the given value -func (b *HTTPGetActionApplyConfiguration) WithScheme(value corev1.URIScheme) *HTTPGetActionApplyConfiguration { - b.Scheme = &value - return b -} - -// WithHTTPHeaders sets the HTTPHeaders field in the declarative configuration to the given value -func (b *HTTPGetActionApplyConfiguration) WithHTTPHeaders(value []HTTPHeaderApplyConfiguration) *HTTPGetActionApplyConfiguration { - b.HTTPHeaders = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *HTTPHeaderApplyConfiguration) WithName(value string) *HTTPHeaderApplyConfiguration { - b.Name = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -func (b *HTTPHeaderApplyConfiguration) WithValue(value string) *HTTPHeaderApplyConfiguration { - b.Value = &value - return b -} - -// 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"` -} - -// WithExec sets the Exec field in the declarative configuration to the given value -func (b *HandlerApplyConfiguration) WithExec(value *ExecActionApplyConfiguration) *HandlerApplyConfiguration { - b.Exec = value - return b -} - -// WithHTTPGet sets the HTTPGet field in the declarative configuration to the given value -func (b *HandlerApplyConfiguration) WithHTTPGet(value *HTTPGetActionApplyConfiguration) *HandlerApplyConfiguration { - b.HTTPGet = value - return b -} - -// WithTCPSocket sets the TCPSocket field in the declarative configuration to the given value -func (b *HandlerApplyConfiguration) WithTCPSocket(value *TCPSocketActionApplyConfiguration) *HandlerApplyConfiguration { - b.TCPSocket = value - return b -} - -// 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"` -} - -// WithIP sets the IP field in the declarative configuration to the given value -func (b *HostAliasApplyConfiguration) WithIP(value string) *HostAliasApplyConfiguration { - b.IP = &value - return b -} - -// WithHostnames sets the Hostnames field in the declarative configuration to the given value -func (b *HostAliasApplyConfiguration) WithHostnames(value []string) *HostAliasApplyConfiguration { - b.Hostnames = &value - return b -} - -// 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"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *HostPathVolumeSourceApplyConfiguration) WithPath(value string) *HostPathVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *HostPathVolumeSourceApplyConfiguration) WithType(value *corev1.HostPathType) *HostPathVolumeSourceApplyConfiguration { - b.Type = value - return b -} - -// 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"` -} - -// WithTargetPortal sets the TargetPortal field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithTargetPortal(value string) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.TargetPortal = &value - return b -} - -// WithIQN sets the IQN field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithIQN(value string) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.IQN = &value - return b -} - -// WithLun sets the Lun field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithLun(value int32) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.Lun = &value - return b -} - -// WithISCSIInterface sets the ISCSIInterface field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithISCSIInterface(value string) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.ISCSIInterface = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithPortals sets the Portals field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithPortals(value []string) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.Portals = &value - return b -} - -// WithDiscoveryCHAPAuth sets the DiscoveryCHAPAuth field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithDiscoveryCHAPAuth(value bool) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.DiscoveryCHAPAuth = &value - return b -} - -// WithSessionCHAPAuth sets the SessionCHAPAuth field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithSessionCHAPAuth(value bool) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.SessionCHAPAuth = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithInitiatorName sets the InitiatorName field in the declarative configuration to the given value -func (b *ISCSIPersistentVolumeSourceApplyConfiguration) WithInitiatorName(value *string) *ISCSIPersistentVolumeSourceApplyConfiguration { - b.InitiatorName = value - return b -} - -// 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"` -} - -// WithTargetPortal sets the TargetPortal field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithTargetPortal(value string) *ISCSIVolumeSourceApplyConfiguration { - b.TargetPortal = &value - return b -} - -// WithIQN sets the IQN field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithIQN(value string) *ISCSIVolumeSourceApplyConfiguration { - b.IQN = &value - return b -} - -// WithLun sets the Lun field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithLun(value int32) *ISCSIVolumeSourceApplyConfiguration { - b.Lun = &value - return b -} - -// WithISCSIInterface sets the ISCSIInterface field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithISCSIInterface(value string) *ISCSIVolumeSourceApplyConfiguration { - b.ISCSIInterface = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithFSType(value string) *ISCSIVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithReadOnly(value bool) *ISCSIVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithPortals sets the Portals field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithPortals(value []string) *ISCSIVolumeSourceApplyConfiguration { - b.Portals = &value - return b -} - -// WithDiscoveryCHAPAuth sets the DiscoveryCHAPAuth field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithDiscoveryCHAPAuth(value bool) *ISCSIVolumeSourceApplyConfiguration { - b.DiscoveryCHAPAuth = &value - return b -} - -// WithSessionCHAPAuth sets the SessionCHAPAuth field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithSessionCHAPAuth(value bool) *ISCSIVolumeSourceApplyConfiguration { - b.SessionCHAPAuth = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *ISCSIVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithInitiatorName sets the InitiatorName field in the declarative configuration to the given value -func (b *ISCSIVolumeSourceApplyConfiguration) WithInitiatorName(value *string) *ISCSIVolumeSourceApplyConfiguration { - b.InitiatorName = value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *KeyToPathApplyConfiguration) WithKey(value string) *KeyToPathApplyConfiguration { - b.Key = &value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *KeyToPathApplyConfiguration) WithPath(value string) *KeyToPathApplyConfiguration { - b.Path = &value - return b -} - -// WithMode sets the Mode field in the declarative configuration to the given value -func (b *KeyToPathApplyConfiguration) WithMode(value *int32) *KeyToPathApplyConfiguration { - b.Mode = value - return b -} - -// 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"` -} - -// WithPostStart sets the PostStart field in the declarative configuration to the given value -func (b *LifecycleApplyConfiguration) WithPostStart(value *HandlerApplyConfiguration) *LifecycleApplyConfiguration { - b.PostStart = value - return b -} - -// WithPreStop sets the PreStop field in the declarative configuration to the given value -func (b *LifecycleApplyConfiguration) WithPreStop(value *HandlerApplyConfiguration) *LifecycleApplyConfiguration { - b.PreStop = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *LimitRangeSpecApplyConfiguration `json:"spec,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *LimitRangeApplyConfiguration) WithSpec(value *LimitRangeSpecApplyConfiguration) *LimitRangeApplyConfiguration { - b.Spec = value - return b -} - -// 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"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *LimitRangeItemApplyConfiguration) WithType(value corev1.LimitType) *LimitRangeItemApplyConfiguration { - b.Type = &value - return b -} - -// WithMax sets the Max field in the declarative configuration to the given value -func (b *LimitRangeItemApplyConfiguration) WithMax(value corev1.ResourceList) *LimitRangeItemApplyConfiguration { - b.Max = &value - return b -} - -// WithMin sets the Min field in the declarative configuration to the given value -func (b *LimitRangeItemApplyConfiguration) WithMin(value corev1.ResourceList) *LimitRangeItemApplyConfiguration { - b.Min = &value - return b -} - -// WithDefault sets the Default field in the declarative configuration to the given value -func (b *LimitRangeItemApplyConfiguration) WithDefault(value corev1.ResourceList) *LimitRangeItemApplyConfiguration { - b.Default = &value - return b -} - -// WithDefaultRequest sets the DefaultRequest field in the declarative configuration to the given value -func (b *LimitRangeItemApplyConfiguration) WithDefaultRequest(value corev1.ResourceList) *LimitRangeItemApplyConfiguration { - b.DefaultRequest = &value - return b -} - -// WithMaxLimitRequestRatio sets the MaxLimitRequestRatio field in the declarative configuration to the given value -func (b *LimitRangeItemApplyConfiguration) WithMaxLimitRequestRatio(value corev1.ResourceList) *LimitRangeItemApplyConfiguration { - b.MaxLimitRequestRatio = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]LimitRangeApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *LimitRangeListApplyConfiguration) WithItems(value []LimitRangeApplyConfiguration) *LimitRangeListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithLimits sets the Limits field in the declarative configuration to the given value -func (b *LimitRangeSpecApplyConfiguration) WithLimits(value []LimitRangeItemApplyConfiguration) *LimitRangeSpecApplyConfiguration { - b.Limits = &value - return b -} - -// 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"` - Ports *[]PortStatusApplyConfiguration `json:"ports,omitempty"` -} - -// WithIP sets the IP field in the declarative configuration to the given value -func (b *LoadBalancerIngressApplyConfiguration) WithIP(value string) *LoadBalancerIngressApplyConfiguration { - b.IP = &value - return b -} - -// WithHostname sets the Hostname field in the declarative configuration to the given value -func (b *LoadBalancerIngressApplyConfiguration) WithHostname(value string) *LoadBalancerIngressApplyConfiguration { - b.Hostname = &value - return b -} - -// WithPorts sets the Ports field in the declarative configuration to the given value -func (b *LoadBalancerIngressApplyConfiguration) WithPorts(value []PortStatusApplyConfiguration) *LoadBalancerIngressApplyConfiguration { - b.Ports = &value - return b -} - -// 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"` -} - -// WithIngress sets the Ingress field in the declarative configuration to the given value -func (b *LoadBalancerStatusApplyConfiguration) WithIngress(value []LoadBalancerIngressApplyConfiguration) *LoadBalancerStatusApplyConfiguration { - b.Ingress = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *LocalObjectReferenceApplyConfiguration) WithName(value string) *LocalObjectReferenceApplyConfiguration { - b.Name = &value - return b -} - -// 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"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *LocalVolumeSourceApplyConfiguration) WithPath(value string) *LocalVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *LocalVolumeSourceApplyConfiguration) WithFSType(value *string) *LocalVolumeSourceApplyConfiguration { - b.FSType = value - return b -} - -// 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"` -} - -// WithServer sets the Server field in the declarative configuration to the given value -func (b *NFSVolumeSourceApplyConfiguration) WithServer(value string) *NFSVolumeSourceApplyConfiguration { - b.Server = &value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *NFSVolumeSourceApplyConfiguration) WithPath(value string) *NFSVolumeSourceApplyConfiguration { - b.Path = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *NFSVolumeSourceApplyConfiguration) WithReadOnly(value bool) *NFSVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *NamespaceSpecApplyConfiguration `json:"spec,omitempty"` - Status *NamespaceStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *NamespaceApplyConfiguration) WithSpec(value *NamespaceSpecApplyConfiguration) *NamespaceApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *NamespaceApplyConfiguration) WithStatus(value *NamespaceStatusApplyConfiguration) *NamespaceApplyConfiguration { - b.Status = value - return b -} - -// 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 *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *NamespaceConditionApplyConfiguration) WithType(value corev1.NamespaceConditionType) *NamespaceConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *NamespaceConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *NamespaceConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *NamespaceConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *NamespaceConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *NamespaceConditionApplyConfiguration) WithReason(value string) *NamespaceConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *NamespaceConditionApplyConfiguration) WithMessage(value string) *NamespaceConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]NamespaceApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *NamespaceListApplyConfiguration) WithItems(value []NamespaceApplyConfiguration) *NamespaceListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithFinalizers sets the Finalizers field in the declarative configuration to the given value -func (b *NamespaceSpecApplyConfiguration) WithFinalizers(value []corev1.FinalizerName) *NamespaceSpecApplyConfiguration { - b.Finalizers = &value - return b -} - -// 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"` -} - -// WithPhase sets the Phase field in the declarative configuration to the given value -func (b *NamespaceStatusApplyConfiguration) WithPhase(value corev1.NamespacePhase) *NamespaceStatusApplyConfiguration { - b.Phase = &value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *NamespaceStatusApplyConfiguration) WithConditions(value []NamespaceConditionApplyConfiguration) *NamespaceStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *NodeSpecApplyConfiguration `json:"spec,omitempty"` - Status *NodeStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *NodeApplyConfiguration) WithSpec(value *NodeSpecApplyConfiguration) *NodeApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *NodeApplyConfiguration) WithStatus(value *NodeStatusApplyConfiguration) *NodeApplyConfiguration { - b.Status = value - return b -} - -// 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"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *NodeAddressApplyConfiguration) WithType(value corev1.NodeAddressType) *NodeAddressApplyConfiguration { - b.Type = &value - return b -} - -// WithAddress sets the Address field in the declarative configuration to the given value -func (b *NodeAddressApplyConfiguration) WithAddress(value string) *NodeAddressApplyConfiguration { - b.Address = &value - return b -} - -// 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"` -} - -// WithRequiredDuringSchedulingIgnoredDuringExecution sets the RequiredDuringSchedulingIgnoredDuringExecution field in the declarative configuration to the given value -func (b *NodeAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution(value *NodeSelectorApplyConfiguration) *NodeAffinityApplyConfiguration { - b.RequiredDuringSchedulingIgnoredDuringExecution = value - return b -} - -// WithPreferredDuringSchedulingIgnoredDuringExecution sets the PreferredDuringSchedulingIgnoredDuringExecution field in the declarative configuration to the given value -func (b *NodeAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution(value []PreferredSchedulingTermApplyConfiguration) *NodeAffinityApplyConfiguration { - b.PreferredDuringSchedulingIgnoredDuringExecution = &value - return b -} - -// 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 *metav1.Time `json:"lastHeartbeatTime,omitempty"` - LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *NodeConditionApplyConfiguration) WithType(value corev1.NodeConditionType) *NodeConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *NodeConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *NodeConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithLastHeartbeatTime sets the LastHeartbeatTime field in the declarative configuration to the given value -func (b *NodeConditionApplyConfiguration) WithLastHeartbeatTime(value *metav1.Time) *NodeConditionApplyConfiguration { - b.LastHeartbeatTime = value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *NodeConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *NodeConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *NodeConditionApplyConfiguration) WithReason(value string) *NodeConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *NodeConditionApplyConfiguration) WithMessage(value string) *NodeConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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"` -} - -// WithConfigMap sets the ConfigMap field in the declarative configuration to the given value -func (b *NodeConfigSourceApplyConfiguration) WithConfigMap(value *ConfigMapNodeConfigSourceApplyConfiguration) *NodeConfigSourceApplyConfiguration { - b.ConfigMap = value - return b -} - -// 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"` -} - -// WithAssigned sets the Assigned field in the declarative configuration to the given value -func (b *NodeConfigStatusApplyConfiguration) WithAssigned(value *NodeConfigSourceApplyConfiguration) *NodeConfigStatusApplyConfiguration { - b.Assigned = value - return b -} - -// WithActive sets the Active field in the declarative configuration to the given value -func (b *NodeConfigStatusApplyConfiguration) WithActive(value *NodeConfigSourceApplyConfiguration) *NodeConfigStatusApplyConfiguration { - b.Active = value - return b -} - -// WithLastKnownGood sets the LastKnownGood field in the declarative configuration to the given value -func (b *NodeConfigStatusApplyConfiguration) WithLastKnownGood(value *NodeConfigSourceApplyConfiguration) *NodeConfigStatusApplyConfiguration { - b.LastKnownGood = value - return b -} - -// WithError sets the Error field in the declarative configuration to the given value -func (b *NodeConfigStatusApplyConfiguration) WithError(value string) *NodeConfigStatusApplyConfiguration { - b.Error = &value - return b -} - -// 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"` -} - -// WithKubeletEndpoint sets the KubeletEndpoint field in the declarative configuration to the given value -func (b *NodeDaemonEndpointsApplyConfiguration) WithKubeletEndpoint(value *DaemonEndpointApplyConfiguration) *NodeDaemonEndpointsApplyConfiguration { - b.KubeletEndpoint = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]NodeApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *NodeListApplyConfiguration) WithItems(value []NodeApplyConfiguration) *NodeListApplyConfiguration { - b.Items = &value - return b -} - -// 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.TypeMeta `json:",inline"` - Path *string `json:"path,omitempty"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *NodeProxyOptionsApplyConfiguration) WithPath(value string) *NodeProxyOptionsApplyConfiguration { - b.Path = &value - return b -} - -// 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"` -} - -// WithNodeSelectorTerms sets the NodeSelectorTerms field in the declarative configuration to the given value -func (b *NodeSelectorApplyConfiguration) WithNodeSelectorTerms(value []NodeSelectorTermApplyConfiguration) *NodeSelectorApplyConfiguration { - b.NodeSelectorTerms = &value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *NodeSelectorRequirementApplyConfiguration) WithKey(value string) *NodeSelectorRequirementApplyConfiguration { - b.Key = &value - return b -} - -// WithOperator sets the Operator field in the declarative configuration to the given value -func (b *NodeSelectorRequirementApplyConfiguration) WithOperator(value corev1.NodeSelectorOperator) *NodeSelectorRequirementApplyConfiguration { - b.Operator = &value - return b -} - -// WithValues sets the Values field in the declarative configuration to the given value -func (b *NodeSelectorRequirementApplyConfiguration) WithValues(value []string) *NodeSelectorRequirementApplyConfiguration { - b.Values = &value - return b -} - -// 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"` -} - -// WithMatchExpressions sets the MatchExpressions field in the declarative configuration to the given value -func (b *NodeSelectorTermApplyConfiguration) WithMatchExpressions(value []NodeSelectorRequirementApplyConfiguration) *NodeSelectorTermApplyConfiguration { - b.MatchExpressions = &value - return b -} - -// WithMatchFields sets the MatchFields field in the declarative configuration to the given value -func (b *NodeSelectorTermApplyConfiguration) WithMatchFields(value []NodeSelectorRequirementApplyConfiguration) *NodeSelectorTermApplyConfiguration { - b.MatchFields = &value - return b -} - -// 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"` -} - -// WithPodCIDR sets the PodCIDR field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithPodCIDR(value string) *NodeSpecApplyConfiguration { - b.PodCIDR = &value - return b -} - -// WithPodCIDRs sets the PodCIDRs field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithPodCIDRs(value []string) *NodeSpecApplyConfiguration { - b.PodCIDRs = &value - return b -} - -// WithProviderID sets the ProviderID field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithProviderID(value string) *NodeSpecApplyConfiguration { - b.ProviderID = &value - return b -} - -// WithUnschedulable sets the Unschedulable field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithUnschedulable(value bool) *NodeSpecApplyConfiguration { - b.Unschedulable = &value - return b -} - -// WithTaints sets the Taints field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithTaints(value []TaintApplyConfiguration) *NodeSpecApplyConfiguration { - b.Taints = &value - return b -} - -// WithConfigSource sets the ConfigSource field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithConfigSource(value *NodeConfigSourceApplyConfiguration) *NodeSpecApplyConfiguration { - b.ConfigSource = value - return b -} - -// WithDoNotUseExternalID sets the DoNotUseExternalID field in the declarative configuration to the given value -func (b *NodeSpecApplyConfiguration) WithDoNotUseExternalID(value string) *NodeSpecApplyConfiguration { - b.DoNotUseExternalID = &value - return b -} - -// 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"` -} - -// WithCapacity sets the Capacity field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithCapacity(value corev1.ResourceList) *NodeStatusApplyConfiguration { - b.Capacity = &value - return b -} - -// WithAllocatable sets the Allocatable field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithAllocatable(value corev1.ResourceList) *NodeStatusApplyConfiguration { - b.Allocatable = &value - return b -} - -// WithPhase sets the Phase field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithPhase(value corev1.NodePhase) *NodeStatusApplyConfiguration { - b.Phase = &value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithConditions(value []NodeConditionApplyConfiguration) *NodeStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// WithAddresses sets the Addresses field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithAddresses(value []NodeAddressApplyConfiguration) *NodeStatusApplyConfiguration { - b.Addresses = &value - return b -} - -// WithDaemonEndpoints sets the DaemonEndpoints field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithDaemonEndpoints(value *NodeDaemonEndpointsApplyConfiguration) *NodeStatusApplyConfiguration { - b.DaemonEndpoints = value - return b -} - -// WithNodeInfo sets the NodeInfo field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithNodeInfo(value *NodeSystemInfoApplyConfiguration) *NodeStatusApplyConfiguration { - b.NodeInfo = value - return b -} - -// WithImages sets the Images field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithImages(value []ContainerImageApplyConfiguration) *NodeStatusApplyConfiguration { - b.Images = &value - return b -} - -// WithVolumesInUse sets the VolumesInUse field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithVolumesInUse(value []corev1.UniqueVolumeName) *NodeStatusApplyConfiguration { - b.VolumesInUse = &value - return b -} - -// WithVolumesAttached sets the VolumesAttached field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithVolumesAttached(value []AttachedVolumeApplyConfiguration) *NodeStatusApplyConfiguration { - b.VolumesAttached = &value - return b -} - -// WithConfig sets the Config field in the declarative configuration to the given value -func (b *NodeStatusApplyConfiguration) WithConfig(value *NodeConfigStatusApplyConfiguration) *NodeStatusApplyConfiguration { - b.Config = value - return b -} - -// 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"` -} - -// WithMachineID sets the MachineID field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithMachineID(value string) *NodeSystemInfoApplyConfiguration { - b.MachineID = &value - return b -} - -// WithSystemUUID sets the SystemUUID field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithSystemUUID(value string) *NodeSystemInfoApplyConfiguration { - b.SystemUUID = &value - return b -} - -// WithBootID sets the BootID field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithBootID(value string) *NodeSystemInfoApplyConfiguration { - b.BootID = &value - return b -} - -// WithKernelVersion sets the KernelVersion field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithKernelVersion(value string) *NodeSystemInfoApplyConfiguration { - b.KernelVersion = &value - return b -} - -// WithOSImage sets the OSImage field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithOSImage(value string) *NodeSystemInfoApplyConfiguration { - b.OSImage = &value - return b -} - -// WithContainerRuntimeVersion sets the ContainerRuntimeVersion field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithContainerRuntimeVersion(value string) *NodeSystemInfoApplyConfiguration { - b.ContainerRuntimeVersion = &value - return b -} - -// WithKubeletVersion sets the KubeletVersion field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithKubeletVersion(value string) *NodeSystemInfoApplyConfiguration { - b.KubeletVersion = &value - return b -} - -// WithKubeProxyVersion sets the KubeProxyVersion field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithKubeProxyVersion(value string) *NodeSystemInfoApplyConfiguration { - b.KubeProxyVersion = &value - return b -} - -// WithOperatingSystem sets the OperatingSystem field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithOperatingSystem(value string) *NodeSystemInfoApplyConfiguration { - b.OperatingSystem = &value - return b -} - -// WithArchitecture sets the Architecture field in the declarative configuration to the given value -func (b *NodeSystemInfoApplyConfiguration) WithArchitecture(value string) *NodeSystemInfoApplyConfiguration { - b.Architecture = &value - return b -} - -// 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"` -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -func (b *ObjectFieldSelectorApplyConfiguration) WithAPIVersion(value string) *ObjectFieldSelectorApplyConfiguration { - b.APIVersion = &value - return b -} - -// WithFieldPath sets the FieldPath field in the declarative configuration to the given value -func (b *ObjectFieldSelectorApplyConfiguration) WithFieldPath(value string) *ObjectFieldSelectorApplyConfiguration { - b.FieldPath = &value - return b -} - -// 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"` -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithKind(value string) *ObjectReferenceApplyConfiguration { - b.Kind = &value - return b -} - -// WithNamespace sets the Namespace field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithNamespace(value string) *ObjectReferenceApplyConfiguration { - b.Namespace = &value - return b -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithName(value string) *ObjectReferenceApplyConfiguration { - b.Name = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithUID(value types.UID) *ObjectReferenceApplyConfiguration { - b.UID = &value - return b -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithAPIVersion(value string) *ObjectReferenceApplyConfiguration { - b.APIVersion = &value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithResourceVersion(value string) *ObjectReferenceApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// WithFieldPath sets the FieldPath field in the declarative configuration to the given value -func (b *ObjectReferenceApplyConfiguration) WithFieldPath(value string) *ObjectReferenceApplyConfiguration { - b.FieldPath = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *PersistentVolumeSpecApplyConfiguration `json:"spec,omitempty"` - Status *PersistentVolumeStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *PersistentVolumeApplyConfiguration) WithSpec(value *PersistentVolumeSpecApplyConfiguration) *PersistentVolumeApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *PersistentVolumeApplyConfiguration) WithStatus(value *PersistentVolumeStatusApplyConfiguration) *PersistentVolumeApplyConfiguration { - b.Status = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *PersistentVolumeClaimSpecApplyConfiguration `json:"spec,omitempty"` - Status *PersistentVolumeClaimStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *PersistentVolumeClaimApplyConfiguration) WithSpec(value *PersistentVolumeClaimSpecApplyConfiguration) *PersistentVolumeClaimApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *PersistentVolumeClaimApplyConfiguration) WithStatus(value *PersistentVolumeClaimStatusApplyConfiguration) *PersistentVolumeClaimApplyConfiguration { - b.Status = value - return b -} - -// 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 *metav1.Time `json:"lastProbeTime,omitempty"` - LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *PersistentVolumeClaimConditionApplyConfiguration) WithType(value corev1.PersistentVolumeClaimConditionType) *PersistentVolumeClaimConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *PersistentVolumeClaimConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *PersistentVolumeClaimConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithLastProbeTime sets the LastProbeTime field in the declarative configuration to the given value -func (b *PersistentVolumeClaimConditionApplyConfiguration) WithLastProbeTime(value *metav1.Time) *PersistentVolumeClaimConditionApplyConfiguration { - b.LastProbeTime = value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *PersistentVolumeClaimConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *PersistentVolumeClaimConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *PersistentVolumeClaimConditionApplyConfiguration) WithReason(value string) *PersistentVolumeClaimConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *PersistentVolumeClaimConditionApplyConfiguration) WithMessage(value string) *PersistentVolumeClaimConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]PersistentVolumeClaimApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *PersistentVolumeClaimListApplyConfiguration) WithItems(value []PersistentVolumeClaimApplyConfiguration) *PersistentVolumeClaimListApplyConfiguration { - b.Items = &value - return b -} - -// 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 *applyconfigurationsmetav1.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"` -} - -// WithAccessModes sets the AccessModes field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithAccessModes(value []corev1.PersistentVolumeAccessMode) *PersistentVolumeClaimSpecApplyConfiguration { - b.AccessModes = &value - return b -} - -// WithSelector sets the Selector field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithSelector(value *applyconfigurationsmetav1.LabelSelectorApplyConfiguration) *PersistentVolumeClaimSpecApplyConfiguration { - b.Selector = value - return b -} - -// WithResources sets the Resources field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithResources(value *ResourceRequirementsApplyConfiguration) *PersistentVolumeClaimSpecApplyConfiguration { - b.Resources = value - return b -} - -// WithVolumeName sets the VolumeName field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithVolumeName(value string) *PersistentVolumeClaimSpecApplyConfiguration { - b.VolumeName = &value - return b -} - -// WithStorageClassName sets the StorageClassName field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithStorageClassName(value *string) *PersistentVolumeClaimSpecApplyConfiguration { - b.StorageClassName = value - return b -} - -// WithVolumeMode sets the VolumeMode field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithVolumeMode(value *corev1.PersistentVolumeMode) *PersistentVolumeClaimSpecApplyConfiguration { - b.VolumeMode = value - return b -} - -// WithDataSource sets the DataSource field in the declarative configuration to the given value -func (b *PersistentVolumeClaimSpecApplyConfiguration) WithDataSource(value *TypedLocalObjectReferenceApplyConfiguration) *PersistentVolumeClaimSpecApplyConfiguration { - b.DataSource = value - return b -} - -// 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"` -} - -// WithPhase sets the Phase field in the declarative configuration to the given value -func (b *PersistentVolumeClaimStatusApplyConfiguration) WithPhase(value corev1.PersistentVolumeClaimPhase) *PersistentVolumeClaimStatusApplyConfiguration { - b.Phase = &value - return b -} - -// WithAccessModes sets the AccessModes field in the declarative configuration to the given value -func (b *PersistentVolumeClaimStatusApplyConfiguration) WithAccessModes(value []corev1.PersistentVolumeAccessMode) *PersistentVolumeClaimStatusApplyConfiguration { - b.AccessModes = &value - return b -} - -// WithCapacity sets the Capacity field in the declarative configuration to the given value -func (b *PersistentVolumeClaimStatusApplyConfiguration) WithCapacity(value corev1.ResourceList) *PersistentVolumeClaimStatusApplyConfiguration { - b.Capacity = &value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *PersistentVolumeClaimStatusApplyConfiguration) WithConditions(value []PersistentVolumeClaimConditionApplyConfiguration) *PersistentVolumeClaimStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// PersistentVolumeClaimStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimStatus type for use -// with apply. -func PersistentVolumeClaimStatus() *PersistentVolumeClaimStatusApplyConfiguration { - return &PersistentVolumeClaimStatusApplyConfiguration{} -} - -// PersistentVolumeClaimTemplateApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimTemplate type for use -// with apply. -type PersistentVolumeClaimTemplateApplyConfiguration struct { - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *PersistentVolumeClaimSpecApplyConfiguration `json:"spec,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *PersistentVolumeClaimTemplateApplyConfiguration) WithSpec(value *PersistentVolumeClaimSpecApplyConfiguration) *PersistentVolumeClaimTemplateApplyConfiguration { - b.Spec = value - return b -} - -// PersistentVolumeClaimTemplateApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimTemplate type for use -// with apply. -func PersistentVolumeClaimTemplate() *PersistentVolumeClaimTemplateApplyConfiguration { - return &PersistentVolumeClaimTemplateApplyConfiguration{} -} - -// 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"` -} - -// WithClaimName sets the ClaimName field in the declarative configuration to the given value -func (b *PersistentVolumeClaimVolumeSourceApplyConfiguration) WithClaimName(value string) *PersistentVolumeClaimVolumeSourceApplyConfiguration { - b.ClaimName = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *PersistentVolumeClaimVolumeSourceApplyConfiguration) WithReadOnly(value bool) *PersistentVolumeClaimVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]PersistentVolumeApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *PersistentVolumeListApplyConfiguration) WithItems(value []PersistentVolumeApplyConfiguration) *PersistentVolumeListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithGCEPersistentDisk sets the GCEPersistentDisk field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithGCEPersistentDisk(value *GCEPersistentDiskVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.GCEPersistentDisk = value - return b -} - -// WithAWSElasticBlockStore sets the AWSElasticBlockStore field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithAWSElasticBlockStore(value *AWSElasticBlockStoreVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.AWSElasticBlockStore = value - return b -} - -// WithHostPath sets the HostPath field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithHostPath(value *HostPathVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.HostPath = value - return b -} - -// WithGlusterfs sets the Glusterfs field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithGlusterfs(value *GlusterfsPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.Glusterfs = value - return b -} - -// WithNFS sets the NFS field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithNFS(value *NFSVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.NFS = value - return b -} - -// WithRBD sets the RBD field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithRBD(value *RBDPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.RBD = value - return b -} - -// WithISCSI sets the ISCSI field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithISCSI(value *ISCSIPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.ISCSI = value - return b -} - -// WithCinder sets the Cinder field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithCinder(value *CinderPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.Cinder = value - return b -} - -// WithCephFS sets the CephFS field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithCephFS(value *CephFSPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.CephFS = value - return b -} - -// WithFC sets the FC field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithFC(value *FCVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.FC = value - return b -} - -// WithFlocker sets the Flocker field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithFlocker(value *FlockerVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.Flocker = value - return b -} - -// WithFlexVolume sets the FlexVolume field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithFlexVolume(value *FlexPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.FlexVolume = value - return b -} - -// WithAzureFile sets the AzureFile field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithAzureFile(value *AzureFilePersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.AzureFile = value - return b -} - -// WithVsphereVolume sets the VsphereVolume field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithVsphereVolume(value *VsphereVirtualDiskVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.VsphereVolume = value - return b -} - -// WithQuobyte sets the Quobyte field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithQuobyte(value *QuobyteVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.Quobyte = value - return b -} - -// WithAzureDisk sets the AzureDisk field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithAzureDisk(value *AzureDiskVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.AzureDisk = value - return b -} - -// WithPhotonPersistentDisk sets the PhotonPersistentDisk field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithPhotonPersistentDisk(value *PhotonPersistentDiskVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.PhotonPersistentDisk = value - return b -} - -// WithPortworxVolume sets the PortworxVolume field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithPortworxVolume(value *PortworxVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.PortworxVolume = value - return b -} - -// WithScaleIO sets the ScaleIO field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithScaleIO(value *ScaleIOPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.ScaleIO = value - return b -} - -// WithLocal sets the Local field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithLocal(value *LocalVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.Local = value - return b -} - -// WithStorageOS sets the StorageOS field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithStorageOS(value *StorageOSPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.StorageOS = value - return b -} - -// WithCSI sets the CSI field in the declarative configuration to the given value -func (b *PersistentVolumeSourceApplyConfiguration) WithCSI(value *CSIPersistentVolumeSourceApplyConfiguration) *PersistentVolumeSourceApplyConfiguration { - b.CSI = value - return b -} - -// 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"` -} - -// WithCapacity sets the Capacity field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithCapacity(value corev1.ResourceList) *PersistentVolumeSpecApplyConfiguration { - b.Capacity = &value - return b -} - -// WithAccessModes sets the AccessModes field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithAccessModes(value []corev1.PersistentVolumeAccessMode) *PersistentVolumeSpecApplyConfiguration { - b.AccessModes = &value - return b -} - -// WithClaimRef sets the ClaimRef field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithClaimRef(value *ObjectReferenceApplyConfiguration) *PersistentVolumeSpecApplyConfiguration { - b.ClaimRef = value - return b -} - -// WithPersistentVolumeReclaimPolicy sets the PersistentVolumeReclaimPolicy field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithPersistentVolumeReclaimPolicy(value corev1.PersistentVolumeReclaimPolicy) *PersistentVolumeSpecApplyConfiguration { - b.PersistentVolumeReclaimPolicy = &value - return b -} - -// WithStorageClassName sets the StorageClassName field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithStorageClassName(value string) *PersistentVolumeSpecApplyConfiguration { - b.StorageClassName = &value - return b -} - -// WithMountOptions sets the MountOptions field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithMountOptions(value []string) *PersistentVolumeSpecApplyConfiguration { - b.MountOptions = &value - return b -} - -// WithVolumeMode sets the VolumeMode field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithVolumeMode(value *corev1.PersistentVolumeMode) *PersistentVolumeSpecApplyConfiguration { - b.VolumeMode = value - return b -} - -// WithNodeAffinity sets the NodeAffinity field in the declarative configuration to the given value -func (b *PersistentVolumeSpecApplyConfiguration) WithNodeAffinity(value *VolumeNodeAffinityApplyConfiguration) *PersistentVolumeSpecApplyConfiguration { - b.NodeAffinity = value - return b -} - -// 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"` -} - -// WithPhase sets the Phase field in the declarative configuration to the given value -func (b *PersistentVolumeStatusApplyConfiguration) WithPhase(value corev1.PersistentVolumePhase) *PersistentVolumeStatusApplyConfiguration { - b.Phase = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *PersistentVolumeStatusApplyConfiguration) WithMessage(value string) *PersistentVolumeStatusApplyConfiguration { - b.Message = &value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *PersistentVolumeStatusApplyConfiguration) WithReason(value string) *PersistentVolumeStatusApplyConfiguration { - b.Reason = &value - return b -} - -// 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"` -} - -// WithPdID sets the PdID field in the declarative configuration to the given value -func (b *PhotonPersistentDiskVolumeSourceApplyConfiguration) WithPdID(value string) *PhotonPersistentDiskVolumeSourceApplyConfiguration { - b.PdID = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *PhotonPersistentDiskVolumeSourceApplyConfiguration) WithFSType(value string) *PhotonPersistentDiskVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *PodSpecApplyConfiguration `json:"spec,omitempty"` - Status *PodStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *PodApplyConfiguration) WithSpec(value *PodSpecApplyConfiguration) *PodApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *PodApplyConfiguration) WithStatus(value *PodStatusApplyConfiguration) *PodApplyConfiguration { - b.Status = value - return b -} - -// 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"` -} - -// WithRequiredDuringSchedulingIgnoredDuringExecution sets the RequiredDuringSchedulingIgnoredDuringExecution field in the declarative configuration to the given value -func (b *PodAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution(value []PodAffinityTermApplyConfiguration) *PodAffinityApplyConfiguration { - b.RequiredDuringSchedulingIgnoredDuringExecution = &value - return b -} - -// WithPreferredDuringSchedulingIgnoredDuringExecution sets the PreferredDuringSchedulingIgnoredDuringExecution field in the declarative configuration to the given value -func (b *PodAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution(value []WeightedPodAffinityTermApplyConfiguration) *PodAffinityApplyConfiguration { - b.PreferredDuringSchedulingIgnoredDuringExecution = &value - return b -} - -// 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 *applyconfigurationsmetav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` - Namespaces *[]string `json:"namespaces,omitempty"` - TopologyKey *string `json:"topologyKey,omitempty"` - NamespaceSelector *applyconfigurationsmetav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"` -} - -// WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value -func (b *PodAffinityTermApplyConfiguration) WithLabelSelector(value *applyconfigurationsmetav1.LabelSelectorApplyConfiguration) *PodAffinityTermApplyConfiguration { - b.LabelSelector = value - return b -} - -// WithNamespaces sets the Namespaces field in the declarative configuration to the given value -func (b *PodAffinityTermApplyConfiguration) WithNamespaces(value []string) *PodAffinityTermApplyConfiguration { - b.Namespaces = &value - return b -} - -// WithTopologyKey sets the TopologyKey field in the declarative configuration to the given value -func (b *PodAffinityTermApplyConfiguration) WithTopologyKey(value string) *PodAffinityTermApplyConfiguration { - b.TopologyKey = &value - return b -} - -// WithNamespaceSelector sets the NamespaceSelector field in the declarative configuration to the given value -func (b *PodAffinityTermApplyConfiguration) WithNamespaceSelector(value *applyconfigurationsmetav1.LabelSelectorApplyConfiguration) *PodAffinityTermApplyConfiguration { - b.NamespaceSelector = value - return b -} - -// 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"` -} - -// WithRequiredDuringSchedulingIgnoredDuringExecution sets the RequiredDuringSchedulingIgnoredDuringExecution field in the declarative configuration to the given value -func (b *PodAntiAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution(value []PodAffinityTermApplyConfiguration) *PodAntiAffinityApplyConfiguration { - b.RequiredDuringSchedulingIgnoredDuringExecution = &value - return b -} - -// WithPreferredDuringSchedulingIgnoredDuringExecution sets the PreferredDuringSchedulingIgnoredDuringExecution field in the declarative configuration to the given value -func (b *PodAntiAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution(value []WeightedPodAffinityTermApplyConfiguration) *PodAntiAffinityApplyConfiguration { - b.PreferredDuringSchedulingIgnoredDuringExecution = &value - return b -} - -// 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.TypeMeta `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"` -} - -// WithStdin sets the Stdin field in the declarative configuration to the given value -func (b *PodAttachOptionsApplyConfiguration) WithStdin(value bool) *PodAttachOptionsApplyConfiguration { - b.Stdin = &value - return b -} - -// WithStdout sets the Stdout field in the declarative configuration to the given value -func (b *PodAttachOptionsApplyConfiguration) WithStdout(value bool) *PodAttachOptionsApplyConfiguration { - b.Stdout = &value - return b -} - -// WithStderr sets the Stderr field in the declarative configuration to the given value -func (b *PodAttachOptionsApplyConfiguration) WithStderr(value bool) *PodAttachOptionsApplyConfiguration { - b.Stderr = &value - return b -} - -// WithTTY sets the TTY field in the declarative configuration to the given value -func (b *PodAttachOptionsApplyConfiguration) WithTTY(value bool) *PodAttachOptionsApplyConfiguration { - b.TTY = &value - return b -} - -// WithContainer sets the Container field in the declarative configuration to the given value -func (b *PodAttachOptionsApplyConfiguration) WithContainer(value string) *PodAttachOptionsApplyConfiguration { - b.Container = &value - return b -} - -// 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 *metav1.Time `json:"lastProbeTime,omitempty"` - LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *PodConditionApplyConfiguration) WithType(value corev1.PodConditionType) *PodConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *PodConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *PodConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithLastProbeTime sets the LastProbeTime field in the declarative configuration to the given value -func (b *PodConditionApplyConfiguration) WithLastProbeTime(value *metav1.Time) *PodConditionApplyConfiguration { - b.LastProbeTime = value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *PodConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *PodConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *PodConditionApplyConfiguration) WithReason(value string) *PodConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *PodConditionApplyConfiguration) WithMessage(value string) *PodConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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"` -} - -// WithNameservers sets the Nameservers field in the declarative configuration to the given value -func (b *PodDNSConfigApplyConfiguration) WithNameservers(value []string) *PodDNSConfigApplyConfiguration { - b.Nameservers = &value - return b -} - -// WithSearches sets the Searches field in the declarative configuration to the given value -func (b *PodDNSConfigApplyConfiguration) WithSearches(value []string) *PodDNSConfigApplyConfiguration { - b.Searches = &value - return b -} - -// WithOptions sets the Options field in the declarative configuration to the given value -func (b *PodDNSConfigApplyConfiguration) WithOptions(value []PodDNSConfigOptionApplyConfiguration) *PodDNSConfigApplyConfiguration { - b.Options = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *PodDNSConfigOptionApplyConfiguration) WithName(value string) *PodDNSConfigOptionApplyConfiguration { - b.Name = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -func (b *PodDNSConfigOptionApplyConfiguration) WithValue(value *string) *PodDNSConfigOptionApplyConfiguration { - b.Value = value - return b -} - -// 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.TypeMeta `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"` -} - -// WithStdin sets the Stdin field in the declarative configuration to the given value -func (b *PodExecOptionsApplyConfiguration) WithStdin(value bool) *PodExecOptionsApplyConfiguration { - b.Stdin = &value - return b -} - -// WithStdout sets the Stdout field in the declarative configuration to the given value -func (b *PodExecOptionsApplyConfiguration) WithStdout(value bool) *PodExecOptionsApplyConfiguration { - b.Stdout = &value - return b -} - -// WithStderr sets the Stderr field in the declarative configuration to the given value -func (b *PodExecOptionsApplyConfiguration) WithStderr(value bool) *PodExecOptionsApplyConfiguration { - b.Stderr = &value - return b -} - -// WithTTY sets the TTY field in the declarative configuration to the given value -func (b *PodExecOptionsApplyConfiguration) WithTTY(value bool) *PodExecOptionsApplyConfiguration { - b.TTY = &value - return b -} - -// WithContainer sets the Container field in the declarative configuration to the given value -func (b *PodExecOptionsApplyConfiguration) WithContainer(value string) *PodExecOptionsApplyConfiguration { - b.Container = &value - return b -} - -// WithCommand sets the Command field in the declarative configuration to the given value -func (b *PodExecOptionsApplyConfiguration) WithCommand(value []string) *PodExecOptionsApplyConfiguration { - b.Command = &value - return b -} - -// 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"` -} - -// WithIP sets the IP field in the declarative configuration to the given value -func (b *PodIPApplyConfiguration) WithIP(value string) *PodIPApplyConfiguration { - b.IP = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]PodApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *PodListApplyConfiguration) WithItems(value []PodApplyConfiguration) *PodListApplyConfiguration { - b.Items = &value - return b -} - -// 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.TypeMeta `json:",inline"` - Container *string `json:"container,omitempty"` - Follow *bool `json:"follow,omitempty"` - Previous *bool `json:"previous,omitempty"` - SinceSeconds *int64 `json:"sinceSeconds,omitempty"` - SinceTime *metav1.Time `json:"sinceTime,omitempty"` - Timestamps *bool `json:"timestamps,omitempty"` - TailLines *int64 `json:"tailLines,omitempty"` - LimitBytes *int64 `json:"limitBytes,omitempty"` - InsecureSkipTLSVerifyBackend *bool `json:"insecureSkipTLSVerifyBackend,omitempty"` -} - -// WithContainer sets the Container field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithContainer(value string) *PodLogOptionsApplyConfiguration { - b.Container = &value - return b -} - -// WithFollow sets the Follow field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithFollow(value bool) *PodLogOptionsApplyConfiguration { - b.Follow = &value - return b -} - -// WithPrevious sets the Previous field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithPrevious(value bool) *PodLogOptionsApplyConfiguration { - b.Previous = &value - return b -} - -// WithSinceSeconds sets the SinceSeconds field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithSinceSeconds(value *int64) *PodLogOptionsApplyConfiguration { - b.SinceSeconds = value - return b -} - -// WithSinceTime sets the SinceTime field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithSinceTime(value *metav1.Time) *PodLogOptionsApplyConfiguration { - b.SinceTime = value - return b -} - -// WithTimestamps sets the Timestamps field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithTimestamps(value bool) *PodLogOptionsApplyConfiguration { - b.Timestamps = &value - return b -} - -// WithTailLines sets the TailLines field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithTailLines(value *int64) *PodLogOptionsApplyConfiguration { - b.TailLines = value - return b -} - -// WithLimitBytes sets the LimitBytes field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithLimitBytes(value *int64) *PodLogOptionsApplyConfiguration { - b.LimitBytes = value - return b -} - -// WithInsecureSkipTLSVerifyBackend sets the InsecureSkipTLSVerifyBackend field in the declarative configuration to the given value -func (b *PodLogOptionsApplyConfiguration) WithInsecureSkipTLSVerifyBackend(value bool) *PodLogOptionsApplyConfiguration { - b.InsecureSkipTLSVerifyBackend = &value - return b -} - -// 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.TypeMeta `json:",inline"` - Ports *[]int32 `json:"ports,omitempty"` -} - -// WithPorts sets the Ports field in the declarative configuration to the given value -func (b *PodPortForwardOptionsApplyConfiguration) WithPorts(value []int32) *PodPortForwardOptionsApplyConfiguration { - b.Ports = &value - return b -} - -// 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.TypeMeta `json:",inline"` - Path *string `json:"path,omitempty"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *PodProxyOptionsApplyConfiguration) WithPath(value string) *PodProxyOptionsApplyConfiguration { - b.Path = &value - return b -} - -// 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"` -} - -// WithConditionType sets the ConditionType field in the declarative configuration to the given value -func (b *PodReadinessGateApplyConfiguration) WithConditionType(value corev1.PodConditionType) *PodReadinessGateApplyConfiguration { - b.ConditionType = &value - return b -} - -// 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"` - SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"` -} - -// WithSELinuxOptions sets the SELinuxOptions field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithSELinuxOptions(value *SELinuxOptionsApplyConfiguration) *PodSecurityContextApplyConfiguration { - b.SELinuxOptions = value - return b -} - -// WithWindowsOptions sets the WindowsOptions field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithWindowsOptions(value *WindowsSecurityContextOptionsApplyConfiguration) *PodSecurityContextApplyConfiguration { - b.WindowsOptions = value - return b -} - -// WithRunAsUser sets the RunAsUser field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithRunAsUser(value *int64) *PodSecurityContextApplyConfiguration { - b.RunAsUser = value - return b -} - -// WithRunAsGroup sets the RunAsGroup field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithRunAsGroup(value *int64) *PodSecurityContextApplyConfiguration { - b.RunAsGroup = value - return b -} - -// WithRunAsNonRoot sets the RunAsNonRoot field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithRunAsNonRoot(value *bool) *PodSecurityContextApplyConfiguration { - b.RunAsNonRoot = value - return b -} - -// WithSupplementalGroups sets the SupplementalGroups field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithSupplementalGroups(value []int64) *PodSecurityContextApplyConfiguration { - b.SupplementalGroups = &value - return b -} - -// WithFSGroup sets the FSGroup field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithFSGroup(value *int64) *PodSecurityContextApplyConfiguration { - b.FSGroup = value - return b -} - -// WithSysctls sets the Sysctls field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithSysctls(value []SysctlApplyConfiguration) *PodSecurityContextApplyConfiguration { - b.Sysctls = &value - return b -} - -// WithFSGroupChangePolicy sets the FSGroupChangePolicy field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithFSGroupChangePolicy(value *corev1.PodFSGroupChangePolicy) *PodSecurityContextApplyConfiguration { - b.FSGroupChangePolicy = value - return b -} - -// WithSeccompProfile sets the SeccompProfile field in the declarative configuration to the given value -func (b *PodSecurityContextApplyConfiguration) WithSeccompProfile(value *SeccompProfileApplyConfiguration) *PodSecurityContextApplyConfiguration { - b.SeccompProfile = value - return b -} - -// 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 *applyconfigurationsmetav1.OwnerReferenceApplyConfiguration `json:"podController,omitempty"` -} - -// WithPodController sets the PodController field in the declarative configuration to the given value -func (b *PodSignatureApplyConfiguration) WithPodController(value *applyconfigurationsmetav1.OwnerReferenceApplyConfiguration) *PodSignatureApplyConfiguration { - b.PodController = value - return b -} - -// 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"` - SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"` -} - -// WithVolumes sets the Volumes field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithVolumes(value []VolumeApplyConfiguration) *PodSpecApplyConfiguration { - b.Volumes = &value - return b -} - -// WithInitContainers sets the InitContainers field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithInitContainers(value []ContainerApplyConfiguration) *PodSpecApplyConfiguration { - b.InitContainers = &value - return b -} - -// WithContainers sets the Containers field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithContainers(value []ContainerApplyConfiguration) *PodSpecApplyConfiguration { - b.Containers = &value - return b -} - -// WithEphemeralContainers sets the EphemeralContainers field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithEphemeralContainers(value []EphemeralContainerApplyConfiguration) *PodSpecApplyConfiguration { - b.EphemeralContainers = &value - return b -} - -// WithRestartPolicy sets the RestartPolicy field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithRestartPolicy(value corev1.RestartPolicy) *PodSpecApplyConfiguration { - b.RestartPolicy = &value - return b -} - -// WithTerminationGracePeriodSeconds sets the TerminationGracePeriodSeconds field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithTerminationGracePeriodSeconds(value *int64) *PodSpecApplyConfiguration { - b.TerminationGracePeriodSeconds = value - return b -} - -// WithActiveDeadlineSeconds sets the ActiveDeadlineSeconds field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithActiveDeadlineSeconds(value *int64) *PodSpecApplyConfiguration { - b.ActiveDeadlineSeconds = value - return b -} - -// WithDNSPolicy sets the DNSPolicy field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithDNSPolicy(value corev1.DNSPolicy) *PodSpecApplyConfiguration { - b.DNSPolicy = &value - return b -} - -// WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithNodeSelector(value map[string]string) *PodSpecApplyConfiguration { - b.NodeSelector = &value - return b -} - -// WithServiceAccountName sets the ServiceAccountName field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithServiceAccountName(value string) *PodSpecApplyConfiguration { - b.ServiceAccountName = &value - return b -} - -// WithDeprecatedServiceAccount sets the DeprecatedServiceAccount field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithDeprecatedServiceAccount(value string) *PodSpecApplyConfiguration { - b.DeprecatedServiceAccount = &value - return b -} - -// WithAutomountServiceAccountToken sets the AutomountServiceAccountToken field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithAutomountServiceAccountToken(value *bool) *PodSpecApplyConfiguration { - b.AutomountServiceAccountToken = value - return b -} - -// WithNodeName sets the NodeName field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithNodeName(value string) *PodSpecApplyConfiguration { - b.NodeName = &value - return b -} - -// WithHostNetwork sets the HostNetwork field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithHostNetwork(value bool) *PodSpecApplyConfiguration { - b.HostNetwork = &value - return b -} - -// WithHostPID sets the HostPID field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithHostPID(value bool) *PodSpecApplyConfiguration { - b.HostPID = &value - return b -} - -// WithHostIPC sets the HostIPC field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithHostIPC(value bool) *PodSpecApplyConfiguration { - b.HostIPC = &value - return b -} - -// WithShareProcessNamespace sets the ShareProcessNamespace field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithShareProcessNamespace(value *bool) *PodSpecApplyConfiguration { - b.ShareProcessNamespace = value - return b -} - -// WithSecurityContext sets the SecurityContext field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithSecurityContext(value *PodSecurityContextApplyConfiguration) *PodSpecApplyConfiguration { - b.SecurityContext = value - return b -} - -// WithImagePullSecrets sets the ImagePullSecrets field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithImagePullSecrets(value []LocalObjectReferenceApplyConfiguration) *PodSpecApplyConfiguration { - b.ImagePullSecrets = &value - return b -} - -// WithHostname sets the Hostname field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithHostname(value string) *PodSpecApplyConfiguration { - b.Hostname = &value - return b -} - -// WithSubdomain sets the Subdomain field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithSubdomain(value string) *PodSpecApplyConfiguration { - b.Subdomain = &value - return b -} - -// WithAffinity sets the Affinity field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithAffinity(value *AffinityApplyConfiguration) *PodSpecApplyConfiguration { - b.Affinity = value - return b -} - -// WithSchedulerName sets the SchedulerName field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithSchedulerName(value string) *PodSpecApplyConfiguration { - b.SchedulerName = &value - return b -} - -// WithTolerations sets the Tolerations field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithTolerations(value []TolerationApplyConfiguration) *PodSpecApplyConfiguration { - b.Tolerations = &value - return b -} - -// WithHostAliases sets the HostAliases field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithHostAliases(value []HostAliasApplyConfiguration) *PodSpecApplyConfiguration { - b.HostAliases = &value - return b -} - -// WithPriorityClassName sets the PriorityClassName field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithPriorityClassName(value string) *PodSpecApplyConfiguration { - b.PriorityClassName = &value - return b -} - -// WithPriority sets the Priority field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithPriority(value *int32) *PodSpecApplyConfiguration { - b.Priority = value - return b -} - -// WithDNSConfig sets the DNSConfig field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithDNSConfig(value *PodDNSConfigApplyConfiguration) *PodSpecApplyConfiguration { - b.DNSConfig = value - return b -} - -// WithReadinessGates sets the ReadinessGates field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithReadinessGates(value []PodReadinessGateApplyConfiguration) *PodSpecApplyConfiguration { - b.ReadinessGates = &value - return b -} - -// WithRuntimeClassName sets the RuntimeClassName field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithRuntimeClassName(value *string) *PodSpecApplyConfiguration { - b.RuntimeClassName = value - return b -} - -// WithEnableServiceLinks sets the EnableServiceLinks field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithEnableServiceLinks(value *bool) *PodSpecApplyConfiguration { - b.EnableServiceLinks = value - return b -} - -// WithPreemptionPolicy sets the PreemptionPolicy field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithPreemptionPolicy(value *corev1.PreemptionPolicy) *PodSpecApplyConfiguration { - b.PreemptionPolicy = value - return b -} - -// WithOverhead sets the Overhead field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithOverhead(value corev1.ResourceList) *PodSpecApplyConfiguration { - b.Overhead = &value - return b -} - -// WithTopologySpreadConstraints sets the TopologySpreadConstraints field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithTopologySpreadConstraints(value []TopologySpreadConstraintApplyConfiguration) *PodSpecApplyConfiguration { - b.TopologySpreadConstraints = &value - return b -} - -// WithSetHostnameAsFQDN sets the SetHostnameAsFQDN field in the declarative configuration to the given value -func (b *PodSpecApplyConfiguration) WithSetHostnameAsFQDN(value *bool) *PodSpecApplyConfiguration { - b.SetHostnameAsFQDN = value - return b -} - -// 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 *metav1.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"` -} - -// WithPhase sets the Phase field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithPhase(value corev1.PodPhase) *PodStatusApplyConfiguration { - b.Phase = &value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithConditions(value []PodConditionApplyConfiguration) *PodStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithMessage(value string) *PodStatusApplyConfiguration { - b.Message = &value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithReason(value string) *PodStatusApplyConfiguration { - b.Reason = &value - return b -} - -// WithNominatedNodeName sets the NominatedNodeName field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithNominatedNodeName(value string) *PodStatusApplyConfiguration { - b.NominatedNodeName = &value - return b -} - -// WithHostIP sets the HostIP field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithHostIP(value string) *PodStatusApplyConfiguration { - b.HostIP = &value - return b -} - -// WithPodIP sets the PodIP field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithPodIP(value string) *PodStatusApplyConfiguration { - b.PodIP = &value - return b -} - -// WithPodIPs sets the PodIPs field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithPodIPs(value []PodIPApplyConfiguration) *PodStatusApplyConfiguration { - b.PodIPs = &value - return b -} - -// WithStartTime sets the StartTime field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithStartTime(value *metav1.Time) *PodStatusApplyConfiguration { - b.StartTime = value - return b -} - -// WithInitContainerStatuses sets the InitContainerStatuses field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithInitContainerStatuses(value []ContainerStatusApplyConfiguration) *PodStatusApplyConfiguration { - b.InitContainerStatuses = &value - return b -} - -// WithContainerStatuses sets the ContainerStatuses field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithContainerStatuses(value []ContainerStatusApplyConfiguration) *PodStatusApplyConfiguration { - b.ContainerStatuses = &value - return b -} - -// WithQOSClass sets the QOSClass field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithQOSClass(value corev1.PodQOSClass) *PodStatusApplyConfiguration { - b.QOSClass = &value - return b -} - -// WithEphemeralContainerStatuses sets the EphemeralContainerStatuses field in the declarative configuration to the given value -func (b *PodStatusApplyConfiguration) WithEphemeralContainerStatuses(value []ContainerStatusApplyConfiguration) *PodStatusApplyConfiguration { - b.EphemeralContainerStatuses = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Status *PodStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *PodStatusResultApplyConfiguration) WithStatus(value *PodStatusApplyConfiguration) *PodStatusResultApplyConfiguration { - b.Status = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"` -} - -// WithTemplate sets the Template field in the declarative configuration to the given value -func (b *PodTemplateApplyConfiguration) WithTemplate(value *PodTemplateSpecApplyConfiguration) *PodTemplateApplyConfiguration { - b.Template = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]PodTemplateApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *PodTemplateListApplyConfiguration) WithItems(value []PodTemplateApplyConfiguration) *PodTemplateListApplyConfiguration { - b.Items = &value - return b -} - -// 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.ObjectMeta `json:"metadata,omitempty"` - Spec *PodSpecApplyConfiguration `json:"spec,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *PodTemplateSpecApplyConfiguration) WithSpec(value *PodSpecApplyConfiguration) *PodTemplateSpecApplyConfiguration { - b.Spec = value - return b -} - -// PodTemplateSpecApplyConfiguration represents a declarative configuration of the PodTemplateSpec type for use -// with apply. -func PodTemplateSpec() *PodTemplateSpecApplyConfiguration { - return &PodTemplateSpecApplyConfiguration{} -} - -// PortStatusApplyConfiguration represents a declarative configuration of the PortStatus type for use -// with apply. -type PortStatusApplyConfiguration struct { - Port *int32 `json:"port,omitempty"` - Protocol *corev1.Protocol `json:"protocol,omitempty"` - Error *string `json:"error,omitempty"` -} - -// WithPort sets the Port field in the declarative configuration to the given value -func (b *PortStatusApplyConfiguration) WithPort(value int32) *PortStatusApplyConfiguration { - b.Port = &value - return b -} - -// WithProtocol sets the Protocol field in the declarative configuration to the given value -func (b *PortStatusApplyConfiguration) WithProtocol(value corev1.Protocol) *PortStatusApplyConfiguration { - b.Protocol = &value - return b -} - -// WithError sets the Error field in the declarative configuration to the given value -func (b *PortStatusApplyConfiguration) WithError(value *string) *PortStatusApplyConfiguration { - b.Error = value - return b -} - -// PortStatusApplyConfiguration represents a declarative configuration of the PortStatus type for use -// with apply. -func PortStatus() *PortStatusApplyConfiguration { - return &PortStatusApplyConfiguration{} -} - -// 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"` -} - -// WithVolumeID sets the VolumeID field in the declarative configuration to the given value -func (b *PortworxVolumeSourceApplyConfiguration) WithVolumeID(value string) *PortworxVolumeSourceApplyConfiguration { - b.VolumeID = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *PortworxVolumeSourceApplyConfiguration) WithFSType(value string) *PortworxVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *PortworxVolumeSourceApplyConfiguration) WithReadOnly(value bool) *PortworxVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *PreconditionsApplyConfiguration) WithUID(value *types.UID) *PreconditionsApplyConfiguration { - b.UID = value - return b -} - -// 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 *metav1.Time `json:"evictionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithPodSignature sets the PodSignature field in the declarative configuration to the given value -func (b *PreferAvoidPodsEntryApplyConfiguration) WithPodSignature(value *PodSignatureApplyConfiguration) *PreferAvoidPodsEntryApplyConfiguration { - b.PodSignature = value - return b -} - -// WithEvictionTime sets the EvictionTime field in the declarative configuration to the given value -func (b *PreferAvoidPodsEntryApplyConfiguration) WithEvictionTime(value *metav1.Time) *PreferAvoidPodsEntryApplyConfiguration { - b.EvictionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *PreferAvoidPodsEntryApplyConfiguration) WithReason(value string) *PreferAvoidPodsEntryApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *PreferAvoidPodsEntryApplyConfiguration) WithMessage(value string) *PreferAvoidPodsEntryApplyConfiguration { - b.Message = &value - return b -} - -// 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"` -} - -// WithWeight sets the Weight field in the declarative configuration to the given value -func (b *PreferredSchedulingTermApplyConfiguration) WithWeight(value int32) *PreferredSchedulingTermApplyConfiguration { - b.Weight = &value - return b -} - -// WithPreference sets the Preference field in the declarative configuration to the given value -func (b *PreferredSchedulingTermApplyConfiguration) WithPreference(value *NodeSelectorTermApplyConfiguration) *PreferredSchedulingTermApplyConfiguration { - b.Preference = value - return b -} - -// 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"` - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` -} - -// WithInitialDelaySeconds sets the InitialDelaySeconds field in the declarative configuration to the given value -func (b *ProbeApplyConfiguration) WithInitialDelaySeconds(value int32) *ProbeApplyConfiguration { - b.InitialDelaySeconds = &value - return b -} - -// WithTimeoutSeconds sets the TimeoutSeconds field in the declarative configuration to the given value -func (b *ProbeApplyConfiguration) WithTimeoutSeconds(value int32) *ProbeApplyConfiguration { - b.TimeoutSeconds = &value - return b -} - -// WithPeriodSeconds sets the PeriodSeconds field in the declarative configuration to the given value -func (b *ProbeApplyConfiguration) WithPeriodSeconds(value int32) *ProbeApplyConfiguration { - b.PeriodSeconds = &value - return b -} - -// WithSuccessThreshold sets the SuccessThreshold field in the declarative configuration to the given value -func (b *ProbeApplyConfiguration) WithSuccessThreshold(value int32) *ProbeApplyConfiguration { - b.SuccessThreshold = &value - return b -} - -// WithFailureThreshold sets the FailureThreshold field in the declarative configuration to the given value -func (b *ProbeApplyConfiguration) WithFailureThreshold(value int32) *ProbeApplyConfiguration { - b.FailureThreshold = &value - return b -} - -// WithTerminationGracePeriodSeconds sets the TerminationGracePeriodSeconds field in the declarative configuration to the given value -func (b *ProbeApplyConfiguration) WithTerminationGracePeriodSeconds(value *int64) *ProbeApplyConfiguration { - b.TerminationGracePeriodSeconds = value - return b -} - -// 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"` -} - -// WithSources sets the Sources field in the declarative configuration to the given value -func (b *ProjectedVolumeSourceApplyConfiguration) WithSources(value []VolumeProjectionApplyConfiguration) *ProjectedVolumeSourceApplyConfiguration { - b.Sources = &value - return b -} - -// WithDefaultMode sets the DefaultMode field in the declarative configuration to the given value -func (b *ProjectedVolumeSourceApplyConfiguration) WithDefaultMode(value *int32) *ProjectedVolumeSourceApplyConfiguration { - b.DefaultMode = value - return b -} - -// 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"` -} - -// WithRegistry sets the Registry field in the declarative configuration to the given value -func (b *QuobyteVolumeSourceApplyConfiguration) WithRegistry(value string) *QuobyteVolumeSourceApplyConfiguration { - b.Registry = &value - return b -} - -// WithVolume sets the Volume field in the declarative configuration to the given value -func (b *QuobyteVolumeSourceApplyConfiguration) WithVolume(value string) *QuobyteVolumeSourceApplyConfiguration { - b.Volume = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *QuobyteVolumeSourceApplyConfiguration) WithReadOnly(value bool) *QuobyteVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithUser sets the User field in the declarative configuration to the given value -func (b *QuobyteVolumeSourceApplyConfiguration) WithUser(value string) *QuobyteVolumeSourceApplyConfiguration { - b.User = &value - return b -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *QuobyteVolumeSourceApplyConfiguration) WithGroup(value string) *QuobyteVolumeSourceApplyConfiguration { - b.Group = &value - return b -} - -// WithTenant sets the Tenant field in the declarative configuration to the given value -func (b *QuobyteVolumeSourceApplyConfiguration) WithTenant(value string) *QuobyteVolumeSourceApplyConfiguration { - b.Tenant = &value - return b -} - -// 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"` -} - -// WithCephMonitors sets the CephMonitors field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithCephMonitors(value []string) *RBDPersistentVolumeSourceApplyConfiguration { - b.CephMonitors = &value - return b -} - -// WithRBDImage sets the RBDImage field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithRBDImage(value string) *RBDPersistentVolumeSourceApplyConfiguration { - b.RBDImage = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *RBDPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithRBDPool sets the RBDPool field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithRBDPool(value string) *RBDPersistentVolumeSourceApplyConfiguration { - b.RBDPool = &value - return b -} - -// WithRadosUser sets the RadosUser field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithRadosUser(value string) *RBDPersistentVolumeSourceApplyConfiguration { - b.RadosUser = &value - return b -} - -// WithKeyring sets the Keyring field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithKeyring(value string) *RBDPersistentVolumeSourceApplyConfiguration { - b.Keyring = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *RBDPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *RBDPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *RBDPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithCephMonitors sets the CephMonitors field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithCephMonitors(value []string) *RBDVolumeSourceApplyConfiguration { - b.CephMonitors = &value - return b -} - -// WithRBDImage sets the RBDImage field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithRBDImage(value string) *RBDVolumeSourceApplyConfiguration { - b.RBDImage = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithFSType(value string) *RBDVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithRBDPool sets the RBDPool field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithRBDPool(value string) *RBDVolumeSourceApplyConfiguration { - b.RBDPool = &value - return b -} - -// WithRadosUser sets the RadosUser field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithRadosUser(value string) *RBDVolumeSourceApplyConfiguration { - b.RadosUser = &value - return b -} - -// WithKeyring sets the Keyring field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithKeyring(value string) *RBDVolumeSourceApplyConfiguration { - b.Keyring = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *RBDVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *RBDVolumeSourceApplyConfiguration) WithReadOnly(value bool) *RBDVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Range *string `json:"range,omitempty"` - Data *[]byte `json:"data,omitempty"` -} - -// WithRange sets the Range field in the declarative configuration to the given value -func (b *RangeAllocationApplyConfiguration) WithRange(value string) *RangeAllocationApplyConfiguration { - b.Range = &value - return b -} - -// WithData sets the Data field in the declarative configuration to the given value -func (b *RangeAllocationApplyConfiguration) WithData(value []byte) *RangeAllocationApplyConfiguration { - b.Data = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *ReplicationControllerSpecApplyConfiguration `json:"spec,omitempty"` - Status *ReplicationControllerStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *ReplicationControllerApplyConfiguration) WithSpec(value *ReplicationControllerSpecApplyConfiguration) *ReplicationControllerApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *ReplicationControllerApplyConfiguration) WithStatus(value *ReplicationControllerStatusApplyConfiguration) *ReplicationControllerApplyConfiguration { - b.Status = value - return b -} - -// 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 *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *ReplicationControllerConditionApplyConfiguration) WithType(value corev1.ReplicationControllerConditionType) *ReplicationControllerConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *ReplicationControllerConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *ReplicationControllerConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *ReplicationControllerConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *ReplicationControllerConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *ReplicationControllerConditionApplyConfiguration) WithReason(value string) *ReplicationControllerConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *ReplicationControllerConditionApplyConfiguration) WithMessage(value string) *ReplicationControllerConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]ReplicationControllerApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ReplicationControllerListApplyConfiguration) WithItems(value []ReplicationControllerApplyConfiguration) *ReplicationControllerListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithReplicas sets the Replicas field in the declarative configuration to the given value -func (b *ReplicationControllerSpecApplyConfiguration) WithReplicas(value *int32) *ReplicationControllerSpecApplyConfiguration { - b.Replicas = value - return b -} - -// WithMinReadySeconds sets the MinReadySeconds field in the declarative configuration to the given value -func (b *ReplicationControllerSpecApplyConfiguration) WithMinReadySeconds(value int32) *ReplicationControllerSpecApplyConfiguration { - b.MinReadySeconds = &value - return b -} - -// WithSelector sets the Selector field in the declarative configuration to the given value -func (b *ReplicationControllerSpecApplyConfiguration) WithSelector(value map[string]string) *ReplicationControllerSpecApplyConfiguration { - b.Selector = &value - return b -} - -// WithTemplate sets the Template field in the declarative configuration to the given value -func (b *ReplicationControllerSpecApplyConfiguration) WithTemplate(value *PodTemplateSpecApplyConfiguration) *ReplicationControllerSpecApplyConfiguration { - b.Template = value - return b -} - -// 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"` -} - -// WithReplicas sets the Replicas field in the declarative configuration to the given value -func (b *ReplicationControllerStatusApplyConfiguration) WithReplicas(value int32) *ReplicationControllerStatusApplyConfiguration { - b.Replicas = &value - return b -} - -// WithFullyLabeledReplicas sets the FullyLabeledReplicas field in the declarative configuration to the given value -func (b *ReplicationControllerStatusApplyConfiguration) WithFullyLabeledReplicas(value int32) *ReplicationControllerStatusApplyConfiguration { - b.FullyLabeledReplicas = &value - return b -} - -// WithReadyReplicas sets the ReadyReplicas field in the declarative configuration to the given value -func (b *ReplicationControllerStatusApplyConfiguration) WithReadyReplicas(value int32) *ReplicationControllerStatusApplyConfiguration { - b.ReadyReplicas = &value - return b -} - -// WithAvailableReplicas sets the AvailableReplicas field in the declarative configuration to the given value -func (b *ReplicationControllerStatusApplyConfiguration) WithAvailableReplicas(value int32) *ReplicationControllerStatusApplyConfiguration { - b.AvailableReplicas = &value - return b -} - -// WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value -func (b *ReplicationControllerStatusApplyConfiguration) WithObservedGeneration(value int64) *ReplicationControllerStatusApplyConfiguration { - b.ObservedGeneration = &value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *ReplicationControllerStatusApplyConfiguration) WithConditions(value []ReplicationControllerConditionApplyConfiguration) *ReplicationControllerStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// 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"` -} - -// WithContainerName sets the ContainerName field in the declarative configuration to the given value -func (b *ResourceFieldSelectorApplyConfiguration) WithContainerName(value string) *ResourceFieldSelectorApplyConfiguration { - b.ContainerName = &value - return b -} - -// WithResource sets the Resource field in the declarative configuration to the given value -func (b *ResourceFieldSelectorApplyConfiguration) WithResource(value string) *ResourceFieldSelectorApplyConfiguration { - b.Resource = &value - return b -} - -// WithDivisor sets the Divisor field in the declarative configuration to the given value -func (b *ResourceFieldSelectorApplyConfiguration) WithDivisor(value *resource.Quantity) *ResourceFieldSelectorApplyConfiguration { - b.Divisor = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *ResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"` - Status *ResourceQuotaStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *ResourceQuotaApplyConfiguration) WithSpec(value *ResourceQuotaSpecApplyConfiguration) *ResourceQuotaApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *ResourceQuotaApplyConfiguration) WithStatus(value *ResourceQuotaStatusApplyConfiguration) *ResourceQuotaApplyConfiguration { - b.Status = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]ResourceQuotaApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ResourceQuotaListApplyConfiguration) WithItems(value []ResourceQuotaApplyConfiguration) *ResourceQuotaListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithHard sets the Hard field in the declarative configuration to the given value -func (b *ResourceQuotaSpecApplyConfiguration) WithHard(value corev1.ResourceList) *ResourceQuotaSpecApplyConfiguration { - b.Hard = &value - return b -} - -// WithScopes sets the Scopes field in the declarative configuration to the given value -func (b *ResourceQuotaSpecApplyConfiguration) WithScopes(value []corev1.ResourceQuotaScope) *ResourceQuotaSpecApplyConfiguration { - b.Scopes = &value - return b -} - -// WithScopeSelector sets the ScopeSelector field in the declarative configuration to the given value -func (b *ResourceQuotaSpecApplyConfiguration) WithScopeSelector(value *ScopeSelectorApplyConfiguration) *ResourceQuotaSpecApplyConfiguration { - b.ScopeSelector = value - return b -} - -// 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"` -} - -// WithHard sets the Hard field in the declarative configuration to the given value -func (b *ResourceQuotaStatusApplyConfiguration) WithHard(value corev1.ResourceList) *ResourceQuotaStatusApplyConfiguration { - b.Hard = &value - return b -} - -// WithUsed sets the Used field in the declarative configuration to the given value -func (b *ResourceQuotaStatusApplyConfiguration) WithUsed(value corev1.ResourceList) *ResourceQuotaStatusApplyConfiguration { - b.Used = &value - return b -} - -// 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"` -} - -// WithLimits sets the Limits field in the declarative configuration to the given value -func (b *ResourceRequirementsApplyConfiguration) WithLimits(value corev1.ResourceList) *ResourceRequirementsApplyConfiguration { - b.Limits = &value - return b -} - -// WithRequests sets the Requests field in the declarative configuration to the given value -func (b *ResourceRequirementsApplyConfiguration) WithRequests(value corev1.ResourceList) *ResourceRequirementsApplyConfiguration { - b.Requests = &value - return b -} - -// 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"` -} - -// WithUser sets the User field in the declarative configuration to the given value -func (b *SELinuxOptionsApplyConfiguration) WithUser(value string) *SELinuxOptionsApplyConfiguration { - b.User = &value - return b -} - -// WithRole sets the Role field in the declarative configuration to the given value -func (b *SELinuxOptionsApplyConfiguration) WithRole(value string) *SELinuxOptionsApplyConfiguration { - b.Role = &value - return b -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *SELinuxOptionsApplyConfiguration) WithType(value string) *SELinuxOptionsApplyConfiguration { - b.Type = &value - return b -} - -// WithLevel sets the Level field in the declarative configuration to the given value -func (b *SELinuxOptionsApplyConfiguration) WithLevel(value string) *SELinuxOptionsApplyConfiguration { - b.Level = &value - return b -} - -// 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"` -} - -// WithGateway sets the Gateway field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithGateway(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.Gateway = &value - return b -} - -// WithSystem sets the System field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithSystem(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.System = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *SecretReferenceApplyConfiguration) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithSSLEnabled sets the SSLEnabled field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithSSLEnabled(value bool) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.SSLEnabled = &value - return b -} - -// WithProtectionDomain sets the ProtectionDomain field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithProtectionDomain(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.ProtectionDomain = &value - return b -} - -// WithStoragePool sets the StoragePool field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithStoragePool(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.StoragePool = &value - return b -} - -// WithStorageMode sets the StorageMode field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithStorageMode(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.StorageMode = &value - return b -} - -// WithVolumeName sets the VolumeName field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithVolumeName(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.VolumeName = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *ScaleIOPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *ScaleIOPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithGateway sets the Gateway field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithGateway(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.Gateway = &value - return b -} - -// WithSystem sets the System field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithSystem(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.System = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *ScaleIOVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// WithSSLEnabled sets the SSLEnabled field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithSSLEnabled(value bool) *ScaleIOVolumeSourceApplyConfiguration { - b.SSLEnabled = &value - return b -} - -// WithProtectionDomain sets the ProtectionDomain field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithProtectionDomain(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.ProtectionDomain = &value - return b -} - -// WithStoragePool sets the StoragePool field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithStoragePool(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.StoragePool = &value - return b -} - -// WithStorageMode sets the StorageMode field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithStorageMode(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.StorageMode = &value - return b -} - -// WithVolumeName sets the VolumeName field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithVolumeName(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.VolumeName = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithFSType(value string) *ScaleIOVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *ScaleIOVolumeSourceApplyConfiguration) WithReadOnly(value bool) *ScaleIOVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// 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"` -} - -// WithMatchExpressions sets the MatchExpressions field in the declarative configuration to the given value -func (b *ScopeSelectorApplyConfiguration) WithMatchExpressions(value []ScopedResourceSelectorRequirementApplyConfiguration) *ScopeSelectorApplyConfiguration { - b.MatchExpressions = &value - return b -} - -// 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"` -} - -// WithScopeName sets the ScopeName field in the declarative configuration to the given value -func (b *ScopedResourceSelectorRequirementApplyConfiguration) WithScopeName(value corev1.ResourceQuotaScope) *ScopedResourceSelectorRequirementApplyConfiguration { - b.ScopeName = &value - return b -} - -// WithOperator sets the Operator field in the declarative configuration to the given value -func (b *ScopedResourceSelectorRequirementApplyConfiguration) WithOperator(value corev1.ScopeSelectorOperator) *ScopedResourceSelectorRequirementApplyConfiguration { - b.Operator = &value - return b -} - -// WithValues sets the Values field in the declarative configuration to the given value -func (b *ScopedResourceSelectorRequirementApplyConfiguration) WithValues(value []string) *ScopedResourceSelectorRequirementApplyConfiguration { - b.Values = &value - return b -} - -// ScopedResourceSelectorRequirementApplyConfiguration represents a declarative configuration of the ScopedResourceSelectorRequirement type for use -// with apply. -func ScopedResourceSelectorRequirement() *ScopedResourceSelectorRequirementApplyConfiguration { - return &ScopedResourceSelectorRequirementApplyConfiguration{} -} - -// SeccompProfileApplyConfiguration represents a declarative configuration of the SeccompProfile type for use -// with apply. -type SeccompProfileApplyConfiguration struct { - Type *corev1.SeccompProfileType `json:"type,omitempty"` - LocalhostProfile *string `json:"localhostProfile,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *SeccompProfileApplyConfiguration) WithType(value corev1.SeccompProfileType) *SeccompProfileApplyConfiguration { - b.Type = &value - return b -} - -// WithLocalhostProfile sets the LocalhostProfile field in the declarative configuration to the given value -func (b *SeccompProfileApplyConfiguration) WithLocalhostProfile(value *string) *SeccompProfileApplyConfiguration { - b.LocalhostProfile = value - return b -} - -// SeccompProfileApplyConfiguration represents a declarative configuration of the SeccompProfile type for use -// with apply. -func SeccompProfile() *SeccompProfileApplyConfiguration { - return &SeccompProfileApplyConfiguration{} -} - -// SecretApplyConfiguration represents a declarative configuration of the Secret type for use -// with apply. -type SecretApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `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"` -} - -// WithImmutable sets the Immutable field in the declarative configuration to the given value -func (b *SecretApplyConfiguration) WithImmutable(value *bool) *SecretApplyConfiguration { - b.Immutable = value - return b -} - -// WithData sets the Data field in the declarative configuration to the given value -func (b *SecretApplyConfiguration) WithData(value map[string][]byte) *SecretApplyConfiguration { - b.Data = &value - return b -} - -// WithStringData sets the StringData field in the declarative configuration to the given value -func (b *SecretApplyConfiguration) WithStringData(value map[string]string) *SecretApplyConfiguration { - b.StringData = &value - return b -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *SecretApplyConfiguration) WithType(value corev1.SecretType) *SecretApplyConfiguration { - b.Type = &value - return b -} - -// 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"` -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *SecretEnvSourceApplyConfiguration) WithOptional(value *bool) *SecretEnvSourceApplyConfiguration { - b.Optional = value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *SecretKeySelectorApplyConfiguration) WithKey(value string) *SecretKeySelectorApplyConfiguration { - b.Key = &value - return b -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *SecretKeySelectorApplyConfiguration) WithOptional(value *bool) *SecretKeySelectorApplyConfiguration { - b.Optional = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]SecretApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *SecretListApplyConfiguration) WithItems(value []SecretApplyConfiguration) *SecretListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *SecretProjectionApplyConfiguration) WithItems(value []KeyToPathApplyConfiguration) *SecretProjectionApplyConfiguration { - b.Items = &value - return b -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *SecretProjectionApplyConfiguration) WithOptional(value *bool) *SecretProjectionApplyConfiguration { - b.Optional = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *SecretReferenceApplyConfiguration) WithName(value string) *SecretReferenceApplyConfiguration { - b.Name = &value - return b -} - -// WithNamespace sets the Namespace field in the declarative configuration to the given value -func (b *SecretReferenceApplyConfiguration) WithNamespace(value string) *SecretReferenceApplyConfiguration { - b.Namespace = &value - return b -} - -// 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"` -} - -// WithSecretName sets the SecretName field in the declarative configuration to the given value -func (b *SecretVolumeSourceApplyConfiguration) WithSecretName(value string) *SecretVolumeSourceApplyConfiguration { - b.SecretName = &value - return b -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *SecretVolumeSourceApplyConfiguration) WithItems(value []KeyToPathApplyConfiguration) *SecretVolumeSourceApplyConfiguration { - b.Items = &value - return b -} - -// WithDefaultMode sets the DefaultMode field in the declarative configuration to the given value -func (b *SecretVolumeSourceApplyConfiguration) WithDefaultMode(value *int32) *SecretVolumeSourceApplyConfiguration { - b.DefaultMode = value - return b -} - -// WithOptional sets the Optional field in the declarative configuration to the given value -func (b *SecretVolumeSourceApplyConfiguration) WithOptional(value *bool) *SecretVolumeSourceApplyConfiguration { - b.Optional = value - return b -} - -// 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"` - SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"` -} - -// WithCapabilities sets the Capabilities field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithCapabilities(value *CapabilitiesApplyConfiguration) *SecurityContextApplyConfiguration { - b.Capabilities = value - return b -} - -// WithPrivileged sets the Privileged field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithPrivileged(value *bool) *SecurityContextApplyConfiguration { - b.Privileged = value - return b -} - -// WithSELinuxOptions sets the SELinuxOptions field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithSELinuxOptions(value *SELinuxOptionsApplyConfiguration) *SecurityContextApplyConfiguration { - b.SELinuxOptions = value - return b -} - -// WithWindowsOptions sets the WindowsOptions field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithWindowsOptions(value *WindowsSecurityContextOptionsApplyConfiguration) *SecurityContextApplyConfiguration { - b.WindowsOptions = value - return b -} - -// WithRunAsUser sets the RunAsUser field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithRunAsUser(value *int64) *SecurityContextApplyConfiguration { - b.RunAsUser = value - return b -} - -// WithRunAsGroup sets the RunAsGroup field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithRunAsGroup(value *int64) *SecurityContextApplyConfiguration { - b.RunAsGroup = value - return b -} - -// WithRunAsNonRoot sets the RunAsNonRoot field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithRunAsNonRoot(value *bool) *SecurityContextApplyConfiguration { - b.RunAsNonRoot = value - return b -} - -// WithReadOnlyRootFilesystem sets the ReadOnlyRootFilesystem field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithReadOnlyRootFilesystem(value *bool) *SecurityContextApplyConfiguration { - b.ReadOnlyRootFilesystem = value - return b -} - -// WithAllowPrivilegeEscalation sets the AllowPrivilegeEscalation field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithAllowPrivilegeEscalation(value *bool) *SecurityContextApplyConfiguration { - b.AllowPrivilegeEscalation = value - return b -} - -// WithProcMount sets the ProcMount field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithProcMount(value *corev1.ProcMountType) *SecurityContextApplyConfiguration { - b.ProcMount = value - return b -} - -// WithSeccompProfile sets the SeccompProfile field in the declarative configuration to the given value -func (b *SecurityContextApplyConfiguration) WithSeccompProfile(value *SeccompProfileApplyConfiguration) *SecurityContextApplyConfiguration { - b.SeccompProfile = value - return b -} - -// 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.TypeMeta `json:",inline"` - Reference *ObjectReferenceApplyConfiguration `json:"reference,omitempty"` -} - -// WithReference sets the Reference field in the declarative configuration to the given value -func (b *SerializedReferenceApplyConfiguration) WithReference(value *ObjectReferenceApplyConfiguration) *SerializedReferenceApplyConfiguration { - b.Reference = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec *ServiceSpecApplyConfiguration `json:"spec,omitempty"` - Status *ServiceStatusApplyConfiguration `json:"status,omitempty"` -} - -// WithSpec sets the Spec field in the declarative configuration to the given value -func (b *ServiceApplyConfiguration) WithSpec(value *ServiceSpecApplyConfiguration) *ServiceApplyConfiguration { - b.Spec = value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *ServiceApplyConfiguration) WithStatus(value *ServiceStatusApplyConfiguration) *ServiceApplyConfiguration { - b.Status = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Secrets *[]ObjectReferenceApplyConfiguration `json:"secrets,omitempty"` - ImagePullSecrets *[]LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"` - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` -} - -// WithSecrets sets the Secrets field in the declarative configuration to the given value -func (b *ServiceAccountApplyConfiguration) WithSecrets(value []ObjectReferenceApplyConfiguration) *ServiceAccountApplyConfiguration { - b.Secrets = &value - return b -} - -// WithImagePullSecrets sets the ImagePullSecrets field in the declarative configuration to the given value -func (b *ServiceAccountApplyConfiguration) WithImagePullSecrets(value []LocalObjectReferenceApplyConfiguration) *ServiceAccountApplyConfiguration { - b.ImagePullSecrets = &value - return b -} - -// WithAutomountServiceAccountToken sets the AutomountServiceAccountToken field in the declarative configuration to the given value -func (b *ServiceAccountApplyConfiguration) WithAutomountServiceAccountToken(value *bool) *ServiceAccountApplyConfiguration { - b.AutomountServiceAccountToken = value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]ServiceAccountApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ServiceAccountListApplyConfiguration) WithItems(value []ServiceAccountApplyConfiguration) *ServiceAccountListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithAudience sets the Audience field in the declarative configuration to the given value -func (b *ServiceAccountTokenProjectionApplyConfiguration) WithAudience(value string) *ServiceAccountTokenProjectionApplyConfiguration { - b.Audience = &value - return b -} - -// WithExpirationSeconds sets the ExpirationSeconds field in the declarative configuration to the given value -func (b *ServiceAccountTokenProjectionApplyConfiguration) WithExpirationSeconds(value *int64) *ServiceAccountTokenProjectionApplyConfiguration { - b.ExpirationSeconds = value - return b -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *ServiceAccountTokenProjectionApplyConfiguration) WithPath(value string) *ServiceAccountTokenProjectionApplyConfiguration { - b.Path = &value - return b -} - -// 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.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]ServiceApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ServiceListApplyConfiguration) WithItems(value []ServiceApplyConfiguration) *ServiceListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ServicePortApplyConfiguration) WithName(value string) *ServicePortApplyConfiguration { - b.Name = &value - return b -} - -// WithProtocol sets the Protocol field in the declarative configuration to the given value -func (b *ServicePortApplyConfiguration) WithProtocol(value corev1.Protocol) *ServicePortApplyConfiguration { - b.Protocol = &value - return b -} - -// WithAppProtocol sets the AppProtocol field in the declarative configuration to the given value -func (b *ServicePortApplyConfiguration) WithAppProtocol(value *string) *ServicePortApplyConfiguration { - b.AppProtocol = value - return b -} - -// WithPort sets the Port field in the declarative configuration to the given value -func (b *ServicePortApplyConfiguration) WithPort(value int32) *ServicePortApplyConfiguration { - b.Port = &value - return b -} - -// WithTargetPort sets the TargetPort field in the declarative configuration to the given value -func (b *ServicePortApplyConfiguration) WithTargetPort(value *intstr.IntOrString) *ServicePortApplyConfiguration { - b.TargetPort = value - return b -} - -// WithNodePort sets the NodePort field in the declarative configuration to the given value -func (b *ServicePortApplyConfiguration) WithNodePort(value int32) *ServicePortApplyConfiguration { - b.NodePort = &value - return b -} - -// 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.TypeMeta `json:",inline"` - Path *string `json:"path,omitempty"` -} - -// WithPath sets the Path field in the declarative configuration to the given value -func (b *ServiceProxyOptionsApplyConfiguration) WithPath(value string) *ServiceProxyOptionsApplyConfiguration { - b.Path = &value - return b -} - -// 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"` - ClusterIPs *[]string `json:"clusterIPs,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"` - TopologyKeys *[]string `json:"topologyKeys,omitempty"` - IPFamilies *[]corev1.IPFamily `json:"ipFamilies,omitempty"` - IPFamilyPolicy *corev1.IPFamilyPolicyType `json:"ipFamilyPolicy,omitempty"` - AllocateLoadBalancerNodePorts *bool `json:"allocateLoadBalancerNodePorts,omitempty"` - LoadBalancerClass *string `json:"loadBalancerClass,omitempty"` - InternalTrafficPolicy *corev1.ServiceInternalTrafficPolicyType `json:"internalTrafficPolicy,omitempty"` -} - -// WithPorts sets the Ports field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithPorts(value []ServicePortApplyConfiguration) *ServiceSpecApplyConfiguration { - b.Ports = &value - return b -} - -// WithSelector sets the Selector field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithSelector(value map[string]string) *ServiceSpecApplyConfiguration { - b.Selector = &value - return b -} - -// WithClusterIP sets the ClusterIP field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithClusterIP(value string) *ServiceSpecApplyConfiguration { - b.ClusterIP = &value - return b -} - -// WithClusterIPs sets the ClusterIPs field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithClusterIPs(value []string) *ServiceSpecApplyConfiguration { - b.ClusterIPs = &value - return b -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithType(value corev1.ServiceType) *ServiceSpecApplyConfiguration { - b.Type = &value - return b -} - -// WithExternalIPs sets the ExternalIPs field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithExternalIPs(value []string) *ServiceSpecApplyConfiguration { - b.ExternalIPs = &value - return b -} - -// WithSessionAffinity sets the SessionAffinity field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithSessionAffinity(value corev1.ServiceAffinity) *ServiceSpecApplyConfiguration { - b.SessionAffinity = &value - return b -} - -// WithLoadBalancerIP sets the LoadBalancerIP field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithLoadBalancerIP(value string) *ServiceSpecApplyConfiguration { - b.LoadBalancerIP = &value - return b -} - -// WithLoadBalancerSourceRanges sets the LoadBalancerSourceRanges field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithLoadBalancerSourceRanges(value []string) *ServiceSpecApplyConfiguration { - b.LoadBalancerSourceRanges = &value - return b -} - -// WithExternalName sets the ExternalName field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithExternalName(value string) *ServiceSpecApplyConfiguration { - b.ExternalName = &value - return b -} - -// WithExternalTrafficPolicy sets the ExternalTrafficPolicy field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithExternalTrafficPolicy(value corev1.ServiceExternalTrafficPolicyType) *ServiceSpecApplyConfiguration { - b.ExternalTrafficPolicy = &value - return b -} - -// WithHealthCheckNodePort sets the HealthCheckNodePort field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithHealthCheckNodePort(value int32) *ServiceSpecApplyConfiguration { - b.HealthCheckNodePort = &value - return b -} - -// WithPublishNotReadyAddresses sets the PublishNotReadyAddresses field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithPublishNotReadyAddresses(value bool) *ServiceSpecApplyConfiguration { - b.PublishNotReadyAddresses = &value - return b -} - -// WithSessionAffinityConfig sets the SessionAffinityConfig field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithSessionAffinityConfig(value *SessionAffinityConfigApplyConfiguration) *ServiceSpecApplyConfiguration { - b.SessionAffinityConfig = value - return b -} - -// WithTopologyKeys sets the TopologyKeys field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithTopologyKeys(value []string) *ServiceSpecApplyConfiguration { - b.TopologyKeys = &value - return b -} - -// WithIPFamilies sets the IPFamilies field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithIPFamilies(value []corev1.IPFamily) *ServiceSpecApplyConfiguration { - b.IPFamilies = &value - return b -} - -// WithIPFamilyPolicy sets the IPFamilyPolicy field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithIPFamilyPolicy(value *corev1.IPFamilyPolicyType) *ServiceSpecApplyConfiguration { - b.IPFamilyPolicy = value - return b -} - -// WithAllocateLoadBalancerNodePorts sets the AllocateLoadBalancerNodePorts field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithAllocateLoadBalancerNodePorts(value *bool) *ServiceSpecApplyConfiguration { - b.AllocateLoadBalancerNodePorts = value - return b -} - -// WithLoadBalancerClass sets the LoadBalancerClass field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithLoadBalancerClass(value *string) *ServiceSpecApplyConfiguration { - b.LoadBalancerClass = value - return b -} - -// WithInternalTrafficPolicy sets the InternalTrafficPolicy field in the declarative configuration to the given value -func (b *ServiceSpecApplyConfiguration) WithInternalTrafficPolicy(value *corev1.ServiceInternalTrafficPolicyType) *ServiceSpecApplyConfiguration { - b.InternalTrafficPolicy = value - return b -} - -// 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"` - Conditions *[]applyconfigurationsmetav1.ConditionApplyConfiguration `json:"conditions,omitempty"` -} - -// WithLoadBalancer sets the LoadBalancer field in the declarative configuration to the given value -func (b *ServiceStatusApplyConfiguration) WithLoadBalancer(value *LoadBalancerStatusApplyConfiguration) *ServiceStatusApplyConfiguration { - b.LoadBalancer = value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *ServiceStatusApplyConfiguration) WithConditions(value []applyconfigurationsmetav1.ConditionApplyConfiguration) *ServiceStatusApplyConfiguration { - b.Conditions = &value - return b -} - -// 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"` -} - -// WithClientIP sets the ClientIP field in the declarative configuration to the given value -func (b *SessionAffinityConfigApplyConfiguration) WithClientIP(value *ClientIPConfigApplyConfiguration) *SessionAffinityConfigApplyConfiguration { - b.ClientIP = value - return b -} - -// 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"` -} - -// WithVolumeName sets the VolumeName field in the declarative configuration to the given value -func (b *StorageOSPersistentVolumeSourceApplyConfiguration) WithVolumeName(value string) *StorageOSPersistentVolumeSourceApplyConfiguration { - b.VolumeName = &value - return b -} - -// WithVolumeNamespace sets the VolumeNamespace field in the declarative configuration to the given value -func (b *StorageOSPersistentVolumeSourceApplyConfiguration) WithVolumeNamespace(value string) *StorageOSPersistentVolumeSourceApplyConfiguration { - b.VolumeNamespace = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *StorageOSPersistentVolumeSourceApplyConfiguration) WithFSType(value string) *StorageOSPersistentVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *StorageOSPersistentVolumeSourceApplyConfiguration) WithReadOnly(value bool) *StorageOSPersistentVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *StorageOSPersistentVolumeSourceApplyConfiguration) WithSecretRef(value *ObjectReferenceApplyConfiguration) *StorageOSPersistentVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// 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"` -} - -// WithVolumeName sets the VolumeName field in the declarative configuration to the given value -func (b *StorageOSVolumeSourceApplyConfiguration) WithVolumeName(value string) *StorageOSVolumeSourceApplyConfiguration { - b.VolumeName = &value - return b -} - -// WithVolumeNamespace sets the VolumeNamespace field in the declarative configuration to the given value -func (b *StorageOSVolumeSourceApplyConfiguration) WithVolumeNamespace(value string) *StorageOSVolumeSourceApplyConfiguration { - b.VolumeNamespace = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *StorageOSVolumeSourceApplyConfiguration) WithFSType(value string) *StorageOSVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *StorageOSVolumeSourceApplyConfiguration) WithReadOnly(value bool) *StorageOSVolumeSourceApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithSecretRef sets the SecretRef field in the declarative configuration to the given value -func (b *StorageOSVolumeSourceApplyConfiguration) WithSecretRef(value *LocalObjectReferenceApplyConfiguration) *StorageOSVolumeSourceApplyConfiguration { - b.SecretRef = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *SysctlApplyConfiguration) WithName(value string) *SysctlApplyConfiguration { - b.Name = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -func (b *SysctlApplyConfiguration) WithValue(value string) *SysctlApplyConfiguration { - b.Value = &value - return b -} - -// 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"` -} - -// WithPort sets the Port field in the declarative configuration to the given value -func (b *TCPSocketActionApplyConfiguration) WithPort(value *intstr.IntOrString) *TCPSocketActionApplyConfiguration { - b.Port = value - return b -} - -// WithHost sets the Host field in the declarative configuration to the given value -func (b *TCPSocketActionApplyConfiguration) WithHost(value string) *TCPSocketActionApplyConfiguration { - b.Host = &value - return b -} - -// 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 *metav1.Time `json:"timeAdded,omitempty"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *TaintApplyConfiguration) WithKey(value string) *TaintApplyConfiguration { - b.Key = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -func (b *TaintApplyConfiguration) WithValue(value string) *TaintApplyConfiguration { - b.Value = &value - return b -} - -// WithEffect sets the Effect field in the declarative configuration to the given value -func (b *TaintApplyConfiguration) WithEffect(value corev1.TaintEffect) *TaintApplyConfiguration { - b.Effect = &value - return b -} - -// WithTimeAdded sets the TimeAdded field in the declarative configuration to the given value -func (b *TaintApplyConfiguration) WithTimeAdded(value *metav1.Time) *TaintApplyConfiguration { - b.TimeAdded = value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *TolerationApplyConfiguration) WithKey(value string) *TolerationApplyConfiguration { - b.Key = &value - return b -} - -// WithOperator sets the Operator field in the declarative configuration to the given value -func (b *TolerationApplyConfiguration) WithOperator(value corev1.TolerationOperator) *TolerationApplyConfiguration { - b.Operator = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -func (b *TolerationApplyConfiguration) WithValue(value string) *TolerationApplyConfiguration { - b.Value = &value - return b -} - -// WithEffect sets the Effect field in the declarative configuration to the given value -func (b *TolerationApplyConfiguration) WithEffect(value corev1.TaintEffect) *TolerationApplyConfiguration { - b.Effect = &value - return b -} - -// WithTolerationSeconds sets the TolerationSeconds field in the declarative configuration to the given value -func (b *TolerationApplyConfiguration) WithTolerationSeconds(value *int64) *TolerationApplyConfiguration { - b.TolerationSeconds = value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *TopologySelectorLabelRequirementApplyConfiguration) WithKey(value string) *TopologySelectorLabelRequirementApplyConfiguration { - b.Key = &value - return b -} - -// WithValues sets the Values field in the declarative configuration to the given value -func (b *TopologySelectorLabelRequirementApplyConfiguration) WithValues(value []string) *TopologySelectorLabelRequirementApplyConfiguration { - b.Values = &value - return b -} - -// 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"` -} - -// WithMatchLabelExpressions sets the MatchLabelExpressions field in the declarative configuration to the given value -func (b *TopologySelectorTermApplyConfiguration) WithMatchLabelExpressions(value []TopologySelectorLabelRequirementApplyConfiguration) *TopologySelectorTermApplyConfiguration { - b.MatchLabelExpressions = &value - return b -} - -// 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 *applyconfigurationsmetav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` -} - -// WithMaxSkew sets the MaxSkew field in the declarative configuration to the given value -func (b *TopologySpreadConstraintApplyConfiguration) WithMaxSkew(value int32) *TopologySpreadConstraintApplyConfiguration { - b.MaxSkew = &value - return b -} - -// WithTopologyKey sets the TopologyKey field in the declarative configuration to the given value -func (b *TopologySpreadConstraintApplyConfiguration) WithTopologyKey(value string) *TopologySpreadConstraintApplyConfiguration { - b.TopologyKey = &value - return b -} - -// WithWhenUnsatisfiable sets the WhenUnsatisfiable field in the declarative configuration to the given value -func (b *TopologySpreadConstraintApplyConfiguration) WithWhenUnsatisfiable(value corev1.UnsatisfiableConstraintAction) *TopologySpreadConstraintApplyConfiguration { - b.WhenUnsatisfiable = &value - return b -} - -// WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value -func (b *TopologySpreadConstraintApplyConfiguration) WithLabelSelector(value *applyconfigurationsmetav1.LabelSelectorApplyConfiguration) *TopologySpreadConstraintApplyConfiguration { - b.LabelSelector = value - return b -} - -// 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"` -} - -// WithAPIGroup sets the APIGroup field in the declarative configuration to the given value -func (b *TypedLocalObjectReferenceApplyConfiguration) WithAPIGroup(value *string) *TypedLocalObjectReferenceApplyConfiguration { - b.APIGroup = value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *TypedLocalObjectReferenceApplyConfiguration) WithKind(value string) *TypedLocalObjectReferenceApplyConfiguration { - b.Kind = &value - return b -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *TypedLocalObjectReferenceApplyConfiguration) WithName(value string) *TypedLocalObjectReferenceApplyConfiguration { - b.Name = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *VolumeApplyConfiguration) WithName(value string) *VolumeApplyConfiguration { - b.Name = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *VolumeDeviceApplyConfiguration) WithName(value string) *VolumeDeviceApplyConfiguration { - b.Name = &value - return b -} - -// WithDevicePath sets the DevicePath field in the declarative configuration to the given value -func (b *VolumeDeviceApplyConfiguration) WithDevicePath(value string) *VolumeDeviceApplyConfiguration { - b.DevicePath = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *VolumeMountApplyConfiguration) WithName(value string) *VolumeMountApplyConfiguration { - b.Name = &value - return b -} - -// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value -func (b *VolumeMountApplyConfiguration) WithReadOnly(value bool) *VolumeMountApplyConfiguration { - b.ReadOnly = &value - return b -} - -// WithMountPath sets the MountPath field in the declarative configuration to the given value -func (b *VolumeMountApplyConfiguration) WithMountPath(value string) *VolumeMountApplyConfiguration { - b.MountPath = &value - return b -} - -// WithSubPath sets the SubPath field in the declarative configuration to the given value -func (b *VolumeMountApplyConfiguration) WithSubPath(value string) *VolumeMountApplyConfiguration { - b.SubPath = &value - return b -} - -// WithMountPropagation sets the MountPropagation field in the declarative configuration to the given value -func (b *VolumeMountApplyConfiguration) WithMountPropagation(value *corev1.MountPropagationMode) *VolumeMountApplyConfiguration { - b.MountPropagation = value - return b -} - -// WithSubPathExpr sets the SubPathExpr field in the declarative configuration to the given value -func (b *VolumeMountApplyConfiguration) WithSubPathExpr(value string) *VolumeMountApplyConfiguration { - b.SubPathExpr = &value - return b -} - -// 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"` -} - -// WithRequired sets the Required field in the declarative configuration to the given value -func (b *VolumeNodeAffinityApplyConfiguration) WithRequired(value *NodeSelectorApplyConfiguration) *VolumeNodeAffinityApplyConfiguration { - b.Required = value - return b -} - -// 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"` -} - -// WithSecret sets the Secret field in the declarative configuration to the given value -func (b *VolumeProjectionApplyConfiguration) WithSecret(value *SecretProjectionApplyConfiguration) *VolumeProjectionApplyConfiguration { - b.Secret = value - return b -} - -// WithDownwardAPI sets the DownwardAPI field in the declarative configuration to the given value -func (b *VolumeProjectionApplyConfiguration) WithDownwardAPI(value *DownwardAPIProjectionApplyConfiguration) *VolumeProjectionApplyConfiguration { - b.DownwardAPI = value - return b -} - -// WithConfigMap sets the ConfigMap field in the declarative configuration to the given value -func (b *VolumeProjectionApplyConfiguration) WithConfigMap(value *ConfigMapProjectionApplyConfiguration) *VolumeProjectionApplyConfiguration { - b.ConfigMap = value - return b -} - -// WithServiceAccountToken sets the ServiceAccountToken field in the declarative configuration to the given value -func (b *VolumeProjectionApplyConfiguration) WithServiceAccountToken(value *ServiceAccountTokenProjectionApplyConfiguration) *VolumeProjectionApplyConfiguration { - b.ServiceAccountToken = value - return b -} - -// 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"` - Ephemeral *EphemeralVolumeSourceApplyConfiguration `json:"ephemeral,omitempty"` -} - -// WithHostPath sets the HostPath field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithHostPath(value *HostPathVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.HostPath = value - return b -} - -// WithEmptyDir sets the EmptyDir field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithEmptyDir(value *EmptyDirVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.EmptyDir = value - return b -} - -// WithGCEPersistentDisk sets the GCEPersistentDisk field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithGCEPersistentDisk(value *GCEPersistentDiskVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.GCEPersistentDisk = value - return b -} - -// WithAWSElasticBlockStore sets the AWSElasticBlockStore field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithAWSElasticBlockStore(value *AWSElasticBlockStoreVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.AWSElasticBlockStore = value - return b -} - -// WithGitRepo sets the GitRepo field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithGitRepo(value *GitRepoVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.GitRepo = value - return b -} - -// WithSecret sets the Secret field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithSecret(value *SecretVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Secret = value - return b -} - -// WithNFS sets the NFS field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithNFS(value *NFSVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.NFS = value - return b -} - -// WithISCSI sets the ISCSI field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithISCSI(value *ISCSIVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.ISCSI = value - return b -} - -// WithGlusterfs sets the Glusterfs field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithGlusterfs(value *GlusterfsVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Glusterfs = value - return b -} - -// WithPersistentVolumeClaim sets the PersistentVolumeClaim field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithPersistentVolumeClaim(value *PersistentVolumeClaimVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.PersistentVolumeClaim = value - return b -} - -// WithRBD sets the RBD field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithRBD(value *RBDVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.RBD = value - return b -} - -// WithFlexVolume sets the FlexVolume field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithFlexVolume(value *FlexVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.FlexVolume = value - return b -} - -// WithCinder sets the Cinder field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithCinder(value *CinderVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Cinder = value - return b -} - -// WithCephFS sets the CephFS field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithCephFS(value *CephFSVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.CephFS = value - return b -} - -// WithFlocker sets the Flocker field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithFlocker(value *FlockerVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Flocker = value - return b -} - -// WithDownwardAPI sets the DownwardAPI field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithDownwardAPI(value *DownwardAPIVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.DownwardAPI = value - return b -} - -// WithFC sets the FC field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithFC(value *FCVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.FC = value - return b -} - -// WithAzureFile sets the AzureFile field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithAzureFile(value *AzureFileVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.AzureFile = value - return b -} - -// WithConfigMap sets the ConfigMap field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithConfigMap(value *ConfigMapVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.ConfigMap = value - return b -} - -// WithVsphereVolume sets the VsphereVolume field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithVsphereVolume(value *VsphereVirtualDiskVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.VsphereVolume = value - return b -} - -// WithQuobyte sets the Quobyte field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithQuobyte(value *QuobyteVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Quobyte = value - return b -} - -// WithAzureDisk sets the AzureDisk field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithAzureDisk(value *AzureDiskVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.AzureDisk = value - return b -} - -// WithPhotonPersistentDisk sets the PhotonPersistentDisk field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithPhotonPersistentDisk(value *PhotonPersistentDiskVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.PhotonPersistentDisk = value - return b -} - -// WithProjected sets the Projected field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithProjected(value *ProjectedVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Projected = value - return b -} - -// WithPortworxVolume sets the PortworxVolume field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithPortworxVolume(value *PortworxVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.PortworxVolume = value - return b -} - -// WithScaleIO sets the ScaleIO field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithScaleIO(value *ScaleIOVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.ScaleIO = value - return b -} - -// WithStorageOS sets the StorageOS field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithStorageOS(value *StorageOSVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.StorageOS = value - return b -} - -// WithCSI sets the CSI field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithCSI(value *CSIVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.CSI = value - return b -} - -// WithEphemeral sets the Ephemeral field in the declarative configuration to the given value -func (b *VolumeSourceApplyConfiguration) WithEphemeral(value *EphemeralVolumeSourceApplyConfiguration) *VolumeSourceApplyConfiguration { - b.Ephemeral = value - return b -} - -// 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"` -} - -// WithVolumePath sets the VolumePath field in the declarative configuration to the given value -func (b *VsphereVirtualDiskVolumeSourceApplyConfiguration) WithVolumePath(value string) *VsphereVirtualDiskVolumeSourceApplyConfiguration { - b.VolumePath = &value - return b -} - -// WithFSType sets the FSType field in the declarative configuration to the given value -func (b *VsphereVirtualDiskVolumeSourceApplyConfiguration) WithFSType(value string) *VsphereVirtualDiskVolumeSourceApplyConfiguration { - b.FSType = &value - return b -} - -// WithStoragePolicyName sets the StoragePolicyName field in the declarative configuration to the given value -func (b *VsphereVirtualDiskVolumeSourceApplyConfiguration) WithStoragePolicyName(value string) *VsphereVirtualDiskVolumeSourceApplyConfiguration { - b.StoragePolicyName = &value - return b -} - -// WithStoragePolicyID sets the StoragePolicyID field in the declarative configuration to the given value -func (b *VsphereVirtualDiskVolumeSourceApplyConfiguration) WithStoragePolicyID(value string) *VsphereVirtualDiskVolumeSourceApplyConfiguration { - b.StoragePolicyID = &value - return b -} - -// 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"` -} - -// WithWeight sets the Weight field in the declarative configuration to the given value -func (b *WeightedPodAffinityTermApplyConfiguration) WithWeight(value int32) *WeightedPodAffinityTermApplyConfiguration { - b.Weight = &value - return b -} - -// WithPodAffinityTerm sets the PodAffinityTerm field in the declarative configuration to the given value -func (b *WeightedPodAffinityTermApplyConfiguration) WithPodAffinityTerm(value *PodAffinityTermApplyConfiguration) *WeightedPodAffinityTermApplyConfiguration { - b.PodAffinityTerm = value - return b -} - -// 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"` -} - -// WithGMSACredentialSpecName sets the GMSACredentialSpecName field in the declarative configuration to the given value -func (b *WindowsSecurityContextOptionsApplyConfiguration) WithGMSACredentialSpecName(value *string) *WindowsSecurityContextOptionsApplyConfiguration { - b.GMSACredentialSpecName = value - return b -} - -// WithGMSACredentialSpec sets the GMSACredentialSpec field in the declarative configuration to the given value -func (b *WindowsSecurityContextOptionsApplyConfiguration) WithGMSACredentialSpec(value *string) *WindowsSecurityContextOptionsApplyConfiguration { - b.GMSACredentialSpec = value - return b -} - -// WithRunAsUserName sets the RunAsUserName field in the declarative configuration to the given value -func (b *WindowsSecurityContextOptionsApplyConfiguration) WithRunAsUserName(value *string) *WindowsSecurityContextOptionsApplyConfiguration { - b.RunAsUserName = value - return b -} - -// 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/meta/v1/zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/meta/v1/zz_generated.applyconfigurations.go deleted file mode 100644 index a11941e82..000000000 --- a/pkg/applyconfigurations/testdata/ac/meta/v1/zz_generated.applyconfigurations.go +++ /dev/null @@ -1,1501 +0,0 @@ -// +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 { - metav1.TypeMeta `json:",inline"` - Name *string `json:"name,omitempty"` - Versions *[]GroupVersionForDiscoveryApplyConfiguration `json:"versions,omitempty"` - PreferredVersion *GroupVersionForDiscoveryApplyConfiguration `json:"preferredVersion,omitempty"` - ServerAddressByClientCIDRs *[]ServerAddressByClientCIDRApplyConfiguration `json:"serverAddressByClientCIDRs,omitempty"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *APIGroupApplyConfiguration) WithName(value string) *APIGroupApplyConfiguration { - b.Name = &value - return b -} - -// WithVersions sets the Versions field in the declarative configuration to the given value -func (b *APIGroupApplyConfiguration) WithVersions(value []GroupVersionForDiscoveryApplyConfiguration) *APIGroupApplyConfiguration { - b.Versions = &value - return b -} - -// WithPreferredVersion sets the PreferredVersion field in the declarative configuration to the given value -func (b *APIGroupApplyConfiguration) WithPreferredVersion(value *GroupVersionForDiscoveryApplyConfiguration) *APIGroupApplyConfiguration { - b.PreferredVersion = value - return b -} - -// WithServerAddressByClientCIDRs sets the ServerAddressByClientCIDRs field in the declarative configuration to the given value -func (b *APIGroupApplyConfiguration) WithServerAddressByClientCIDRs(value []ServerAddressByClientCIDRApplyConfiguration) *APIGroupApplyConfiguration { - b.ServerAddressByClientCIDRs = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - Groups *[]APIGroupApplyConfiguration `json:"groups,omitempty"` -} - -// WithGroups sets the Groups field in the declarative configuration to the given value -func (b *APIGroupListApplyConfiguration) WithGroups(value []APIGroupApplyConfiguration) *APIGroupListApplyConfiguration { - b.Groups = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithName(value string) *APIResourceApplyConfiguration { - b.Name = &value - return b -} - -// WithSingularName sets the SingularName field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithSingularName(value string) *APIResourceApplyConfiguration { - b.SingularName = &value - return b -} - -// WithNamespaced sets the Namespaced field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithNamespaced(value bool) *APIResourceApplyConfiguration { - b.Namespaced = &value - return b -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithGroup(value string) *APIResourceApplyConfiguration { - b.Group = &value - return b -} - -// WithVersion sets the Version field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithVersion(value string) *APIResourceApplyConfiguration { - b.Version = &value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithKind(value string) *APIResourceApplyConfiguration { - b.Kind = &value - return b -} - -// WithVerbs sets the Verbs field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithVerbs(value metav1.Verbs) *APIResourceApplyConfiguration { - b.Verbs = &value - return b -} - -// WithShortNames sets the ShortNames field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithShortNames(value []string) *APIResourceApplyConfiguration { - b.ShortNames = &value - return b -} - -// WithCategories sets the Categories field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithCategories(value []string) *APIResourceApplyConfiguration { - b.Categories = &value - return b -} - -// WithStorageVersionHash sets the StorageVersionHash field in the declarative configuration to the given value -func (b *APIResourceApplyConfiguration) WithStorageVersionHash(value string) *APIResourceApplyConfiguration { - b.StorageVersionHash = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - GroupVersion *string `json:"groupVersion,omitempty"` - APIResources *[]APIResourceApplyConfiguration `json:"resources,omitempty"` -} - -// WithGroupVersion sets the GroupVersion field in the declarative configuration to the given value -func (b *APIResourceListApplyConfiguration) WithGroupVersion(value string) *APIResourceListApplyConfiguration { - b.GroupVersion = &value - return b -} - -// WithAPIResources sets the APIResources field in the declarative configuration to the given value -func (b *APIResourceListApplyConfiguration) WithAPIResources(value []APIResourceApplyConfiguration) *APIResourceListApplyConfiguration { - b.APIResources = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - Versions *[]string `json:"versions,omitempty"` - ServerAddressByClientCIDRs *[]ServerAddressByClientCIDRApplyConfiguration `json:"serverAddressByClientCIDRs,omitempty"` -} - -// WithVersions sets the Versions field in the declarative configuration to the given value -func (b *APIVersionsApplyConfiguration) WithVersions(value []string) *APIVersionsApplyConfiguration { - b.Versions = &value - return b -} - -// WithServerAddressByClientCIDRs sets the ServerAddressByClientCIDRs field in the declarative configuration to the given value -func (b *APIVersionsApplyConfiguration) WithServerAddressByClientCIDRs(value []ServerAddressByClientCIDRApplyConfiguration) *APIVersionsApplyConfiguration { - b.ServerAddressByClientCIDRs = &value - return b -} - -// APIVersionsApplyConfiguration represents a declarative configuration of the APIVersions type for use -// with apply. -func APIVersions() *APIVersionsApplyConfiguration { - return &APIVersionsApplyConfiguration{} -} - -// ApplyOptionsApplyConfiguration represents a declarative configuration of the ApplyOptions type for use -// with apply. -type ApplyOptionsApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - DryRun *[]string `json:"dryRun,omitempty"` - Force *bool `json:"force,omitempty"` - FieldManager *string `json:"fieldManager,omitempty"` -} - -// WithDryRun sets the DryRun field in the declarative configuration to the given value -func (b *ApplyOptionsApplyConfiguration) WithDryRun(value []string) *ApplyOptionsApplyConfiguration { - b.DryRun = &value - return b -} - -// WithForce sets the Force field in the declarative configuration to the given value -func (b *ApplyOptionsApplyConfiguration) WithForce(value bool) *ApplyOptionsApplyConfiguration { - b.Force = &value - return b -} - -// WithFieldManager sets the FieldManager field in the declarative configuration to the given value -func (b *ApplyOptionsApplyConfiguration) WithFieldManager(value string) *ApplyOptionsApplyConfiguration { - b.FieldManager = &value - return b -} - -// ApplyOptionsApplyConfiguration represents a declarative configuration of the ApplyOptions type for use -// with apply. -func ApplyOptions() *ApplyOptionsApplyConfiguration { - return &ApplyOptionsApplyConfiguration{} -} - -// ConditionApplyConfiguration represents a declarative configuration of the Condition type for use -// with apply. -type ConditionApplyConfiguration struct { - Type *string `json:"type,omitempty"` - Status *metav1.ConditionStatus `json:"status,omitempty"` - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` - Reason *string `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *ConditionApplyConfiguration) WithType(value string) *ConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *ConditionApplyConfiguration) WithStatus(value metav1.ConditionStatus) *ConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value -func (b *ConditionApplyConfiguration) WithObservedGeneration(value int64) *ConditionApplyConfiguration { - b.ObservedGeneration = &value - return b -} - -// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value -func (b *ConditionApplyConfiguration) WithLastTransitionTime(value *metav1.Time) *ConditionApplyConfiguration { - b.LastTransitionTime = value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *ConditionApplyConfiguration) WithReason(value string) *ConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *ConditionApplyConfiguration) WithMessage(value string) *ConditionApplyConfiguration { - b.Message = &value - return b -} - -// ConditionApplyConfiguration represents a declarative configuration of the Condition type for use -// with apply. -func Condition() *ConditionApplyConfiguration { - return &ConditionApplyConfiguration{} -} - -// CreateOptionsApplyConfiguration represents a declarative configuration of the CreateOptions type for use -// with apply. -type CreateOptionsApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - DryRun *[]string `json:"dryRun,omitempty"` - FieldManager *string `json:"fieldManager,omitempty"` -} - -// WithDryRun sets the DryRun field in the declarative configuration to the given value -func (b *CreateOptionsApplyConfiguration) WithDryRun(value []string) *CreateOptionsApplyConfiguration { - b.DryRun = &value - return b -} - -// WithFieldManager sets the FieldManager field in the declarative configuration to the given value -func (b *CreateOptionsApplyConfiguration) WithFieldManager(value string) *CreateOptionsApplyConfiguration { - b.FieldManager = &value - return b -} - -// 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 { - metav1.TypeMeta `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"` -} - -// WithGracePeriodSeconds sets the GracePeriodSeconds field in the declarative configuration to the given value -func (b *DeleteOptionsApplyConfiguration) WithGracePeriodSeconds(value *int64) *DeleteOptionsApplyConfiguration { - b.GracePeriodSeconds = value - return b -} - -// WithPreconditions sets the Preconditions field in the declarative configuration to the given value -func (b *DeleteOptionsApplyConfiguration) WithPreconditions(value *PreconditionsApplyConfiguration) *DeleteOptionsApplyConfiguration { - b.Preconditions = value - return b -} - -// WithOrphanDependents sets the OrphanDependents field in the declarative configuration to the given value -func (b *DeleteOptionsApplyConfiguration) WithOrphanDependents(value *bool) *DeleteOptionsApplyConfiguration { - b.OrphanDependents = value - return b -} - -// WithPropagationPolicy sets the PropagationPolicy field in the declarative configuration to the given value -func (b *DeleteOptionsApplyConfiguration) WithPropagationPolicy(value *metav1.DeletionPropagation) *DeleteOptionsApplyConfiguration { - b.PropagationPolicy = value - return b -} - -// WithDryRun sets the DryRun field in the declarative configuration to the given value -func (b *DeleteOptionsApplyConfiguration) WithDryRun(value []string) *DeleteOptionsApplyConfiguration { - b.DryRun = &value - return b -} - -// DeleteOptionsApplyConfiguration represents a declarative configuration of the DeleteOptions type for use -// with apply. -func DeleteOptions() *DeleteOptionsApplyConfiguration { - return &DeleteOptionsApplyConfiguration{} -} - -// GetOptionsApplyConfiguration represents a declarative configuration of the GetOptions type for use -// with apply. -type GetOptionsApplyConfiguration struct { - metav1.TypeMeta `json:",inline"` - ResourceVersion *string `json:"resourceVersion,omitempty"` -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *GetOptionsApplyConfiguration) WithResourceVersion(value string) *GetOptionsApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// 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"` -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *GroupKindApplyConfiguration) WithGroup(value string) *GroupKindApplyConfiguration { - b.Group = &value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *GroupKindApplyConfiguration) WithKind(value string) *GroupKindApplyConfiguration { - b.Kind = &value - return b -} - -// 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"` -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *GroupResourceApplyConfiguration) WithGroup(value string) *GroupResourceApplyConfiguration { - b.Group = &value - return b -} - -// WithResource sets the Resource field in the declarative configuration to the given value -func (b *GroupResourceApplyConfiguration) WithResource(value string) *GroupResourceApplyConfiguration { - b.Resource = &value - return b -} - -// 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"` -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *GroupVersionApplyConfiguration) WithGroup(value string) *GroupVersionApplyConfiguration { - b.Group = &value - return b -} - -// WithVersion sets the Version field in the declarative configuration to the given value -func (b *GroupVersionApplyConfiguration) WithVersion(value string) *GroupVersionApplyConfiguration { - b.Version = &value - return b -} - -// 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"` -} - -// WithGroupVersion sets the GroupVersion field in the declarative configuration to the given value -func (b *GroupVersionForDiscoveryApplyConfiguration) WithGroupVersion(value string) *GroupVersionForDiscoveryApplyConfiguration { - b.GroupVersion = &value - return b -} - -// WithVersion sets the Version field in the declarative configuration to the given value -func (b *GroupVersionForDiscoveryApplyConfiguration) WithVersion(value string) *GroupVersionForDiscoveryApplyConfiguration { - b.Version = &value - return b -} - -// 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"` -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *GroupVersionKindApplyConfiguration) WithGroup(value string) *GroupVersionKindApplyConfiguration { - b.Group = &value - return b -} - -// WithVersion sets the Version field in the declarative configuration to the given value -func (b *GroupVersionKindApplyConfiguration) WithVersion(value string) *GroupVersionKindApplyConfiguration { - b.Version = &value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *GroupVersionKindApplyConfiguration) WithKind(value string) *GroupVersionKindApplyConfiguration { - b.Kind = &value - return b -} - -// 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"` -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *GroupVersionResourceApplyConfiguration) WithGroup(value string) *GroupVersionResourceApplyConfiguration { - b.Group = &value - return b -} - -// WithVersion sets the Version field in the declarative configuration to the given value -func (b *GroupVersionResourceApplyConfiguration) WithVersion(value string) *GroupVersionResourceApplyConfiguration { - b.Version = &value - return b -} - -// WithResource sets the Resource field in the declarative configuration to the given value -func (b *GroupVersionResourceApplyConfiguration) WithResource(value string) *GroupVersionResourceApplyConfiguration { - b.Resource = &value - return b -} - -// 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"` -} - -// WithMatchLabels sets the MatchLabels field in the declarative configuration to the given value -func (b *LabelSelectorApplyConfiguration) WithMatchLabels(value map[string]string) *LabelSelectorApplyConfiguration { - b.MatchLabels = &value - return b -} - -// WithMatchExpressions sets the MatchExpressions field in the declarative configuration to the given value -func (b *LabelSelectorApplyConfiguration) WithMatchExpressions(value []LabelSelectorRequirementApplyConfiguration) *LabelSelectorApplyConfiguration { - b.MatchExpressions = &value - return b -} - -// 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"` -} - -// WithKey sets the Key field in the declarative configuration to the given value -func (b *LabelSelectorRequirementApplyConfiguration) WithKey(value string) *LabelSelectorRequirementApplyConfiguration { - b.Key = &value - return b -} - -// WithOperator sets the Operator field in the declarative configuration to the given value -func (b *LabelSelectorRequirementApplyConfiguration) WithOperator(value metav1.LabelSelectorOperator) *LabelSelectorRequirementApplyConfiguration { - b.Operator = &value - return b -} - -// WithValues sets the Values field in the declarative configuration to the given value -func (b *LabelSelectorRequirementApplyConfiguration) WithValues(value []string) *LabelSelectorRequirementApplyConfiguration { - b.Values = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]runtime.RawExtension `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *ListApplyConfiguration) WithItems(value []runtime.RawExtension) *ListApplyConfiguration { - b.Items = &value - return b -} - -// 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"` -} - -// WithSelfLink sets the SelfLink field in the declarative configuration to the given value -func (b *ListMetaApplyConfiguration) WithSelfLink(value string) *ListMetaApplyConfiguration { - b.SelfLink = &value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *ListMetaApplyConfiguration) WithResourceVersion(value string) *ListMetaApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// WithContinue sets the Continue field in the declarative configuration to the given value -func (b *ListMetaApplyConfiguration) WithContinue(value string) *ListMetaApplyConfiguration { - b.Continue = &value - return b -} - -// WithRemainingItemCount sets the RemainingItemCount field in the declarative configuration to the given value -func (b *ListMetaApplyConfiguration) WithRemainingItemCount(value *int64) *ListMetaApplyConfiguration { - b.RemainingItemCount = value - return b -} - -// 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 { - metav1.TypeMeta `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"` - ResourceVersionMatch *metav1.ResourceVersionMatch `json:"resourceVersionMatch,omitempty"` - TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` - Limit *int64 `json:"limit,omitempty"` - Continue *string `json:"continue,omitempty"` -} - -// WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithLabelSelector(value string) *ListOptionsApplyConfiguration { - b.LabelSelector = &value - return b -} - -// WithFieldSelector sets the FieldSelector field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithFieldSelector(value string) *ListOptionsApplyConfiguration { - b.FieldSelector = &value - return b -} - -// WithWatch sets the Watch field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithWatch(value bool) *ListOptionsApplyConfiguration { - b.Watch = &value - return b -} - -// WithAllowWatchBookmarks sets the AllowWatchBookmarks field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithAllowWatchBookmarks(value bool) *ListOptionsApplyConfiguration { - b.AllowWatchBookmarks = &value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithResourceVersion(value string) *ListOptionsApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// WithResourceVersionMatch sets the ResourceVersionMatch field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithResourceVersionMatch(value metav1.ResourceVersionMatch) *ListOptionsApplyConfiguration { - b.ResourceVersionMatch = &value - return b -} - -// WithTimeoutSeconds sets the TimeoutSeconds field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithTimeoutSeconds(value *int64) *ListOptionsApplyConfiguration { - b.TimeoutSeconds = value - return b -} - -// WithLimit sets the Limit field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithLimit(value int64) *ListOptionsApplyConfiguration { - b.Limit = &value - return b -} - -// WithContinue sets the Continue field in the declarative configuration to the given value -func (b *ListOptionsApplyConfiguration) WithContinue(value string) *ListOptionsApplyConfiguration { - b.Continue = &value - return b -} - -// 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"` -} - -// WithManager sets the Manager field in the declarative configuration to the given value -func (b *ManagedFieldsEntryApplyConfiguration) WithManager(value string) *ManagedFieldsEntryApplyConfiguration { - b.Manager = &value - return b -} - -// WithOperation sets the Operation field in the declarative configuration to the given value -func (b *ManagedFieldsEntryApplyConfiguration) WithOperation(value metav1.ManagedFieldsOperationType) *ManagedFieldsEntryApplyConfiguration { - b.Operation = &value - return b -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -func (b *ManagedFieldsEntryApplyConfiguration) WithAPIVersion(value string) *ManagedFieldsEntryApplyConfiguration { - b.APIVersion = &value - return b -} - -// WithTime sets the Time field in the declarative configuration to the given value -func (b *ManagedFieldsEntryApplyConfiguration) WithTime(value *metav1.Time) *ManagedFieldsEntryApplyConfiguration { - b.Time = value - return b -} - -// WithFieldsType sets the FieldsType field in the declarative configuration to the given value -func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsType(value string) *ManagedFieldsEntryApplyConfiguration { - b.FieldsType = &value - return b -} - -// WithFieldsV1 sets the FieldsV1 field in the declarative configuration to the given value -func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsV1(value *metav1.FieldsV1) *ManagedFieldsEntryApplyConfiguration { - b.FieldsV1 = value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithName(value string) *ObjectMetaApplyConfiguration { - b.Name = &value - return b -} - -// WithGenerateName sets the GenerateName field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithGenerateName(value string) *ObjectMetaApplyConfiguration { - b.GenerateName = &value - return b -} - -// WithNamespace sets the Namespace field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithNamespace(value string) *ObjectMetaApplyConfiguration { - b.Namespace = &value - return b -} - -// WithSelfLink sets the SelfLink field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithSelfLink(value string) *ObjectMetaApplyConfiguration { - b.SelfLink = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithUID(value types.UID) *ObjectMetaApplyConfiguration { - b.UID = &value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithResourceVersion(value string) *ObjectMetaApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// WithGeneration sets the Generation field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithGeneration(value int64) *ObjectMetaApplyConfiguration { - b.Generation = &value - return b -} - -// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithCreationTimestamp(value *metav1.Time) *ObjectMetaApplyConfiguration { - b.CreationTimestamp = value - return b -} - -// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithDeletionTimestamp(value *metav1.Time) *ObjectMetaApplyConfiguration { - b.DeletionTimestamp = value - return b -} - -// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithDeletionGracePeriodSeconds(value *int64) *ObjectMetaApplyConfiguration { - b.DeletionGracePeriodSeconds = value - return b -} - -// WithLabels sets the Labels field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithLabels(value map[string]string) *ObjectMetaApplyConfiguration { - b.Labels = &value - return b -} - -// WithAnnotations sets the Annotations field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithAnnotations(value map[string]string) *ObjectMetaApplyConfiguration { - b.Annotations = &value - return b -} - -// WithOwnerReferences sets the OwnerReferences field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithOwnerReferences(value []OwnerReferenceApplyConfiguration) *ObjectMetaApplyConfiguration { - b.OwnerReferences = &value - return b -} - -// WithFinalizers sets the Finalizers field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithFinalizers(value []string) *ObjectMetaApplyConfiguration { - b.Finalizers = &value - return b -} - -// WithClusterName sets the ClusterName field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithClusterName(value string) *ObjectMetaApplyConfiguration { - b.ClusterName = &value - return b -} - -// WithManagedFields sets the ManagedFields field in the declarative configuration to the given value -func (b *ObjectMetaApplyConfiguration) WithManagedFields(value []ManagedFieldsEntryApplyConfiguration) *ObjectMetaApplyConfiguration { - b.ManagedFields = &value - return b -} - -// 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"` -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -func (b *OwnerReferenceApplyConfiguration) WithAPIVersion(value string) *OwnerReferenceApplyConfiguration { - b.APIVersion = &value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *OwnerReferenceApplyConfiguration) WithKind(value string) *OwnerReferenceApplyConfiguration { - b.Kind = &value - return b -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *OwnerReferenceApplyConfiguration) WithName(value string) *OwnerReferenceApplyConfiguration { - b.Name = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *OwnerReferenceApplyConfiguration) WithUID(value types.UID) *OwnerReferenceApplyConfiguration { - b.UID = &value - return b -} - -// WithController sets the Controller field in the declarative configuration to the given value -func (b *OwnerReferenceApplyConfiguration) WithController(value *bool) *OwnerReferenceApplyConfiguration { - b.Controller = value - return b -} - -// WithBlockOwnerDeletion sets the BlockOwnerDeletion field in the declarative configuration to the given value -func (b *OwnerReferenceApplyConfiguration) WithBlockOwnerDeletion(value *bool) *OwnerReferenceApplyConfiguration { - b.BlockOwnerDeletion = value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `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 { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items *[]PartialObjectMetadataApplyConfiguration `json:"items,omitempty"` -} - -// WithItems sets the Items field in the declarative configuration to the given value -func (b *PartialObjectMetadataListApplyConfiguration) WithItems(value []PartialObjectMetadataApplyConfiguration) *PartialObjectMetadataListApplyConfiguration { - b.Items = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - DryRun *[]string `json:"dryRun,omitempty"` - Force *bool `json:"force,omitempty"` - FieldManager *string `json:"fieldManager,omitempty"` -} - -// WithDryRun sets the DryRun field in the declarative configuration to the given value -func (b *PatchOptionsApplyConfiguration) WithDryRun(value []string) *PatchOptionsApplyConfiguration { - b.DryRun = &value - return b -} - -// WithForce sets the Force field in the declarative configuration to the given value -func (b *PatchOptionsApplyConfiguration) WithForce(value *bool) *PatchOptionsApplyConfiguration { - b.Force = value - return b -} - -// WithFieldManager sets the FieldManager field in the declarative configuration to the given value -func (b *PatchOptionsApplyConfiguration) WithFieldManager(value string) *PatchOptionsApplyConfiguration { - b.FieldManager = &value - return b -} - -// 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"` -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *PreconditionsApplyConfiguration) WithUID(value *types.UID) *PreconditionsApplyConfiguration { - b.UID = value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -func (b *PreconditionsApplyConfiguration) WithResourceVersion(value *string) *PreconditionsApplyConfiguration { - b.ResourceVersion = value - return b -} - -// 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"` -} - -// WithPaths sets the Paths field in the declarative configuration to the given value -func (b *RootPathsApplyConfiguration) WithPaths(value []string) *RootPathsApplyConfiguration { - b.Paths = &value - return b -} - -// 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"` -} - -// WithClientCIDR sets the ClientCIDR field in the declarative configuration to the given value -func (b *ServerAddressByClientCIDRApplyConfiguration) WithClientCIDR(value string) *ServerAddressByClientCIDRApplyConfiguration { - b.ClientCIDR = &value - return b -} - -// WithServerAddress sets the ServerAddress field in the declarative configuration to the given value -func (b *ServerAddressByClientCIDRApplyConfiguration) WithServerAddress(value string) *ServerAddressByClientCIDRApplyConfiguration { - b.ServerAddress = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `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"` -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *StatusApplyConfiguration) WithStatus(value string) *StatusApplyConfiguration { - b.Status = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *StatusApplyConfiguration) WithMessage(value string) *StatusApplyConfiguration { - b.Message = &value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *StatusApplyConfiguration) WithReason(value metav1.StatusReason) *StatusApplyConfiguration { - b.Reason = &value - return b -} - -// WithDetails sets the Details field in the declarative configuration to the given value -func (b *StatusApplyConfiguration) WithDetails(value *StatusDetailsApplyConfiguration) *StatusApplyConfiguration { - b.Details = value - return b -} - -// WithCode sets the Code field in the declarative configuration to the given value -func (b *StatusApplyConfiguration) WithCode(value int32) *StatusApplyConfiguration { - b.Code = &value - return b -} - -// 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"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *StatusCauseApplyConfiguration) WithType(value metav1.CauseType) *StatusCauseApplyConfiguration { - b.Type = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *StatusCauseApplyConfiguration) WithMessage(value string) *StatusCauseApplyConfiguration { - b.Message = &value - return b -} - -// WithField sets the Field field in the declarative configuration to the given value -func (b *StatusCauseApplyConfiguration) WithField(value string) *StatusCauseApplyConfiguration { - b.Field = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *StatusDetailsApplyConfiguration) WithName(value string) *StatusDetailsApplyConfiguration { - b.Name = &value - return b -} - -// WithGroup sets the Group field in the declarative configuration to the given value -func (b *StatusDetailsApplyConfiguration) WithGroup(value string) *StatusDetailsApplyConfiguration { - b.Group = &value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *StatusDetailsApplyConfiguration) WithKind(value string) *StatusDetailsApplyConfiguration { - b.Kind = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -func (b *StatusDetailsApplyConfiguration) WithUID(value types.UID) *StatusDetailsApplyConfiguration { - b.UID = &value - return b -} - -// WithCauses sets the Causes field in the declarative configuration to the given value -func (b *StatusDetailsApplyConfiguration) WithCauses(value []StatusCauseApplyConfiguration) *StatusDetailsApplyConfiguration { - b.Causes = &value - return b -} - -// WithRetryAfterSeconds sets the RetryAfterSeconds field in the declarative configuration to the given value -func (b *StatusDetailsApplyConfiguration) WithRetryAfterSeconds(value int32) *StatusDetailsApplyConfiguration { - b.RetryAfterSeconds = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - ColumnDefinitions *[]TableColumnDefinitionApplyConfiguration `json:"columnDefinitions,omitempty"` - Rows *[]TableRowApplyConfiguration `json:"rows,omitempty"` -} - -// WithColumnDefinitions sets the ColumnDefinitions field in the declarative configuration to the given value -func (b *TableApplyConfiguration) WithColumnDefinitions(value []TableColumnDefinitionApplyConfiguration) *TableApplyConfiguration { - b.ColumnDefinitions = &value - return b -} - -// WithRows sets the Rows field in the declarative configuration to the given value -func (b *TableApplyConfiguration) WithRows(value []TableRowApplyConfiguration) *TableApplyConfiguration { - b.Rows = &value - return b -} - -// 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"` -} - -// WithName sets the Name field in the declarative configuration to the given value -func (b *TableColumnDefinitionApplyConfiguration) WithName(value string) *TableColumnDefinitionApplyConfiguration { - b.Name = &value - return b -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *TableColumnDefinitionApplyConfiguration) WithType(value string) *TableColumnDefinitionApplyConfiguration { - b.Type = &value - return b -} - -// WithFormat sets the Format field in the declarative configuration to the given value -func (b *TableColumnDefinitionApplyConfiguration) WithFormat(value string) *TableColumnDefinitionApplyConfiguration { - b.Format = &value - return b -} - -// WithDescription sets the Description field in the declarative configuration to the given value -func (b *TableColumnDefinitionApplyConfiguration) WithDescription(value string) *TableColumnDefinitionApplyConfiguration { - b.Description = &value - return b -} - -// WithPriority sets the Priority field in the declarative configuration to the given value -func (b *TableColumnDefinitionApplyConfiguration) WithPriority(value int32) *TableColumnDefinitionApplyConfiguration { - b.Priority = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - IncludeObject *metav1.IncludeObjectPolicy `json:"includeObject,omitempty"` -} - -// WithNoHeaders sets the NoHeaders field in the declarative configuration to the given value -func (b *TableOptionsApplyConfiguration) WithNoHeaders(value bool) *TableOptionsApplyConfiguration { - return b -} - -// WithIncludeObject sets the IncludeObject field in the declarative configuration to the given value -func (b *TableOptionsApplyConfiguration) WithIncludeObject(value metav1.IncludeObjectPolicy) *TableOptionsApplyConfiguration { - b.IncludeObject = &value - return b -} - -// 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"` -} - -// WithCells sets the Cells field in the declarative configuration to the given value -func (b *TableRowApplyConfiguration) WithCells(value []interface{}) *TableRowApplyConfiguration { - b.Cells = &value - return b -} - -// WithConditions sets the Conditions field in the declarative configuration to the given value -func (b *TableRowApplyConfiguration) WithConditions(value []TableRowConditionApplyConfiguration) *TableRowApplyConfiguration { - b.Conditions = &value - return b -} - -// WithObject sets the Object field in the declarative configuration to the given value -func (b *TableRowApplyConfiguration) WithObject(value *runtime.RawExtension) *TableRowApplyConfiguration { - b.Object = value - return b -} - -// 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"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *TableRowConditionApplyConfiguration) WithType(value metav1.RowConditionType) *TableRowConditionApplyConfiguration { - b.Type = &value - return b -} - -// WithStatus sets the Status field in the declarative configuration to the given value -func (b *TableRowConditionApplyConfiguration) WithStatus(value metav1.ConditionStatus) *TableRowConditionApplyConfiguration { - b.Status = &value - return b -} - -// WithReason sets the Reason field in the declarative configuration to the given value -func (b *TableRowConditionApplyConfiguration) WithReason(value string) *TableRowConditionApplyConfiguration { - b.Reason = &value - return b -} - -// WithMessage sets the Message field in the declarative configuration to the given value -func (b *TableRowConditionApplyConfiguration) WithMessage(value string) *TableRowConditionApplyConfiguration { - b.Message = &value - return b -} - -// 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"` -} - -// WithSeconds sets the Seconds field in the declarative configuration to the given value -func (b *TimestampApplyConfiguration) WithSeconds(value int64) *TimestampApplyConfiguration { - b.Seconds = &value - return b -} - -// WithNanos sets the Nanos field in the declarative configuration to the given value -func (b *TimestampApplyConfiguration) WithNanos(value int32) *TimestampApplyConfiguration { - b.Nanos = &value - return b -} - -// 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"` -} - -// WithKind sets the Kind field in the declarative configuration to the given value -func (b *TypeMetaApplyConfiguration) WithKind(value string) *TypeMetaApplyConfiguration { - b.Kind = &value - return b -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -func (b *TypeMetaApplyConfiguration) WithAPIVersion(value string) *TypeMetaApplyConfiguration { - b.APIVersion = &value - return b -} - -// 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 { - metav1.TypeMeta `json:",inline"` - DryRun *[]string `json:"dryRun,omitempty"` - FieldManager *string `json:"fieldManager,omitempty"` -} - -// WithDryRun sets the DryRun field in the declarative configuration to the given value -func (b *UpdateOptionsApplyConfiguration) WithDryRun(value []string) *UpdateOptionsApplyConfiguration { - b.DryRun = &value - return b -} - -// WithFieldManager sets the FieldManager field in the declarative configuration to the given value -func (b *UpdateOptionsApplyConfiguration) WithFieldManager(value string) *UpdateOptionsApplyConfiguration { - b.FieldManager = &value - return b -} - -// 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"` -} - -// WithType sets the Type field in the declarative configuration to the given value -func (b *WatchEventApplyConfiguration) WithType(value string) *WatchEventApplyConfiguration { - b.Type = &value - return b -} - -// WithObject sets the Object field in the declarative configuration to the given value -func (b *WatchEventApplyConfiguration) WithObject(value *runtime.RawExtension) *WatchEventApplyConfiguration { - b.Object = value - return b -} - -// WatchEventApplyConfiguration represents a declarative configuration of the WatchEvent type for use -// with apply. -func WatchEvent() *WatchEventApplyConfiguration { - return &WatchEventApplyConfiguration{} -} diff --git a/pkg/applyconfigurations/testdata/ac/zz_generated.applyconfigurations.go b/pkg/applyconfigurations/testdata/ac/zz_generated.applyconfigurations.go index defcf22f5..344cf766c 100644 --- a/pkg/applyconfigurations/testdata/ac/zz_generated.applyconfigurations.go +++ b/pkg/applyconfigurations/testdata/ac/zz_generated.applyconfigurations.go @@ -5,11 +5,11 @@ package cronjob import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" + v1beta1 "k8s.io/client-go/applyconfigurations/batch/v1beta1" v1 "k8s.io/client-go/applyconfigurations/core/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" testdata "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata" - v1beta1 "sigs.k8s.io/controller-tools/pkg/applyconfigurations/testdata/ac/batch/v1beta1" ) // AssociativeTypeApplyConfiguration represents a declarative configuration of the AssociativeType type for use @@ -47,10 +47,10 @@ func AssociativeType() *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"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"` + Status *CronJobStatusApplyConfiguration `json:"status,omitempty"` } // WithSpec sets the Spec field in the declarative configuration to the given value @@ -73,19 +73,13 @@ func CronJob() *CronJobApplyConfiguration { func (ac *CronJobApplyConfiguration) GetReferenceType() runtime.Object { return &testdata.CronJob{} } -func (ac *CronJobApplyConfiguration) DeepCopy() *CronJobApplyConfiguration { - return ac -} -func (ac *CronJobApplyConfiguration) DeepCopyObject() runtime.Object { - return ac -} // 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"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ListMetaApplyConfiguration `json:"metadata,omitempty"` + Items *[]CronJobApplyConfiguration `json:"items,omitempty"` } // WithItems sets the Items field in the declarative configuration to the given value @@ -316,8 +310,8 @@ func CronJobSpec() *CronJobSpecApplyConfiguration { // with apply. type CronJobStatusApplyConfiguration struct { Active *[]v1.ObjectReferenceApplyConfiguration `json:"active,omitempty"` - LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` - LastScheduleMicroTime *metav1.MicroTime `json:"lastScheduleMicroTime,omitempty"` + LastScheduleTime *metav1.TimeApplyConfiguration `json:"lastScheduleTime,omitempty"` + LastScheduleMicroTime *metav1.MicroTimeApplyConfiguration `json:"lastScheduleMicroTime,omitempty"` } // WithActive sets the Active field in the declarative configuration to the given value @@ -327,13 +321,13 @@ func (b *CronJobStatusApplyConfiguration) WithActive(value []v1.ObjectReferenceA } // WithLastScheduleTime sets the LastScheduleTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value *metav1.Time) *CronJobStatusApplyConfiguration { +func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value *metav1.TimeApplyConfiguration) *CronJobStatusApplyConfiguration { b.LastScheduleTime = value return b } // WithLastScheduleMicroTime sets the LastScheduleMicroTime field in the declarative configuration to the given value -func (b *CronJobStatusApplyConfiguration) WithLastScheduleMicroTime(value *metav1.MicroTime) *CronJobStatusApplyConfiguration { +func (b *CronJobStatusApplyConfiguration) WithLastScheduleMicroTime(value *metav1.MicroTimeApplyConfiguration) *CronJobStatusApplyConfiguration { b.LastScheduleMicroTime = value return b } diff --git a/pkg/applyconfigurations/traverse.go b/pkg/applyconfigurations/traverse.go index 625a1285f..a0a52d50f 100644 --- a/pkg/applyconfigurations/traverse.go +++ b/pkg/applyconfigurations/traverse.go @@ -147,11 +147,6 @@ func (n *namingInfo) Syntax(universe *Universe, basePkg *loader.Package, imports // ApplyConfiguration is in the same package if otherPkg == basePkg.Types && universe.IsApplyConfigGenerated(typeInfo, otherPkg.Path()) { - if typeName.Name() == "ConcurrencyPolicy" { - fmt.Println("arst") - fmt.Println(otherPkg) - fmt.Println(basePkg.Types) - } return typeName.Name() + appendString } @@ -177,7 +172,6 @@ func (n *namingInfo) Syntax(universe *Universe, basePkg *loader.Package, imports case *types.Signature: return typeInfo.String() default: - // basePkg.AddError(fmt.Errorf("name requested for invalid type: %s", typeInfo)) return typeInfo.String() } } @@ -209,10 +203,9 @@ func (c *applyConfigurationMaker) GenerateTypesFor(universe *Universe, root *loa 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 field.Name == "" { - c.Linef("%s %s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) - } else if tags.inline { + if tags.inline { c.Linef("%s %s `json:\"%s\"`", fieldName, fieldTypeString, tags.String()) } else if isPointer(fieldNamingInfo.typeInfo) { tags.omitempty = true @@ -226,8 +219,8 @@ func (c *applyConfigurationMaker) GenerateTypesFor(universe *Universe, root *loa c.Linef("}") } -func (c *applyConfigurationMaker) GenerateTypeGetter(universe *Universe, root *loader.Package, info *markers.TypeInfo) { - +// These functions implement a specific interface as required by controller-runtime +func (c *applyConfigurationMaker) GenerateRootFunctions(universe *Universe, root *loader.Package, info *markers.TypeInfo) { runtime := c.NeedImport("k8s.io/apimachinery/pkg/runtime") typeInfo := root.TypesInfo.TypeOf(info.RawSpec.Name) typeNamingInfo := namingInfo{typeInfo: typeInfo} @@ -235,23 +228,6 @@ func (c *applyConfigurationMaker) GenerateTypeGetter(universe *Universe, root *l c.Linef("func (ac * %sApplyConfiguration) GetReferenceType () %s.Object {", info.Name, runtime) c.Linef("return &%s{}", typeString) c.Linef("}") - - c.Linef("func (ac * %[1]sApplyConfiguration) DeepCopy () *%[1]sApplyConfiguration {", info.Name) - c.Linef("return ac") - c.Linef("}") - - c.Linef("func (ac * %[1]sApplyConfiguration) DeepCopyObject () %s.Object {", info.Name, runtime) - c.Linef("return ac") - c.Linef("}") -} - -func generatePrivateName(s string) string { - if len(s) == 0 { - return s - } - s2 := []byte(s) - s2[0] = s2[0] | ('a' - 'A') - return fmt.Sprintf("%s", s2) } func (c *applyConfigurationMaker) GenerateStructConstructor(root *loader.Package, info *markers.TypeInfo) {