-
Notifications
You must be signed in to change notification settings - Fork 27
Refactor API-Platform GW setup #768
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
base: main
Are you sure you want to change the base?
Changes from all commits
d3fb021
3dca6b8
7db77e2
0705251
c44af6a
86990f2
d6c2f1d
ba750ea
8dbddbe
43adcf3
a4f64b3
8a7d597
8855037
82dddb5
c7cdb42
c6a3db6
8dca816
6bfd948
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |||||
|
|
||||||
| import type { ListQuery, OrgPathParams, PaginationMeta } from "./common"; | ||||||
|
|
||||||
| export type GatewayType = "AI" | "REGULAR"; | ||||||
| export type GatewayType = "AI" | "REGULAR" | "ai" | "regular"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep The API model now accepts Proposed fix-export type GatewayType = "AI" | "REGULAR" | "ai" | "regular";
+export type GatewayType = "AI" | "REGULAR";📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| export type GatewayStatus = | ||||||
| | "ACTIVE" | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -51,13 +51,13 @@ Defaults to "<release-name>-config" when not explicitly set. | |||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| {{/* | ||||||||||||||||||||||||||
| Name of the APIGateway CR. | ||||||||||||||||||||||||||
| Defaults to the release name when gateway.name is not explicitly set. | ||||||||||||||||||||||||||
| Defaults to "api-platform-<orgName>-<environment>" when gateway.name is not explicitly set. | ||||||||||||||||||||||||||
| */}} | ||||||||||||||||||||||||||
| {{- define "wso2-amp-gateway-extension.apiGatewayName" -}} | ||||||||||||||||||||||||||
| {{- if .Values.gateway.name }} | ||||||||||||||||||||||||||
| {{- .Values.gateway.name }} | ||||||||||||||||||||||||||
| {{- else }} | ||||||||||||||||||||||||||
| {{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||||||||||||||||||||||||||
| {{- printf "api-platform-%s-%s" .Values.agentManager.orgName .Values.gateway.environment | trunc 63 | trimSuffix "-" }} | ||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||
|
Comment on lines
+56
to
+61
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n --context 3 'orgName|environment|apiGatewayName|gateway\.name|pattern' deployments/helm-charts/wso2-amp-api-platform-gateway-extension
fd -t f 'values.schema.json' deployments/helm-charts/wso2-amp-api-platform-gateway-extensionRepository: wso2/agent-manager Length of output: 14368 Add
Fix-{{- printf "api-platform-%s-%s" .Values.agentManager.orgName .Values.gateway.environment | trunc 63 | trimSuffix "-" }}
+{{- printf "api-platform-%s-%s" .Values.agentManager.orgName .Values.gateway.environment | lower | trunc 63 | trimSuffix "-" }}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swap the post-setup order.
make port-forwardwill fail until the gateway service exists, so the instructions currently tell users to run the commands in the wrong order.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AnoshanJ seems like this is a valid comment. port forward has gateway ports configured to be exposed. but, in this step, the gateway is not running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.