screwdriver-data-schema 22.2.0 → 22.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/models/buildCluster.js
CHANGED
|
@@ -34,10 +34,9 @@ const MODEL = {
|
|
|
34
34
|
weightage: Joi.number().min(0).max(100).description('Weight percentage for build cluster').example(20),
|
|
35
35
|
|
|
36
36
|
group: Joi.string()
|
|
37
|
-
.
|
|
38
|
-
.default('on-prem')
|
|
37
|
+
.default('default')
|
|
39
38
|
.description('Group of the build cluster')
|
|
40
|
-
.example('aws')
|
|
39
|
+
.example(('aws', 'gcp', 'on-prem', 'default'))
|
|
41
40
|
};
|
|
42
41
|
|
|
43
42
|
module.exports = {
|
|
@@ -74,10 +73,9 @@ module.exports = {
|
|
|
74
73
|
'isActive',
|
|
75
74
|
'managedByScrewdriver',
|
|
76
75
|
'maintainer',
|
|
77
|
-
'weightage'
|
|
78
|
-
'group'
|
|
76
|
+
'weightage'
|
|
79
77
|
],
|
|
80
|
-
['description']
|
|
78
|
+
['description', 'group']
|
|
81
79
|
)
|
|
82
80
|
).label('Get BuildCluster'),
|
|
83
81
|
|
|
@@ -114,7 +112,7 @@ module.exports = {
|
|
|
114
112
|
mutate(
|
|
115
113
|
MODEL,
|
|
116
114
|
['name', 'scmOrganizations', 'managedByScrewdriver', 'maintainer'],
|
|
117
|
-
['description', 'isActive', 'weightage', 'scmContext']
|
|
115
|
+
['description', 'isActive', 'weightage', 'scmContext', 'group']
|
|
118
116
|
)
|
|
119
117
|
).label('Create Build'),
|
|
120
118
|
|