Skip to content

Commit bd819c7

Browse files
melihc1melihc1
and
melihc1
authored
Prepare for release of v0.0.4 (#61)
* add gitignore to exclude local tgz archive for krew * Update supported k8s versions list * minor script improvements * bump version * added release notes for v0.0.4 --------- Co-authored-by: melihc1 <[email protected]>
1 parent d208442 commit bd819c7

File tree

6 files changed

+93
-32
lines changed

6 files changed

+93
-32
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# tgz archive for krew plugin
2+
examples.tar.gz

.supported-k8s-versions

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
v1.19.0
2-
v1.18.0
3-
v1.17.0
4-
v1.16.0
5-
v1.15.0
1+
v1.24.0
2+
v1.23.0
3+
v1.22.0
4+
v1.21.0

RELEASE_NOTES.md

Lines changed: 76 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,102 @@
1-
== v0.0.3
2-
1+
# Release Notes
2+
3+
## v0.0.4
4+
5+
Supported Kubernetes versions:
6+
7+
- v1.24.0
8+
- v1.23.0
9+
- v1.22.0
10+
- v1.21.0
11+
12+
### Changes
13+
14+
#### New Examples
15+
16+
- CustomResourceDefinition/custom-resource-definition.yaml
17+
- Istio/DestinationRule/circuit-breaker.yaml
18+
- Istio/DestinationRule/connection-pool-settings.yaml
19+
- Istio/DestinationRule/load-balance.yaml
20+
- Istio/DestinationRule/sticky-sessions.yaml
21+
- Istio/DestinationRule/subsets.yaml
22+
- Istio/DestinationRule/tls.yaml
23+
- Istio/VirtualService/delay-injection.yaml
24+
- Istio/VirtualService/error-injection.yaml
25+
- Istio/VirtualService/header-manipulation.yaml
26+
- Istio/VirtualService/identity.yaml
27+
- Istio/VirtualService/layer-7-routing.yaml
28+
- Istio/VirtualService/redirect-rewrite.yaml
29+
- Istio/VirtualService/retry.yaml
30+
- Istio/VirtualService/timeout.yaml
31+
- Istio/VirtualService/traffic-split.yaml
32+
33+
#### Updated Examples
34+
35+
- CronJob/simple.yaml
36+
- Endpoints/endpoint-slice.yaml
37+
- Ingress/fanout.yaml
38+
- Ingress/ingress-class.yaml
39+
- Ingress/ingress.yaml
40+
- Ingress/nohost.yaml
41+
- Ingress/rewrite.yaml
42+
- Ingress/tls.yaml
43+
- Ingress/virtualhosting.yaml
44+
- Pod/spec.volumes.persistentVolumeClaim/pod-pvc.yaml
45+
- PodDisruptionBudget/pod-disruption-budget-max-unavailable.yaml
46+
- PodDisruptionBudget/pod-disruption-budget-min-available.yaml
47+
- PodSecurityPolicy/Ingress/simple.yaml
48+
- PodSecurityPolicy/restricted.yaml
49+
- Service/Pod.spec.subdomain/subdomain.yaml
50+
51+
#### Removed Examples
52+
53+
- PodPreset/pod-preset.yaml
54+
- Service/spec.topologyKeys/fallback.yaml
55+
56+
#### Other Changes
57+
58+
- Updated list of supported Kubernetes versions
59+
- Replaced kubeval with kubeconform for CI tests
60+
61+
## v0.0.3
62+
63+
Supported Kubernetes versions:
64+
- v1.19.0
65+
- v1.18.0
66+
- v1.17.0
67+
- v1.16.0
68+
- v1.15.0
69+
70+
Changes:
371

472
- Add Kubeval test
5-
673
- Added Deployment/simple-deployment-privileged.yaml
7-
874
- Added Deployment/simple-deployment-with-environment.yaml
9-
1075
- Added Endpoints/endpoint-slice.yaml
11-
1276
- Added restartPolicy to Job/simple.yaml
13-
1477
- Added PersistentVolumeClaim/pvc.yaml
15-
1678
- Added Pod/spec.affinity.nodeAffinity/node-affinity.yaml
17-
1879
- Added Pod/spec.nodeSelector/simple.yaml
19-
2080
- Added Pod/spec.volumes.persistentVolumeClaim/pod-pvc.yaml
21-
2281
- Added PodDisruptionBudget/pod-disruption-budget-max-unavailable.yaml and PodDisruptionBudget/pod-disruption-budget-min-available.yaml
23-
2482
- Added PodPreset/pod-preset.yaml
25-
2683
- Added PriorityClass/default-priority-class.yaml
27-
2884
- Added Secret/simple-secret.yaml
29-
3085
- Added ServiceAccount/service-account-pod.yaml
31-
3286
- Corrected Pod/spec.containers.volumes.projected/projected.yaml
33-
3487
- Corrected Pod/spec.volumes.hostPath.type/file-or-create.yaml
35-
3688
- Corrected PodSecurityPolicy/Ingress/simple.yaml
37-
3889
- Corrected Service/spec.type/load-balancer.yaml
39-
40-
4190
- Code of conduct, license, and contributions guidelines added
4291

43-
== v0.0.2
92+
## v0.0.2
93+
94+
Changes:
4495

4596
- Bugfix for v0.0.1
4697

47-
== v0.0.1
98+
## v0.0.1
99+
100+
Changes:
48101

49102
- Initial base examples added

bin/test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,10 @@ setup_colors
9898

9999
(
100100
cd ${abs_script_dir}/.. || exit 1
101-
comm -3 <(find . | grep yaml$ | sort) <(cat .kubeconform-ignore | sort) | xargs -n1 kubeconform --strict -kubernetes-version $k8s_version -ignore-filename-pattern 'Istio/*' -schema-location default -schema-location "https://github.com/raw/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" -ignore-filename-pattern 'PodSecurityPolicy/*'
101+
comm -3 <(find . | grep yaml$ | sort) <(cat .kubeconform-ignore | sort) \
102+
| xargs -n1 kubeconform --strict -kubernetes-version $k8s_version \
103+
-ignore-filename-pattern 'Istio/*' \
104+
-schema-location default \
105+
-schema-location "https://github.com/raw/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" \
106+
-ignore-filename-pattern 'PodSecurityPolicy/*'
102107
)

kubectl-examples

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ print-example() {
1010
dir=$(dirname $(readlink $BASH_SOURCE))
1111
debug "dir=${dir}"
1212

13-
command fzf --version >/dev/null && FZF_INSTALLED=true
13+
command fzf --version >/dev/null 2>/dev/null && FZF_INSTALLED=true
1414

1515
if [[ $res == "" ]]; then
1616
if [[ $FZF_INSTALLED ]];then
@@ -60,7 +60,9 @@ print-example() {
6060
;;
6161
esac
6262

63-
cat ${yaml}
63+
if [ -f ${yaml} ]; then
64+
cat ${yaml}
65+
fi
6466
}
6567

6668
main() {

plugins/examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: Plugin
44
metadata:
55
name: examples
66
spec:
7-
version: "v0.0.2"
7+
version: "v0.0.3"
88
homepage: https://github.com/ContainerSolutions/kubernetes-examples
99
shortDescription: "Prints sample manifests"
1010
description: |

0 commit comments

Comments
 (0)