This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vault Helm Chart Value Overrides | |
global: | |
enabled: true | |
tlsDisable: false | |
injector: | |
enabled: true | |
# Use the Vault K8s Image https://github.com/hashicorp/vault-k8s/ | |
image: | |
repository: "hashicorp/vault-k8s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (a *Api) UnmarshalJSON(data []byte) error { | |
fixedJson := strings.Replace(string(data), `"hosts":{}`, `"hosts":[]`, -1) | |
fixedJson = strings.Replace(fixedJson, `"uris":{}`, `"uris":[]`, -1) | |
fixedJson = strings.Replace(fixedJson, `"methods":{}`, `"methods":[]`, -1) | |
type Alias Api | |
aux := &struct { | |
*Alias | |
}{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (a *Api) UnmarshalJSON(data []byte) error { | |
fixedJson := strings.Replace(string(data), `"hosts":{}`, `"hosts":[]`, -1) | |
fixedJson = strings.Replace(fixedJson, `"uris":{}`, `"uris":[]`, -1) | |
fixedJson = strings.Replace(fixedJson, `"methods":{}`, `"methods":[]`, -1) | |
return json.Unmarshal([]byte(fixedJson), &a) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
matrix: | |
- KONG_VERSION=0.11 TF_ACC=1 | |
- KONG_VERSION=0.11.1 TF_ACC=1 | |
- KONG_VERSION=0.11.2 TF_ACC=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag -a v0.1.0 -m "My release" | |
git push origin v0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release: | |
go get github.com/goreleaser/goreleaser; \ | |
goreleaser; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builds: | |
- binary: terraform-provider-kong | |
goos: | |
- darwin | |
- linux | |
- windows | |
goarch: | |
- amd64 | |
archive: | |
format: zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name notification_proxy; | |
listen 8117; | |
location / { | |
resolver $DNS_ADDR ipv6=off; | |
set_by_lua_block $proxy_addr { | |
return ngx.unescape_uri(ngx.var.arg_address) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/dumb-init /bin/bash | |
set -e | |
export DNS_ADDR=`cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2-` | |
envsubst '$DNS_ADDR' < /etc/nginx/nginx.template > /usr/local/openresty/nginx/conf/nginx.conf | |
/usr/local/openresty/bin/openresty -g "daemon off;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name notification_proxy; | |
listen 8117; | |
location / { | |
resolver 127.0.0.11 ipv6=off; | |
set_by_lua_block $proxy_addr { | |
return ngx.unescape_uri(ngx.var.arg_address) | |
} |
NewerOlder