Skip to content

Commit de5d9fb

Browse files
committed
Hide IDE right sidebar by default
1 parent 1d3966c commit de5d9fb

3 files changed

Lines changed: 21 additions & 5 deletions

File tree

hack/deploy-ide-cfn.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ bash $SCRIPT_DIR/build-ide-cfn.sh $outfile
1212

1313
source $SCRIPT_DIR/lib/resolve-source-ip.sh
1414

15-
aws cloudformation deploy --stack-name "$EKS_CLUSTER_NAME-ide" \
15+
STACK_NAME="$EKS_CLUSTER_NAME-cfn"
16+
17+
aws cloudformation deploy --stack-name "$STACK_NAME" \
1618
--capabilities CAPABILITY_NAMED_IAM --disable-rollback --template-file $outfile \
17-
--parameter-overrides InboundCIDR="$INBOUND_CIDRS"
19+
--parameter-overrides InboundCIDR="$INBOUND_CIDRS"
20+
21+
if [ -z "$CI" ]; then
22+
IDE_URL=$(aws cloudformation describe-stacks --stack-name "$STACK_NAME" \
23+
--query 'Stacks[0].Outputs[?OutputKey==`IdeUrl`].OutputValue' --output text)
24+
25+
IDE_PASSWORD=$(aws secretsmanager get-secret-value \
26+
--secret-id "$STACK_NAME-password" --query 'SecretString' --output text | jq -r '.password')
27+
28+
echo ""
29+
echo "IDE URL: $IDE_URL"
30+
echo "IDE Password: $IDE_PASSWORD"
31+
fi

hack/destroy-ide-cfn.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
66

77
source $SCRIPT_DIR/lib/common-env.sh
88

9-
aws cloudformation delete-stack --stack-name "$EKS_CLUSTER_NAME-ide"
10-
aws cloudformation wait stack-delete-complete --stack-name "$EKS_CLUSTER_NAME-ide"
9+
aws cloudformation delete-stack --stack-name "$EKS_CLUSTER_NAME-cfn"
10+
aws cloudformation wait stack-delete-complete --stack-name "$EKS_CLUSTER_NAME-cfn"

lab/scripts/setup-ide.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ cat << EOF > ~/.local/share/code-server/User/settings.json
2626
"security.workspace.trust.enabled": false,
2727
"task.allowAutomaticTasks": "on",
2828
"telemetry.telemetryLevel": "off",
29-
"workbench.startupEditor": "terminal"
29+
"workbench.startupEditor": "terminal",
30+
"workbench.secondarySideBar.defaultVisibility": "hidden",
31+
"chat.disableAIFeatures": true
3032
}
3133
EOF
3234

0 commit comments

Comments
 (0)