Detect Kubernetes environment from helm variable

How do I detect what Kubernetes environment the helm chart is deployed on, for example gks, eks or aks? I need to use different annotations in my ingress depending on the environment.