You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-api-machinery/1693-warnings/README.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ checklist items _must_ be updated for the enhancement to be released.
45
45
-[x] Supporting documentation e.g., additional design documents, links to mailing list discussions/SIG meetings, relevant PRs/issues, release notes
46
46
-[x] KEP approvers have approved the KEP status as `implementable`
47
47
-[x] "Implementation History" section is up-to-date for milestone
48
-
-[] User-facing documentation has been created in [kubernetes/website], for publication to [kubernetes.io]
48
+
-[x] User-facing documentation has been created in [kubernetes/website], for publication to [kubernetes.io]
49
49
50
50
<!--
51
51
**Note:** This checklist is iterative and should be reviewed and updated every time this enhancement is being considered for a milestone.
@@ -94,8 +94,8 @@ but surfacing warnings to clients submitting problematic data would help them di
94
94
When a deprecated API is used:
95
95
96
96
1. Add a `Warning` header to the response
97
-
2. Set a gauge metric to 1 with labels for the API group, version, resource, subresource, and target removal version
98
-
3. Record an audit annotation indicating the request used a deprecated API
97
+
2. Set a `apiserver_requested_deprecated_apis`gauge metric to 1 with labels for the API group, version, resource, subresource, and target removal version
98
+
3. Record a `"k8s.io/deprecated": "true"` audit annotation indicating the request used a deprecated API
99
99
100
100
Allow custom resource definitions to indicate specific versions are deprecated
101
101
@@ -122,6 +122,12 @@ In kubectl, configure the per-process handler to:
122
122
123
123
In kube-apiserver and kube-controller-manager, configure the process-wide handler to ignore warnings
@@ -271,18 +277,18 @@ disable the server sending warnings during the beta period.
271
277
* Complete test plan for implemented items
272
278
* API server output of `Warning` headers for deprecated API use is feature-gated and enabled by default
273
279
* The metric for deprecated API use is registered at [stability level `ALPHA`](https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/20190404-kubernetes-control-plane-metrics-stability.md#stability-classes)
274
-
* client-go logs warnings with code `199` and `299` by default
275
-
* kubectl outputs warnings with code `199` and `299` to stderr by default
* Custom resource and admission webhook documentation is extended to describe appropriate use of warnings
286
292
* API server output of `Warning` headers for deprecated API use is unconditionally enabled
287
293
* Server metric for deprecated API use is registered at [stability level `STABLE`](https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/20190404-kubernetes-control-plane-metrics-stability.md#stability-classes)
288
294
@@ -318,3 +324,4 @@ New clients making requests to old API servers handle requests without `Warning`
0 commit comments