2 Commits

Author SHA1 Message Date
a93cab4de5 remove namespace from kustomization
Some checks failed
Gitea Actions Demo / lint (push) Failing after 2m2s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / release-image (push) Has been skipped
2025-03-09 15:38:57 -05:00
b2e4fcbce1 add route to test chunked encoding 2025-03-09 15:38:34 -05:00
2 changed files with 6 additions and 4 deletions

9
app.rb
View File

@ -427,11 +427,14 @@ route :delete, :get, :patch, :post, :put, "/status/:code" do
end end
get "/chunked/:delay" do get "/chunked/:delay" do
content_type "application/x-ndjson"
delay = Float(params[:delay]) delay = Float(params[:delay])
stream do |out| stream do |out|
out << "Hello, world!\n" 30.times do |i|
sleep delay out << jsonify({id: i, message: i % 2 == 0 ? "tick" : "tock"})
out << "Hello, world!\n" sleep delay
end
end end
end end

View File

@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: kipunji name: kipunji
namespace: kipunji
resources: resources:
- namespace.yaml - namespace.yaml
- ./app - ./app