# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

debuggingtrace: null
nodes:
{{- contains .nodes }}
- id: {{ b64enc "reviews.default"}}.1
  name: reviews.default
  type: http
  isreal: true
  layers:
  {{- contains .layers }}
    - MESH
    - K8S_SERVICE
  {{- end }}
- id: {{ b64enc "simple-http-waypoint.default"}}.1
  name: simple-http-waypoint.default
  type: tls
  isreal: true
  layers:
  {{- contains .layers }}
  - MESH
  - K8S_SERVICE
  {{- end }}
- id: {{ b64enc "productpage.default"}}.1
  name: productpage.default
  type: http
  isreal: true
  layers:
  {{- contains .layers }}
    - MESH
    - K8S_SERVICE
  {{- end }}
- id: {{ b64enc "details.default" }}.1
  name: details.default
  type: http
  isreal: true
  layers:
  {{- contains .layers }}
    - MESH
    - K8S_SERVICE
  {{- end }}
{{- end }}
calls:
{{- contains .calls }}
- source: {{ b64enc "productpage.default"}}.1
  sourcecomponents:
    {{- contains .sourcecomponents }}
    - tcp
    - http
    {{- end }}
  target: {{ b64enc "simple-http-waypoint.default"}}.1
  targetcomponents:
  {{- contains .targetcomponents }}
  - ztunnel
  {{- end }}
  id: {{ b64enc "productpage.default"}}.1-{{ b64enc "simple-http-waypoint.default"}}.1
  detectpoints:
    - CLIENT
    - SERVER
- source: {{ b64enc "simple-http-waypoint.default"}}.1
  sourcecomponents:
  {{- contains .sourcecomponents }}
  - tls
  {{- end }}
  target: {{ b64enc "details.default"}}.1
  targetcomponents:
  {{- contains .targetcomponents }}
  - ztunnel
  {{- end }}
  id: {{ b64enc "simple-http-waypoint.default" }}.1-{{ b64enc "details.default"}}.1
  detectpoints:
    - CLIENT
    - SERVER
- source: {{ b64enc "productpage.default" }}.1
  sourcecomponents:
    {{- contains .sourcecomponents }}
    - ztunnel
    - tcp
    - http
    {{- end }}
  target: {{ b64enc "reviews.default"}}.1
  targetcomponents:
  {{- contains .targetcomponents }}
    - ztunnel
    - http
  {{- end }}
  id: {{ b64enc "productpage.default" }}.1-{{ b64enc "reviews.default"}}.1
  detectpoints:
    - CLIENT
    - SERVER
{{- end }}
