Skip to content

Commit

Permalink
fix: ksvc virtual service mapping, otomi has docker check
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Oct 11, 2021
1 parent 4054e95 commit e094134
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion binzx/otomi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ if package_is_core $(pwd); then
in_core=1
core_path=$(pwd)
fi
has_docker=$(command -v docker &>/dev/null)

has_docker=$(command -v docker) &>/dev/null

[ -z $ENV_DIR ] && [ -n "$in_core" ] && echo "No ENV_DIR set!" && exit 1
[ -z $ENV_DIR ] && ENV_DIR="$PWD"
Expand Down
4 changes: 2 additions & 2 deletions charts/team-ns/templates/istio-virtualservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{- if not (or (eq $type "cluster") (hasKey $s "host")) }}
{{- $svc := (hasKey $s "hasPrefix" | ternary (printf "%s-%s" $v.teamId ($s.svc | default $s.name)) ($s.svc | default $s.name)) }}
{{- $domain := include "service.domain" (dict "s" $s "dot" $ "vs" true) }}
{{- $knativeServiceDomain := printf "%s.%s" $s.name $v.cluster.domainSuffix }}
{{- $knativeServiceDomain := printf "%s.%s" $s.name $v.domain }}
{{- if not (and $s.ksvc (eq $knativeServiceDomain $domain)) }}
{{- $vsName := include "flatten-name" (printf "%s%s" $domain (hasKey $s "paths" | ternary (printf "-%s" (include "helm-toolkit.utils.joinListWithSep" (dict "list" $s.paths "sep" "|"))) "")) }}
apiVersion: networking.istio.io/v1beta1
Expand Down Expand Up @@ -71,7 +71,7 @@ spec:
{{- if hasKey $s "ksvc" }}
route:
- destination:
host: istio-ingressgateway.istio-system.svc.cluster.local
host: istio-ingressgateway-{{ $type }}.istio-system.svc.cluster.local
{{- else }}
route:
- destination:
Expand Down

0 comments on commit e094134

Please sign in to comment.