Skip to content

Commit

Permalink
add check for not k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
meltsufin committed Jan 22, 2020
1 parent 11da859 commit a986c23
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -187,7 +187,8 @@ private static String getValue(Label label) {
private static Resource getAutoDetectedResourceType() {
if (System.getenv("K_SERVICE") != null &&
System.getenv("K_REVISION") != null &&
System.getenv("K_CONFIGURATION") != null) {
System.getenv("K_CONFIGURATION") != null &&
System.getenv("KUBERNETES_SERVICE_HOST") == null) {
return Resource.CloudRun;
}
if (System.getenv("GAE_INSTANCE") != null) {
Expand Down

0 comments on commit a986c23

Please sign in to comment.