-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabricoperationsconsolecouchdb.go
117 lines (103 loc) · 6.1 KB
/
fabricoperationsconsolecouchdb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
import (
v1 "k8s.io/api/core/v1"
)
// FabricOperationsConsoleCouchDBApplyConfiguration represents an declarative configuration of the FabricOperationsConsoleCouchDB type for use
// with apply.
type FabricOperationsConsoleCouchDBApplyConfiguration struct {
Image *string `json:"image,omitempty"`
Tag *string `json:"tag,omitempty"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
Storage *StorageApplyConfiguration `json:"storage,omitempty"`
Resources *v1.ResourceRequirements `json:"resources,omitempty"`
ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
Affinity *v1.Affinity `json:"affinity,omitempty"`
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
ImagePullPolicy *v1.PullPolicy `json:"imagePullPolicy,omitempty"`
}
// FabricOperationsConsoleCouchDBApplyConfiguration constructs an declarative configuration of the FabricOperationsConsoleCouchDB type for use with
// apply.
func FabricOperationsConsoleCouchDB() *FabricOperationsConsoleCouchDBApplyConfiguration {
return &FabricOperationsConsoleCouchDBApplyConfiguration{}
}
// WithImage sets the Image field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Image field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithImage(value string) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Image = &value
return b
}
// WithTag sets the Tag field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Tag field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithTag(value string) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Tag = &value
return b
}
// WithUsername sets the Username field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Username field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithUsername(value string) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Username = &value
return b
}
// WithPassword sets the Password field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Password field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithPassword(value string) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Password = &value
return b
}
// WithStorage sets the Storage field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Storage field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithStorage(value *StorageApplyConfiguration) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Storage = value
return b
}
// WithResources sets the Resources field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Resources field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithResources(value v1.ResourceRequirements) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Resources = &value
return b
}
// WithImagePullSecrets adds the given value to the ImagePullSecrets field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the ImagePullSecrets field.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithImagePullSecrets(values ...v1.LocalObjectReference) *FabricOperationsConsoleCouchDBApplyConfiguration {
for i := range values {
b.ImagePullSecrets = append(b.ImagePullSecrets, values[i])
}
return b
}
// WithAffinity sets the Affinity field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Affinity field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithAffinity(value v1.Affinity) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.Affinity = &value
return b
}
// WithTolerations adds the given value to the Tolerations field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Tolerations field.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithTolerations(values ...v1.Toleration) *FabricOperationsConsoleCouchDBApplyConfiguration {
for i := range values {
b.Tolerations = append(b.Tolerations, values[i])
}
return b
}
// WithImagePullPolicy sets the ImagePullPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImagePullPolicy field is set to the value of the last call.
func (b *FabricOperationsConsoleCouchDBApplyConfiguration) WithImagePullPolicy(value v1.PullPolicy) *FabricOperationsConsoleCouchDBApplyConfiguration {
b.ImagePullPolicy = &value
return b
}