Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between cloud and non-cloud Lagoon environment #36

Open
AlexSkrypnyk opened this issue Jan 31, 2025 · 0 comments
Open

Differentiate between cloud and non-cloud Lagoon environment #36

AlexSkrypnyk opened this issue Jan 31, 2025 · 0 comments

Comments

@AlexSkrypnyk
Copy link

AlexSkrypnyk commented Jan 31, 2025

If I run a stack based on Lagoon images, using if (!empty(getenv('LAGOON'))) { incorrectly considers the current runtime as the one that runs in Lagoon cloud.

AFAIK, the purpose of this project is to inject settings for the Lagoon hosted in the cloud rather then "any env where images are used".

I have been successfully using the check

if (!empty(getenv('LAGOON_KUBERNETES'))) {

to then adjust cloud-only settings.

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

No branches or pull requests

1 participant