-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_containerservice_types.go
executable file
·302 lines (230 loc) · 15.3 KB
/
zz_containerservice_types.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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ContainerServiceInitParameters struct {
// A Boolean value indicating whether the container service is disabled. Defaults to false.
IsDisabled *bool `json:"isDisabled,omitempty" tf:"is_disabled,omitempty"`
// The power specification for the container service. The power specifies the amount of memory,
// the number of vCPUs, and the monthly price of each node of the container service.
// Possible values: nano, micro, small, medium, large, xlarge.
Power *string `json:"power,omitempty" tf:"power,omitempty"`
// An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.
PrivateRegistryAccess []PrivateRegistryAccessInitParameters `json:"privateRegistryAccess,omitempty" tf:"private_registry_access,omitempty"`
// The public domain names to use with the container service, such as example.com
// and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
// specify are used when you create a deployment with a container configured as the public endpoint of your container
// service. If you don't specify public domain names, then you can use the default domain of the container service.
// Defined below.
PublicDomainNames []PublicDomainNamesInitParameters `json:"publicDomainNames,omitempty" tf:"public_domain_names,omitempty"`
// The scale specification for the container service. The scale specifies the allocated compute
// nodes of the container service.
Scale *float64 `json:"scale,omitempty" tf:"scale,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type ContainerServiceObservation struct {
// The Amazon Resource Name (ARN) of the container service.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The Availability Zone. Follows the format us-east-2a (case-sensitive).
AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`
CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`
// Same as name.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// A Boolean value indicating whether the container service is disabled. Defaults to false.
IsDisabled *bool `json:"isDisabled,omitempty" tf:"is_disabled,omitempty"`
// The power specification for the container service. The power specifies the amount of memory,
// the number of vCPUs, and the monthly price of each node of the container service.
// Possible values: nano, micro, small, medium, large, xlarge.
Power *string `json:"power,omitempty" tf:"power,omitempty"`
// The ID of the power of the container service.
PowerID *string `json:"powerId,omitempty" tf:"power_id,omitempty"`
// The principal ARN of the container service. The principal ARN can be used to create a trust
// relationship between your standard AWS account and your Lightsail container service. This allows you to give your
// service permission to access resources in your standard AWS account.
PrincipalArn *string `json:"principalArn,omitempty" tf:"principal_arn,omitempty"`
// The private domain name of the container service. The private domain name is accessible only
// by other resources within the default virtual private cloud (VPC) of your Lightsail account.
PrivateDomainName *string `json:"privateDomainName,omitempty" tf:"private_domain_name,omitempty"`
// An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.
PrivateRegistryAccess []PrivateRegistryAccessObservation `json:"privateRegistryAccess,omitempty" tf:"private_registry_access,omitempty"`
// The public domain names to use with the container service, such as example.com
// and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
// specify are used when you create a deployment with a container configured as the public endpoint of your container
// service. If you don't specify public domain names, then you can use the default domain of the container service.
// Defined below.
PublicDomainNames []PublicDomainNamesObservation `json:"publicDomainNames,omitempty" tf:"public_domain_names,omitempty"`
// The Lightsail resource type of the container service (i.e., ContainerService).
ResourceType *string `json:"resourceType,omitempty" tf:"resource_type,omitempty"`
// The scale specification for the container service. The scale specifies the allocated compute
// nodes of the container service.
Scale *float64 `json:"scale,omitempty" tf:"scale,omitempty"`
// The current state of the container service.
State *string `json:"state,omitempty" tf:"state,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider
// default_tags configuration block.
// +mapType=granular
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// The publicly accessible URL of the container service. If no public endpoint is specified in the
// currentDeployment, this URL returns a 404 response.
URL *string `json:"url,omitempty" tf:"url,omitempty"`
}
type ContainerServiceParameters struct {
// A Boolean value indicating whether the container service is disabled. Defaults to false.
// +kubebuilder:validation:Optional
IsDisabled *bool `json:"isDisabled,omitempty" tf:"is_disabled,omitempty"`
// The power specification for the container service. The power specifies the amount of memory,
// the number of vCPUs, and the monthly price of each node of the container service.
// Possible values: nano, micro, small, medium, large, xlarge.
// +kubebuilder:validation:Optional
Power *string `json:"power,omitempty" tf:"power,omitempty"`
// An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.
// +kubebuilder:validation:Optional
PrivateRegistryAccess []PrivateRegistryAccessParameters `json:"privateRegistryAccess,omitempty" tf:"private_registry_access,omitempty"`
// The public domain names to use with the container service, such as example.com
// and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
// specify are used when you create a deployment with a container configured as the public endpoint of your container
// service. If you don't specify public domain names, then you can use the default domain of the container service.
// Defined below.
// +kubebuilder:validation:Optional
PublicDomainNames []PublicDomainNamesParameters `json:"publicDomainNames,omitempty" tf:"public_domain_names,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// The scale specification for the container service. The scale specifies the allocated compute
// nodes of the container service.
// +kubebuilder:validation:Optional
Scale *float64 `json:"scale,omitempty" tf:"scale,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type EcrImagePullerRoleInitParameters struct {
// A Boolean value that indicates whether to activate the role. The default is false.
IsActive *bool `json:"isActive,omitempty" tf:"is_active,omitempty"`
}
type EcrImagePullerRoleObservation struct {
// A Boolean value that indicates whether to activate the role. The default is false.
IsActive *bool `json:"isActive,omitempty" tf:"is_active,omitempty"`
// The principal ARN of the container service. The principal ARN can be used to create a trust
// relationship between your standard AWS account and your Lightsail container service. This allows you to give your
// service permission to access resources in your standard AWS account.
PrincipalArn *string `json:"principalArn,omitempty" tf:"principal_arn,omitempty"`
}
type EcrImagePullerRoleParameters struct {
// A Boolean value that indicates whether to activate the role. The default is false.
// +kubebuilder:validation:Optional
IsActive *bool `json:"isActive,omitempty" tf:"is_active,omitempty"`
}
type PrivateRegistryAccessInitParameters struct {
// Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.
EcrImagePullerRole []EcrImagePullerRoleInitParameters `json:"ecrImagePullerRole,omitempty" tf:"ecr_image_puller_role,omitempty"`
}
type PrivateRegistryAccessObservation struct {
// Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.
EcrImagePullerRole []EcrImagePullerRoleObservation `json:"ecrImagePullerRole,omitempty" tf:"ecr_image_puller_role,omitempty"`
}
type PrivateRegistryAccessParameters struct {
// Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.
// +kubebuilder:validation:Optional
EcrImagePullerRole []EcrImagePullerRoleParameters `json:"ecrImagePullerRole,omitempty" tf:"ecr_image_puller_role,omitempty"`
}
type PublicDomainNamesCertificateInitParameters struct {
// The name for the container service. Names must be of length 1 to 63, and be
// unique within each AWS Region in your Lightsail account.
CertificateName *string `json:"certificateName,omitempty" tf:"certificate_name,omitempty"`
DomainNames []*string `json:"domainNames,omitempty" tf:"domain_names,omitempty"`
}
type PublicDomainNamesCertificateObservation struct {
// The name for the container service. Names must be of length 1 to 63, and be
// unique within each AWS Region in your Lightsail account.
CertificateName *string `json:"certificateName,omitempty" tf:"certificate_name,omitempty"`
DomainNames []*string `json:"domainNames,omitempty" tf:"domain_names,omitempty"`
}
type PublicDomainNamesCertificateParameters struct {
// The name for the container service. Names must be of length 1 to 63, and be
// unique within each AWS Region in your Lightsail account.
// +kubebuilder:validation:Optional
CertificateName *string `json:"certificateName" tf:"certificate_name,omitempty"`
// +kubebuilder:validation:Optional
DomainNames []*string `json:"domainNames" tf:"domain_names,omitempty"`
}
type PublicDomainNamesInitParameters struct {
Certificate []PublicDomainNamesCertificateInitParameters `json:"certificate,omitempty" tf:"certificate,omitempty"`
}
type PublicDomainNamesObservation struct {
Certificate []PublicDomainNamesCertificateObservation `json:"certificate,omitempty" tf:"certificate,omitempty"`
}
type PublicDomainNamesParameters struct {
// +kubebuilder:validation:Optional
Certificate []PublicDomainNamesCertificateParameters `json:"certificate" tf:"certificate,omitempty"`
}
// ContainerServiceSpec defines the desired state of ContainerService
type ContainerServiceSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ContainerServiceParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider ContainerServiceInitParameters `json:"initProvider,omitempty"`
}
// ContainerServiceStatus defines the observed state of ContainerService.
type ContainerServiceStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ContainerServiceObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// ContainerService is the Schema for the ContainerServices API. Provides a resource to manage Lightsail container service
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type ContainerService struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.power) || (has(self.initProvider) && has(self.initProvider.power))",message="spec.forProvider.power is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scale) || (has(self.initProvider) && has(self.initProvider.scale))",message="spec.forProvider.scale is a required parameter"
Spec ContainerServiceSpec `json:"spec"`
Status ContainerServiceStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ContainerServiceList contains a list of ContainerServices
type ContainerServiceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContainerService `json:"items"`
}
// Repository type metadata.
var (
ContainerService_Kind = "ContainerService"
ContainerService_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ContainerService_Kind}.String()
ContainerService_KindAPIVersion = ContainerService_Kind + "." + CRDGroupVersion.String()
ContainerService_GroupVersionKind = CRDGroupVersion.WithKind(ContainerService_Kind)
)
func init() {
SchemeBuilder.Register(&ContainerService{}, &ContainerServiceList{})
}