name: Istio HTTP Header Filter
services:
  5a6fe8e6-aa8e-41e5-b3a5-73127c261a1d:
    name: golang-filter
    type: EnvoyFilter
    apiVersion: networking.istio.io/v1alpha3
    namespace: default
    model: istio-base
    settings:
      spec:
        config Patches:
        - apply To: HTTP_FILTER
          match:
            context: SIDECAR_INBOUND
            listener:
              filter Chain:
                filter:
                  name: envoy.filters.network.http_connection_manager
                  sub Filter:
                    name: envoy.filters.http.router
          patch:
            operation: INSERT_BEFORE
            value:
              name: envoy.filters.http.wasm
              typed_config:
                '@type': type.googleapis.com/udpa.type.v1.TypedStruct
                type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
                value:
                  config:
                    vm_config:
                      code:
                        local:
                          filename: /var/local/wasm/http-filter.wasm
                      runtime: envoy.wasm.runtime.v8
        workload Selector:
          labels:
            app: httpbin
    traits:
      meshmap:
        id: d5710f01-40ca-49c5-a517-9fc6e293cd2b
        meshmodel-metadata:
          genealogy: ""
          isNamespaced: true
          logoURL: https://github.com/istio/istio/blob/master/logo/istio-bluelogo-whitebackground-unframed.svg
          model: istio-base
          modelDisplayName: Istio
          primaryColor: '#466BB0'
          published: true
          secondaryColor: '#93b0e7'
          shape: circle
          styleOverrides: ""
          subCategory: Service Mesh
          svgColor: ui/public/static/img/meshmodels/istio-base/color/authorizationpolicy-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/istio-base/white/authorizationpolicy-white.svg
  8e313c11-07d5-410d-a092-309d836631a9:
    name: wasm-pvc
    type: PersistentVolumeClaim
    apiVersion: v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        access Modes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 1Mi
        storage Class Name: slow
        volume Mode: Filesystem
    traits:
      meshmap:
        id: f6e67a8c-9b6f-4e64-a24e-434102bc76b0
        meshmodel-metadata:
          genealogy: ""
          isCustomResource: false
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          published: true
          secondaryColor: '#7aa1f0'
          shape: cylinder
          styleOverrides: '{"height":32,"width":32,"pading":0,"background-clip":"none","background-image-containment":"over","border-opacity":0,"background-opacity":0,"bounds-expansion":20,
            "z-index": 9999}'
          subCategory: Scheduling & Orchestration
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/persistentvolume-color.svg
          svgComplete: ui/public/static/img/meshmodels/kubernetes/complete/persistentvolume-complete.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/color/persistentvolume-color.svg
  373e73e1-dedf-48b7-b8f5-3391388901e9:
    name: httpbin
    type: ServiceAccount
    apiVersion: v1
    namespace: default
    model: kubernetes
    traits:
      meshmap:
        id: ab411c34-abb3-49c4-abaa-f62855c1849d
        meshmodel-metadata:
          genealogy: ""
          isCustomResource: false
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          published: true
          secondaryColor: '#7aa1f0'
          shape: round-rectangle
          styleOverrides: ""
          subCategory: Scheduling & Orchestration
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/serviceaccount-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/kubernetes/color/serviceaccount-color.svg
  415e3ba0-f0cd-415f-a7d7-7374a78c83c7:
    name: wasm-pv
    type: PersistentVolume
    apiVersion: v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        access Modes:
        - ReadWriteOnce
        capacity:
          storage: 1Mi
        host Path:
          path: /Users/shabana/Documents/OpenSource/k8s-test/proxy-wasm-go-sdk/examples/http_headers/main.go.wasm
        persistent Volume Reclaim Policy: Recycle
        storage Class Name: slow
        volume Mode: Filesystem
    traits:
      meshmap:
        id: e38ddd90-4777-41d9-af1c-835ade57638b
        meshmodel-metadata:
          genealogy: ""
          isCustomResource: false
          isNamespaced: false
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          published: true
          secondaryColor: '#7aa1f0'
          shape: cylinder
          styleOverrides: '{"height":32,"width":32,"pading":0,"background-clip":"none","background-image-containment":"over","border-opacity":0,"background-opacity":0,"bounds-expansion":20}'
          subCategory: Scheduling & Orchestration
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/persistentvolume-color.svg
          svgComplete: ui/public/static/img/meshmodels/kubernetes/complete/persistentvolume-complete.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/color/persistentvolume-color.svg
  d1de950c-e7c5-4d25-be53-2ed92168bad9:
    name: httpbin
    type: Service
    apiVersion: v1
    namespace: default
    model: kubernetes
    labels:
      app: httpbin
      service: httpbin
    settings:
      spec:
        ports:
        - name: http
          port: 8000
          target Port: 80
        selector:
          app: httpbin
    traits:
      meshmap:
        id: f2b498d5-e5bb-4657-ada4-54e6300572ce
        meshmodel-metadata:
          genealogy: ""
          isCustomResource: false
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          published: true
          secondaryColor: '#7aa1f0'
          shape: round-triangle
          styleOverrides: '{"height":16,"width":17,"padding":12,"background-fit":"none","background-position-y":4.5}'
          subCategory: Scheduling & Orchestration
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/apiservice-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/apiservice-white.svg
  f8215eaa-a930-4984-b515-e08f7a9a86a5:
    name: httpbin
    type: Deployment
    apiVersion: apps/v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        replicas: 1
        selector:
          match Labels:
            app: httpbin
            version: v1
        template:
          metadata:
            annotations:
              sidecar.istio.io/log Level: info
              sidecar.istio.io/user Volume: '[{"name":"http-filter","persistentVolumeClaim":
                {"claimName":"wasm-pvc"}}]'
              sidecar.istio.io/user Volume Mount: '[{"mountPath":"/var/local/wasm/http-filter.wasm","name":"http-filter",
                "readonly": true}]'
            labels:
              app: httpbin
              version: v1
          spec:
            containers:
            - image: docker.io/kennethreitz/httpbin
              image Pull Policy: IfNotPresent
              name: httpbin
              ports:
              - container Port: 80
            service Account Name: httpbin
    traits:
      meshmap:
        id: 6cea8f56-695c-4523-91c9-97596ac7c827
        meshmodel-metadata:
          genealogy: parent
          isCustomResource: false
          isNamespaced: true
          logoURL: Created by leecalcote
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          published: true
          secondaryColor: '#7aa1f0'
          shape: round-pentagon
          styleOverrides: '{"background-image":"none","border-width":2,"background-opacity":0.5}'
          subCategory: Scheduling & Orchestration
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/deployment-color.svg
          svgComplete: ui/public/static/img/meshmodels/kubernetes/complete/deployment-complete.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/color/deployment-color.svg
