Skip to content

Commit

Permalink
Merge pull request #3 from boltops-tools/secret
Browse files Browse the repository at this point in the history
rename secrets.base64 option
  • Loading branch information
tongueroo authored Nov 12, 2020
2 parents dc25268 + 1d510e8 commit f5ad021
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.

## [0.3.0] - 2020-11-11
- [#2](https://github.com/boltops-tools/kubes_aws/pull/2) Config interface and base64_secrets setting
- [#2](https://github.com/boltops-tools/kubes_aws/pull/2) Config interface and secrets.base64 setting
- fix specs
- smarter base64 option

Expand Down
3 changes: 2 additions & 1 deletion lib/kubes_aws/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ class Config

def defaults
c = ActiveSupport::OrderedOptions.new
c.base64_secrets = true
c.secrets = ActiveSupport::OrderedOptions.new
c.secrets.base64 = true
c
end

Expand Down
2 changes: 1 addition & 1 deletion lib/kubes_aws/secrets/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def fetch(secret_id)
end

def base64?
@base64.nil? ? KubesAws.config.base64_secrets : @base64
@base64.nil? ? KubesAws.config.secrets.base64 : @base64
end

def fetch_value(secret_id)
Expand Down

0 comments on commit f5ad021

Please sign in to comment.