agones.dev/agones@v1.53.0/build/install-release.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Copyright 2023 Google LLC All Rights Reserved.
     4  #
     5  # Licensed under the Apache License, Version 2.0 (the "License");
     6  # you may not use this file except in compliance with the License.
     7  # You may obtain a copy of the License at
     8  #
     9  #     http://www.apache.org/licenses/LICENSE-2.0
    10  #
    11  # Unless required by applicable law or agreed to in writing, software
    12  # distributed under the License is distributed on an "AS IS" BASIS,
    13  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  # See the License for the specific language governing permissions and
    15  # limitations under the License.
    16  
    17  echo "Listing Helm releases in agones-system namespace..."
    18  helm ls -n agones-system
    19  
    20  echo "Removing Agones deployment from agones-system namespace..."
    21  helm uninstall -n agones-system agones || echo "Failed to uninstall. Consider deleting the current cluster and setting up a new one. Refer to https://agones.dev/site/docs/installation/creating-cluster/gke/#create-a-standard-mode-cluster-for-agones"
    22  
    23  echo "Listing pods in the agones-system namespace..."
    24  kubectl get pods -n agones-system
    25  
    26  echo "Deleting agones-system namespace..."
    27  kubectl delete ns agones-system
    28  echo "Agones system namespace deleted."
    29  
    30  echo "Helm repo update to fetch the latest version of Agones..."
    31  helm repo update
    32  
    33  echo "Verifying the new version..."
    34  helm search repo agones --versions --devel
    35  
    36  echo "Installing Agones in agones-system namespace..."
    37  helm install --create-namespace --namespace=agones-system agones agones/agones
    38  
    39  echo "Listing all pods in agones-system namespace..."
    40  kubectl get pods --namespace agones-system
    41  
    42  echo "Execute any of the test functions from test/e2e directory to complete the smoke test."