clowder-common-ruby 0.2.5 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bump_version +9 -0
- data/bin/schema.json +20 -0
- data/lib/clowder-common-ruby/types.rb +5 -0
- data/lib/clowder-common-ruby/version.rb +1 -1
- data/test.json +9 -4
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 327fd0920abf084c7289527fa3d9e98eeb8ccb15bc11251e86d85468c234f804
|
4
|
+
data.tar.gz: 454f639a092d6c835d1579f72b33e4dac82ecfa2ae4878b4949be508afa0af3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9acccd0a8be9c9bb6b74dcb3ae04c66adf53ddf0186a2d2fa45c82774b272615d05672e952c9d2e82bad9a2a066d7bd1786df85399a961ef40b24bddffe737aa
|
7
|
+
data.tar.gz: bc0f1cbf3c2c15853b708340a273ee649220c625d5947fbff06a2603412e25f335e6c8ea42edf280e35ee1894d0c72f28ec253bb0e39793dd80776e64072a4f6
|
data/bin/bump_version
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
text = File.read('../lib/clowder-common-ruby/version.rb')
|
4
|
+
|
5
|
+
patch = text.sub(/^.*'\d+\.\d+\.(\d+)'.*$/m, '\1').to_i
|
6
|
+
|
7
|
+
File.open('../lib/clowder-common-ruby/version.rb', 'w') do |f|
|
8
|
+
f.write text.sub(/^(.*'\d+\.\d+\.)\d+('.*)$/m, "\\1#{patch + 1}\\2")
|
9
|
+
end
|
data/bin/schema.json
CHANGED
@@ -20,6 +20,10 @@
|
|
20
20
|
"description": "Deprecated: Use 'publicPort' instead.",
|
21
21
|
"type": "integer"
|
22
22
|
},
|
23
|
+
"tlsCAPath": {
|
24
|
+
"description": "Defines the port CA path",
|
25
|
+
"type": "string"
|
26
|
+
},
|
23
27
|
"metricsPort": {
|
24
28
|
"description": "Defines the metrics port that the app should be configured to listen on for metric traffic.",
|
25
29
|
"type": "integer"
|
@@ -66,6 +70,10 @@
|
|
66
70
|
"BOPURL": {
|
67
71
|
"description": "Defines the path to the BOPURL.",
|
68
72
|
"type": "string"
|
73
|
+
},
|
74
|
+
"hashCache": {
|
75
|
+
"description": "A set of configMap/secret hashes",
|
76
|
+
"type": "string"
|
69
77
|
}
|
70
78
|
},
|
71
79
|
"required": [
|
@@ -199,6 +207,7 @@
|
|
199
207
|
"type": "string"
|
200
208
|
},
|
201
209
|
"securityProtocol": {
|
210
|
+
"description": "Deprecated: Use the top level securityProtocol field instead",
|
202
211
|
"type": "string"
|
203
212
|
},
|
204
213
|
"saslMechanism": {
|
@@ -227,6 +236,9 @@
|
|
227
236
|
},
|
228
237
|
"sasl": {
|
229
238
|
"$ref": "#/definitions/KafkaSASLConfig"
|
239
|
+
},
|
240
|
+
"securityProtocol": {
|
241
|
+
"type": "string"
|
230
242
|
}
|
231
243
|
},
|
232
244
|
"required": [
|
@@ -452,6 +464,10 @@
|
|
452
464
|
"app": {
|
453
465
|
"description": "The app name of the ClowdApp hosting the service.",
|
454
466
|
"type": "string"
|
467
|
+
},
|
468
|
+
"tlsPort": {
|
469
|
+
"description": "The TLS port of the dependent service.",
|
470
|
+
"type": "integer"
|
455
471
|
}
|
456
472
|
},
|
457
473
|
"required": [
|
@@ -481,6 +497,10 @@
|
|
481
497
|
"app": {
|
482
498
|
"description": "The app name of the ClowdApp hosting the service.",
|
483
499
|
"type": "string"
|
500
|
+
},
|
501
|
+
"tlsPort": {
|
502
|
+
"description": "The TLS port of the dependent service.",
|
503
|
+
"type": "integer"
|
484
504
|
}
|
485
505
|
},
|
486
506
|
"required": [
|
@@ -44,6 +44,7 @@ module ClowderCommonRuby
|
|
44
44
|
keys << :privatePort
|
45
45
|
keys << :publicPort
|
46
46
|
keys << :webPort
|
47
|
+
keys << :tlsCAPath
|
47
48
|
keys << :metricsPort
|
48
49
|
keys << :metricsPath
|
49
50
|
keys << :logging
|
@@ -56,6 +57,7 @@ module ClowderCommonRuby
|
|
56
57
|
keys << :endpoints
|
57
58
|
keys << :privateEndpoints
|
58
59
|
keys << :BOPURL
|
60
|
+
keys << :hashCache
|
59
61
|
end
|
60
62
|
end
|
61
63
|
end
|
@@ -230,6 +232,7 @@ module ClowderCommonRuby
|
|
230
232
|
keys << :cacert
|
231
233
|
keys << :authtype
|
232
234
|
keys << :sasl
|
235
|
+
keys << :securityProtocol
|
233
236
|
end
|
234
237
|
end
|
235
238
|
end
|
@@ -402,6 +405,7 @@ module ClowderCommonRuby
|
|
402
405
|
keys << :hostname
|
403
406
|
keys << :port
|
404
407
|
keys << :app
|
408
|
+
keys << :tlsPort
|
405
409
|
end
|
406
410
|
end
|
407
411
|
end
|
@@ -425,6 +429,7 @@ module ClowderCommonRuby
|
|
425
429
|
keys << :hostname
|
426
430
|
keys << :port
|
427
431
|
keys << :app
|
432
|
+
keys << :tlsPort
|
428
433
|
end
|
429
434
|
end
|
430
435
|
end
|
data/test.json
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
"publicPort": 8000,
|
3
3
|
"metricsPort": 9000,
|
4
4
|
"metricsPath": "/metrics",
|
5
|
+
"tlsCAPath": "/tlsCAPath",
|
5
6
|
"logging": {
|
6
7
|
"type": "cloudwatch",
|
7
8
|
"cloudwatch": {
|
@@ -63,13 +64,15 @@
|
|
63
64
|
"name": "endpoint1",
|
64
65
|
"app": "app1",
|
65
66
|
"hostname": "endpoint1.svc",
|
66
|
-
"port": 8000
|
67
|
+
"port": 8000,
|
68
|
+
"tlsPort": 8001
|
67
69
|
},
|
68
70
|
{
|
69
71
|
"name": "endpoint2",
|
70
72
|
"app": "app2",
|
71
73
|
"hostname": "endpoint2.svc",
|
72
|
-
"port": 8000
|
74
|
+
"port": 8000,
|
75
|
+
"tlsPort": 8001
|
73
76
|
}
|
74
77
|
],
|
75
78
|
"privateEndpoints": [
|
@@ -77,13 +80,15 @@
|
|
77
80
|
"name": "endpoint1",
|
78
81
|
"app": "app1",
|
79
82
|
"hostname": "endpoint1.svc",
|
80
|
-
"port": 10000
|
83
|
+
"port": 10000,
|
84
|
+
"tlsPort": 10001
|
81
85
|
},
|
82
86
|
{
|
83
87
|
"name": "endpoint2",
|
84
88
|
"app": "app2",
|
85
89
|
"hostname": "endpoint2.svc",
|
86
|
-
"port": 10000
|
90
|
+
"port": 10000,
|
91
|
+
"tlsPort": 10001
|
87
92
|
}
|
88
93
|
]
|
89
94
|
}
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clowder-common-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Red Hat Developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a ruby interface for preparing Clowder variables.
|
14
|
-
email:
|
14
|
+
email:
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
@@ -19,6 +19,7 @@ files:
|
|
19
19
|
- LICENSE.txt
|
20
20
|
- README.md
|
21
21
|
- Rakefile
|
22
|
+
- bin/bump_version
|
22
23
|
- bin/json_schema_ruby
|
23
24
|
- bin/ruby_class_converter.rb
|
24
25
|
- bin/schema.json
|
@@ -33,7 +34,7 @@ homepage: https://github.com/RedHatInsights/clowder-common-ruby
|
|
33
34
|
licenses:
|
34
35
|
- Apache-2.0
|
35
36
|
metadata: {}
|
36
|
-
post_install_message:
|
37
|
+
post_install_message:
|
37
38
|
rdoc_options: []
|
38
39
|
require_paths:
|
39
40
|
- lib
|
@@ -48,8 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
49
|
- !ruby/object:Gem::Version
|
49
50
|
version: '0'
|
50
51
|
requirements: []
|
51
|
-
rubygems_version: 3.3.
|
52
|
-
signing_key:
|
52
|
+
rubygems_version: 3.3.5
|
53
|
+
signing_key:
|
53
54
|
specification_version: 4
|
54
55
|
summary: Supporting files and libraries for Clowder environmental variables.
|
55
56
|
test_files: []
|