pfab 0.15.0 → 0.16.0
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.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/pfab/templates/web.rb +8 -2
- data/lib/pfab/version.rb +1 -1
- data/pfab.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9b74403a3e35834fc91e161a00965bd13444cd6dc5f4189947e7a5e92168a29
|
|
4
|
+
data.tar.gz: fbac3572c2f5b0f59b20195fcdd77657b511f6af95d430fc8d71c23e7a079748
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01031a7a713ec836556fc3351c92955d46e67a6ed5dbdc73281fdb96b16d6aaa368a34b9fc61590d0f0aaa1cfcf13393e743b98a8cfc72c415f364b0f1e9f6ee
|
|
7
|
+
data.tar.gz: cc337ac58b41e94928356bfa846099f29546966da829799dd07d1661da308ca12e606b2ccfef2d9ebb6bfd8cfb98ecd96e65a37e5cf8ef77b0b7a3c49d714e7e
|
data/README.markdown
CHANGED
data/lib/pfab/templates/web.rb
CHANGED
|
@@ -21,7 +21,8 @@ module Pfab
|
|
|
21
21
|
labels: {
|
|
22
22
|
application: @data['application'],
|
|
23
23
|
"deployed-name" => @data['deployed_name'],
|
|
24
|
-
}
|
|
24
|
+
},
|
|
25
|
+
annotations: service_annotations,
|
|
25
26
|
},
|
|
26
27
|
spec: {
|
|
27
28
|
selector: {
|
|
@@ -38,6 +39,12 @@ module Pfab
|
|
|
38
39
|
}
|
|
39
40
|
end
|
|
40
41
|
|
|
42
|
+
def service_annotations
|
|
43
|
+
h = {}
|
|
44
|
+
h["traefik.ingress.kubernetes.io/service.serversscheme"] = "h2c" if get("protocol") == "h2c"
|
|
45
|
+
h
|
|
46
|
+
end
|
|
47
|
+
|
|
41
48
|
def ingress
|
|
42
49
|
{
|
|
43
50
|
apiVersion: "networking.k8s.io/v1",
|
|
@@ -107,7 +114,6 @@ module Pfab
|
|
|
107
114
|
"traefik.ingress.kubernetes.io/router.entrypoints" => "websecure",
|
|
108
115
|
"traefik.ingress.kubernetes.io/router.tls" => "true"
|
|
109
116
|
}
|
|
110
|
-
h["ingress.kubernetes.io/protocol"] = "h2c" if get("protocol") == "h2c"
|
|
111
117
|
h
|
|
112
118
|
end
|
|
113
119
|
|
data/lib/pfab/version.rb
CHANGED
data/pfab.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: pfab 0.
|
|
5
|
+
# stub: pfab 0.16.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "pfab".freeze
|
|
9
|
-
s.version = "0.
|
|
9
|
+
s.version = "0.16.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|