-
Notifications
You must be signed in to change notification settings - Fork 112
/
zz_repository_types.go
executable file
·156 lines (116 loc) · 7.53 KB
/
zz_repository_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
/*
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 CatalogDataObservation struct {
// A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
AboutText *string `json:"aboutText,omitempty" tf:"about_text,omitempty"`
// The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: ARM, ARM 64, x86, x86-64
Architectures []*string `json:"architectures,omitempty" tf:"architectures,omitempty"`
// A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.
LogoImageBlob *string `json:"logoImageBlob,omitempty" tf:"logo_image_blob,omitempty"`
// The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: Linux, Windows
OperatingSystems []*string `json:"operatingSystems,omitempty" tf:"operating_systems,omitempty"`
// Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
UsageText *string `json:"usageText,omitempty" tf:"usage_text,omitempty"`
}
type CatalogDataParameters struct {
// A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
// +kubebuilder:validation:Optional
AboutText *string `json:"aboutText,omitempty" tf:"about_text,omitempty"`
// The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: ARM, ARM 64, x86, x86-64
// +kubebuilder:validation:Optional
Architectures []*string `json:"architectures,omitempty" tf:"architectures,omitempty"`
// A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.
// +kubebuilder:validation:Optional
LogoImageBlob *string `json:"logoImageBlob,omitempty" tf:"logo_image_blob,omitempty"`
// The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: Linux, Windows
// +kubebuilder:validation:Optional
OperatingSystems []*string `json:"operatingSystems,omitempty" tf:"operating_systems,omitempty"`
// Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
// +kubebuilder:validation:Optional
UsageText *string `json:"usageText,omitempty" tf:"usage_text,omitempty"`
}
type RepositoryObservation struct {
// Full ARN of the repository.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Catalog data configuration for the repository. See below for schema.
CatalogData []CatalogDataObservation `json:"catalogData,omitempty" tf:"catalog_data,omitempty"`
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
// The repository name.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The registry ID where the repository was created.
RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"`
// The URI of the repository.
RepositoryURI *string `json:"repositoryUri,omitempty" tf:"repository_uri,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// 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"`
}
type RepositoryParameters struct {
// Catalog data configuration for the repository. See below for schema.
// +kubebuilder:validation:Optional
CatalogData []CatalogDataParameters `json:"catalogData,omitempty" tf:"catalog_data,omitempty"`
// +kubebuilder:validation:Optional
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,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:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
// RepositorySpec defines the desired state of Repository
type RepositorySpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider RepositoryParameters `json:"forProvider"`
}
// RepositoryStatus defines the observed state of Repository.
type RepositoryStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider RepositoryObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Repository is the Schema for the Repositorys API. Provides a Public Elastic Container Registry Repository.
// +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 Repository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RepositorySpec `json:"spec"`
Status RepositoryStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// RepositoryList contains a list of Repositorys
type RepositoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Repository `json:"items"`
}
// Repository type metadata.
var (
Repository_Kind = "Repository"
Repository_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Repository_Kind}.String()
Repository_KindAPIVersion = Repository_Kind + "." + CRDGroupVersion.String()
Repository_GroupVersionKind = CRDGroupVersion.WithKind(Repository_Kind)
)
func init() {
SchemeBuilder.Register(&Repository{}, &RepositoryList{})
}