Skip to content

Commit 1661a68

Browse files
authored
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
1 parent 7216417 commit 1661a68

File tree

5 files changed

+65
-4
lines changed

5 files changed

+65
-4
lines changed

.supported-k8s-versions

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.27.0
2+
v1.26.0
3+
v1.25.0
14
v1.24.0
25
v1.23.0
36
v1.22.0

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ ci: tgz fix-sha fix-version
2121

2222
clean:
2323
@rm -f examples.tar.gz
24-
@kubectl krew uninstall examples || :
24+
@kubectl krew uninstall examples || :
25+
26+
install_deprecations:
27+
@kubectl krew install deprecations
28+
29+
check_deprecations:
30+
@tests/api_check.sh

RELEASE_NOTES.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Release Notes
22

3+
## v0.0.5
4+
5+
- v1.27.0
6+
- v1.26.0
7+
- v1.25.0
8+
- v1.24.0
9+
- v1.23.0
10+
- v1.22.0
11+
- v1.21.0
12+
13+
### Changes
14+
15+
#### Removed Examples
16+
17+
- PodSecurityPolicy/Ingress/simple.yaml
18+
- PodSecurityPolicy/pod-security-policy.yaml
19+
- PodSecurityPolicy/restricted.yaml
20+
- PodSecurityPolicy/spec.privileged/privileged.yaml
21+
22+
#### Other Changes
23+
24+
- Updated list of supported Kubernetes versions
25+
326
## v0.0.4
427

528
Supported Kubernetes versions:

RELEASE_PROCESS.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## Is Latest Kubernetes Version Supported?
66

7+
Ensure examples are consistent with latest Kubernetes version.
8+
It can be checked using `bin/test.sh` and `tests/api_check.sh`.
9+
710
## Fetch Tags and Diff
811

912
Get the latest tags:
@@ -19,8 +22,35 @@ Diff the current code tag from the last one, and update the `RELEASE_NOTES.md` f
1922
git diff -w v0.0.2
2023
```
2124

25+
Alternatively you can use commit messages since latest release to get list of changes:
26+
27+
```
28+
git log --pretty=oneline "$(git tag --sort=-creatordate | grep '^v' | head -1)...master"
29+
```
30+
31+
## Get List of Added, Modified and Deleted Files
32+
33+
List of added(A), modified(M) and deleted(D) files can also be used to update the `RELEASE_NOTES.md` file.
34+
35+
Get the list of added files:
36+
37+
```
38+
git diff --stat --name-only --diff-filter=A -w v0.0.4
39+
```
40+
41+
Get the list of modified files:
42+
43+
```
44+
git diff --stat --name-only --diff-filter=M -w v0.0.4
45+
```
46+
47+
Get the list of deleted files:
48+
49+
```
50+
git diff --stat --name-only --diff-filter=D -w v0.0.4
51+
```
2252

23-
## Generate code
53+
## Generate Code
2454

2555
Follow this doc to make a release in GitHub:
2656

bin/test.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,5 @@ setup_colors
102102
| xargs -n1 kubeconform --strict -kubernetes-version $k8s_version \
103103
-ignore-filename-pattern 'Istio/*' \
104104
-schema-location default \
105-
-schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" \
106-
-ignore-filename-pattern 'PodSecurityPolicy/*'
105+
-schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json"
107106
)

0 commit comments

Comments
 (0)