Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github.com/kubeshop/kusk-gateway to v1.5.0 #84

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

jasmingacic
Copy link
Contributor

@jasmingacic jasmingacic commented Dec 6, 2022

server/kusk/client_test.go

Define upstream in the specs string that is used in TestCreateStaticRoute.

See, https://github.com/kubeshop/kusk-gateway/blob/main/examples/static-route/example-1-top-level-upstream/api.yaml, for what the new definition of StaticRoute should be.

server/kusk/client.go

Populate staticRoute.Spec.Upstream from tmp.Spec.Upstream.


Test

(cd server && go test -run '^TestCreateStaticRoute$' github.com/kubeshop/kuskgateway-api-server/kusk -count=1 -v)
=== RUN   TestCreateStaticRoute
--- PASS: TestCreateStaticRoute (0.02s)
PASS
ok  	github.com/kubeshop/kuskgateway-api-server/kusk	0.041s

Signed-off-by: jasmingacic jasmin.gacic@gmail.com

Signed-off-by: jasmingacic <jasmin.gacic@gmail.com>
kylehodgetts
kylehodgetts previously approved these changes Dec 7, 2022
mbana
mbana previously approved these changes Dec 7, 2022
Copy link
Contributor

@mbana mbana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

`server/kusk/client_test.go`
----------------------------

Define `upstream` in the `specs` string that is used in `TestCreateStaticRoute`.

See, https://github.com/kubeshop/kusk-gateway/blob/main/examples/static-route/example-1-top-level-upstream/api.yaml, for what the new definition of `StaticRoute` should be.

`server/kusk/client.go`
-----------------------

Populate `staticRoute.Spec.Upstream` from `tmp.Spec.Upstream`.

---

Signed-off-by: Mohamed Bana <mohamed@bana.io>
@mbana mbana dismissed stale reviews from kylehodgetts and themself via 66e28c6 December 7, 2022 11:12
@mbana mbana changed the title updated kgw to v1.5.0 Update github.com/kubeshop/kusk-gateway to v1.5.0 Dec 7, 2022
@mbana mbana requested review from kylehodgetts and mbana December 7, 2022 11:15
mbana
mbana previously approved these changes Dec 7, 2022
Copy link
Contributor

@mbana mbana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasmingacic and @kylehodgetts, could you possible try the change I pushed?

Here, https://github.com/kubeshop/kusk-gateway/blob/main/examples/static-route/example-1-top-level-upstream/api.yaml, is how the new StaticRoute structure looks.

…gistry)

Example using `latest`:

* ttl.sh/kubeshop/kusk-gateway-api:latest
* ttl.sh/kubeshop/kusk-gateway-api-websocket:latest

Example using latest `tag` name:

* ttl.sh/kubeshop/kusk-gateway-api:v1.2.1
* ttl.sh/kubeshop/kusk-gateway-api-websocket:v1.2.1

---

Signed-off-by: Mohamed Bana <mohamed@bana.io>
@mortada-codes
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants