Skip to content

Commit

Permalink
Cut v2.0.0 release (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomperoo committed Dec 2, 2022
1 parent 47e1b9e commit f8c380b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v2.0.0] - 2022-12-02
### Changed
- **BREAKING CHANGE** Upgraded from Kubernetes `autoscaling/v2beta2` to the graduated `autoscaling/v2`. This drops
support for Kubernetes versions `v1.22` and below.
Expand All @@ -31,6 +33,7 @@ call time as a parameter.
- Allows insights into how the HPA makes decisions.
- Supports scaling to and from 0.

[Unreleased]: https://github.com/jthomperoo/k8shorizmetrics/compare/v1.1.0...HEAD
[Unreleased]: https://github.com/jthomperoo/k8shorizmetrics/compare/v2.0.0...HEAD
[v2.0.0]: https://github.com/jthomperoo/k8shorizmetrics/compare/v1.1.0...v2.0.0
[v1.1.0]: https://github.com/jthomperoo/k8shorizmetrics/compare/v1.0.0...v1.1.0
[v1.0.0]: https://github.com/jthomperoo/k8shorizmetrics/releases/tag/v1.0.0
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ func main() {
})

// Metric spec to gather, CPU resource utilization
spec := v2beta2.MetricSpec{
Type: v2beta2.ResourceMetricSourceType,
Resource: &v2beta2.ResourceMetricSource{
spec := v2.MetricSpec{
Type: v2.ResourceMetricSourceType,
Resource: &v2.ResourceMetricSource{
Name: corev1.ResourceCPU,
Target: v2beta2.MetricTarget{
Type: v2beta2.UtilizationMetricType,
Target: v2.MetricTarget{
Type: v2.UtilizationMetricType,
},
},
}
Expand Down

0 comments on commit f8c380b

Please sign in to comment.