pfab 0.23.0 → 0.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 714a03244225ab924ffc98c75b620eb8205e6631314f6f43f731f6016f4dd91f
4
- data.tar.gz: 0bca11dc0205345aca57a8cbab34208a0b7144ffd79c0f9b4a21258aff54276c
3
+ metadata.gz: f606a8c659a0664f7f4869438a917a897f9c7009cdc1e23e45522739d2e69fe1
4
+ data.tar.gz: 919bdc6f011315fcf45a4b5fd4722b4c414c892b6e81417041371da63548da76
5
5
  SHA512:
6
- metadata.gz: 6e442240a6666c09f9b42c29d37a2abc6dd56c7ac158eec52f0c82c9d36ad4f70cc551b76289084fbc414054fcccffeb13b65e1642c48ebb539681016d3004a2
7
- data.tar.gz: 2d9e9765c520d267ccb9e3e97eaa2148d60b62a8d665defd50bbb3971385e855a906e78910af5929e1e727a0c11cb30842eefe22d9a558ac91dbbaf0f1888bd2
6
+ metadata.gz: 6263093d254e986ee4d9282ea7768c78c4ca5de747296b44298682557422963b4e8d52f334c0b8fec275876b66a1c87993630a4c9b0c8d8c33b0114084319fa4
7
+ data.tar.gz: 4846e1aa24220ef5ecf7ab25111613ade6ae9fd7c456fd5a77700cc0b6546bfca9dd58cce3128f912bde5d5cd349c8e63a0159ac1859ca79b49e01fbeaca616e
@@ -52,10 +52,12 @@ module Pfab
52
52
  end
53
53
 
54
54
  def env_vars
55
-
56
55
  env_vars = { "DEPLOYED_NAME" => { value: @data['deployed_name'] },
57
56
  "DEPLOY_ID" => { value: deploy_id },
58
- "POD_ID" => { valueFrom: { fieldRef: { fieldPath: 'metadata.name' } } }
57
+ "POD_ID" => { valueFrom: { fieldRef: { fieldPath: 'metadata.name' } } },
58
+ "DD_ENV" => { valueFrom: { fieldRef: { fieldPath: "metadata.labels['tags.datadoghq.com/env']" } } },
59
+ "DD_SERVICE" => { valueFrom: { fieldRef: { fieldPath: "metadata.labels['tags.datadoghq.com/service']" } } },
60
+ "DD_VERSION" => { valueFrom: { fieldRef: { fieldPath: "metadata.labels['tags.datadoghq.com/version']" } } }
59
61
  }
60
62
 
61
63
  # load defaults
@@ -20,7 +20,10 @@ module Pfab
20
20
  application: @data['application'],
21
21
  "deployed-name" => @data['deployed_name'],
22
22
  "application-type" => application_type,
23
- "deploy-id" => deploy_id
23
+ "deploy-id" => deploy_id,
24
+ "tags.datadoghq.com/env": @data['env'],
25
+ "tags.datadoghq.com/service": @data['deployed_name'],
26
+ "tags.datadoghq.com/service": @data['sha']
24
27
  }
25
28
  },
26
29
  spec: {
@@ -44,6 +47,9 @@ module Pfab
44
47
  application: @data['application'],
45
48
  "deployed-name" => @data['deployed_name'],
46
49
  "application-type" => "cron",
50
+ "tags.datadoghq.com/env": @data['env'],
51
+ "tags.datadoghq.com/service": @data['deployed_name'],
52
+ "tags.datadoghq.com/service": @data['sha']
47
53
  },
48
54
  },
49
55
  spec: {
@@ -20,7 +20,10 @@ module Pfab
20
20
  application: @data['application'],
21
21
  "deployed-name" => @data['deployed_name'],
22
22
  "application-type" => application_type,
23
- "deploy-id" => deploy_id
23
+ "deploy-id" => deploy_id,
24
+ "tags.datadoghq.com/env": @data['env'],
25
+ "tags.datadoghq.com/service": @data['deployed_name'],
26
+ "tags.datadoghq.com/service": @data['sha']
24
27
  }
