Skip to content

Commit e5ce5ab

Browse files
Kalaiselvi84markmandelagones-bot
authored
Update release checklist (googleforgames#3334)
* Update release checklist * Create script for helm commands * suggested changes * new line added * modified sh file * one more new line --------- Co-authored-by: Mark Mandel <[email protected]> Co-authored-by: Agones Bot <[email protected]>
1 parent 130beb1 commit e5ce5ab

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed

build/Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -858,3 +858,9 @@ test-gen-crd-client:
858858
echo "$$diff_output"; \
859859
fi
860860

861+
install-release: $(ensure-build-image)
862+
docker run -it --rm \
863+
$(common_mounts) \
864+
$(DOCKER_RUN_ARGS) \
865+
$(build_tag) /go/src/agones.dev/agones/build/install-release.sh
866+

build/install-release.sh

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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."

docs/governance/templates/release_issue.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ and copy it into a release issue. Fill in relevant values, found inside {}
5151
- [ ] Run `make post-build-release` to build the artifacts in GCS(These files will be attached in the release notes) and to push the latest images in the release repository and push chart on agones-chart.
5252
- [ ] Run `make shell` and run `gcloud config configurations activate <your development project>` to switch Agones
5353
development tooling off of the `agones-images` project.
54-
- [ ] Do a `helm repo add agones https://agones.dev/chart/stable` / `helm repo update` and verify that the new
55-
version is available via the command `helm search repo agones --versions --devel`.
56-
- [ ] Do a `helm install --namespace=agones-system agones agones/agones` or `helm install --create-namespace --namespace=agones-system agones agones/agones` if the namespace was deleted and a smoke test to confirm everything is working.
54+
- [ ] Smoke Test: run `make install-release` to view helm releases, uninstall agones-system namesapce, fetch the latest version of Agones, verify the new version, installing agones-system namespace, and list all the pods of agones-system.
5755
- [ ] Attach all assets found in the cloud storage with {version} to the draft GitHub Release.
5856
- [ ] Copy any review changes from the release blog post into the draft GitHub release.
5957
- [ ] Publish the draft GitHub Release.

0 commit comments

Comments
 (0)