solo-io / wasm

Web Assembly tools and SDKs for extending cloud-native infrastructure
Apache License 2.0
306 stars 40 forks source link

wasm deploy can not create envoyfilter #266

Open junji2 opened 3 years ago

junji2 commented 3 years ago

istio version 1.9.3 kubernetes version 1.20.4 operator version quay.io/solo-io/wasme:0.0.32

filterDeployment.yaml:

apiVersion: wasme.io/v1
kind: FilterDeployment
metadata:
  name: myfilter
  namespace: nginx
spec:
  deployment:
    istio:
      kind: Deployment
  filter:
    image: webassemblyhub.io/qiujj/header_test:v0.2

after I run the command:

k apply -f filterDeployment.yaml

wasme operate log:

time="2021-06-19T05:57:34Z" level=warning msg="event err: expected 1 image-ready events for image webassemblyhub.io/qiujj/header_test:v0.2, only found map[]"
time="2021-06-19T05:57:35Z" level=warning msg="event err: expected 1 image-ready events for image webassemblyhub.io/qiujj/header_test:v0.2, only found map[]"
time="2021-06-19T05:57:36Z" level=warning msg="event err: expected 1 image-ready events for image webassemblyhub.io/qiujj/header_test:v0.2, only found map[]"
time="2021-06-19T05:57:38Z" level=warning msg="event err: expected 1 image-ready events for image webassemblyhub.io/qiujj/header_test:v0.2, only found map[]"
time="2021-06-19T05:57:38Z" level=warning msg="event err: expected 1 image-ready events for image webassemblyhub.io/qiujj/header_test:v0.2, only found map[]"
time="2021-06-19T05:57:40Z" level=warning msg="event err: expected 1 image-ready events for image webassemblyhub.io/qiujj/header_test:v0.2, only found map[]"
time="2021-06-19T05:57:40Z" level=info msg="cleaning up cache events for image webassemblyhub.io/qiujj/header_test:v0.2"
time="2021-06-19T05:57:40Z" level=info msg="updated workload sidecar annotations" filter="id:\"myfilter.nginx\" image:\"webassemblyhub.io/qiujj/header_test:v0.2\" rootID:\"2021-06-19header-test\" " workload=nginx-sample-server-v1

it stopped at 'updated workload sidecar annotations' and did not connitue to 'created Istio EnvoyFilter resource '

Have you ever encountered this situation

junji2 commented 3 years ago
╰─$ kubectl get filterdeployments.wasme.io --all-namespaces -o yaml
apiVersion: v1
items:
- apiVersion: wasme.io/v1
  kind: FilterDeployment
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"wasme.io/v1","kind":"FilterDeployment","metadata":{"annotations":{},"name":"myfilter","namespace":"nginx"},"spec":{"deployment":{"istio":{"kind":"Deployment"}},"filter":{"image":"webassemblyhub.io/qiujj/header_test:v0.2"}}}
    creationTimestamp: "2021-06-19T05:57:03Z"
    generation: 1
    managedFields:
    - apiVersion: wasme.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:kubectl.kubernetes.io/last-applied-configuration: {}
        f:spec:
          .: {}
          f:deployment:
            .: {}
            f:istio:
              .: {}
              f:kind: {}
          f:filter:
            .: {}
            f:image: {}
      manager: kubectl-client-side-apply
      operation: Update
      time: "2021-06-19T05:57:03Z"
    name: myfilter
    namespace: nginx
    resourceVersion: "8302772"
    uid: a6963834-123d-4cb5-99fb-4d23685bd903
  spec:
    deployment:
      istio:
        kind: Deployment
    filter:
      image: webassemblyhub.io/qiujj/header_test:v0.2
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""