diff --git a/adapter/internal/oasparser/envoyconf/routes_with_clusters_test.go b/adapter/internal/oasparser/envoyconf/routes_with_clusters_test.go index 03ca8957c..6fae0262d 100644 --- a/adapter/internal/oasparser/envoyconf/routes_with_clusters_test.go +++ b/adapter/internal/oasparser/envoyconf/routes_with_clusters_test.go @@ -48,7 +48,7 @@ func TestCreateRoutesWithClustersWithExactAndRegularExpressionRules(t *testing.T BasePath: "/test-api/2.0.0", Production: []v1alpha2.EnvConfig{ { - HTTPRouteRefs: []string{ + RouteRefs: []string{ "test-api-2-prod-http-route", }, }, @@ -218,7 +218,7 @@ func generateSampleAPI(apiName string, apiVersion string, basePath string) synch BasePath: basePath, Production: []v1alpha2.EnvConfig{ { - HTTPRouteRefs: []string{ + RouteRefs: []string{ apiName + "-prod-http-route", }, }, @@ -281,7 +281,7 @@ func TestCreateRoutesWithClustersWithMultiplePathPrefixRules(t *testing.T) { BasePath: "/test-api/1.0.0", Production: []v1alpha2.EnvConfig{ { - HTTPRouteRefs: []string{ + RouteRefs: []string{ "test-api-1-prod-http-route", }, }, @@ -430,7 +430,7 @@ func TestCreateRoutesWithClustersWithBackendTLSConfigs(t *testing.T) { BasePath: "/test-api-3/1.0.0", Production: []v1alpha2.EnvConfig{ { - HTTPRouteRefs: []string{ + RouteRefs: []string{ "test-api-3-prod-http-route", }, }, @@ -553,7 +553,7 @@ func TestCreateRoutesWithClustersDifferentBackendRefs(t *testing.T) { BasePath: "/test-api-different-backendrefs/1.0.0", Production: []v1alpha2.EnvConfig{ { - HTTPRouteRefs: []string{ + RouteRefs: []string{ "test-api-different-backendrefs-prod-http-route", }, }, @@ -645,7 +645,7 @@ func TestCreateRoutesWithClustersSameBackendRefs(t *testing.T) { BasePath: "/test-api-same-backendrefs/1.0.0", Production: []v1alpha2.EnvConfig{ { - HTTPRouteRefs: []string{ + RouteRefs: []string{ "test-api-same-backendrefs-prod-http-route", }, }, diff --git a/adapter/internal/operator/controllers/dp/api_controller.go b/adapter/internal/operator/controllers/dp/api_controller.go index 352be2868..6d32554fc 100644 --- a/adapter/internal/operator/controllers/dp/api_controller.go +++ b/adapter/internal/operator/controllers/dp/api_controller.go @@ -300,10 +300,10 @@ func (apiReconciler *APIReconciler) applyStartupAPIs() { func (apiReconciler *APIReconciler) resolveAPIRefs(ctx context.Context, api dpv1alpha2.API) (*synchronizer.APIEvent, error) { var prodRouteRefs, sandRouteRefs []string if len(api.Spec.Production) > 0 { - prodRouteRefs = api.Spec.Production[0].HTTPRouteRefs + prodRouteRefs = api.Spec.Production[0].RouteRefs } if len(api.Spec.Sandbox) > 0 { - sandRouteRefs = api.Spec.Sandbox[0].HTTPRouteRefs + sandRouteRefs = api.Spec.Sandbox[0].RouteRefs } apiState := &synchronizer.APIState{ @@ -1484,7 +1484,7 @@ func addIndexes(ctx context.Context, mgr manager.Manager) error { api := rawObj.(*dpv1alpha2.API) var httpRoutes []string if len(api.Spec.Production) > 0 { - for _, ref := range api.Spec.Production[0].HTTPRouteRefs { + for _, ref := range api.Spec.Production[0].RouteRefs { if ref != "" { httpRoutes = append(httpRoutes, types.NamespacedName{ @@ -1495,7 +1495,7 @@ func addIndexes(ctx context.Context, mgr manager.Manager) error { } } if len(api.Spec.Sandbox) > 0 { - for _, ref := range api.Spec.Sandbox[0].HTTPRouteRefs { + for _, ref := range api.Spec.Sandbox[0].RouteRefs { if ref != "" { httpRoutes = append(httpRoutes, types.NamespacedName{ @@ -1515,7 +1515,7 @@ func addIndexes(ctx context.Context, mgr manager.Manager) error { api := rawObj.(*dpv1alpha2.API) var gqlRoutes []string if len(api.Spec.Production) > 0 { - for _, ref := range api.Spec.Production[0].HTTPRouteRefs { + for _, ref := range api.Spec.Production[0].RouteRefs { if ref != "" { gqlRoutes = append(gqlRoutes, types.NamespacedName{ @@ -1526,7 +1526,7 @@ func addIndexes(ctx context.Context, mgr manager.Manager) error { } } if len(api.Spec.Sandbox) > 0 { - for _, ref := range api.Spec.Sandbox[0].HTTPRouteRefs { + for _, ref := range api.Spec.Sandbox[0].RouteRefs { if ref != "" { gqlRoutes = append(gqlRoutes, types.NamespacedName{ diff --git a/adapter/internal/operator/synchronizer/synchronizer.go b/adapter/internal/operator/synchronizer/synchronizer.go index 3305399d5..8f177d80c 100644 --- a/adapter/internal/operator/synchronizer/synchronizer.go +++ b/adapter/internal/operator/synchronizer/synchronizer.go @@ -224,7 +224,7 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv updated := xds.UpdateXdsCacheOnAPIChange(updatedLabelsMap) if updated { - loggers.LoggerAPKOperator.Info("XDS cache updated for apis: %+v", updatedAPIs) + loggers.LoggerAPKOperator.Infof("XDS cache updated for apis: %+v", updatedAPIs) *successChannel <- SuccessEvent{ APINamespacedName: updatedAPIs, State: event.EventType, @@ -234,7 +234,7 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv paritionCh <- event } } else { - loggers.LoggerAPKOperator.Info("XDS cache not updated for APIs : %+v", updatedAPIs) + loggers.LoggerAPKOperator.Infof("XDS cache not updated for APIs : %+v", updatedAPIs) } } diff --git a/common-controller/internal/operator/controllers/dp/ratelimitpolicy_controller.go b/common-controller/internal/operator/controllers/dp/ratelimitpolicy_controller.go index b89691bb6..c4de5e578 100644 --- a/common-controller/internal/operator/controllers/dp/ratelimitpolicy_controller.go +++ b/common-controller/internal/operator/controllers/dp/ratelimitpolicy_controller.go @@ -289,7 +289,7 @@ func (ratelimitReconsiler *RateLimitPolicyReconciler) marshelRateLimit(ctx conte if len(api.Spec.Production) > 0 && api.Spec.APIType == "REST" { resolveResourceList, err := ratelimitReconsiler.getHTTPRouteResourceList(ctx, ratelimitKey, ratelimitPolicy, - api.Spec.Production[0].HTTPRouteRefs) + api.Spec.Production[0].RouteRefs) if err != nil { return nil, err } @@ -301,7 +301,7 @@ func (ratelimitReconsiler *RateLimitPolicyReconciler) marshelRateLimit(ctx conte if len(api.Spec.Sandbox) > 0 && api.Spec.APIType == "REST" { resolveResourceList, err := ratelimitReconsiler.getHTTPRouteResourceList(ctx, ratelimitKey, ratelimitPolicy, - api.Spec.Sandbox[0].HTTPRouteRefs) + api.Spec.Sandbox[0].RouteRefs) if err != nil { return nil, err } diff --git a/common-go-libs/apis/dp/v1alpha1/api_conversion.go b/common-go-libs/apis/dp/v1alpha1/api_conversion.go index 154d6bfbd..4de702be0 100644 --- a/common-go-libs/apis/dp/v1alpha1/api_conversion.go +++ b/common-go-libs/apis/dp/v1alpha1/api_conversion.go @@ -39,6 +39,22 @@ func (src *API) ConvertTo(dstRaw conversion.Hub) error { dst.Spec.BasePath = src.Spec.BasePath dst.Spec.Organization = src.Spec.Organization dst.Spec.SystemAPI = src.Spec.SystemAPI + if src.Spec.Production != nil { + src.Spec.Production = []EnvConfig{} + for _, productionRef := range src.Spec.Production { + dst.Spec.Production = append(dst.Spec.Production, v1alpha2.EnvConfig{ + RouteRefs: productionRef.HTTPRouteRefs, + }) + } + } + if src.Spec.Sandbox != nil { + src.Spec.Sandbox = []EnvConfig{} + for _, sandboxRef := range src.Spec.Sandbox { + dst.Spec.Sandbox = append(dst.Spec.Sandbox, v1alpha2.EnvConfig{ + RouteRefs: sandboxRef.HTTPRouteRefs, + }) + } + } // Convert []Property to []v1alpha2.Property var properties []v1alpha2.Property @@ -47,19 +63,6 @@ func (src *API) ConvertTo(dstRaw conversion.Hub) error { } dst.Spec.APIProperties = properties - // Convert []EnvConfig to []v1alpha2.EnvConfig - var production []v1alpha2.EnvConfig - for _, p := range src.Spec.Production { - production = append(production, v1alpha2.EnvConfig(p)) - } - dst.Spec.Production = production - - var sandbox []v1alpha2.EnvConfig - for _, s := range src.Spec.Sandbox { - sandbox = append(sandbox, v1alpha2.EnvConfig(s)) - } - dst.Spec.Sandbox = sandbox - // Status dst.Status.DeploymentStatus = v1alpha2.DeploymentStatus(src.Status.DeploymentStatus) @@ -91,19 +94,6 @@ func (src *API) ConvertFrom(srcRaw conversion.Hub) error { } src.Spec.APIProperties = properties - // Convert []EnvConfig to []v1alpha1.EnvConfig - var production []EnvConfig - for _, p := range dst.Spec.Production { - production = append(production, EnvConfig(p)) - } - src.Spec.Production = production - - var sandbox []EnvConfig - for _, s := range dst.Spec.Sandbox { - sandbox = append(sandbox, EnvConfig(s)) - } - src.Spec.Sandbox = sandbox - // Status src.Status.DeploymentStatus = DeploymentStatus(dst.Status.DeploymentStatus) diff --git a/common-go-libs/apis/dp/v1alpha2/api_types.go b/common-go-libs/apis/dp/v1alpha2/api_types.go index 741814b45..4579e5e0b 100644 --- a/common-go-libs/apis/dp/v1alpha2/api_types.go +++ b/common-go-libs/apis/dp/v1alpha2/api_types.go @@ -47,7 +47,7 @@ type APISpec struct { // +optional IsDefaultVersion bool `json:"isDefaultVersion"` - // DefinitionFileRef contains the OpenAPI 3 or Swagger + // DefinitionFileRef contains the // definition of the API in a ConfigMap. // // +optional @@ -124,8 +124,8 @@ type Property struct { // EnvConfig contains the environment specific configuration type EnvConfig struct { - // HTTPRouteRefs denotes the environment of the API. - HTTPRouteRefs []string `json:"httpRouteRefs"` + // RouteRefs denotes the environment of the API. + RouteRefs []string `json:"routeRefs"` } // APIStatus defines the observed state of API diff --git a/common-go-libs/apis/dp/v1alpha2/api_webhook.go b/common-go-libs/apis/dp/v1alpha2/api_webhook.go index e347680a7..19de63456 100644 --- a/common-go-libs/apis/dp/v1alpha2/api_webhook.go +++ b/common-go-libs/apis/dp/v1alpha2/api_webhook.go @@ -91,7 +91,6 @@ func (r *API) ValidateDelete() (admission.Warnings, error) { // validateAPI validate api crd fields func (r *API) validateAPI() error { - loggers.LoggerAPKOperator.Error("validating...") var allErrs field.ErrorList conf := config.ReadConfigs() namespaces := conf.CommonController.Operator.Namespaces @@ -127,17 +126,18 @@ func (r *API) validateAPI() error { allErrs = append(allErrs, field.Required(field.NewPath("spec").Child("organization"), "Organization can not be empty")) } - if !(len(r.Spec.Production) > 0 && r.Spec.Production[0].HTTPRouteRefs != nil && len(r.Spec.Production[0].HTTPRouteRefs) > 0) && !(len(r.Spec.Sandbox) > 0 && r.Spec.Sandbox[0].HTTPRouteRefs != nil && len(r.Spec.Sandbox[0].HTTPRouteRefs) > 0) { + if !(len(r.Spec.Production) > 0 && r.Spec.Production[0].RouteRefs != nil && len(r.Spec.Production[0].RouteRefs) > 0) && + !(len(r.Spec.Sandbox) > 0 && r.Spec.Sandbox[0].RouteRefs != nil && len(r.Spec.Sandbox[0].RouteRefs) > 0) { allErrs = append(allErrs, field.Required(field.NewPath("spec"), "both API production and sandbox endpoint references cannot be empty")) } var prodHTTPRoute1, sandHTTPRoute1 []string if len(r.Spec.Production) > 0 { - prodHTTPRoute1 = r.Spec.Production[0].HTTPRouteRefs + prodHTTPRoute1 = r.Spec.Production[0].RouteRefs } if len(r.Spec.Sandbox) > 0 { - sandHTTPRoute1 = r.Spec.Sandbox[0].HTTPRouteRefs + sandHTTPRoute1 = r.Spec.Sandbox[0].RouteRefs } if isEmptyStringsInArray(prodHTTPRoute1) { @@ -263,8 +263,7 @@ func validateGzip(name, namespace string) (string, string) { configMap := &corev1.ConfigMap{} if err := c.Get(context.Background(), types.NamespacedName{Name: string(name), Namespace: namespace}, configMap); err == nil { var apiDef []byte - for key, val := range configMap.BinaryData { - loggers.LoggerAPKOperator.Error(key) + for _, val := range configMap.BinaryData { // config map data key is "swagger.yaml" apiDef = []byte(val) } diff --git a/common-go-libs/apis/dp/v1alpha2/zz_generated.deepcopy.go b/common-go-libs/apis/dp/v1alpha2/zz_generated.deepcopy.go index 0400f7780..5a869b17c 100644 --- a/common-go-libs/apis/dp/v1alpha2/zz_generated.deepcopy.go +++ b/common-go-libs/apis/dp/v1alpha2/zz_generated.deepcopy.go @@ -531,8 +531,8 @@ func (in *DeploymentStatus) DeepCopy() *DeploymentStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *EnvConfig) DeepCopyInto(out *EnvConfig) { *out = *in - if in.HTTPRouteRefs != nil { - in, out := &in.HTTPRouteRefs, &out.HTTPRouteRefs + if in.RouteRefs != nil { + in, out := &in.RouteRefs, &out.RouteRefs *out = make([]string, len(*in)) copy(*out, *in) } diff --git a/common-go-libs/config/crd/bases/dp.wso2.com_apis.yaml b/common-go-libs/config/crd/bases/dp.wso2.com_apis.yaml index 304529c66..7846de3ca 100644 --- a/common-go-libs/config/crd/bases/dp.wso2.com_apis.yaml +++ b/common-go-libs/config/crd/bases/dp.wso2.com_apis.yaml @@ -259,8 +259,8 @@ spec: pattern: ^[/][a-zA-Z0-9~/_.-]*$ type: string definitionFileRef: - description: DefinitionFileRef contains the OpenAPI 3 or Swagger definition - of the API in a ConfigMap. + description: DefinitionFileRef contains the definition of the API + in a ConfigMap. type: string definitionPath: default: /api-definition @@ -285,13 +285,13 @@ spec: items: description: EnvConfig contains the environment specific configuration properties: - httpRouteRefs: - description: HTTPRouteRefs denotes the environment of the API. + routeRefs: + description: RouteRefs denotes the environment of the API. items: type: string type: array required: - - httpRouteRefs + - routeRefs type: object maxItems: 1 nullable: true @@ -302,13 +302,13 @@ spec: items: description: EnvConfig contains the environment specific configuration properties: - httpRouteRefs: - description: HTTPRouteRefs denotes the environment of the API. + routeRefs: + description: RouteRefs denotes the environment of the API. items: type: string type: array required: - - httpRouteRefs + - routeRefs type: object maxItems: 1 nullable: true diff --git a/common-go-libs/go.sum b/common-go-libs/go.sum index b7ff16a46..9db5ea8a8 100644 --- a/common-go-libs/go.sum +++ b/common-go-libs/go.sum @@ -153,6 +153,7 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= diff --git a/developer/tryout/samples/sample-api.yaml b/developer/tryout/samples/sample-api.yaml index 50de733e3..a954bae37 100644 --- a/developer/tryout/samples/sample-api.yaml +++ b/developer/tryout/samples/sample-api.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ----------------------------------------------------------------------- -apiVersion: dp.wso2.com/v1alpha1 +apiVersion: dp.wso2.com/v1alpha2 kind: API metadata: name: http-bin-api @@ -24,11 +24,11 @@ spec: basePath: /http-bin-api/1.0.8 definitionFileRef: swagger-definition-http-bin-api production: - - httpRouteRefs: + - routeRefs: - prod-http-route-http-bin-api-p1 - prod-http-route-http-bin-api-p2 sandbox: - - httpRouteRefs: + - routeRefs: - sand-http-route-http-bin-api organization: a3b58ccf-6ecc-4557-b5bb-0a35cce38256 --- diff --git a/helm-charts/crds/dp.wso2.com_apis.yaml b/helm-charts/crds/dp.wso2.com_apis.yaml index fc4e0a2a9..7846de3ca 100644 --- a/helm-charts/crds/dp.wso2.com_apis.yaml +++ b/helm-charts/crds/dp.wso2.com_apis.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.12.0 name: apis.dp.wso2.com spec: group: dp.wso2.com @@ -260,8 +259,8 @@ spec: pattern: ^[/][a-zA-Z0-9~/_.-]*$ type: string definitionFileRef: - description: DefinitionFileRef contains the OpenAPI 3 or SDL file - in gzipped format. definition of the API in a ConfigMap. + description: DefinitionFileRef contains the definition of the API + in a ConfigMap. type: string definitionPath: default: /api-definition @@ -286,13 +285,13 @@ spec: items: description: EnvConfig contains the environment specific configuration properties: - httpRouteRefs: - description: HTTPRouteRefs denotes the environment of the API. + routeRefs: + description: RouteRefs denotes the environment of the API. items: type: string type: array required: - - httpRouteRefs + - routeRefs type: object maxItems: 1 nullable: true @@ -303,13 +302,13 @@ spec: items: description: EnvConfig contains the environment specific configuration properties: - httpRouteRefs: - description: HTTPRouteRefs denotes the environment of the API. + routeRefs: + description: RouteRefs denotes the environment of the API. items: type: string type: array required: - - httpRouteRefs + - routeRefs type: object maxItems: 1 nullable: true diff --git a/helm-charts/templates/data-plane/config-deployer/config-ds-configmap.yaml b/helm-charts/templates/data-plane/config-deployer/config-ds-configmap.yaml index 6a4e56650..bf2f22fb3 100644 --- a/helm-charts/templates/data-plane/config-deployer/config-ds-configmap.yaml +++ b/helm-charts/templates/data-plane/config-deployer/config-ds-configmap.yaml @@ -23,7 +23,7 @@ metadata: data: Config.toml: | [ballerina.log] - level = "DEBUG" + level = "INFO" [ballerina.http] traceLogConsole = false {{if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled}} diff --git a/helm-charts/templates/data-plane/config-deployer/config-ds-deployment.yaml b/helm-charts/templates/data-plane/config-deployer/config-ds-deployment.yaml index 27d71680b..df93172d1 100644 --- a/helm-charts/templates/data-plane/config-deployer/config-ds-deployment.yaml +++ b/helm-charts/templates/data-plane/config-deployer/config-ds-deployment.yaml @@ -114,8 +114,8 @@ spec: - name: config-toml-volume configMap: name: {{ template "apk-helm.resource.prefix" . }}-config-ds-configmap - - name: prometheus-jmx-config-volume - configMap: + - name: prometheus-jmx-config-volume + configMap: name: prometheus-jmx-config-configds - name: config-ds-tls-volume secret: diff --git a/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-deployer-api.yaml b/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-deployer-api.yaml index d1a39ea98..c51f866fd 100644 --- a/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-deployer-api.yaml +++ b/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-deployer-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if and .Values.wso2.apk.dp.enabled .Values.wso2.apk.dp.configdeployer.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: "{{ template "apk-helm.resource.prefix" . }}-wso2-apk-config-deployer-api" namespace: {{ .Release.Namespace }} @@ -30,7 +30,7 @@ spec: organization: "apk-system" definitionFileRef: "{{ template "apk-helm.resource.prefix" . }}-wso2-apk-config-deployer-api-definition" production: - - httpRouteRefs: + - routeRefs: - "{{ template "apk-helm.resource.prefix" . }}-config-deploy-api-route" systemAPI: true {{- end -}} diff --git a/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-generator-api.yaml b/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-generator-api.yaml index 61f4dc246..7a8dc6645 100644 --- a/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-generator-api.yaml +++ b/helm-charts/templates/data-plane/config-deployer/wso2-apk-config-generator-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if and .Values.wso2.apk.dp.enabled .Values.wso2.apk.dp.configdeployer.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: "{{ template "apk-helm.resource.prefix" . }}-wso2-apk-config-generator-api" namespace: {{ .Release.Namespace }} @@ -30,7 +30,7 @@ spec: organization: "apk-system" definitionFileRef: "{{ template "apk-helm.resource.prefix" . }}-wso2-apk-config-generator-api-definition" production: - - httpRouteRefs: + - routeRefs: - "{{ template "apk-helm.resource.prefix" . }}-config-api-route" systemAPI: true {{- end -}} diff --git a/helm-charts/templates/data-plane/gateway-components/common-log-conf.yaml b/helm-charts/templates/data-plane/gateway-components/common-log-conf.yaml index b3dbf39e8..75407bd76 100644 --- a/helm-charts/templates/data-plane/gateway-components/common-log-conf.yaml +++ b/helm-charts/templates/data-plane/gateway-components/common-log-conf.yaml @@ -113,7 +113,7 @@ data: logLevel = "INFO" # LogLevels can be "DEBG", "FATL", "ERRO", "WARN", "INFO", "PANC" [[pkg]] name = "github.com/wso2/apk/common-controller/internal/utils" - logLevel = "DEBG" # LogLevels can be "DEBG", "FATL", "ERRO", "WARN", "INFO", "PANC" + logLevel = "INFO" # LogLevels can be "DEBG", "FATL", "ERRO", "WARN", "INFO", "PANC" [[pkg]] # The logging configuration for Router diff --git a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/jwks-domain-api.yaml b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/jwks-domain-api.yaml index 7e5eecc6a..85767ba67 100644 --- a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/jwks-domain-api.yaml +++ b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/jwks-domain-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if .Values.idp.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: {{ template "apk-helm.resource.prefix" . }}-jwks-endpoint-ds-api namespace: {{ .Release.Namespace }} @@ -30,7 +30,7 @@ spec: organization: "apk-system" isDefaultVersion: true production: - - httpRouteRefs: + - routeRefs: - {{ template "apk-helm.resource.prefix" . }}-jwks-endpoint-ds-httproute systemAPI: true {{- end -}} diff --git a/helm-charts/templates/idp/authenticationEndpoint-domain-api.yaml b/helm-charts/templates/idp/authenticationEndpoint-domain-api.yaml index 9b6b31268..c759c62f6 100644 --- a/helm-charts/templates/idp/authenticationEndpoint-domain-api.yaml +++ b/helm-charts/templates/idp/authenticationEndpoint-domain-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if .Values.idp.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: {{ template "apk-helm.resource.prefix" . }}-authentication-endpoint-ds-api namespace: {{ .Release.Namespace }} @@ -29,7 +29,7 @@ spec: basePath: "/authenticationEndpoint/1.0.0" organization: "apk-system" production: - - httpRouteRefs: + - routeRefs: - {{ template "apk-helm.resource.prefix" . }}-authentication-endpoint-ds-httproute systemAPI: true {{- end -}} diff --git a/helm-charts/templates/idp/commonoauth-domain-api.yaml b/helm-charts/templates/idp/commonoauth-domain-api.yaml index dfcc4602a..9e0d7a04d 100644 --- a/helm-charts/templates/idp/commonoauth-domain-api.yaml +++ b/helm-charts/templates/idp/commonoauth-domain-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if .Values.idp.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: {{ template "apk-helm.resource.prefix" . }}-commonoauth-api namespace: {{ .Release.Namespace }} @@ -30,7 +30,7 @@ spec: isDefaultVersion: true organization: "apk-system" production: - - httpRouteRefs: + - routeRefs: - {{ template "apk-helm.resource.prefix" . }}-commonoauth-ds-httproute systemAPI: true {{- end -}} diff --git a/helm-charts/templates/idp/dcr-domain-api.yaml b/helm-charts/templates/idp/dcr-domain-api.yaml index f4280ac65..d5a22a14b 100644 --- a/helm-charts/templates/idp/dcr-domain-api.yaml +++ b/helm-charts/templates/idp/dcr-domain-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if .Values.idp.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: {{ template "apk-helm.resource.prefix" . }}-dcr-api namespace: {{ .Release.Namespace }} @@ -30,7 +30,7 @@ spec: isDefaultVersion: true organization: "apk-system" production: - - httpRouteRefs: + - routeRefs: - {{ template "apk-helm.resource.prefix" . }}-dcr-ds-httproute systemAPI: true {{- end -}} diff --git a/helm-charts/templates/idp/idp-ds/idp-ds-configmap.yaml b/helm-charts/templates/idp/idp-ds/idp-ds-configmap.yaml index 62c690912..a97122786 100644 --- a/helm-charts/templates/idp/idp-ds/idp-ds-configmap.yaml +++ b/helm-charts/templates/idp/idp-ds/idp-ds-configmap.yaml @@ -23,7 +23,7 @@ metadata: data: Config.toml: | [ballerina.log] - level = "DEBUG" + level = "INFO" [ballerina.http] traceLogConsole = false {{if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled}} diff --git a/helm-charts/templates/idp/oauth-domain-api.yaml b/helm-charts/templates/idp/oauth-domain-api.yaml index 6f13f7976..179ef80c8 100644 --- a/helm-charts/templates/idp/oauth-domain-api.yaml +++ b/helm-charts/templates/idp/oauth-domain-api.yaml @@ -15,7 +15,7 @@ # under the License. {{- if .Values.idp.enabled }} kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: {{ template "apk-helm.resource.prefix" . }}-oauth-api namespace: {{ .Release.Namespace }} @@ -30,7 +30,7 @@ spec: isDefaultVersion: true organization: "apk-system" production: - - httpRouteRefs: + - routeRefs: - {{ template "apk-helm.resource.prefix" . }}-oauth-ds-httproute systemAPI: true {{- end -}} diff --git a/helm-charts/values.yaml b/helm-charts/values.yaml index bbc801126..91d7b1ca0 100644 --- a/helm-charts/values.yaml +++ b/helm-charts/values.yaml @@ -265,7 +265,6 @@ wso2: # requests: # cpu: 0.1 # memory: 64Mi - idp: enabled: true listener: diff --git a/runtime/config-deployer-service/ballerina/APIClient.bal b/runtime/config-deployer-service/ballerina/APIClient.bal index c0009d947..da9bc516d 100644 --- a/runtime/config-deployer-service/ballerina/APIClient.bal +++ b/runtime/config-deployer-service/ballerina/APIClient.bal @@ -449,10 +449,10 @@ public class APIClient { } if productionRoutes.length() > 0 { - k8sAPI.spec.production = [{httpRouteRefs: productionRoutes}]; + k8sAPI.spec.production = [{routeRefs: productionRoutes}]; } if sandboxRoutes.length() > 0 { - k8sAPI.spec.sandbox = [{httpRouteRefs: sandboxRoutes}]; + k8sAPI.spec.sandbox = [{routeRefs: sandboxRoutes}]; } if apkConf.id != () { k8sAPI.metadata["annotations"] = {[API_UUID_ANNOTATION] : apkConf.id}; diff --git a/runtime/config-deployer-service/ballerina/Dependencies.toml b/runtime/config-deployer-service/ballerina/Dependencies.toml index bb1ba5577..45dbaad3f 100644 --- a/runtime/config-deployer-service/ballerina/Dependencies.toml +++ b/runtime/config-deployer-service/ballerina/Dependencies.toml @@ -70,7 +70,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.10.7" +version = "2.10.8" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, diff --git a/runtime/config-deployer-service/ballerina/Dependencies.toml.template b/runtime/config-deployer-service/ballerina/Dependencies.toml.template index 526506973..c07db3430 100644 --- a/runtime/config-deployer-service/ballerina/Dependencies.toml.template +++ b/runtime/config-deployer-service/ballerina/Dependencies.toml.template @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.8.0" +distribution-version = "2201.8.5" [[package]] org = "ballerina" @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.4.0" +version = "1.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -44,7 +44,7 @@ modules = [ [[package]] org = "ballerina" name = "crypto" -version = "2.5.0" +version = "2.6.2" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -70,7 +70,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.10.7" +version = "2.10.8" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -368,7 +368,7 @@ modules = [ [[package]] org = "ballerinax" name = "postgresql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "io"}, @@ -397,7 +397,8 @@ dependencies = [ modules = [ {org = "wso2", packageName = "apk_common_lib", moduleName = "apk_common_lib"}, {org = "wso2", packageName = "apk_common_lib", moduleName = "apk_common_lib.java.io"}, - {org = "wso2", packageName = "apk_common_lib", moduleName = "apk_common_lib.java.lang"} + {org = "wso2", packageName = "apk_common_lib", moduleName = "apk_common_lib.java.lang"}, + {org = "wso2", packageName = "apk_common_lib", moduleName = "apk_common_lib.org.wso2.apk.common"} ] [[package]] diff --git a/runtime/config-deployer-service/ballerina/modules/model/API.bal b/runtime/config-deployer-service/ballerina/modules/model/API.bal index b0510e540..25d7bd40c 100644 --- a/runtime/config-deployer-service/ballerina/modules/model/API.bal +++ b/runtime/config-deployer-service/ballerina/modules/model/API.bal @@ -58,7 +58,7 @@ public type APIStatus record { }; public type EnvConfig record { - string[] httpRouteRefs; + string[] routeRefs; }; public type APIList record { diff --git a/samples/custom-ratelimit-interceptor-service/api-interceptor/sample-api.yaml b/samples/custom-ratelimit-interceptor-service/api-interceptor/sample-api.yaml index d78610b24..39a150ff5 100644 --- a/samples/custom-ratelimit-interceptor-service/api-interceptor/sample-api.yaml +++ b/samples/custom-ratelimit-interceptor-service/api-interceptor/sample-api.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ----------------------------------------------------------------------- -apiVersion: dp.wso2.com/v1alpha1 +apiVersion: dp.wso2.com/v1alpha2 kind: API metadata: name: http-bin-api-basic @@ -24,7 +24,7 @@ spec: basePath: /http-bin-api/1.0.8 definitionFileRef: swagger-definition-http-bin-api production: - - httpRouteRefs: + - routeRefs: - prod-http-route-http-bin-api-basic organization: a3b58ccf-6ecc-4557-b5bb-0a35cce38256 --- diff --git a/samples/custom-ratelimit-interceptor-service/gateway-interceptor/sample-api.yaml b/samples/custom-ratelimit-interceptor-service/gateway-interceptor/sample-api.yaml index d78610b24..39a150ff5 100644 --- a/samples/custom-ratelimit-interceptor-service/gateway-interceptor/sample-api.yaml +++ b/samples/custom-ratelimit-interceptor-service/gateway-interceptor/sample-api.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ----------------------------------------------------------------------- -apiVersion: dp.wso2.com/v1alpha1 +apiVersion: dp.wso2.com/v1alpha2 kind: API metadata: name: http-bin-api-basic @@ -24,7 +24,7 @@ spec: basePath: /http-bin-api/1.0.8 definitionFileRef: swagger-definition-http-bin-api production: - - httpRouteRefs: + - routeRefs: - prod-http-route-http-bin-api-basic organization: a3b58ccf-6ecc-4557-b5bb-0a35cce38256 --- diff --git a/samples/custom-ratelimit-interceptor-service/resource-interceptor/sample-api.yaml b/samples/custom-ratelimit-interceptor-service/resource-interceptor/sample-api.yaml index 85adc1264..87daab988 100644 --- a/samples/custom-ratelimit-interceptor-service/resource-interceptor/sample-api.yaml +++ b/samples/custom-ratelimit-interceptor-service/resource-interceptor/sample-api.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ----------------------------------------------------------------------- -apiVersion: dp.wso2.com/v1alpha1 +apiVersion: dp.wso2.com/v1alpha2 kind: API metadata: name: http-bin-api-basic @@ -24,7 +24,7 @@ spec: basePath: /http-bin-api/1.0.8 definitionFileRef: swagger-definition-http-bin-api production: - - httpRouteRefs: + - routeRefs: - prod-http-route-http-bin-api-basic organization: a3b58ccf-6ecc-4557-b5bb-0a35cce38256 --- diff --git a/samples/request-response-mediation-interceptors/k8s-resources/api.yaml b/samples/request-response-mediation-interceptors/k8s-resources/api.yaml index 472e8305b..14acdb6a1 100644 --- a/samples/request-response-mediation-interceptors/k8s-resources/api.yaml +++ b/samples/request-response-mediation-interceptors/k8s-resources/api.yaml @@ -14,7 +14,7 @@ # limitations under the License. # ----------------------------------------------------------------------- -apiVersion: dp.wso2.com/v1alpha1 +apiVersion: dp.wso2.com/v1alpha2 kind: API metadata: name: interceptor-api @@ -31,7 +31,7 @@ spec: - name: propertyName2 value: "propertyValue2" production: - - httpRouteRefs: + - routeRefs: - interceptor-route --- apiVersion: dp.wso2.com/v1alpha1 diff --git a/test/integration/integration/tests/resources/base/manifests.yaml b/test/integration/integration/tests/resources/base/manifests.yaml index aa8a03411..5d4ef2460 100644 --- a/test/integration/integration/tests/resources/base/manifests.yaml +++ b/test/integration/integration/tests/resources/base/manifests.yaml @@ -426,6 +426,6 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - all-http-methods-for-wildcard-httproute organization: wso2-org1111 diff --git a/test/integration/integration/tests/resources/tests/all-http-methods-for-wildcard.yaml b/test/integration/integration/tests/resources/tests/all-http-methods-for-wildcard.yaml index 75fc0e4c5..fdbe8313d 100644 --- a/test/integration/integration/tests/resources/tests/all-http-methods-for-wildcard.yaml +++ b/test/integration/integration/tests/resources/tests/all-http-methods-for-wildcard.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - all-http-methods-for-wildcard-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-different-listener.yaml b/test/integration/integration/tests/resources/tests/api-different-listener.yaml index 65f80d101..b8c03f24f 100644 --- a/test/integration/integration/tests/resources/tests/api-different-listener.yaml +++ b/test/integration/integration/tests/resources/tests/api-different-listener.yaml @@ -26,7 +26,7 @@ spec: basePath: /test-api-with-different-listener/v1.0.0 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - test-api-with-different-listener-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-policy-with-jwt-generator.yaml b/test/integration/integration/tests/resources/tests/api-policy-with-jwt-generator.yaml index 8adfb9a2f..bbc22ce45 100644 --- a/test/integration/integration/tests/resources/tests/api-policy-with-jwt-generator.yaml +++ b/test/integration/integration/tests/resources/tests/api-policy-with-jwt-generator.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - api-policy-with-jwt-generator-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-with-backend-base-path.yaml b/test/integration/integration/tests/resources/tests/api-with-backend-base-path.yaml index acc89d9ff..9fb505524 100644 --- a/test/integration/integration/tests/resources/tests/api-with-backend-base-path.yaml +++ b/test/integration/integration/tests/resources/tests/api-with-backend-base-path.yaml @@ -38,7 +38,7 @@ spec: isDefaultVersion: true #definitionFileRef: swagger-definition-webhook production: - - httpRouteRefs: + - routeRefs: - test-api-with-backend-base-path-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-with-cors-policy.yaml b/test/integration/integration/tests/resources/tests/api-with-cors-policy.yaml index e2aca8699..6c71a76c2 100644 --- a/test/integration/integration/tests/resources/tests/api-with-cors-policy.yaml +++ b/test/integration/integration/tests/resources/tests/api-with-cors-policy.yaml @@ -26,7 +26,7 @@ spec: basePath: /cors-policy-api/1.0.0 isDefaultVersion: true production: - - httpRouteRefs: + - routeRefs: - cors-policy-httproute organization: wso2-org --- @@ -95,7 +95,7 @@ spec: apiVersion: 1.0.0 basePath: /no-cors-policy-api/1.0.0 production: - - httpRouteRefs: + - routeRefs: - no-cors-policy-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-with-operational-policy.yaml b/test/integration/integration/tests/resources/tests/api-with-operational-policy.yaml index be2fbef20..6d350c3b8 100644 --- a/test/integration/integration/tests/resources/tests/api-with-operational-policy.yaml +++ b/test/integration/integration/tests/resources/tests/api-with-operational-policy.yaml @@ -43,7 +43,7 @@ spec: isDefaultVersion: true #definitionFileRef: swagger-definition-webhook production: - - httpRouteRefs: + - routeRefs: - test-api-with-operatinal-policy-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-with-path-params.yaml b/test/integration/integration/tests/resources/tests/api-with-path-params.yaml index 81304619e..e4e1e053a 100644 --- a/test/integration/integration/tests/resources/tests/api-with-path-params.yaml +++ b/test/integration/integration/tests/resources/tests/api-with-path-params.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - test-api-with-path-params-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-with-request-header-modify.yaml b/test/integration/integration/tests/resources/tests/api-with-request-header-modify.yaml index 7ac6a07da..d045c275e 100644 --- a/test/integration/integration/tests/resources/tests/api-with-request-header-modify.yaml +++ b/test/integration/integration/tests/resources/tests/api-with-request-header-modify.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: swagger-definition-webhook production: - - httpRouteRefs: + - routeRefs: - test-api-with-request-header-modify-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-with-response-header-modify.yaml b/test/integration/integration/tests/resources/tests/api-with-response-header-modify.yaml index 416247d03..6596cd0cd 100644 --- a/test/integration/integration/tests/resources/tests/api-with-response-header-modify.yaml +++ b/test/integration/integration/tests/resources/tests/api-with-response-header-modify.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: swagger-definition-webhook production: - - httpRouteRefs: + - routeRefs: - test-api-with-response-header-modify-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/api-without-backend-base-path.yaml b/test/integration/integration/tests/resources/tests/api-without-backend-base-path.yaml index 54358cdb7..2353d1ee4 100644 --- a/test/integration/integration/tests/resources/tests/api-without-backend-base-path.yaml +++ b/test/integration/integration/tests/resources/tests/api-without-backend-base-path.yaml @@ -26,7 +26,7 @@ spec: basePath: /no-basepath/v1 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - no-backend-base-path-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/custom-auth-header.yaml b/test/integration/integration/tests/resources/tests/custom-auth-header.yaml index 585359006..3f602c0b0 100644 --- a/test/integration/integration/tests/resources/tests/custom-auth-header.yaml +++ b/test/integration/integration/tests/resources/tests/custom-auth-header.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - custom-auth-header-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/custom-policy-ratelimiting.yaml b/test/integration/integration/tests/resources/tests/custom-policy-ratelimiting.yaml index a41adb3e5..751228c0e 100644 --- a/test/integration/integration/tests/resources/tests/custom-policy-ratelimiting.yaml +++ b/test/integration/integration/tests/resources/tests/custom-policy-ratelimiting.yaml @@ -70,7 +70,7 @@ spec: basePath: /http-bin-api/1.0.8 #definitionFileRef: swagger-definition-http-bin-api production: - - httpRouteRefs: + - routeRefs: - prod-http-route-http-bin-api-basic organization: a3b58ccf-6ecc-4557-b5bb-0a35cce38256 --- diff --git a/test/integration/integration/tests/resources/tests/default-api-version-ratelimit-resource-level.yaml b/test/integration/integration/tests/resources/tests/default-api-version-ratelimit-resource-level.yaml index ab977102e..07eb23cdf 100644 --- a/test/integration/integration/tests/resources/tests/default-api-version-ratelimit-resource-level.yaml +++ b/test/integration/integration/tests/resources/tests/default-api-version-ratelimit-resource-level.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - default-api-version-ratelimit-resource-level-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/default-api-version-ratelimit.yaml b/test/integration/integration/tests/resources/tests/default-api-version-ratelimit.yaml index 95aa3a7bd..3a9b9a5db 100644 --- a/test/integration/integration/tests/resources/tests/default-api-version-ratelimit.yaml +++ b/test/integration/integration/tests/resources/tests/default-api-version-ratelimit.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - default-api-version-ratelimit-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/default-api-version.yaml b/test/integration/integration/tests/resources/tests/default-api-version.yaml index 64a6440b5..b63875b0f 100644 --- a/test/integration/integration/tests/resources/tests/default-api-version.yaml +++ b/test/integration/integration/tests/resources/tests/default-api-version.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - default-api-version-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/different-endpoint-with-same-route.yaml b/test/integration/integration/tests/resources/tests/different-endpoint-with-same-route.yaml index 02fc2318d..a7bda1ef9 100644 --- a/test/integration/integration/tests/resources/tests/different-endpoint-with-same-route.yaml +++ b/test/integration/integration/tests/resources/tests/different-endpoint-with-same-route.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - different-endpoint-with-same-route-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/disable-api-level-jwt.yaml b/test/integration/integration/tests/resources/tests/disable-api-level-jwt.yaml index f28abe7f6..646c908f8 100644 --- a/test/integration/integration/tests/resources/tests/disable-api-level-jwt.yaml +++ b/test/integration/integration/tests/resources/tests/disable-api-level-jwt.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-api-level-jwt-httproute organization: wso2-org --- @@ -88,7 +88,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-api-level-jwt1-httproute organization: wso2-org --- @@ -159,7 +159,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-api-level-jwt2-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/disable-api-level-security.yaml b/test/integration/integration/tests/resources/tests/disable-api-level-security.yaml index 3a112479c..fd4558e0b 100644 --- a/test/integration/integration/tests/resources/tests/disable-api-level-security.yaml +++ b/test/integration/integration/tests/resources/tests/disable-api-level-security.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-api-security-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/disable-resource-level-jwt.yaml b/test/integration/integration/tests/resources/tests/disable-resource-level-jwt.yaml index a6c559be9..f7459d308 100644 --- a/test/integration/integration/tests/resources/tests/disable-resource-level-jwt.yaml +++ b/test/integration/integration/tests/resources/tests/disable-resource-level-jwt.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-resource-level-jwt-httproute organization: wso2-org --- @@ -94,7 +94,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-resource-level-jwt1-httproute organization: wso2-org --- @@ -171,7 +171,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-resource-level-jwt2-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/disable-resource-level-security.yaml b/test/integration/integration/tests/resources/tests/disable-resource-level-security.yaml index d9e11c97a..bd66d7241 100644 --- a/test/integration/integration/tests/resources/tests/disable-resource-level-security.yaml +++ b/test/integration/integration/tests/resources/tests/disable-resource-level-security.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - disable-resoruce-security-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/fetch-api-definition.yaml b/test/integration/integration/tests/resources/tests/fetch-api-definition.yaml index 34a519318..97e5a1d79 100644 --- a/test/integration/integration/tests/resources/tests/fetch-api-definition.yaml +++ b/test/integration/integration/tests/resources/tests/fetch-api-definition.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true definitionFileRef: definition-file-swagger production: - - httpRouteRefs: + - routeRefs: - fetch-api-defintion-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/fetch-non-existing-api-definition.yaml b/test/integration/integration/tests/resources/tests/fetch-non-existing-api-definition.yaml index 60c341572..eb25ac95a 100644 --- a/test/integration/integration/tests/resources/tests/fetch-non-existing-api-definition.yaml +++ b/test/integration/integration/tests/resources/tests/fetch-non-existing-api-definition.yaml @@ -25,7 +25,7 @@ spec: apiVersion: v1.0.0 basePath: /fetch-non-existing-api-definition/v1.0.0 production: - - httpRouteRefs: + - routeRefs: - fetch-non-api-definition-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/gql-api.yaml b/test/integration/integration/tests/resources/tests/gql-api.yaml index 474e9bca4..224dfba25 100644 --- a/test/integration/integration/tests/resources/tests/gql-api.yaml +++ b/test/integration/integration/tests/resources/tests/gql-api.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: false definitionFileRef: gql-sdl production: - - httpRouteRefs: + - routeRefs: - gql-api-gqlroute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/interceptors-api-level.yaml b/test/integration/integration/tests/resources/tests/interceptors-api-level.yaml index 5ca0c2725..af5d12643 100644 --- a/test/integration/integration/tests/resources/tests/interceptors-api-level.yaml +++ b/test/integration/integration/tests/resources/tests/interceptors-api-level.yaml @@ -26,7 +26,7 @@ spec: basePath: /interceptor/2.0.0 #definitionFileRef: swagger-definition-webhook production: - - httpRouteRefs: + - routeRefs: - api-interceptor-route organization: wso2-org apiProperties: diff --git a/test/integration/integration/tests/resources/tests/interceptors-resource-level.yaml b/test/integration/integration/tests/resources/tests/interceptors-resource-level.yaml index c4f790e83..06882d25a 100644 --- a/test/integration/integration/tests/resources/tests/interceptors-resource-level.yaml +++ b/test/integration/integration/tests/resources/tests/interceptors-resource-level.yaml @@ -26,7 +26,7 @@ spec: basePath: /interceptor/1.0.0 #definitionFileRef: swagger-definition-webhook production: - - httpRouteRefs: + - routeRefs: - resource-interceptor-route organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/jwt-api-level-security.yaml b/test/integration/integration/tests/resources/tests/jwt-api-level-security.yaml index 7bfb7e9df..d290af4fe 100644 --- a/test/integration/integration/tests/resources/tests/jwt-api-level-security.yaml +++ b/test/integration/integration/tests/resources/tests/jwt-api-level-security.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - api-level-jwt-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/jwt-resource-level-security.yaml b/test/integration/integration/tests/resources/tests/jwt-resource-level-security.yaml index 332351577..5f2cb2da5 100644 --- a/test/integration/integration/tests/resources/tests/jwt-resource-level-security.yaml +++ b/test/integration/integration/tests/resources/tests/jwt-resource-level-security.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - resource-level-jwt-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/multiple_port_listener.yaml b/test/integration/integration/tests/resources/tests/multiple_port_listener.yaml index e1ffa437f..8dd1e4b96 100644 --- a/test/integration/integration/tests/resources/tests/multiple_port_listener.yaml +++ b/test/integration/integration/tests/resources/tests/multiple_port_listener.yaml @@ -26,7 +26,7 @@ spec: basePath: /test-api-with-multiple-port-listener/v1.0.0 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - test-api-with-multiple-port-listener-httproute organization: wso2-org --- @@ -42,7 +42,7 @@ spec: basePath: /test-api-with-multiple-port-listener-1/v1.0.0 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - test-api-with-multiple-port-listener-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/owner-reference.yaml b/test/integration/integration/tests/resources/tests/owner-reference.yaml index 2c75e16ab..dad1bb4ee 100644 --- a/test/integration/integration/tests/resources/tests/owner-reference.yaml +++ b/test/integration/integration/tests/resources/tests/owner-reference.yaml @@ -132,7 +132,7 @@ spec: organization: "default" isDefaultVersion: true production: - - httpRouteRefs: + - routeRefs: - "hr1" - "hr2" apiProperties: [] @@ -151,7 +151,7 @@ spec: organization: "default" isDefaultVersion: true production: - - httpRouteRefs: + - routeRefs: - "hr2" apiProperties: [] status: null diff --git a/test/integration/integration/tests/resources/tests/prod-and-sand-apis.yaml b/test/integration/integration/tests/resources/tests/prod-and-sand-apis.yaml index 16327affa..82c99b640 100644 --- a/test/integration/integration/tests/resources/tests/prod-and-sand-apis.yaml +++ b/test/integration/integration/tests/resources/tests/prod-and-sand-apis.yaml @@ -26,7 +26,7 @@ spec: basePath: /prod-sand-test-api/v1 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - prod-httproute organization: wso2-org --- @@ -128,9 +128,9 @@ spec: basePath: /prod-sand-test-api/v1 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - prod-httproute sandbox: - - httpRouteRefs: + - routeRefs: - sand-httproute organization: wso2-org diff --git a/test/integration/integration/tests/resources/tests/ratelimit-priority.yaml b/test/integration/integration/tests/resources/tests/ratelimit-priority.yaml index b2a59aeb3..819f5eac1 100644 --- a/test/integration/integration/tests/resources/tests/ratelimit-priority.yaml +++ b/test/integration/integration/tests/resources/tests/ratelimit-priority.yaml @@ -27,7 +27,7 @@ spec: isDefaultVersion: true #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - ratelimit-priority-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/resource-scopes.yaml b/test/integration/integration/tests/resources/tests/resource-scopes.yaml index 7cb94975e..d0b5908ab 100644 --- a/test/integration/integration/tests/resources/tests/resource-scopes.yaml +++ b/test/integration/integration/tests/resources/tests/resource-scopes.yaml @@ -26,7 +26,7 @@ spec: basePath: /resource-scopes/v1 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - resource-scopes-httproute organization: wso2-org --- diff --git a/test/integration/integration/tests/resources/tests/trailing-slash.yaml b/test/integration/integration/tests/resources/tests/trailing-slash.yaml index c79dbed85..1b9bcd09d 100644 --- a/test/integration/integration/tests/resources/tests/trailing-slash.yaml +++ b/test/integration/integration/tests/resources/tests/trailing-slash.yaml @@ -26,7 +26,7 @@ spec: basePath: /trailing-slash/v1.0.0 #definitionFileRef: definition-file production: - - httpRouteRefs: + - routeRefs: - trailing-slash-httproute organization: wso2-org --- diff --git a/test/performance/artifacts/api.yaml b/test/performance/artifacts/api.yaml index 23aa76b99..0343f8f85 100644 --- a/test/performance/artifacts/api.yaml +++ b/test/performance/artifacts/api.yaml @@ -1,6 +1,6 @@ --- kind: "API" -apiVersion: "dp.wso2.com/v1alpha1" +apiVersion: "dp.wso2.com/v1alpha2" metadata: name: "default-api-definition-endpoint-test" labels: @@ -18,7 +18,7 @@ spec: organization: "default" definitionFileRef: "default-api-definition-endpoint-test-definition" production: - - httpRouteRefs: + - routeRefs: - "01ee3d7a-36d0-176e-aee2-6b601948eb64" sandbox: null apiProperties: []