Skip to content

Commit 0997551

Browse files
authored
Merge pull request #9 from codacy/decrypt
Decrypt
2 parents 277973b + 7674c6e commit 0997551

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ LDFLAGS := "-X main.version=${VERSION}"
1010
.PHONY: install
1111
install: bootstrap dist
1212
mkdir -p $(HELM_PLUGIN_DIR)
13-
@if [ "$$(uname)" = "Darwin" ]; then file="${HELM_PLUGIN_NAME}-macos-${VERSION}"; \
14-
elif [ "$$(uname)" = "Linux" ]; then file="${HELM_PLUGIN_NAME}-linux-${VERSION}"; \
15-
else file="${HELM_PLUGIN_NAME}-windows-${VERSION}"; \
13+
@if [ "$$(uname)" = "Darwin" ]; then file="${HELM_PLUGIN_NAME}-macos"; \
14+
elif [ "$$(uname)" = "Linux" ]; then file="${HELM_PLUGIN_NAME}-linux"; \
15+
else file="${HELM_PLUGIN_NAME}-windows"; \
1616
fi; \
1717
mkdir -p $(DIST)/$$file ; \
1818
tar -xf $(DIST)/$$file.tgz -C $(DIST)/$$file ; \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ingress:
2929
- service1.{{ssm "/empty/subdomain" "required=false" }}
3030
- service2.{{ssm "/exists/subdomain" "required=false" "region=eu-west-1" }}
3131
- service3.{{ssm "/subdomain" "required=false" "region=eu-west-1" "prefix=/empty" }}
32+
- service4.{{ssm "/securestring" }}
3233

3334
```
3435

internal/ssm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ func NewAWSSession() *session.Session {
2121

2222
// GetSSMParameter gets a parameter from the AWS Simple Systems Manager service.
2323
func GetSSMParameter(name string, required bool) (string, error) {
24-
return GetSSMParameterRD(name, required, false, "")
24+
return GetSSMParameterRD(name, required, true, "")
2525
}
2626

2727
// GetSSMParameterR gets a parameter from the AWS Simple Systems Manager service, on a specific region.
2828
func GetSSMParameterR(name string, required bool, region string) (string, error) {
29-
return GetSSMParameterRD(name, required, false, region)
29+
return GetSSMParameterRD(name, required, true, region)
3030
}
3131

3232
// GetSSMParameterRD gets a parameter from the AWS Simple Systems Manager service.

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "ssm"
2-
version: "1.0.2"
2+
version: "1.0.3"
33
usage: "Inject AWS SSM parameters into Helm values files"
44
description: |-
55
Inject AWS SSM parameters into Helm values files

0 commit comments

Comments
 (0)