From 1661a689e98e4e650f0a781a88f900a5db852f3d Mon Sep 17 00:00:00 2001 From: melihc1 <34622152+melihc1@users.noreply.github.com> Date: Tue, 9 May 2023 21:30:24 +0300 Subject: [PATCH] Updates for 1.27 (#62) * remove psp ignore arg for kubeconform * added make targets to install krew deprecations plugin and check deprecations * updated supported k8s versions list * updated release process with more git diff commands * added release notes for v0.0.5 --- .supported-k8s-versions | 3 +++ Makefile | 8 +++++++- RELEASE_NOTES.md | 23 +++++++++++++++++++++++ RELEASE_PROCESS.md | 32 +++++++++++++++++++++++++++++++- bin/test.sh | 3 +-- 5 files changed, 65 insertions(+), 4 deletions(-) diff --git a/.supported-k8s-versions b/.supported-k8s-versions index 3d6f2c3..1e317b9 100644 --- a/.supported-k8s-versions +++ b/.supported-k8s-versions @@ -1,3 +1,6 @@ +v1.27.0 +v1.26.0 +v1.25.0 v1.24.0 v1.23.0 v1.22.0 diff --git a/Makefile b/Makefile index bda8137..0079acb 100644 --- a/Makefile +++ b/Makefile @@ -21,4 +21,10 @@ ci: tgz fix-sha fix-version clean: @rm -f examples.tar.gz - @kubectl krew uninstall examples || : \ No newline at end of file + @kubectl krew uninstall examples || : + +install_deprecations: + @kubectl krew install deprecations + +check_deprecations: + @tests/api_check.sh diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 8f59c34..76b7169 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,28 @@ # Release Notes +## v0.0.5 + +- v1.27.0 +- v1.26.0 +- v1.25.0 +- v1.24.0 +- v1.23.0 +- v1.22.0 +- v1.21.0 + +### Changes + +#### Removed Examples + +- PodSecurityPolicy/Ingress/simple.yaml +- PodSecurityPolicy/pod-security-policy.yaml +- PodSecurityPolicy/restricted.yaml +- PodSecurityPolicy/spec.privileged/privileged.yaml + +#### Other Changes + +- Updated list of supported Kubernetes versions + ## v0.0.4 Supported Kubernetes versions: diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index d5de634..d7b220e 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -4,6 +4,9 @@ ## Is Latest Kubernetes Version Supported? +Ensure examples are consistent with latest Kubernetes version. +It can be checked using `bin/test.sh` and `tests/api_check.sh`. + ## Fetch Tags and Diff Get the latest tags: @@ -19,8 +22,35 @@ Diff the current code tag from the last one, and update the `RELEASE_NOTES.md` f git diff -w v0.0.2 ``` +Alternatively you can use commit messages since latest release to get list of changes: + +``` +git log --pretty=oneline "$(git tag --sort=-creatordate | grep '^v' | head -1)...master" +``` + +## Get List of Added, Modified and Deleted Files + +List of added(A), modified(M) and deleted(D) files can also be used to update the `RELEASE_NOTES.md` file. + +Get the list of added files: + +``` +git diff --stat --name-only --diff-filter=A -w v0.0.4 +``` + +Get the list of modified files: + +``` +git diff --stat --name-only --diff-filter=M -w v0.0.4 +``` + +Get the list of deleted files: + +``` +git diff --stat --name-only --diff-filter=D -w v0.0.4 +``` -## Generate code +## Generate Code Follow this doc to make a release in GitHub: diff --git a/bin/test.sh b/bin/test.sh index c6718d6..92b1f5c 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -102,6 +102,5 @@ setup_colors | xargs -n1 kubeconform --strict -kubernetes-version $k8s_version \ -ignore-filename-pattern 'Istio/*' \ -schema-location default \ - -schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" \ - -ignore-filename-pattern 'PodSecurityPolicy/*' + -schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" )