Skip to content

Commit

Permalink
Merge pull request #28 from kubeshop/new_endpoints
Browse files Browse the repository at this point in the history
added serveral endpoints
  • Loading branch information
jasmingacic authored Apr 5, 2022
2 parents f54af5c + 3123b62 commit eceb80e
Show file tree
Hide file tree
Showing 32 changed files with 869 additions and 150 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ concurrency:

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: make build
- uses: actions/checkout@v2
- name: build
run: make build
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ run:

run-minikube:
docker-compose -f docker-compose.yaml -f docker-compose-minikube.yaml up --build -d
test:
cd ./server && FAKE=true go test -v ./...
4 changes: 3 additions & 1 deletion kgw-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ spec:
app: kgwtest
spec:
containers:
- image: jasmingacic/kuskgateway-api
- image: jasmingacic/kuskgateway-api:latest
imagePullPolicy: Always
name: kuskgateway-api
serviceAccountName: kusk-gateway-manager
---
Expand All @@ -32,6 +33,7 @@ spec:
ports:
- port: 8080
targetPort: 8080
type: LoadBalancer
selector:
app: kgwtest
# ---
Expand Down
3 changes: 2 additions & 1 deletion server/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
go/api_fleets_service.go
main.go
go/go.mod
go/Dockerfile
go/Dockerfile
Dockerfile
5 changes: 5 additions & 0 deletions server/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ go/api_apis_service.go
go/api_fleets.go
go/api_services.go
go/api_services_service.go
go/api_static_routes.go
go/api_static_routes_service.go
go/error.go
go/helpers.go
go/impl.go
Expand All @@ -17,4 +19,7 @@ go/model_api_item_fleet.go
go/model_api_item_service.go
go/model_envoy_fleet_item.go
go/model_service_item.go
go/model_service_port_item.go
go/model_static_route_item.go
go/model_static_route_item_fleet.go
go/routers.go
16 changes: 3 additions & 13 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://openapi-generator.tech)

- API version: 1.0.0
- Build date: 2022-03-18T10:28:30.091Z[Etc/UTC]
- Build date: 2022-04-04T20:47:47.857Z[Etc/UTC]


### Running the server
Expand All @@ -25,20 +25,10 @@ go run main.go

To run the server in a docker container
```
make build
docker build --network=host -t openapi .
```

Once image is built use
```
make run
```

To run in Minikube
```
make run-minikube
```

To stop the api
```
docker-compose down
make build
```
Loading

0 comments on commit eceb80e

Please sign in to comment.