Sfoglia il codice sorgente

Moving the ingress deployment to root origin

bodicsek 3 anni fa
parent
commit
38859d7237
3 ha cambiato i file con 4 aggiunte e 19 eliminazioni
  1. 1 16
      deployment/helm-chart/templates/ingress.yaml
  2. 2 2
      package.json
  3. 1 1
      src/utils/environment.ts

+ 1 - 16
deployment/helm-chart/templates/ingress.yaml

@@ -1,16 +1,3 @@
----
-# Middleware
-apiVersion: traefik.containo.us/v1alpha1
-kind: Middleware
-metadata:
-  name: {{ .Values.appName }}-middleware-strip
-spec:
-  stripPrefix:
-    forceSlash: false
-    prefixes:
-      - {{ .Values.pathPrefix }}
----
-# IngressRoute
 apiVersion: traefik.containo.us/v1alpha1
 kind: IngressRoute
 metadata:
@@ -21,9 +8,7 @@ spec:
   tls: {}
   routes:
     - kind: Rule
-      match: Host(`{{ .Values.host }}`) && PathPrefix(`{{ .Values.pathPrefix }}`)
-      middlewares:
-        - name: {{ .Values.appName }}-middleware-strip
+      match: Host(`{{ .Values.host }}`)
       services:
         - kind: Service
           name: {{ .Values.appName }}-service

+ 2 - 2
package.json

@@ -1,11 +1,11 @@
 {
   "name": "occ-fw-ui",
-  "version": "1.0.8",
+  "version": "1.0.11",
   "description": "An Oracle JavaScript Extension Toolkit(JET) web app",
   "config": {
     "host": "customercentral-poc.oracle.com",
     "registry": "iad.ocir.io/cesdev",
-    "devApiUrl": "http://localhost:3000"
+    "devApiUrl": ""
   },
   "scripts": {
     "start": "DEBUG='express:*' ojet serve",

+ 1 - 1
src/utils/environment.ts

@@ -1 +1 @@
-export const apiUrl = API_URL || `${window.location.origin}/occ/api`;
+export const apiUrl = API_URL || `${window.location.origin}/api`;