This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Deleting a workload won't delete the component and http-server config #57
Copy link
Copy link
Open
Description
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:
- Run the runtime-operator
a. make kind-setup
b. make helm-install - Applied a workload:
kubectl apply -f workload.yaml - Performed a curl request:
curl -v -H "Host: localhost" http://localhost:8888/ - Got the expected response
- Deleted the workload:
kubectl delete -f workload.yaml - Verified it by:
kubectl get workloads - Performed the same curl request:
curl -v -H "Host: localhost" http://localhost:8888/ - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels