Skip to content

Commit

Permalink
Updates for 1.27 (#62)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
melihc1 authored May 9, 2023
1 parent 7216417 commit 1661a68
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .supported-k8s-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.27.0
v1.26.0
v1.25.0
v1.24.0
v1.23.0
v1.22.0
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ ci: tgz fix-sha fix-version

clean:
@rm -f examples.tar.gz
@kubectl krew uninstall examples || :
@kubectl krew uninstall examples || :

install_deprecations:
@kubectl krew install deprecations

check_deprecations:
@tests/api_check.sh
23 changes: 23 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
32 changes: 31 additions & 1 deletion RELEASE_PROCESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:

Expand Down
3 changes: 1 addition & 2 deletions bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit 1661a68

Please sign in to comment.