|
@@ -162,14 +162,14 @@ const ClusterSettings: React.FC = () => {
|
|
|
if (successfulRotate) {
|
|
if (successfulRotate) {
|
|
|
keyRotationSection = (
|
|
keyRotationSection = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Credential Rotation</Heading>
|
|
|
|
|
|
|
+ <Heading>Credential rotation</Heading>
|
|
|
<Helper>Successfully rotated credentials!</Helper>
|
|
<Helper>Successfully rotated credentials!</Helper>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
} else if (startRotateCreds) {
|
|
} else if (startRotateCreds) {
|
|
|
keyRotationSection = (
|
|
keyRotationSection = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Credential Rotation</Heading>
|
|
|
|
|
|
|
+ <Heading>Credential rotation</Heading>
|
|
|
<Helper>Input the new credentials for the EKS cluster.</Helper>
|
|
<Helper>Input the new credentials for the EKS cluster.</Helper>
|
|
|
<InputRow
|
|
<InputRow
|
|
|
type="text"
|
|
type="text"
|
|
@@ -197,12 +197,12 @@ const ClusterSettings: React.FC = () => {
|
|
|
} else {
|
|
} else {
|
|
|
keyRotationSection = (
|
|
keyRotationSection = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Credential Rotation</Heading>
|
|
|
|
|
|
|
+ <Heading>Credential rotation</Heading>
|
|
|
<Helper>
|
|
<Helper>
|
|
|
Rotate the credentials that Porter uses to connect to the cluster.
|
|
Rotate the credentials that Porter uses to connect to the cluster.
|
|
|
</Helper>
|
|
</Helper>
|
|
|
<Button color="#616FEEcc" onClick={() => setStartRotateCreds(true)}>
|
|
<Button color="#616FEEcc" onClick={() => setStartRotateCreds(true)}>
|
|
|
- Rotate Credentials
|
|
|
|
|
|
|
+ Rotate credentials
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
@@ -225,7 +225,7 @@ const ClusterSettings: React.FC = () => {
|
|
|
|
|
|
|
|
let renameClusterSection = (
|
|
let renameClusterSection = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Rename Cluster</Heading>
|
|
|
|
|
|
|
+ <Heading>Rename cluster</Heading>
|
|
|
<InputRow
|
|
<InputRow
|
|
|
type="text"
|
|
type="text"
|
|
|
value={newClusterName}
|
|
value={newClusterName}
|
|
@@ -244,7 +244,7 @@ const ClusterSettings: React.FC = () => {
|
|
|
|
|
|
|
|
let enableAgentIntegration = (
|
|
let enableAgentIntegration = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Enable Agent</Heading>
|
|
|
|
|
|
|
+ <Heading>Enable agent</Heading>
|
|
|
<CheckboxRow
|
|
<CheckboxRow
|
|
|
label={"Allow the Porter agent to be installed on the cluster"}
|
|
label={"Allow the Porter agent to be installed on the cluster"}
|
|
|
toggle={() => setEnableAgent(!enableAgent)}
|
|
toggle={() => setEnableAgent(!enableAgent)}
|
|
@@ -268,7 +268,7 @@ const ClusterSettings: React.FC = () => {
|
|
|
} else {
|
|
} else {
|
|
|
enablePreviewEnvironments = (
|
|
enablePreviewEnvironments = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Enable Preview Environments</Heading>
|
|
|
|
|
|
|
+ <Heading>Enable preview environments</Heading>
|
|
|
<CheckboxRow
|
|
<CheckboxRow
|
|
|
label={"Create preview environments on this cluster"}
|
|
label={"Create preview environments on this cluster"}
|
|
|
toggle={() => setEnablePreviewEnvs(!enablePreviewEnvs)}
|
|
toggle={() => setEnablePreviewEnvs(!enablePreviewEnvs)}
|
|
@@ -289,7 +289,7 @@ const ClusterSettings: React.FC = () => {
|
|
|
if (successfulRename) {
|
|
if (successfulRename) {
|
|
|
renameClusterSection = (
|
|
renameClusterSection = (
|
|
|
<div>
|
|
<div>
|
|
|
- <Heading>Credential Rotation</Heading>
|
|
|
|
|
|
|
+ <Heading>Credential rotation</Heading>
|
|
|
<Helper>Successfully renamed the cluster! Reload the page.</Helper>
|
|
<Helper>Successfully renamed the cluster! Reload the page.</Helper>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
@@ -298,6 +298,7 @@ const ClusterSettings: React.FC = () => {
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
<StyledSettingsSection>
|
|
<StyledSettingsSection>
|
|
|
|
|
+ <DarkMatter />
|
|
|
{enableAgentIntegration}
|
|
{enableAgentIntegration}
|
|
|
<DarkMatter />
|
|
<DarkMatter />
|
|
|
{enablePreviewEnvironments}
|
|
{enablePreviewEnvironments}
|
|
@@ -307,13 +308,13 @@ const ClusterSettings: React.FC = () => {
|
|
|
{/* Disabled this field due to https://discord.com/channels/542888846271184896/856554532972134420/1042497537912864788 */}
|
|
{/* Disabled this field due to https://discord.com/channels/542888846271184896/856554532972134420/1042497537912864788 */}
|
|
|
{/* {renameClusterSection}
|
|
{/* {renameClusterSection}
|
|
|
<DarkMatter /> */}
|
|
<DarkMatter /> */}
|
|
|
- <Heading>Delete Cluster</Heading>
|
|
|
|
|
|
|
+ <Heading>Delete cluster</Heading>
|
|
|
{helperText}
|
|
{helperText}
|
|
|
<Button
|
|
<Button
|
|
|
color="#b91133"
|
|
color="#b91133"
|
|
|
onClick={() => setCurrentModal("UpdateClusterModal")}
|
|
onClick={() => setCurrentModal("UpdateClusterModal")}
|
|
|
>
|
|
>
|
|
|
- Delete Cluster
|
|
|
|
|
|
|
+ Delete cluster
|
|
|
</Button>
|
|
</Button>
|
|
|
</StyledSettingsSection>
|
|
</StyledSettingsSection>
|
|
|
</div>
|
|
</div>
|
|
@@ -330,13 +331,16 @@ const DarkMatter = styled.div`
|
|
|
const StyledSettingsSection = styled.div`
|
|
const StyledSettingsSection = styled.div`
|
|
|
margin-top: 35px;
|
|
margin-top: 35px;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- background: #ffffff11;
|
|
|
|
|
- padding: 0 35px;
|
|
|
|
|
|
|
+ padding: 30px;
|
|
|
|
|
+ padding-top: 5px;
|
|
|
padding-bottom: 15px;
|
|
padding-bottom: 15px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ background: #26292e;
|
|
|
|
|
+ border: 1px solid #494b4f;
|
|
|
`;
|
|
`;
|
|
|
|
|
|
|
|
const Button = styled.button`
|
|
const Button = styled.button`
|