-
Notifications
You must be signed in to change notification settings - Fork 211
/
artifactregistryrepository_types.go
287 lines (233 loc) · 11.6 KB
/
artifactregistryrepository_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
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Config Connector and manual
// changes will be clobbered when the file is regenerated.
//
// ----------------------------------------------------------------------------
// *** DISCLAIMER ***
// Config Connector's go-client for CRDs is currently in ALPHA, which means
// that future versions of the go-client may include breaking changes.
// Please try it out and give us feedback!
package v1beta1
import (
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type RepositoryCleanupPolicies struct {
/* Policy action. Possible values: ["DELETE", "KEEP"]. */
// +optional
Action *string `json:"action,omitempty"`
/* Policy condition for matching versions. */
// +optional
Condition *RepositoryCondition `json:"condition,omitempty"`
Id string `json:"id"`
/* Policy condition for retaining a minimum number of versions. May only be
specified with a Keep action. */
// +optional
MostRecentVersions *RepositoryMostRecentVersions `json:"mostRecentVersions,omitempty"`
}
type RepositoryCondition struct {
/* Match versions newer than a duration. */
// +optional
NewerThan *string `json:"newerThan,omitempty"`
/* Match versions older than a duration. */
// +optional
OlderThan *string `json:"olderThan,omitempty"`
/* Match versions by package prefix. Applied on any prefix match. */
// +optional
PackageNamePrefixes []string `json:"packageNamePrefixes,omitempty"`
/* Match versions by tag prefix. Applied on any prefix match. */
// +optional
TagPrefixes []string `json:"tagPrefixes,omitempty"`
/* Match versions by tag status. Default value: "ANY" Possible values: ["TAGGED", "UNTAGGED", "ANY"]. */
// +optional
TagState *string `json:"tagState,omitempty"`
/* Match versions by version name prefix. Applied on any prefix match. */
// +optional
VersionNamePrefixes []string `json:"versionNamePrefixes,omitempty"`
}
type RepositoryDockerConfig struct {
/* The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created. */
// +optional
ImmutableTags *bool `json:"immutableTags,omitempty"`
}
type RepositoryDockerRepository struct {
/* Immutable. Address of the remote repository. Default value: "DOCKER_HUB" Possible values: ["DOCKER_HUB"]. */
// +optional
PublicRepository *string `json:"publicRepository,omitempty"`
}
type RepositoryMavenConfig struct {
/* Immutable. The repository with this flag will allow publishing the same
snapshot versions. */
// +optional
AllowSnapshotOverwrites *bool `json:"allowSnapshotOverwrites,omitempty"`
/* Immutable. Version policy defines the versions that the registry will accept. Default value: "VERSION_POLICY_UNSPECIFIED" Possible values: ["VERSION_POLICY_UNSPECIFIED", "RELEASE", "SNAPSHOT"]. */
// +optional
VersionPolicy *string `json:"versionPolicy,omitempty"`
}
type RepositoryMavenRepository struct {
/* Immutable. Address of the remote repository. Default value: "MAVEN_CENTRAL" Possible values: ["MAVEN_CENTRAL"]. */
// +optional
PublicRepository *string `json:"publicRepository,omitempty"`
}
type RepositoryMostRecentVersions struct {
/* Minimum number of versions to keep. */
// +optional
KeepCount *int64 `json:"keepCount,omitempty"`
/* Match versions by package prefix. Applied on any prefix match. */
// +optional
PackageNamePrefixes []string `json:"packageNamePrefixes,omitempty"`
}
type RepositoryNpmRepository struct {
/* Immutable. Address of the remote repository. Default value: "NPMJS" Possible values: ["NPMJS"]. */
// +optional
PublicRepository *string `json:"publicRepository,omitempty"`
}
type RepositoryPythonRepository struct {
/* Immutable. Address of the remote repository. Default value: "PYPI" Possible values: ["PYPI"]. */
// +optional
PublicRepository *string `json:"publicRepository,omitempty"`
}
type RepositoryRemoteRepositoryConfig struct {
/* Immutable. The description of the remote source. */
// +optional
Description *string `json:"description,omitempty"`
/* Immutable. Specific settings for a Docker remote repository. */
// +optional
DockerRepository *RepositoryDockerRepository `json:"dockerRepository,omitempty"`
/* Immutable. Specific settings for a Maven remote repository. */
// +optional
MavenRepository *RepositoryMavenRepository `json:"mavenRepository,omitempty"`
/* Immutable. Specific settings for an Npm remote repository. */
// +optional
NpmRepository *RepositoryNpmRepository `json:"npmRepository,omitempty"`
/* Immutable. Specific settings for a Python remote repository. */
// +optional
PythonRepository *RepositoryPythonRepository `json:"pythonRepository,omitempty"`
}
type RepositoryUpstreamPolicies struct {
/* The user-provided ID of the upstream policy. */
// +optional
Id *string `json:"id,omitempty"`
/* Entries with a greater priority value take precedence in the pull order. */
// +optional
Priority *int64 `json:"priority,omitempty"`
/* A reference to the repository resource, for example:
"projects/p1/locations/us-central1/repositories/repo1". */
// +optional
RepositoryRef *v1alpha1.ResourceRef `json:"repositoryRef,omitempty"`
}
type RepositoryVirtualRepositoryConfig struct {
/* Policies that configure the upstream artifacts distributed by the Virtual
Repository. Upstream policies cannot be set on a standard repository. */
// +optional
UpstreamPolicies []RepositoryUpstreamPolicies `json:"upstreamPolicies,omitempty"`
}
type ArtifactRegistryRepositorySpec struct {
/* Cleanup policies for this repository. Cleanup policies indicate when
certain package versions can be automatically deleted.
Map keys are policy IDs supplied by users during policy creation. They must
unique within a repository and be under 128 characters in length. */
// +optional
CleanupPolicies []RepositoryCleanupPolicies `json:"cleanupPolicies,omitempty"`
/* If true, the cleanup pipeline is prevented from deleting versions in this
repository. */
// +optional
CleanupPolicyDryRun *bool `json:"cleanupPolicyDryRun,omitempty"`
/* The user-provided description of the repository. */
// +optional
Description *string `json:"description,omitempty"`
/* Docker repository config contains repository level configuration for the repositories of docker type. */
// +optional
DockerConfig *RepositoryDockerConfig `json:"dockerConfig,omitempty"`
/* Immutable. The format of packages that are stored in the repository. Supported formats
can be found [here](https://cloud.google.com/artifact-registry/docs/supported-formats).
You can only create alpha formats if you are a member of the
[alpha user group](https://cloud.google.com/artifact-registry/docs/supported-formats#alpha-access). */
Format string `json:"format"`
/* The customer managed encryption key that’s used to encrypt the
contents of the Repository. */
// +optional
KmsKeyRef *v1alpha1.ResourceRef `json:"kmsKeyRef,omitempty"`
/* Immutable. The name of the location this repository is located in. */
Location string `json:"location"`
/* MavenRepositoryConfig is maven related repository details.
Provides additional configuration details for repositories of the maven
format type. */
// +optional
MavenConfig *RepositoryMavenConfig `json:"mavenConfig,omitempty"`
/* Immutable. The mode configures the repository to serve artifacts from different sources. Default value: "STANDARD_REPOSITORY" Possible values: ["STANDARD_REPOSITORY", "VIRTUAL_REPOSITORY", "REMOTE_REPOSITORY"]. */
// +optional
Mode *string `json:"mode,omitempty"`
/* Immutable. Configuration specific for a Remote Repository. */
// +optional
RemoteRepositoryConfig *RepositoryRemoteRepositoryConfig `json:"remoteRepositoryConfig,omitempty"`
/* Immutable. Optional. The repositoryId of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
// +optional
ResourceID *string `json:"resourceID,omitempty"`
/* Configuration specific for a Virtual Repository. */
// +optional
VirtualRepositoryConfig *RepositoryVirtualRepositoryConfig `json:"virtualRepositoryConfig,omitempty"`
}
type ArtifactRegistryRepositoryStatus struct {
/* Conditions represent the latest available observations of the
ArtifactRegistryRepository's current state. */
Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
/* The time when the repository was created. */
// +optional
CreateTime *string `json:"createTime,omitempty"`
/* The name of the repository, for example:
"repo1". */
// +optional
Name *string `json:"name,omitempty"`
/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
// +optional
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
/* The time when the repository was last updated. */
// +optional
UpdateTime *string `json:"updateTime,omitempty"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:categories=gcp,shortName=gcpartifactregistryrepository;gcpartifactregistryrepositories
// +kubebuilder:subresource:status
// +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true";"cnrm.cloud.google.com/stability-level=stable";"cnrm.cloud.google.com/system=true";"cnrm.cloud.google.com/tf2crd=true"
// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date"
// +kubebuilder:printcolumn:name="Ready",JSONPath=".status.conditions[?(@.type=='Ready')].status",type="string",description="When 'True', the most recent reconcile of the resource succeeded"
// +kubebuilder:printcolumn:name="Status",JSONPath=".status.conditions[?(@.type=='Ready')].reason",type="string",description="The reason for the value in 'Ready'"
// +kubebuilder:printcolumn:name="Status Age",JSONPath=".status.conditions[?(@.type=='Ready')].lastTransitionTime",type="date",description="The last transition time for the value in 'Status'"
// ArtifactRegistryRepository is the Schema for the artifactregistry API
// +k8s:openapi-gen=true
type ArtifactRegistryRepository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ArtifactRegistryRepositorySpec `json:"spec,omitempty"`
Status ArtifactRegistryRepositoryStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ArtifactRegistryRepositoryList contains a list of ArtifactRegistryRepository
type ArtifactRegistryRepositoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ArtifactRegistryRepository `json:"items"`
}
func init() {
SchemeBuilder.Register(&ArtifactRegistryRepository{}, &ArtifactRegistryRepositoryList{})
}