cmattoon / aws-ssm

Populates Kubernetes Secrets from AWS Parameter Store
https://hub.docker.com/r/cmattoon/aws-ssm/
Apache License 2.0
166 stars 32 forks source link

Params by path #12

Closed cmattoon closed 5 years ago

cmattoon commented 5 years ago

Tracking progress on #9

Given a secret

apiVersion: v1
kind: Secret
metadata:
  name: multi-secret
  annotations:
    alpha.ssm.cmattoon.com/aws-param-type: Directory
    alpha.ssm.cmattoon.com/aws-param-name: /path/to/test
    alpha.ssm.cmattoon.com/aws-param-key: alias/aws/ssm

And an SSM config with the following keys:

Will add the following value for v1.Secret.Data:

{
  "Directory": "dHJ1ZQ==",
  "key1": "dmFsdWUx",
  "key2": "dmFsdWUy",
  "key3_a": "dHJ1ZQ==",
  "key3_b": "YWJjMTIz"
}
codecov[bot] commented 5 years ago

Codecov Report

Merging #12 into master will increase coverage by 4.19%. The diff coverage is 53.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage    45.3%   49.49%   +4.19%     
==========================================
  Files           4        4              
  Lines         181      198      +17     
==========================================
+ Hits           82       98      +16     
- Misses         95       97       +2     
+ Partials        4        3       -1
Impacted Files Coverage Δ
pkg/controller/controller.go 0% <0%> (ø) :arrow_up:
pkg/secret/secret.go 82.47% <55.17%> (+3.46%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 30f8043...ae38ab0. Read the comment docs.

msacchiPPRO commented 5 years ago

I will test it ASAP, but it looks awesome!

cmattoon commented 5 years ago

(Rebase to test chart changes)