Bläddra i källkod

enable cloudsql proxy for non capi gke clusters (#3366)

Feroze Mohideen 2 år sedan
förälder
incheckning
64af24de6f

+ 1 - 1
dashboard/src/main/home/app-dashboard/new-app-flow/tabs/JobTabs.tsx

@@ -225,7 +225,7 @@ const JobTabs: React.FC<Props> = ({
   return (
     <>
       <TabSelector
-        options={currentCluster?.cloud_provider === "GCP" ?
+        options={currentCluster?.cloud_provider === "GCP" || (currentCluster?.service === "gke") ?
           [
             { label: 'Main', value: 'main' },
             { label: 'Resources', value: 'resources' },

+ 1 - 1
dashboard/src/main/home/app-dashboard/new-app-flow/tabs/ReleaseTabs.tsx

@@ -178,7 +178,7 @@ const ReleaseTabs: React.FC<Props> = ({
     return (
         <>
             <TabSelector
-                options={currentCluster?.cloud_provider === "GCP" ?
+                options={currentCluster?.cloud_provider === "GCP" || (currentCluster?.service === "gke") ?
                     [
                         { label: 'Main', value: 'main' },
                         { label: 'Resources', value: 'resources' },

+ 1 - 1
dashboard/src/main/home/app-dashboard/new-app-flow/tabs/WebTabs.tsx

@@ -832,7 +832,7 @@ const WebTabs: React.FC<Props> = ({
   return (
     <>
       <TabSelector
-        options={currentCluster?.cloud_provider === "GCP" ?
+        options={currentCluster?.cloud_provider === "GCP" || (currentCluster?.service === "gke") ?
           [
             { label: "Main", value: "main" },
             { label: "Resources", value: "resources" },

+ 1 - 1
dashboard/src/main/home/app-dashboard/new-app-flow/tabs/WorkerTabs.tsx

@@ -305,7 +305,7 @@ const WorkerTabs: React.FC<Props> = ({
   return (
     <>
       <TabSelector
-        options={currentCluster?.cloud_provider === "GCP" ?
+        options={currentCluster?.cloud_provider === "GCP" || (currentCluster?.service === "gke") ?
           [
             { label: 'Main', value: 'main' },
             { label: 'Resources', value: 'resources' },