25
28
  },
26
29
  spec: {
@@ -40,6 +43,9 @@ module Pfab
40
43
  application: @data['application'],
41
44
  "deployed-name" => @data['deployed_name'],
42
45
  "application-type" => "daemon",
46
+ "tags.datadoghq.com/env": @data['env'],
47
+ "tags.datadoghq.com/service": @data['deployed_name'],
48
+ "tags.datadoghq.com/service": @data['sha']
43
49
  },
44
50
  },
45
51
  spec: {
@@ -20,7 +20,10 @@ module Pfab
20
20
  application: @data['application'],
21
21
  "deployed-name" => @data['deployed_name'],
22
22
  "application-type" => application_type,
23
- "deploy-id" => deploy_id
23
+ "deploy-id" => deploy_id,
24
+ "tags.datadoghq.com/env": @data['env'],
25
+ "tags.datadoghq.com/service": @data['deployed_name'],
26
+ "tags.datadoghq.com/service": @data['sha']
24
27
  }
25
28
  },
26
29
  spec: {
@@ -32,6 +35,9 @@ module Pfab
32
35
  application: @data['application'],
33
36
  "deployed-name" => @data['deployed_name'],
34
37
  "application-type" => "job",
38
+ "tags.datadoghq.com/env": @data['env'],
39
+ "tags.datadoghq.com/service": @data['deployed_name'],
40
+ "tags.datadoghq.com/service": @data['sha']
35
41
  },
36
42
  },
37
43
  spec: {
@@ -151,7 +151,10 @@ module Pfab
151
151
  application: @data['application'],
152
152
  "deployed-name" => @data['deployed_name'],
153
153
  "application-type" => application_type,
154
- "deploy-id" => deploy_id
154
+ "deploy-id" => deploy_id,
155
+ "tags.datadoghq.com/env": @data['env'],
156
+ "tags.datadoghq.com/service": @data['deployed_name'],
157
+ "tags.datadoghq.com/service": @data['sha']
155
158
  }
156
159
  },
157
160
  spec: {
@@ -176,6 +179,9 @@ module Pfab
176
179
  application: @data['application'],
177
180
  "deployed-name" => @data['deployed_name'],
178
181
  "application-type" => "web",
182
+ "tags.datadoghq.com/env": @data['env'],
183
+ "tags.datadoghq.com/service": @data['deployed_name'],
184
+ "tags.datadoghq.com/version": @data['sha']
179
185
  },
180
186
  },
181
187
  spec: {
@@ -188,8 +194,22 @@ module Pfab
188
194
  resources: resources,
189
195
  livenessProbe: livenessProbe,
190
196
  readinessProbe: readinessProbe,
197
+ volumeMounts: [
198
+ {
199
+ name: "apmsocketpath",
200
+ mountPath: "/var/run/datadog"
201
+ }
202
+ ]
203
+ }
204
+ ],
205
+ volumes: [
206
+ {
207
+ name: "apmsocketpath",
208
+ hostPath: {
209
+ path: "/var/run/datadog/",
210
+ }
191
211
  }
192
- ]
212
+ ],
193
213
  },
194
214
  },
195
215
  },
data/lib/pfab/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Pfab
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 23
4
+ MINOR = 24
5
5
  PATCH = 0
6
6
  BUILD = nil
7
7
 
data/pfab.gemspec CHANGED
@@ -2,16 +2,16 @@
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.23.0 ruby lib
5
+ # stub: pfab 0.24.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "pfab".freeze
9
- s.version = "0.23.0"
9
+ s.version = "0.24.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]
13
13
  s.authors = ["Jeff Dwyer".freeze]
14
- s.date = "2022-07-21"
14
+ s.date = "2022-08-10"
15
15
  s.description = "k8s helper".freeze
16
16
  s.email = "jdwyer@prefab.cloud".freeze
17
17
  s.executables = ["pfab".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander