-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_containerservice_types.go
executable file
·198 lines (150 loc) · 9 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
/*
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 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"`
// 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.
// +kubebuilder:validation:Optional
PrivateRegistryAccess []PrivateRegistryAccessObservation `json:"privateRegistryAccess,omitempty" tf:"private_registry_access,omitempty"`
// The Lightsail resource type of the container service (i.e., ContainerService).
ResourceType *string `json:"resourceType,omitempty" tf:"resource_type,omitempty"`
// The current state of the container service.
State *string `json:"state,omitempty" tf:"state,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider
// default_tags configuration block.
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:Required
Power *string `json:"power" 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:Required
Scale *float64 `json:"scale" tf:"scale,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type EcrImagePullerRoleObservation struct {
// 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 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.
// +kubebuilder:validation:Optional
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 PublicDomainNamesCertificateObservation struct {
}
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:Required
CertificateName *string `json:"certificateName" tf:"certificate_name,omitempty"`
// +kubebuilder:validation:Required
DomainNames []*string `json:"domainNames" tf:"domain_names,omitempty"`
}
type PublicDomainNamesObservation struct {
}
type PublicDomainNamesParameters struct {
// +kubebuilder:validation:Required
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"`
}
// 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"`
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{})
}