Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release of v0.0.4 #61

Merged
merged 5 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# tgz archive for krew plugin
examples.tar.gz
9 changes: 4 additions & 5 deletions .supported-k8s-versions
Original file line number Diff line number Diff line change
@@ -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
99 changes: 76 additions & 23 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'
)
6 changes: 4 additions & 2 deletions kubectl-examples
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -60,7 +60,9 @@ print-example() {
;;
esac

cat ${yaml}
if [ -f ${yaml} ]; then
cat ${yaml}
fi
}

main() {
Expand Down
2 changes: 1 addition & 1 deletion plugins/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down