Skip to content

Differentiate between cloud and non-cloud Lagoon environment #36

@AlexSkrypnyk

Description

@AlexSkrypnyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions