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

cherry pick #3192 #3205 to 2.0.0 #3203

Conversation

PetrusZ
Copy link
Contributor

@PetrusZ PetrusZ commented Nov 17, 2023

  • add portal service feature for share env

  • add remove portal service function

  • add get istio gateway address function

  • add delete istio gateway function

  • add get portal service function

  • add istio gateway info to listGroups and listWorkloads api


What this PR does / Why we need it:

🤖[deprecated] Generated by Copilot at 18e3312

This pull request adds the portal service feature to the aslan microservice, which allows users to configure and access Istio gateways for their services. It modifies the environment, service, and kube packages to support the istio gateway integration and adds new handlers, routes, schemas, and endpoints to the rest and doc packages. It also updates the swagger files and the error constants.

What is changed and how it works?

🤖[deprecated] Generated by Copilot at 18e3312

  • Add the GetPortalService and SetupPortalService endpoints to handle the requests for getting and setting the portal service configuration for a share environment (link, link, link, link, link, link)
  • Add the IstioGatewayInfo field to the ServiceResp struct and schema to store the istio gateway information for a service in the environment response (link, link, link, link, link, link, link, link, link, link)
  • Add the logic to create and manipulate istio resources such as gateways and virtual services using the istio client package and the metav1 package (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Add the logic to fill the service name for a workload based on the release name to service name map from the product info (link)
  • Export the ManifestToUnstructured function to be used by other packages (link, link, link)
  • Add the error constants for the portal service functions to the errors package (link)
  • Remove some empty lines in the handler package (link, link, link, link)
  • Update the comments and the step numbers for the DisableBaseEnv function (link, link, link)

Does this PR introduce a user-facing change?

  • API change
  • database schema change
  • upgrade assistant change
  • change in non-functional attributes such as efficiency or availability
  • fix of a previous issue

* add portal service feature for share env

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>

* add remove portal service function

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>

* add get istio gateway address function

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>

* add delete istio gateway function

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>

* add get portal service function

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>

* add istio gateway info to listGroups and listWorkloads api

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>

---------

Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>
@PetrusZ PetrusZ changed the title cherry pick #3192 to 2.0.0 cherry pick #3192 #3205 to 2.0.0 Nov 17, 2023
Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>
@PetrusZ PetrusZ closed this Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant