Skip to content

Commit

Permalink
Merge pull request hashicorp#416 from hashicorp/consul-bin-cp
Browse files Browse the repository at this point in the history
Use copied consul binary
  • Loading branch information
lkysow committed Apr 7, 2020
2 parents 7acc043 + eb26715 commit 71adf15
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
8 changes: 6 additions & 2 deletions templates/mesh-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,16 @@ spec:
}
EOF
consul services register \
/consul-bin/consul services register \
{{- if (or .Values.global.acls.manageSystemACLs .Values.global.bootstrapACLs) }}
-token-file=/consul/service/acl-token \
{{- end }}
/consul/service/service.hcl
volumeMounts:
- name: consul-service
mountPath: /consul/service
- name: consul-bin
mountPath: /consul-bin
{{- if .Values.global.tls.enabled }}
{{- if .Values.global.tls.enableAutoEncrypt }}
- name: consul-auto-encrypt-ca-cert
Expand Down Expand Up @@ -303,6 +305,8 @@ spec:
- name: consul-service
mountPath: /consul/service
readOnly: true
- name: consul-bin
mountPath: /consul-bin
{{- if .Values.global.tls.enabled }}
{{- if .Values.global.tls.enableAutoEncrypt }}
- name: consul-auto-encrypt-ca-cert
Expand Down Expand Up @@ -334,7 +338,7 @@ spec:
- consul-k8s
- lifecycle-sidecar
- -service-config=/consul/service/service.hcl
- -consul-binary=/bin/consul
- -consul-binary=/consul-bin/consul
{{- if (or .Values.global.acls.manageSystemACLs .Values.global.bootstrapACLs) }}
- -token-file=/consul/service/acl-token
{{- end }}
Expand Down
22 changes: 11 additions & 11 deletions test/unit/mesh-gateway-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -718,7 +718,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
-token-file=/consul/service/acl-token \
/consul/service/service.hcl'

Expand Down Expand Up @@ -772,7 +772,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -820,7 +820,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -866,7 +866,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -912,7 +912,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -973,7 +973,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -1040,7 +1040,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -1089,7 +1089,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -1157,7 +1157,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down Expand Up @@ -1206,7 +1206,7 @@ service {
}
EOF
consul services register \
/consul-bin/consul services register \
/consul/service/service.hcl'

[ "${actual}" = "${exp}" ]
Expand Down

0 comments on commit 71adf15

Please sign in to comment.