|
@@ -49,9 +49,6 @@ const ConnectNewRepo: React.FC = () => {
|
|
|
// Disable new comments data
|
|
// Disable new comments data
|
|
|
const [isNewCommentsDisabled, setIsNewCommentsDisabled] = useState(false);
|
|
const [isNewCommentsDisabled, setIsNewCommentsDisabled] = useState(false);
|
|
|
|
|
|
|
|
- // Use custom namespaces
|
|
|
|
|
- const [useCustomNamespaces, setUseCustomNamespaces] = useState(false);
|
|
|
|
|
-
|
|
|
|
|
// Namespace annotations
|
|
// Namespace annotations
|
|
|
const [namespaceAnnotations, setNamespaceAnnotations] = useState<
|
|
const [namespaceAnnotations, setNamespaceAnnotations] = useState<
|
|
|
KeyValueType[]
|
|
KeyValueType[]
|
|
@@ -154,7 +151,6 @@ const ConnectNewRepo: React.FC = () => {
|
|
|
mode: enableAutomaticDeployments ? "auto" : "manual",
|
|
mode: enableAutomaticDeployments ? "auto" : "manual",
|
|
|
disable_new_comments: isNewCommentsDisabled,
|
|
disable_new_comments: isNewCommentsDisabled,
|
|
|
git_repo_branches: selectedBranches,
|
|
git_repo_branches: selectedBranches,
|
|
|
- custom_namespaces: useCustomNamespaces,
|
|
|
|
|
namespace_annotations: annotations,
|
|
namespace_annotations: annotations,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -271,23 +267,6 @@ const ConnectNewRepo: React.FC = () => {
|
|
|
showLoading={isLoadingBranches}
|
|
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>
|
|
<Heading>Namespace annotations</Heading>
|
|
|
<Helper>
|
|
<Helper>
|
|
|
Custom annotations to be injected into the Kubernetes namespace created
|
|
Custom annotations to be injected into the Kubernetes namespace created
|