forked from spinnaker/halyard
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add deprecation documentation (spinnaker#1744)
* feat(docs): improve discoverability of contributor docs * feat(docs): add field deprecation docs * feat(docs): document how to add minimum Spinnaker version to new fields Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7bbec7d
commit 238a936
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Deprecating Fields | ||
|
||
When a field is no longer read by any Spinnaker microservice, the field should | ||
be deprecated in Halyard so users know it is safe to remove from their | ||
halconfig. | ||
|
||
To deprecate a field, annotate it with `ValidForSpinnakerVersion`, indicating | ||
the first Spinnaker version in which the field is no longer necessary as the | ||
`upperBound`. Optionally, supply a message indicating why the field is no | ||
longer required as the `tooHighMessage`. | ||
|
||
See the `artifacts` and `artifactsRewrite` fields in the `Features` class as | ||
examples of deprecated fields. |