Skip to content

Commit ff11ded

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

File tree

17 files changed

+1131
-0
lines changed

17 files changed

+1131
-0
lines changed

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ Files: crd-catalog/epam/edp-nexus-operator/*
499499
Copyright: The epam/edp-nexus-operator Authors
500500
License: Apache-2.0
501501

502+
Files: crd-catalog/epam/edp-sonar-operator/*
503+
Copyright: The epam/edp-sonar-operator Authors
504+
License: Apache-2.0
505+
502506
Files: crd-catalog/eryalito/kubensync-operator/*
503507
Copyright: The eryalito/kubensync-operator Authors
504508
License: Apache-2.0

code-generator/src/catalog.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,19 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
13701370
],
13711371
ignores: &[],
13721372
},
1373+
UpstreamSource {
1374+
project_name: "epam/edp-sonar-operator",
1375+
license: APACHE_V2,
1376+
urls: &[
1377+
"https://github.com/epam/edp-sonar-operator/blob/master/deploy-templates/crds/edp.epam.com_sonargroups.yaml",
1378+
"https://github.com/epam/edp-sonar-operator/blob/master/deploy-templates/crds/edp.epam.com_sonarpermissiontemplates.yaml",
1379+
"https://github.com/epam/edp-sonar-operator/blob/master/deploy-templates/crds/edp.epam.com_sonarqualitygates.yaml",
1380+
"https://github.com/epam/edp-sonar-operator/blob/master/deploy-templates/crds/edp.epam.com_sonarqualityprofiles.yaml",
1381+
"https://github.com/epam/edp-sonar-operator/blob/master/deploy-templates/crds/edp.epam.com_sonars.yaml",
1382+
"https://github.com/epam/edp-sonar-operator/blob/master/deploy-templates/crds/edp.epam.com_sonarusers.yaml",
1383+
],
1384+
ignores: &[],
1385+
},
13731386
UpstreamSource {
13741387
project_name: "eryalito/kubensync-operator",
13751388
license: APACHE_V2,
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.16.5"
6+
name: "sonargroups.edp.epam.com"
7+
spec:
8+
group: "edp.epam.com"
9+
names:
10+
kind: "SonarGroup"
11+
listKind: "SonarGroupList"
12+
plural: "sonargroups"
13+
singular: "sonargroup"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1alpha1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "SonarGroup is the Schema for the sonar 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: "SonarGroupSpec defines the desired state of SonarGroup."
31+
properties:
32+
description:
33+
description: "Description of sonar group."
34+
example: "Default group for new users"
35+
maxLength: 200
36+
type: "string"
37+
name:
38+
description: "Name is a group name.\nName should be unique across all groups.\nDo not edit this field after creation. Otherwise, the group will be recreated."
39+
example: "sonar-users"
40+
maxLength: 255
41+
type: "string"
42+
permissions:
43+
description: "Permissions is a list of permissions assigned to group."
44+
example:
45+
- "admin"
46+
- "provisioning"
47+
items:
48+
type: "string"
49+
nullable: true
50+
type: "array"
51+
sonarRef:
52+
description: "SonarRef is a reference to Sonar custom resource."
53+
properties:
54+
kind:
55+
default: "Sonar"
56+
description: "Kind specifies the kind of the Sonar resource."
57+
type: "string"
58+
name:
59+
description: "Name specifies the name of the Sonar resource."
60+
type: "string"
61+
required:
62+
- "name"
63+
type: "object"
64+
required:
65+
- "name"
66+
- "sonarRef"
67+
type: "object"
68+
status:
69+
description: "SonarGroupStatus defines the observed state of SonarGroup."
70+
properties:
71+
error:
72+
description: "Error is an error message if something went wrong."
73+
type: "string"
74+
value:
75+
description: "Value is a status of the group."
76+
type: "string"
77+
type: "object"
78+
type: "object"
79+
served: true
80+
storage: true
81+
subresources:
82+
status: {}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.16.5"
6+
name: "sonarpermissiontemplates.edp.epam.com"
7+
spec:
8+
group: "edp.epam.com"
9+
names:
10+
kind: "SonarPermissionTemplate"
11+
listKind: "SonarPermissionTemplateList"
12+
plural: "sonarpermissiontemplates"
13+
singular: "sonarpermissiontemplate"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1alpha1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "SonarPermissionTemplate is the Schema for the sonar permission template 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: "SonarPermissionTemplateSpec defines the desired state of SonarPermissionTemplate."
31+
properties:
32+
default:
33+
description: "Default is a flag to set permission template as default.\nOnly one permission template can be default.\nIf several permission templates have default flag, the random one will be chosen.\nDefault permission template can't be deleted. You need to set another permission template as default before."
34+
example: "true"
35+
type: "boolean"
36+
description:
37+
description: "Description of sonar permission template."
38+
example: "Default permission template for new users"
39+
type: "string"
40+
groupsPermissions:
41+
additionalProperties:
42+
items:
43+
type: "string"
44+
type: "array"
45+
description: "GroupsPermissions is a map of groups and permissions assigned to them."
46+
example:
47+
sonar-users:
48+
- "codeviewer"
49+
- "scan"
50+
nullable: true
51+
type: "object"
52+
name:
53+
description: "Name is a name of permission template.\nName should be unique across all permission templates.\nDo not edit this field after creation. Otherwise, the permission template will be recreated."
54+
example: "sonar-users-tmpl"
55+
maxLength: 100
56+
type: "string"
57+
projectKeyPattern:
58+
description: "ProjectKeyPattern is key pattern. Must be a valid Java regular expression."
59+
example: "finance.*"
60+
type: "string"
61+
sonarRef:
62+
description: "SonarRef is a reference to Sonar custom resource."
63+
properties:
64+
kind:
65+
default: "Sonar"
66+
description: "Kind specifies the kind of the Sonar resource."
67+
type: "string"
68+
name:
69+
description: "Name specifies the name of the Sonar resource."
70+
type: "string"
71+
required:
72+
- "name"
73+
type: "object"
74+
required:
75+
- "name"
76+
- "sonarRef"
77+
type: "object"
78+
status:
79+
description: "SonarPermissionTemplateStatus defines the observed state of SonarPermissionTemplate."
80+
properties:
81+
error:
82+
description: "Error is an error message if something went wrong."
83+
type: "string"
84+
value:
85+
description: "Value is a status of the permission template."
86+
type: "string"
87+
type: "object"
88+
type: "object"
89+
served: true
90+
storage: true
91+
subresources:
92+
status: {}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.16.5"
6+
name: "sonarqualitygates.edp.epam.com"
7+
spec:
8+
group: "edp.epam.com"
9+
names:
10+
kind: "SonarQualityGate"
11+
listKind: "SonarQualityGateList"
12+
plural: "sonarqualitygates"
13+
singular: "sonarqualitygate"
14+
scope: "Namespaced"
15+
versions:
16+
- name: "v1alpha1"
17+
schema:
18+
openAPIV3Schema:
19+
description: "SonarQualityGate is the Schema for the sonarqualitygates 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: "SonarQualityGateSpec defines the desired state of SonarQualityGate"
31+
properties:
32+
conditions:
33+
additionalProperties:
34+
description: "Condition defines the condition for quality gate."
35+
properties:
36+
error:
37+
description: "Error is condition error threshold."
38+
example: "10"
39+
maxLength: 64
40+
type: "string"
41+
op:
42+
description: "Op is condition operator.\nLT = is lower than\nGT = is greater than"
43+
enum:
44+
- "LT"
45+
- "GT"
46+
type: "string"
47+
required:
48+
- "error"
49+
type: "object"
50+
description: "Conditions is a list of conditions for quality gate.\nKey is a metric name, value is a condition."
51+
example:
52+
new_code_smells:
53+
error: "10"
54+
op: "LT"
55+
nullable: true
56+
type: "object"
57+
default:
58+
description: "Default is a flag to set quality gate as default.\nOnly one quality gate can be default.\nIf several quality gates have default flag, the random one will be chosen.\nDefault quality gate can't be deleted. You need to set another quality gate as default before."
59+
example: "true"
60+
type: "boolean"
61+
name:
62+
description: "Name is a name of quality gate.\nName should be unique across all quality gates.\nDon't change this field after creation otherwise quality gate will be recreated."
63+
example: "My Quality Gate"
64+
maxLength: 100
65+
type: "string"
66+
sonarRef:
67+
description: "SonarRef is a reference to Sonar custom resource."
68+
properties:
69+
kind:
70+
default: "Sonar"
71+
description: "Kind specifies the kind of the Sonar resource."
72+
type: "string"
73+
name:
74+
description: "Name specifies the name of the Sonar resource."
75+
type: "string"
76+
required:
77+
- "name"
78+
type: "object"
79+
required:
80+
- "name"
81+
- "sonarRef"
82+
type: "object"
83+
status:
84+
description: "SonarQualityGateStatus defines the observed state of SonarQualityGate"
85+
properties:
86+
error:
87+
description: "Error is an error message if something went wrong."
88+
type: "string"
89+
value:
90+
description: "Value is a status of the quality gate."
91+
type: "string"
92+
type: "object"
93+
type: "object"
94+
served: true
95+
storage: true
96+
subresources:
97+
status: {}

0 commit comments

Comments
 (0)