Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4753 from grnet/fix-router-common-prefix-apps
Browse files Browse the repository at this point in the history
fix(router): fix router common prefix app publishing
  • Loading branch information
carmstrong committed Nov 17, 2015
2 parents 0f96abe + e6dd450 commit 3498099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/rootfs/etc/confd/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ http {

#start k8s apps
{{ range $k8namespace := lsdir "/registry/services/specs/" }}
{{ $k8appdir := printf "/registry/services/specs/%s" $k8namespace}}{{ range $kapp := ls $k8appdir }}
{{ $k8appdir := printf "/registry/services/specs/%s/" $k8namespace}}{{ range $kapp := ls $k8appdir }}
{{ $k8appPath := printf "/registry/services/specs/%s/%s" $k8namespace $kapp}}{{ $k8Svc := json (getv $k8appPath) }}
{{ $upstreams := printf "/registry/services/specs/%s/%s" $k8namespace $kapp}}
upstream {{ if $k8Svc.metadata.labels.name }}{{ $k8Svc.metadata.labels.name }}{{ else }}{{ $k8Svc.metadata.name }}{{ end }} {
Expand Down

0 comments on commit 3498099

Please sign in to comment.