-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: google-anyscale-vpc-firewall - Firewall Rule Names
The firewall rule names were not properly getting pulled from the variable when pulling from the `predefined_firewall_rules`. Additonal updates: - E2E test added for Services where functional verification isn't possible - Removed the unit test for the firewall as it was no longer maintained. Changes to be committed: modified: ../modules/google-anyscale-vpc-firewall/main.tf deleted: ../modules/google-anyscale-vpc-firewall/test/terraform_google_anyscale_vpc_firewall_test.go new file: anyscale-service/service.py
- Loading branch information
1 parent
55a4abd
commit e0e0c7b
Showing
3 changed files
with
29 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 0 additions & 68 deletions
68
modules/google-anyscale-vpc-firewall/test/terraform_google_anyscale_vpc_firewall_test.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from fastapi import FastAPI | ||
from ray import serve | ||
import os | ||
|
||
# Use this var to test service inplace update. When the env var is updated, users see new return value. | ||
msg = os.getenv("SERVE_RESPONSE_MESSAGE", "Hello world!") | ||
|
||
app = FastAPI() | ||
|
||
|
||
@serve.deployment(route_prefix="/") | ||
@serve.ingress(app) | ||
class HelloWorld: | ||
@app.get("/") | ||
def hello(self): | ||
return msg | ||
|
||
@app.get("/healthcheck") | ||
def healthcheck(self): | ||
return | ||
|
||
|
||
entrypoint = HelloWorld.bind() | ||
|
||
# The following block will be executed if the script is run by Python directly | ||
if __name__ == "__main__": | ||
serve.run(entrypoint) |