Skip to content

make the ephemeral startup configurable for users#37

Draft
HarshCasper wants to merge 2 commits into
mainfrom
config-option
Draft

make the ephemeral startup configurable for users#37
HarshCasper wants to merge 2 commits into
mainfrom
config-option

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

No description provided.

@HarshCasper HarshCasper requested a review from lukqw August 9, 2024 15:30
@github-actions

github-actions Bot commented Aug 9, 2024

Copy link
Copy Markdown

The ephemeral instance for the application preview has been shut down

@HarshCasper HarshCasper force-pushed the config-option branch 8 times, most recently from 5f60e10 to d20755a Compare August 9, 2024 16:13

@lukqw lukqw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome that we're building this!
Added a first set of comments.

required: false
default: '30'

ephemeral-configuration:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make more sense to keep this as configuration, similar to what we have in place over in the normal startup action? link: https://github.com/localstack/setup-localstack/blob/main/startup/action.yml

If not, then you'd also have to reflect this argument in the README.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +76 to +89
configuration="${{ inputs.ephemeral-configuration }}"
echo "Creating preview environment with configuration: $configuration"
# Convert configuration to JSON format
IFS=',' read -r -a configArray <<< "$configuration"
envVarsJson=$(jq -n '{}')
for config in "${configArray[@]}"; do
IFS='=' read -r -a kv <<< "$config"
key=${kv[0]// /}
value=${kv[1]// /}
envVarsJson=$(echo $envVarsJson | jq --arg key "$key" --arg value "$value" '. + {($key): $value}')
done
echo "Configuration JSON: $envVarsJson"

envVarsJson=$(echo $envVarsJson | jq --arg autoLoadPod "$autoLoadPod" --arg extensionAutoInstall "$extensionAutoInstall" '. + {AUTO_LOAD_POD: $autoLoadPod, EXTENSION_AUTO_INSTALL: $extensionAutoInstall}')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is oddly convoluted, is there a way we could improve readability and maintenance?

@lukqw

lukqw commented Jun 3, 2025

Copy link
Copy Markdown
Member

@HarshCasper any chance we could get this one merged?

@steffyP

steffyP commented Jan 21, 2026

Copy link
Copy Markdown
Member

Hi @HarshCasper,
is this still a relevant feature, e.g. something we should push over the line?

@steffyP steffyP marked this pull request as draft February 5, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants