Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Deleting a workload won't delete the component and http-server config #57

@Mees-Molenaar

Description

@Mees-Molenaar

Hi,

while testing the runtime-operator I think I found a bug.
It seems that when deleting a workload, you still can call the component in that workload via the http-server.

Steps to reproduce:

  1. Run the runtime-operator
    a. make kind-setup
    b. make helm-install
  2. Applied a workload: kubectl apply -f workload.yaml
  3. Performed a curl request: curl -v -H "Host: localhost" http://localhost:8888/
  4. Got the expected response
  5. Deleted the workload: kubectl delete -f workload.yaml
  6. Verified it by: kubectl get workloads
  7. Performed the same curl request: curl -v -H "Host: localhost" http://localhost:8888/
  8. Got the same response as in 4, I would expect that it doesn't resolve anymore

I am not sure how a runtime-operator works, but I would expect that the component was deleted and the http-server config host will be removed.

Workload yaml:

apiVersion: runtime.wasmcloud.dev/v1alpha1
kind: WorkloadDeployment
metadata:
  name: long-running-component
spec:
  replicas: 1
  template:
    spec:
      hostSelector:
        hostgroup: public-ingress
      components:
        - name: long-running-component-2
          image: kind-registry.default:5001/long-running-component:0.1.1
      hostInterfaces:
        - namespace: wasi
          package: http
          interfaces:
            - incoming-handler
          config:
            host: "localhost"

kind-config.yaml

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
  - role: control-plane
    extraPortMappings:
      - containerPort: 30950
        hostPort: 8888
        protocol: TCP
containerdConfigPatches:
  - |-
    [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5001"]
      endpoint = ["http://kind-registry:5000"]

Kind regards,
Mees

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions