agones.dev/agones@v1.53.0/build/includes/macos.mk (about)

     1  # Copyright 2018 Google LLC All Rights Reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  #
    16  # Include for OSX operating System
    17  #
    18  
    19  #  __     __         _       _     _
    20  #  \ \   / /_ _ _ __(_) __ _| |__ | | ___ ___
    21  #   \ \ / / _` | '__| |/ _` | '_ \| |/ _ \ __|
    22  #    \ V / (_| | |  | | (_| | |_) | |  __\__ \
    23  #     \_/ \__,_|_|  |_|\__,_|_.__/|_|\___|___/
    24  #
    25  
    26  # Get the sha for a file
    27  sha = $(shell shasum -a 256 $(1) | head -c 10)
    28  
    29  # Get the sha of all files in a directory using wildcard in $(1)
    30  sha_dir = $(shell shasum -a 256 $(1) | cut -d' ' -f1 | shasum -a 256 | head -c 10 )
    31  
    32  # Minikube executable
    33  MINIKUBE ?= minikube
    34  
    35  #   _____                    _
    36  #  |_   _|_ _ _ __ __ _  ___| |_ ___
    37  #    | |/ _` | '__/ _` |/ _ \ __/ __|
    38  #    | | (_| | | | (_| |  __/ |_\__ \
    39  #    |_|\__,_|_|  \__, |\___|\__|___/
    40  #                 |___/
    41  
    42  # port forward the agones controller.
    43  # useful for pprof and stats viewing, etc
    44  controller-portforward: PORT ?= 8080
    45  controller-portforward:
    46  	kubectl port-forward deployments/agones-controller -n agones-system $(PORT)
    47  
    48  # portforward prometheus web ui
    49  prometheus-portforward:
    50  	kubectl port-forward deployments/prom-prometheus-server 9090 -n metrics
    51  
    52  # portforward prometheus web ui
    53  grafana-portforward:
    54  	kubectl port-forward deployments/grafana 3000 -n metrics