Skip to content

Commit

Permalink
fixed ingress and service
Browse files Browse the repository at this point in the history
  • Loading branch information
ca7alindev committed Sep 24, 2024
1 parent 9a31ea2 commit 40b7474
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
"apiVersion": "v1",
"kind": "Service",
"metadata": map[string]interface{}{
"name": "service-collector",
"name": "service-collector",
"namespace": "default",
},
"spec": map[string]interface{}{
"ports": []interface{}{
Expand Down Expand Up @@ -186,15 +187,16 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
"apiVersion": "kubernetes.crossplane.io/v1alpha2",
"kind": "Object",
"metadata": map[string]interface{}{
"name": "service-collector",
"name": "ingress-collector",
},
"spec": map[string]interface{}{
"forProvider": map[string]interface{}{
"manifest": map[string]interface{}{
"apiVersion": "networking.k8s.io/v1",
"kind": "Ingress",
"metadata": map[string]interface{}{
"name": "collector",
"name": "collector",
"namespace": "default",
},
"spec": map[string]interface{}{
"ingressClassName": "ngrok",
Expand Down

0 comments on commit 40b7474

Please sign in to comment.