From bd819c768397f5b169d6fa9dfc75e59eaf0196a4 Mon Sep 17 00:00:00 2001 From: melihc1 <34622152+melihc1@users.noreply.github.com> Date: Tue, 9 May 2023 20:12:34 +0300 Subject: [PATCH] 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 --- .gitignore | 2 + .supported-k8s-versions | 9 ++-- RELEASE_NOTES.md | 99 +++++++++++++++++++++++++++++++---------- bin/test.sh | 7 ++- kubectl-examples | 6 ++- plugins/examples.yaml | 2 +- 6 files changed, 93 insertions(+), 32 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9f4df2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# tgz archive for krew plugin +examples.tar.gz diff --git a/.supported-k8s-versions b/.supported-k8s-versions index 4160daf..3d6f2c3 100644 --- a/.supported-k8s-versions +++ b/.supported-k8s-versions @@ -1,5 +1,4 @@ -v1.19.0 -v1.18.0 -v1.17.0 -v1.16.0 -v1.15.0 +v1.24.0 +v1.23.0 +v1.22.0 +v1.21.0 diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 0c44da4..8f59c34 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,49 +1,102 @@ -== v0.0.3 - +# Release Notes + +## v0.0.4 + +Supported Kubernetes versions: + +- v1.24.0 +- v1.23.0 +- v1.22.0 +- v1.21.0 + +### Changes + +#### New Examples + +- CustomResourceDefinition/custom-resource-definition.yaml +- Istio/DestinationRule/circuit-breaker.yaml +- Istio/DestinationRule/connection-pool-settings.yaml +- Istio/DestinationRule/load-balance.yaml +- Istio/DestinationRule/sticky-sessions.yaml +- Istio/DestinationRule/subsets.yaml +- Istio/DestinationRule/tls.yaml +- Istio/VirtualService/delay-injection.yaml +- Istio/VirtualService/error-injection.yaml +- Istio/VirtualService/header-manipulation.yaml +- Istio/VirtualService/identity.yaml +- Istio/VirtualService/layer-7-routing.yaml +- Istio/VirtualService/redirect-rewrite.yaml +- Istio/VirtualService/retry.yaml +- Istio/VirtualService/timeout.yaml +- Istio/VirtualService/traffic-split.yaml + +#### Updated Examples + +- CronJob/simple.yaml +- Endpoints/endpoint-slice.yaml +- Ingress/fanout.yaml +- Ingress/ingress-class.yaml +- Ingress/ingress.yaml +- Ingress/nohost.yaml +- Ingress/rewrite.yaml +- Ingress/tls.yaml +- Ingress/virtualhosting.yaml +- Pod/spec.volumes.persistentVolumeClaim/pod-pvc.yaml +- PodDisruptionBudget/pod-disruption-budget-max-unavailable.yaml +- PodDisruptionBudget/pod-disruption-budget-min-available.yaml +- PodSecurityPolicy/Ingress/simple.yaml +- PodSecurityPolicy/restricted.yaml +- Service/Pod.spec.subdomain/subdomain.yaml + +#### Removed Examples + +- PodPreset/pod-preset.yaml +- Service/spec.topologyKeys/fallback.yaml + +#### Other Changes + +- Updated list of supported Kubernetes versions +- Replaced kubeval with kubeconform for CI tests + +## v0.0.3 + +Supported Kubernetes versions: +- v1.19.0 +- v1.18.0 +- v1.17.0 +- v1.16.0 +- v1.15.0 + +Changes: - Add Kubeval test - - Added Deployment/simple-deployment-privileged.yaml - - Added Deployment/simple-deployment-with-environment.yaml - - Added Endpoints/endpoint-slice.yaml - - Added restartPolicy to Job/simple.yaml - - Added PersistentVolumeClaim/pvc.yaml - - Added Pod/spec.affinity.nodeAffinity/node-affinity.yaml - - Added Pod/spec.nodeSelector/simple.yaml - - Added Pod/spec.volumes.persistentVolumeClaim/pod-pvc.yaml - - Added PodDisruptionBudget/pod-disruption-budget-max-unavailable.yaml and PodDisruptionBudget/pod-disruption-budget-min-available.yaml - - Added PodPreset/pod-preset.yaml - - Added PriorityClass/default-priority-class.yaml - - Added Secret/simple-secret.yaml - - Added ServiceAccount/service-account-pod.yaml - - Corrected Pod/spec.containers.volumes.projected/projected.yaml - - Corrected Pod/spec.volumes.hostPath.type/file-or-create.yaml - - Corrected PodSecurityPolicy/Ingress/simple.yaml - - Corrected Service/spec.type/load-balancer.yaml - - - Code of conduct, license, and contributions guidelines added -== v0.0.2 +## v0.0.2 + +Changes: - Bugfix for v0.0.1 -== v0.0.1 +## v0.0.1 + +Changes: - Initial base examples added diff --git a/bin/test.sh b/bin/test.sh index 79ff51e..c6718d6 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -98,5 +98,10 @@ setup_colors ( cd ${abs_script_dir}/.. || exit 1 - 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://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" -ignore-filename-pattern 'PodSecurityPolicy/*' + 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://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master/customresourcedefinition.json" \ + -ignore-filename-pattern 'PodSecurityPolicy/*' ) diff --git a/kubectl-examples b/kubectl-examples index c995544..9e99785 100755 --- a/kubectl-examples +++ b/kubectl-examples @@ -10,7 +10,7 @@ print-example() { dir=$(dirname $(readlink $BASH_SOURCE)) debug "dir=${dir}" - command fzf --version >/dev/null && FZF_INSTALLED=true + command fzf --version >/dev/null 2>/dev/null && FZF_INSTALLED=true if [[ $res == "" ]]; then if [[ $FZF_INSTALLED ]];then @@ -60,7 +60,9 @@ print-example() { ;; esac - cat ${yaml} + if [ -f ${yaml} ]; then + cat ${yaml} + fi } main() { diff --git a/plugins/examples.yaml b/plugins/examples.yaml index b2b1375..aa0cf79 100644 --- a/plugins/examples.yaml +++ b/plugins/examples.yaml @@ -4,7 +4,7 @@ kind: Plugin metadata: name: examples spec: - version: "v0.0.2" + version: "v0.0.3" homepage: https://github.com/ContainerSolutions/kubernetes-examples shortDescription: "Prints sample manifests" description: |