chore: Fix quoting in deploy_preview.sh#34592
Conversation
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Script as deploy_preview.sh
participant AWS
participant Kubernetes
participant Helm
User->>Script: Run deploy_preview.sh
Script->>AWS: Assume Role (sts assume-role)
AWS-->>Script: Return Temporary Credentials
Script->>Script: Set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN
Script->>Script: Set namespace, chartname, secret, dbname, domainname using edition and PR number
Script->>Kubernetes: Configure Namespace
Script->>Kubernetes: Create Secrets
Script->>Kubernetes: Manage EFS (Elastic File System)
Script->>Helm: Deploy Helm Charts
Helm-->>Script: Confirm Deployment
Script-->>User: Deployment Complete
Poem
Tip Early access features
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
deploy_preview.sh
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9715749877. |
|
Deploy-Preview-URL: https://ce-34592.dp.appsmith.com |
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9720295812. |
|
Deploy-Preview-URL: https://ce-34592.dp.appsmith.com |
There was a problem hiding this comment.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- scripts/deploy_preview.sh (3 hunks)
Additional context used
Shellcheck
scripts/deploy_preview.sh
[warning] 32-32: Declare and assign separately to avoid masking return values.
(SC2155)
[warning] 33-33: Declare and assign separately to avoid masking return values.
(SC2155)
[warning] 34-34: Declare and assign separately to avoid masking return values.
(SC2155)
Additional comments not posted (10)
scripts/deploy_preview.sh (10)
4-4: LGTM!The introduction of the
editionvariable is a good addition for flexibility.
10-11: LGTM!AWS credentials are being configured correctly.
36-40: LGTM!Using the
editionvariable to set environment variables is a good approach for consistency.
46-46: LGTM!Updating the kubeconfig for AWS EKS is done correctly.
57-62: LGTM!The commands for recreating resources are correctly structured.
65-65: LGTM!Placeholder comments for future improvements are noted.
76-76: LGTM!Creating the namespace using the
NAMESPACEvariable is done correctly.
78-81: LGTM!Creating the Docker registry secret is done correctly.
84-88: LGTM!Adding the Helm repository and installing the plugin is done correctly.
91-108: LGTM!Deploying the Appsmith Helm chart with the specified configurations is done correctly.
deploy_preview.shdeploy_preview.sh
deploy_preview.shdeploy_preview.sh
**/test sanity** <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/9716093497> > Commit: f2381c9 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9716093497&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated deployment script to improve environment variable handling and AWS configuration for preview environments. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
/test sanity
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9716093497
Commit: f2381c9
Cypress dashboard.
Tags:
@tag.SanitySummary by CodeRabbit