Skip to content

Commit

Permalink
Update vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrage committed Oct 10, 2017
1 parent f4bfe1f commit 28601fa
Show file tree
Hide file tree
Showing 16 changed files with 1,056 additions and 77 deletions.
16 changes: 9 additions & 7 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import:
- package: github.com/spf13/cobra
- package: github.com/spf13/viper
- package: github.com/pkg/errors
- package: github.com/joho/godotenv

# We use libcompose to parse v1 and v2 of Docker Compose
- package: github.com/docker/libcompose
Expand Down
4 changes: 2 additions & 2 deletions pkg/transformer/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (k *Kubernetes) InitConfigMap(name string, service kobject.ServiceConfig, o
APIVersion: "v1",
},
ObjectMeta: api.ObjectMeta{
Name: envName,
Name: name + "-" + envName,
},
Data: envs,
}
Expand Down Expand Up @@ -530,7 +530,7 @@ func (k *Kubernetes) ConfigEnvs(name string, service kobject.ServiceConfig, opt
ValueFrom: &api.EnvVarSource{
ConfigMapKeyRef: &api.ConfigMapKeySelector{
LocalObjectReference: api.LocalObjectReference{
Name: envName,
Name: name + "-" + envName,
},
Key: k,
}},
Expand Down
10 changes: 5 additions & 5 deletions script/test/fixtures/configmap/output-k8s-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"name": "ALLOW_EMPTY_PASSWORD",
"valueFrom": {
"configMapKeyRef": {
"name": "foo-env",
"name": "redis-foo-env",
"key": "ALLOW_EMPTY_PASSWORD"
}
}
Expand All @@ -83,7 +83,7 @@
"name": "BAR",
"valueFrom": {
"configMapKeyRef": {
"name": "bar-env",
"name": "redis-bar-env",
"key": "BAR"
}
}
Expand All @@ -92,7 +92,7 @@
"name": "FOO",
"valueFrom": {
"configMapKeyRef": {
"name": "bar-env",
"name": "redis-bar-env",
"key": "FOO"
}
}
Expand All @@ -112,7 +112,7 @@
"kind": "ConfigMap",
"apiVersion": "v1",
"metadata": {
"name": "foo-env",
"name": "redis-foo-env",
"creationTimestamp": null
},
"data": {
Expand All @@ -123,7 +123,7 @@
"kind": "ConfigMap",
"apiVersion": "v1",
"metadata": {
"name": "bar-env",
"name": "redis-bar-env",
"creationTimestamp": null
},
"data": {
Expand Down
23 changes: 23 additions & 0 deletions vendor/github.com/joho/godotenv/LICENCE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 28601fa

Please sign in to comment.