You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.go
    path of file: ./repos/agones/examples/autoscaler-webhook
    
    the code of the file until where you have to start completion: // Copyright 2018 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    
func getEnvVariables() {
	if ep := os.Getenv("SCALE_FACTOR"); ep != "" {
		factor, err := strconv.ParseFloat(ep, 64)
		if err != nil {
			logger.WithError(err).Fatal("Could not parse environment SCALE_FACTOR variable")
		} else if factor > 1 {
			scaleFactor = factor
		}
	}

	if ep := os.Getenv("REPLICA_UPSCALE_TRIGGER"); ep != "" {
		replicaUpTrigger, err := strconv.ParseFloat(ep, 64)
		if err != nil {
			logger.WithError(err).Fatal("Could not parse environment REPLICA_UPSCALE_TRIGGER variable")
		} else if replicaUpTrigger > 0.1 {
			replicaUpperThreshold = replicaUpTrigger
		}
	}

	if ep := os.Getenv("REPLICA_DOWNSCALE_TRIGGER"); ep != "" {
		replicaDownTrigger, err := strconv.ParseFloat(ep, 64)
		if err != nil {
			logger.WithError(err).Fatal("Could not parse environment REPLICA_DOWNSCALE_TRIGGER variable")
		} else if replicaDownTrigger < replicaUpperThreshold/scaleFactor {
			replicaLowerThreshold = replicaDownTrigger
		}
	}

	if ep := os.Getenv("MIN_REPLICAS_COUNT"); ep != "" {
		minReplicas, err := strconv.ParseInt(ep, 10, 32)
		if err != nil {
			logger.WithError(err).Fatal("Could not parse environment MIN_REPLICAS_COUNT variable")
		} else if minReplicas >= 0 {
			minReplicasCount = int32(minReplicas)
		}
	}
	// Extra check: In order not to fall into infinite loop
	// we change down scale trigger, so that after we scale up
	// fleet does not immediately scales down and vice versa
	if replicaLowerThreshold >= replicaUpperThreshold/scaleFactor {
		replicaLowerThreshold = replicaUpperThreshold / (scaleFactor + 1)
	}
}