Skip to content

Commit eea4b41

Browse files
committed
add epam/edp-gerrit-operator
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
1 parent 5990849 commit eea4b41

File tree

19 files changed

+893
-0
lines changed

19 files changed

+893
-0
lines changed

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ Files: crd-catalog/epam/edp-codebase-operator/*
491491
Copyright: The epam/edp-codebase-operator Authors
492492
License: Apache-2.0
493493

494+
Files: crd-catalog/epam/edp-gerrit-operator/*
495+
Copyright: The epam/edp-gerrit-operator Authors
496+
License: Apache-2.0
497+
494498
Files: crd-catalog/eryalito/kubensync-operator/*
495499
Copyright: The eryalito/kubensync-operator Authors
496500
License: Apache-2.0

code-generator/src/catalog.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,20 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
13421342
],
13431343
ignores: &[],
13441344
},
1345+
UpstreamSource {
1346+
project_name: "epam/edp-gerrit-operator",
1347+
license: APACHE_V2,
1348+
urls: &[
1349+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerritgroupmembers.yaml",
1350+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerritgroups.yaml",
1351+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerritmergerequests.yaml",
1352+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerritprojectaccesses.yaml",
1353+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerritprojects.yaml",
1354+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerritreplicationconfigs.yaml",
1355+
"https://github.com/epam/edp-gerrit-operator/blob/master/deploy-templates/crds/v2.edp.epam.com_gerrits.yaml",
1356+
],
1357+
ignores: &[],
1358+
},
13451359
UpstreamSource {
13461360
project_name: "eryalito/kubensync-operator",
13471361
license: APACHE_V2,
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.15.0"
6+
name: "gerritgroupmembers.v2.edp.epam.com"
7+
spec:
8+
group: "v2.edp.epam.com"
9+
names:
10+
kind: "GerritGroupMember"
11+
listKind: "GerritGroupMemberList"
12+
plural: "gerritgroupmembers"
13+
singular: "gerritgroupmember"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "GerritGroupMember is the Schema for the gerrit group member API."
20+
properties:
21+
apiVersion:
22+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
23+
type: "string"
24+
kind:
25+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
26+
type: "string"
27+
metadata:
28+
type: "object"
29+
spec:
30+
description: "GerritGroupMemberSpec defines the desired state of GerritGroupMember."
31+
properties:
32+
accountId:
33+
type: "string"
34+
groupId:
35+
type: "string"
36+
ownerName:
37+
description: "OwnerName indicates which gerrit CR should be taken to initialize correct client."
38+
nullable: true
39+
type: "string"
40+
required:
41+
- "accountId"
42+
- "groupId"
43+
type: "object"
44+
status:
45+
description: "GerritGroupMemberStatus defines the observed state of GerritGroupMember."
46+
properties:
47+
failureCount:
48+
description: "Preserves Number of Failures during reconciliation phase. Used for exponential back-off calculation"
49+
format: "int64"
50+
type: "integer"
51+
value:
52+
type: "string"
53+
type: "object"
54+
type: "object"
55+
served: true
56+
storage: true
57+
subresources:
58+
status: {}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.15.0"
6+
name: "gerritgroups.v2.edp.epam.com"
7+
spec:
8+
group: "v2.edp.epam.com"
9+
names:
10+
kind: "GerritGroup"
11+
listKind: "GerritGroupList"
12+
plural: "gerritgroups"
13+
singular: "gerritgroup"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "GerritGroup is the Schema for the gerrit group API."
20+
properties:
21+
apiVersion:
22+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
23+
type: "string"
24+
kind:
25+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
26+
type: "string"
27+
metadata:
28+
type: "object"
29+
spec:
30+
description: "GerritGroupSpec defines the desired state of GerritGroup."
31+
properties:
32+
description:
33+
type: "string"
34+
gerritOwner:
35+
type: "string"
36+
name:
37+
type: "string"
38+
visibleToAll:
39+
type: "boolean"
40+
required:
41+
- "name"
42+
type: "object"
43+
status:
44+
description: "GerritGroupStatus defines the observed state of GerritGroup."
45+
properties:
46+
groupId:
47+
type: "string"
48+
id:
49+
type: "string"
50+
value:
51+
type: "string"
52+
type: "object"
53+
type: "object"
54+
served: true
55+
storage: true
56+
subresources:
57+
status: {}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.15.0"
6+
name: "gerritmergerequests.v2.edp.epam.com"
7+
spec:
8+
group: "v2.edp.epam.com"
9+
names:
10+
kind: "GerritMergeRequest"
11+
listKind: "GerritMergeRequestList"
12+
plural: "gerritmergerequests"
13+
singular: "gerritmergerequest"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "GerritMergeRequest is the Schema for the gerrit merge request API."
20+
properties:
21+
apiVersion:
22+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
23+
type: "string"
24+
kind:
25+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
26+
type: "string"
27+
metadata:
28+
type: "object"
29+
spec:
30+
description: "GerritMergeRequestSpec defines the desired state of GerritMergeRequest."
31+
properties:
32+
additionalArguments:
33+
description: "AdditionalArguments contains merge command additional command line arguments."
34+
items:
35+
type: "string"
36+
nullable: true
37+
type: "array"
38+
authorEmail:
39+
description: "AuthorEmail is the email of the user who creates the merge request."
40+
example: "john.foe@mail.com"
41+
type: "string"
42+
authorName:
43+
description: "AuthorName is the name of the user who creates the merge request."
44+
example: "John Doe"
45+
type: "string"
46+
changesConfigMap:
47+
description: "ChangesConfigMap is the name of the ConfigMap, which contains files contents that should be merged.\nConfigMap should contain eny data keys with content in the json\nformat: {\"path\": \"/controllers/user.go\", \"contents\": \"some code here\"} - to add file\nor format: {\"path\": \"/controllers/user.go\"} - to remove file.\nIf files already exist in the project, they will be overwritten.\nIf empty, sourceBranch should be set."
48+
example: "config-map-new-feature"
49+
type: "string"
50+
commitMessage:
51+
description: "CommitMessage is the commit message for the merge request.\nIf empty, the operator will generate the commit message."
52+
example: "merge new-feature to master"
53+
type: "string"
54+
ownerName:
55+
description: "OwnerName is the name of Gerrit CR, which should be used to initialize the client.\nIf empty, the operator will get first Gerrit CR from the namespace."
56+
example: "gerrit"
57+
type: "string"
58+
projectName:
59+
description: "ProjectName is gerrit project name."
60+
example: "my-project"
61+
type: "string"
62+
sourceBranch:
63+
description: "SourceBranch is the name of the branch from which the changes should be merged.\nIf empty, changesConfigMap should be set."
64+
example: "new-feature"
65+
type: "string"
66+
targetBranch:
67+
default: "master"
68+
description: "TargetBranch is the name of the branch to which the changes should be merged.\nIf changesConfigMap is set, the targetBranch can be only the origin HEAD branch."
69+
example: "master"
70+
type: "string"
71+
required:
72+
- "authorEmail"
73+
- "authorName"
74+
- "projectName"
75+
type: "object"
76+
status:
77+
description: "GerritMergeRequestStatus defines the observed state of GerritMergeRequest."
78+
properties:
79+
changeId:
80+
type: "string"
81+
changeUrl:
82+
type: "string"
83+
value:
84+
type: "string"
85+
type: "object"
86+
type: "object"
87+
served: true
88+
storage: true
89+
subresources:
90+
status: {}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.15.0"
6+
name: "gerritprojectaccesses.v2.edp.epam.com"
7+
spec:
8+
group: "v2.edp.epam.com"
9+
names:
10+
kind: "GerritProjectAccess"
11+
listKind: "GerritProjectAccessList"
12+
plural: "gerritprojectaccesses"
13+
singular: "gerritprojectaccess"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "GerritProjectAccess is the Schema for the gerrit project access API."
20+
properties:
21+
apiVersion:
22+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
23+
type: "string"
24+
kind:
25+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
26+
type: "string"
27+
metadata:
28+
type: "object"
29+
spec:
30+
description: "GerritProjectAccessSpec defines the desired state of GerritProjectAccess."
31+
properties:
32+
ownerName:
33+
description: "OwnerName indicates which gerrit CR should be taken to initialize correct client."
34+
nullable: true
35+
type: "string"
36+
parent:
37+
description: "Parent is parent project."
38+
type: "string"
39+
projectName:
40+
description: "ProjectName is gerrit project name."
41+
type: "string"
42+
references:
43+
description: "References contains gerrit references."
44+
items:
45+
properties:
46+
action:
47+
type: "string"
48+
force:
49+
description: "Force indicates whether the force flag is set."
50+
type: "boolean"
51+
groupName:
52+
type: "string"
53+
max:
54+
description: "Max is the max value of the permission range."
55+
type: "integer"
56+
min:
57+
description: "Min is the min value of the permission range."
58+
type: "integer"
59+
permissionLabel:
60+
type: "string"
61+
permissionName:
62+
type: "string"
63+
refPattern:
64+
description: "Patter is reference pattern, example: refs/heads/*."
65+
type: "string"
66+
type: "object"
67+
nullable: true
68+
type: "array"
69+
required:
70+
- "projectName"
71+
type: "object"
72+
status:
73+
description: "GerritProjectAccessStatus defines the observed state of GerritProjectAccess."
74+
properties:
75+
created:
76+
type: "boolean"
77+
value:
78+
type: "string"
79+
type: "object"
80+
type: "object"
81+
served: true
82+
storage: true
83+
subresources:
84+
status: {}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.15.0"
6+
name: "gerritprojects.v2.edp.epam.com"
7+
spec:
8+
group: "v2.edp.epam.com"
9+
names:
10+
kind: "GerritProject"
11+
listKind: "GerritProjectList"
12+
plural: "gerritprojects"
13+
singular: "gerritproject"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "GerritProject is the Schema for the gerrit project API."
20+
properties:
21+
apiVersion:
22+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
23+
type: "string"
24+
kind:
25+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
26+
type: "string"
27+
metadata:
28+
type: "object"
29+
spec:
30+
description: "GerritProjectSpec defines the desired state of GerritProject."
31+
properties:
32+
branches:
33+
type: "string"
34+
createEmptyCommit:
35+
type: "boolean"
36+
description:
37+
type: "string"
38+
name:
39+
type: "string"
40+
ownerName:
41+
type: "string"
42+
owners:
43+
type: "string"
44+
parent:
45+
type: "string"
46+
permissionsOnly:
47+
type: "boolean"
48+
rejectEmptyCommit:
49+
type: "string"
50+
submitType:
51+
type: "string"
52+
required:
53+
- "name"
54+
type: "object"
55+
status:
56+
description: "GerritProjectStatus defines the observed state of GerritProject."
57+
properties:
58+
branches:
59+
items:
60+
type: "string"
61+
nullable: true
62+
type: "array"
63+
value:
64+
type: "string"
65+
type: "object"
66+
type: "object"
67+
served: true
68+
storage: true
69+
subresources:
70+
status: {}

0 commit comments

Comments
 (0)