-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathzz_generated.swagger_doc_generated.go
242 lines (198 loc) · 16.9 KB
/
zz_generated.swagger_doc_generated.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
package v1
// This file contains a collection of methods that can be used from go-restful to
// generate Swagger API documentation for its models. Please read this PR for more
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
//
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
// they are on one line! For multiple line or blocks that you want to ignore use ---.
// Any context after a --- is ignored.
//
// Those methods can be generated by using hack/update-swagger-docs.sh
// AUTO-GENERATED FUNCTIONS START HERE
var map_ClusterManager = map[string]string{
"": "ClusterManager configures the controllers on the hub that govern registration and work distribution for attached Klusterlets. In Default mode, ClusterManager will only be deployed in open-cluster-management-hub namespace. In Hosted mode, ClusterManager will be deployed in the namespace with the same name as cluster manager.",
"spec": "Spec represents a desired deployment configuration of controllers that govern registration and work distribution for attached Klusterlets.",
"status": "Status represents the current status of controllers that govern the lifecycle of managed clusters.",
}
func (ClusterManager) SwaggerDoc() map[string]string {
return map_ClusterManager
}
var map_ClusterManagerDeployOption = map[string]string{
"": "ClusterManagerDeployOption describes the deploy options for cluster-manager",
"mode": "Mode can be Default or Hosted. In Default mode, the Hub is installed as a whole and all parts of Hub are deployed in the same cluster. In Hosted mode, only crd and configurations are installed on one cluster(defined as hub-cluster). Controllers run in another cluster (defined as management-cluster) and connect to the hub with the kubeconfig in secret of \"external-hub-kubeconfig\"(a kubeconfig of hub-cluster with cluster-admin permission). Note: Do not modify the Mode field once it's applied.",
"hosted": "Hosted includes configurations we needs for clustermanager in the Hosted mode.",
}
func (ClusterManagerDeployOption) SwaggerDoc() map[string]string {
return map_ClusterManagerDeployOption
}
var map_ClusterManagerList = map[string]string{
"": "ClusterManagerList is a collection of deployment configurations for registration and work distribution controllers.",
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds",
"items": "Items is a list of deployment configurations for registration and work distribution controllers.",
}
func (ClusterManagerList) SwaggerDoc() map[string]string {
return map_ClusterManagerList
}
var map_ClusterManagerSpec = map[string]string{
"": "ClusterManagerSpec represents a desired deployment configuration of controllers that govern registration and work distribution for attached Klusterlets.",
"registrationImagePullSpec": "RegistrationImagePullSpec represents the desired image of registration controller/webhook installed on hub.",
"workImagePullSpec": "WorkImagePullSpec represents the desired image configuration of work controller/webhook installed on hub.",
"placementImagePullSpec": "PlacementImagePullSpec represents the desired image configuration of placement controller/webhook installed on hub.",
"nodePlacement": "NodePlacement enables explicit control over the scheduling of the deployed pods.",
"deployOption": "DeployOption contains the options of deploying a cluster-manager Default mode is used if DeployOption is not set.",
"registrationConfiguration": "RegistrationConfiguration contains the configuration of registration",
"workConfiguration": "WorkConfiguration contains the configuration of work",
}
func (ClusterManagerSpec) SwaggerDoc() map[string]string {
return map_ClusterManagerSpec
}
var map_ClusterManagerStatus = map[string]string{
"": "ClusterManagerStatus represents the current status of the registration and work distribution controllers running on the hub.",
"observedGeneration": "ObservedGeneration is the last generation change you've dealt with",
"conditions": "Conditions contain the different condition statuses for this ClusterManager. Valid condition types are: Applied: Components in hub are applied. Available: Components in hub are available and ready to serve. Progressing: Components in hub are in a transitioning state. Degraded: Components in hub do not match the desired configuration and only provide degraded service.",
"generations": "Generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction.",
"relatedResources": "RelatedResources are used to track the resources that are related to this ClusterManager.",
}
func (ClusterManagerStatus) SwaggerDoc() map[string]string {
return map_ClusterManagerStatus
}
var map_FeatureGate = map[string]string{
"feature": "Feature is the key of feature gate. e.g. featuregate/Foo.",
"mode": "Mode is either Enable, Disable, \"\" where \"\" is Disable by default. In Enable mode, a valid feature gate `featuregate/Foo` will be set to \"--featuregate/Foo=true\". In Disable mode, a valid feature gate `featuregate/Foo` will be set to \"--featuregate/Foo=false\".",
}
func (FeatureGate) SwaggerDoc() map[string]string {
return map_FeatureGate
}
var map_GenerationStatus = map[string]string{
"": "GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made. The definition matches the GenerationStatus defined in github.com/openshift/api/v1",
"group": "group is the group of the resource that you're tracking",
"version": "version is the version of the resource that you're tracking",
"resource": "resource is the resource type of the resource that you're tracking",
"namespace": "namespace is where the resource that you're tracking is",
"name": "name is the name of the resource that you're tracking",
"lastGeneration": "lastGeneration is the last generation of the resource that controller applies",
}
func (GenerationStatus) SwaggerDoc() map[string]string {
return map_GenerationStatus
}
var map_HostedClusterManagerConfiguration = map[string]string{
"": "HostedClusterManagerConfiguration represents customized configurations we need to set for clustermanager in the Hosted mode.",
"registrationWebhookConfiguration": "RegistrationWebhookConfiguration represents the customized webhook-server configuration of registration.",
"workWebhookConfiguration": "WorkWebhookConfiguration represents the customized webhook-server configuration of work.",
}
func (HostedClusterManagerConfiguration) SwaggerDoc() map[string]string {
return map_HostedClusterManagerConfiguration
}
var map_HubApiServerHostAlias = map[string]string{
"": "HubApiServerHostAlias holds the mapping between IP and hostname that will be injected as an entry in the pod's hosts file.",
"ip": "IP address of the host file entry.",
"hostname": "Hostname for the above IP address.",
}
func (HubApiServerHostAlias) SwaggerDoc() map[string]string {
return map_HubApiServerHostAlias
}
var map_Klusterlet = map[string]string{
"": "Klusterlet represents controllers to install the resources for a managed cluster. When configured, the Klusterlet requires a secret named bootstrap-hub-kubeconfig in the agent namespace to allow API requests to the hub for the registration protocol. In Hosted mode, the Klusterlet requires an additional secret named external-managed-kubeconfig in the agent namespace to allow API requests to the managed cluster for resources installation.",
"spec": "Spec represents the desired deployment configuration of Klusterlet agent.",
"status": "Status represents the current status of Klusterlet agent.",
}
func (Klusterlet) SwaggerDoc() map[string]string {
return map_Klusterlet
}
var map_KlusterletDeployOption = map[string]string{
"": "KlusterletDeployOption describes the deploy options for klusterlet",
"mode": "Mode can be Default or Hosted. It is Default mode if not specified In Default mode, all klusterlet related resources are deployed on the managed cluster. In Hosted mode, only crd and configurations are installed on the spoke/managed cluster. Controllers run in another cluster (defined as management-cluster) and connect to the mangaged cluster with the kubeconfig in secret of \"external-managed-kubeconfig\"(a kubeconfig of managed-cluster with cluster-admin permission). Note: Do not modify the Mode field once it's applied.",
}
func (KlusterletDeployOption) SwaggerDoc() map[string]string {
return map_KlusterletDeployOption
}
var map_KlusterletList = map[string]string{
"": "KlusterletList is a collection of Klusterlet agents.",
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds",
"items": "Items is a list of Klusterlet agents.",
}
func (KlusterletList) SwaggerDoc() map[string]string {
return map_KlusterletList
}
var map_KlusterletSpec = map[string]string{
"": "KlusterletSpec represents the desired deployment configuration of Klusterlet agent.",
"namespace": "Namespace is the namespace to deploy the agent on the managed cluster. The namespace must have a prefix of \"open-cluster-management-\", and if it is not set, the namespace of \"open-cluster-management-agent\" is used to deploy agent. In addition, the add-ons are deployed to the namespace of \"{Namespace}-addon\". In the Hosted mode, this namespace still exists on the managed cluster to contain necessary resources, like service accounts, roles and rolebindings, while the agent is deployed to the namespace with the same name as klusterlet on the management cluster.",
"registrationImagePullSpec": "RegistrationImagePullSpec represents the desired image configuration of registration agent. quay.io/open-cluster-management.io/registration:latest will be used if unspecified.",
"workImagePullSpec": "WorkImagePullSpec represents the desired image configuration of work agent. quay.io/open-cluster-management.io/work:latest will be used if unspecified.",
"clusterName": "ClusterName is the name of the managed cluster to be created on hub. The Klusterlet agent generates a random name if it is not set, or discovers the appropriate cluster name on OpenShift.",
"externalServerURLs": "ExternalServerURLs represents the a list of apiserver urls and ca bundles that is accessible externally If it is set empty, managed cluster has no externally accessible url that hub cluster can visit.",
"nodePlacement": "NodePlacement enables explicit control over the scheduling of the deployed pods.",
"deployOption": "DeployOption contains the options of deploying a klusterlet",
"registrationConfiguration": "RegistrationConfiguration contains the configuration of registration",
"workConfiguration": "WorkConfiguration contains the configuration of work",
"hubApiServerHostAlias": "HubApiServerHostAlias contains the host alias for hub api server. registration-agent and work-agent will use it to communicate with hub api server.",
}
func (KlusterletSpec) SwaggerDoc() map[string]string {
return map_KlusterletSpec
}
var map_KlusterletStatus = map[string]string{
"": "KlusterletStatus represents the current status of Klusterlet agent.",
"observedGeneration": "ObservedGeneration is the last generation change you've dealt with",
"conditions": "Conditions contain the different condition statuses for this Klusterlet. Valid condition types are: Applied: Components have been applied in the managed cluster. Available: Components in the managed cluster are available and ready to serve. Progressing: Components in the managed cluster are in a transitioning state. Degraded: Components in the managed cluster do not match the desired configuration and only provide degraded service.",
"generations": "Generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction.",
"relatedResources": "RelatedResources are used to track the resources that are related to this Klusterlet.",
}
func (KlusterletStatus) SwaggerDoc() map[string]string {
return map_KlusterletStatus
}
var map_KlusterletWorkConfiguration = map[string]string{
"": "KlusterletWorkConfiguration contains the configuration of work agent",
"clusterRoles": "ClusterRoles is the clusterroles that work agent binds to. If it is empty, the default admin clusterrole in kubernetes is bound to the work agent.",
"featureGates": "FeatureGates represents the list of feature gates for work agent If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates:\n 1. If featuregate/Foo does not exist, registration-operator will discard it\n 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true]\n 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false,\n \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.",
}
func (KlusterletWorkConfiguration) SwaggerDoc() map[string]string {
return map_KlusterletWorkConfiguration
}
var map_NodePlacement = map[string]string{
"": "NodePlacement describes node scheduling configuration for the pods.",
"nodeSelector": "NodeSelector defines which Nodes the Pods are scheduled on. The default is an empty list.",
"tolerations": "Tolerations is attached by pods to tolerate any taint that matches the triple <key,value,effect> using the matching operator <operator>. The default is an empty list.",
}
func (NodePlacement) SwaggerDoc() map[string]string {
return map_NodePlacement
}
var map_RegistrationConfiguration = map[string]string{
"featureGates": "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates:\n 1. If featuregate/Foo does not exist, registration-operator will discard it\n 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true]\n 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false,\n \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.",
}
func (RegistrationConfiguration) SwaggerDoc() map[string]string {
return map_RegistrationConfiguration
}
var map_RelatedResourceMeta = map[string]string{
"": "RelatedResourceMeta represents the resource that is managed by an operator",
"group": "group is the group of the resource that you're tracking",
"version": "version is the version of the thing you're tracking",
"resource": "resource is the resource type of the resource that you're tracking",
"namespace": "namespace is where the thing you're tracking is",
"name": "name is the name of the resource that you're tracking",
}
func (RelatedResourceMeta) SwaggerDoc() map[string]string {
return map_RelatedResourceMeta
}
var map_ServerURL = map[string]string{
"": "ServerURL represents the apiserver url and ca bundle that is accessible externally",
"url": "URL is the url of apiserver endpoint of the managed cluster.",
"caBundle": "CABundle is the ca bundle to connect to apiserver of the managed cluster. System certs are used if it is not set.",
}
func (ServerURL) SwaggerDoc() map[string]string {
return map_ServerURL
}
var map_WebhookConfiguration = map[string]string{
"": "WebhookConfiguration has two properties: Address and Port.",
"address": "Address represents the address of a webhook-server. It could be in IP format or fqdn format. The Address must be reachable by apiserver of the hub cluster.",
"port": "Port represents the port of a webhook-server. The default value of Port is 443.",
}
func (WebhookConfiguration) SwaggerDoc() map[string]string {
return map_WebhookConfiguration
}
var map_WorkConfiguration = map[string]string{
"featureGates": "FeatureGates represents the list of feature gates for work If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates:\n 1. If featuregate/Foo does not exist, registration-operator will discard it\n 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true]\n 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false,\n \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.",
}
func (WorkConfiguration) SwaggerDoc() map[string]string {
return map_WorkConfiguration
}
// AUTO-GENERATED FUNCTIONS END HERE