kubes_google 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39787bd787626a2712c07ccfc6ec8599e267a1662dcc3a8e135237629ee473b6
4
- data.tar.gz: e7e205d13e3918c5c7fe530c4e0d524765de7747daac1e3149d0179baeafd4de
3
+ metadata.gz: 5b3c67a729485761593635bc0393fbe23f1edc9b68210d843fdf2d01bf64c34c
4
+ data.tar.gz: 7790b2ba42f85e001874dddb8aa2e250c3c1a3f4e6a402f1b7ae2529b5579588
5
5
  SHA512:
6
- metadata.gz: 6e6c8863d58694242b9273812dbc28e31743436cbd6f744f84422eac5ade05d6144ceba6e00fe662c8d39c6bea2aa64cfe1b992bb0cbc6a30fc2e370654a05cf
7
- data.tar.gz: f9ad89b3050a457106bad1bcb74e962472477f8c249dd893fb38ff521970780bbce4a00607f58cc309f9469ccb15e69e8df54daed1be1dd98c005e7949b67cd2
6
+ metadata.gz: c230c68192f0605e1a7285c0842757b3ac1a54a4b33c782a208436ffa6e12fa838c3b9258081a07b25a4108b3266de30b8c1fda066d5805c935b7c0b52e7183d
7
+ data.tar.gz: '09bf54cf2eaaa4b99ec4f28c8095d924ab70a0025d37e53b8fc6d413f93a7e295de172c0ee43609488383ce65be9f2e8f1dcbacb12b4bb0716489065cd072140'
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
+
6
+ ## [0.1.1]
7
+ - dont base64 secret values in data by default
8
+
9
+ ## [0.1.0]
10
+ - Initial release.
data/README.md CHANGED
@@ -20,9 +20,8 @@ Set up a [Kubes hook](https://kubes.guru/docs/config/hooks/kubes/).
20
20
  .kubes/config/hooks/kubes.rb
21
21
 
22
22
  ```ruby
23
- ENV['GCP_SECRET_PREFIX'] ||= 'projects/686010496118/secrets/demo-dev-'
24
23
  before("compile",
25
- execute: KubesGoogle::Secrets.new(upcase: true)
24
+ execute: KubesGoogle::Secrets.new(upcase: true, prefix: 'projects/686010496118/secrets/demo-dev-')
26
25
  )
27
26
  ```
28
27
 
@@ -39,7 +38,7 @@ metadata:
39
38
  app: demo
40
39
  data:
41
40
  <% KubesGoogle::Secrets.data.each do |k,v| -%>
42
- <%= k %>: <%= v %>
41
+ <%= k %>: <%= Base64.encode64(v).strip %>
43
42
  <% end -%>
44
43
  ```
45
44
 
@@ -95,7 +94,7 @@ Here's a Kubes hook that creates a service account:
95
94
  ```ruby
96
95
  service_account = KubesGoogle::ServiceAccount.new(
97
96
  app: "demo",
98
- namespace: "demo-dev", # defaults to APP-ENV when not set. IE: demo-dev
97
+ namespace: "demo-#{Kubes.env}", # defaults to APP-ENV when not set. IE: demo-dev
99
98
  roles: ["cloudsql.client", "secretmanager.viewer"], # defaults to empty when not set
100
99
  )
101
100
  before("apply",
@@ -22,7 +22,7 @@ module KubesGoogle
22
22
  key = secret.name.sub(@prefix,'')
23
23
  key = key.upcase if @upcase
24
24
  value = version.payload.data
25
- self.class.data[key] = Base64.encode64(value).strip
25
+ self.class.data[key] = value
26
26
  end
27
27
  end
28
28
 
@@ -77,7 +77,7 @@ module KubesGoogle
77
77
  logger.debug "=> #{command}"
78
78
  success = system(command)
79
79
  unless success
80
- logger.info "ERROR: Running #{command}"
80
+ logger.info "WARN: Running #{command}"
81
81
  end
82
82
  success
83
83
  end
@@ -1,3 +1,3 @@
1
1
  module KubesGoogle
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubes_google
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".rspec"
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - LICENSE.txt
80
81
  - README.md