File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
crates/policy-version-helper/src Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " deprecated-api-versions"
3- version = " 0.1.0+ k8sv1.26.0"
3+ version = " 0.1.0- k8sv1.26.0"
44authors = [
" Flavio Castelli <[email protected] >" ]
55edition = " 2018"
66
Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ added this policy will be updated.
5757The versioning scheme of this policy follows this pattern :
5858
5959` ` `
60- <policy version>+ k8sv<most recent version of kubernes known by the embedded deprecation rules>
60+ <policy version>- k8sv<most recent version of kubernes known by the embedded deprecation rules>
6161` ` `
6262
63- For example, the release `0.1.0+ k8sv1.26.0` of this policy knows about all the deprecation rules
63+ For example, the release `0.1.0- k8sv1.26.0` of this policy knows about all the deprecation rules
6464formulated up to Kubernetes release 1.26.0.
6565
6666The announcement of new deprecation rules for Kubernetes 1.27.0 would trigger
67- then a release of this policy with the following version : ` v0.1.1+ k8sv1.27.0` .
67+ then a release of this policy with the following version : ` v0.1.1- k8sv1.27.0` .
Original file line number Diff line number Diff line change 11---
2- version : " 0.1.0+ k8sv1.26.0"
2+ version : " 0.1.0- k8sv1.26.0"
33name : deprecated-api-versions
44displayName : Deprecated API Versions
55createdAt : ' 2022-11-03T16:39:10+02:00'
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ pub fn main() {
4848 let current_policy_version = find_policy_version ( & cli. manifest_path ) ;
4949
5050 let build_version =
51- semver:: BuildMetadata :: new ( format ! ( "k8sv{}" , most_recent_k8s_version) . as_str ( ) )
51+ semver:: Prerelease :: new ( format ! ( "k8sv{}" , most_recent_k8s_version) . as_str ( ) )
5252 . expect ( "Cannot create new build metadata" ) ;
5353 let expected_policy_version = semver:: Version {
54- build : build_version,
54+ pre : build_version,
5555 ..current_policy_version. clone ( )
5656 } ;
5757
Original file line number Diff line number Diff line change @@ -213,11 +213,11 @@ annotations:
213213 The versioning scheme of this policy follows this pattern:
214214
215215 ```
216- <policy version>+ k8sv<most recent version of kubernes known by the embedded deprecation rules>
216+ <policy version>- k8sv<most recent version of kubernes known by the embedded deprecation rules>
217217 ```
218218
219- For example, the release `0.1.0+ k8sv1.26.0` of this policy knows about all the deprecation rules
219+ For example, the release `0.1.0- k8sv1.26.0` of this policy knows about all the deprecation rules
220220 formulated up to Kubernetes release 1.26.0.
221221
222222 The announcement of new deprecation rules for Kubernetes 1.27.0 would trigger
223- then a release of this policy with the following version: `v0.1.1+ k8sv1.27.0`.
223+ then a release of this policy with the following version: `v0.1.1- k8sv1.27.0`.
You can’t perform that action at this time.
0 commit comments