فهرست منبع

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

sdess09 2 سال پیش
والد
کامیت
64dc1779d1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      dashboard/src/components/GCPProvisionerSettings.tsx

+ 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)}`
     );
   }, []);