Przeglądaj źródła

Update GKE cluster name length to be only 15 characters (#3547)

sdess09 2 lat temu
rodzic
commit
64dc1779d1

+ 2 - 2
dashboard/src/components/GCPProvisionerSettings.tsx

@@ -336,9 +336,9 @@ const GCPProvisionerSettings: React.FC<Props> = (props) => {
         currentCluster?.status === "UPDATING_UNAVAILABLE")
     );
     setClusterName(
-      `${currentProject.name}-cluster-${Math.random()
+      `${currentProject.name.substring(0, 10)}-${Math.random()
         .toString(36)
-        .substring(2, 8)}`
+        .substring(2, 6)}`
     );
   }, []);