Просмотр исходного кода

remove option for custom namespaces

Mohammed Nafees 3 лет назад
Родитель
Сommit
3af6823ebd

+ 0 - 21
dashboard/src/main/home/cluster-dashboard/preview-environments/ConnectNewRepo.tsx

@@ -49,9 +49,6 @@ const ConnectNewRepo: React.FC = () => {
   // Disable new comments data
   const [isNewCommentsDisabled, setIsNewCommentsDisabled] = useState(false);
 
-  // Use custom namespaces
-  const [useCustomNamespaces, setUseCustomNamespaces] = useState(false);
-
   // Namespace annotations
   const [namespaceAnnotations, setNamespaceAnnotations] = useState<
     KeyValueType[]
@@ -154,7 +151,6 @@ const ConnectNewRepo: React.FC = () => {
           mode: enableAutomaticDeployments ? "auto" : "manual",
           disable_new_comments: isNewCommentsDisabled,
           git_repo_branches: selectedBranches,
-          custom_namespaces: useCustomNamespaces,
           namespace_annotations: annotations,
         },
         {
@@ -271,23 +267,6 @@ const ConnectNewRepo: React.FC = () => {
         showLoading={isLoadingBranches}
       />
 
-      <Heading>Custom namespaces</Heading>
-      <Helper>
-        By default, Porter chooses a templated namespace for every new GitHub
-        PR. When this is enabled, you can choose a custom namespace of your
-        choice in the GitHub action workflow file that we create for you.
-      </Helper>
-      <CheckboxWrapper>
-        <CheckboxRow
-          label="Use custom namespaces"
-          checked={useCustomNamespaces}
-          toggle={() => setUseCustomNamespaces(!useCustomNamespaces)}
-          wrapperStyles={{
-            disableMargin: true,
-          }}
-        />
-      </CheckboxWrapper>
-
       <Heading>Namespace annotations</Heading>
       <Helper>
         Custom annotations to be injected into the Kubernetes namespace created

+ 0 - 1
dashboard/src/shared/api.tsx

@@ -145,7 +145,6 @@ const createEnvironment = baseApi<
     mode: "auto" | "manual";
     disable_new_comments: boolean;
     git_repo_branches: string[];
-    custom_namespaces: boolean;
     namespace_annotations: Record<string, string>;
   },
   {