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/3352-aggregated-discovery/README.md
+55-3Lines changed: 55 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -616,6 +616,7 @@ main focus will be on kubectl and golang clients.
616
616
#### Beta
617
617
618
618
- kubectl uses the aggregated discovery feature by default
619
+
- Metrics are added
619
620
620
621
#### GA
621
622
@@ -678,7 +679,7 @@ channel if you need any help or guidance. -->
678
679
679
680
###### Does enabling the feature change any default behavior?
680
681
681
-
No
682
+
Clients using client-go will use the aggregated discovery endpoint rather than the unaggregated discovery endpoint. This is handled automatically in client-go and clients should see less requests to the api server when fetching discovery information.
682
683
683
684
###### Can the feature be disabled once it has been enabled (i.e. can we roll back the enablement)?
684
685
@@ -731,6 +732,12 @@ feature flags will be enabled on some API servers and not others
731
732
during the rollout. Similarly, consider large clusters and how
732
733
enablement/disablement will rollout across nodes. -->
733
734
735
+
During a rollout, some apiservers may support aggregated discovery and
736
+
some may not. It is recommended that clients request for both the
737
+
aggregated discovery document with a fallback to the unaggregated
738
+
discovery format. This can be achieved by setting the Accept header to
739
+
have a fallback to the default GVK of the `/apis` and `/api` endpoint.
740
+
734
741
###### What specific metrics should inform a rollback?
735
742
736
743
<!-- What signals should users be paying attention to when the feature
@@ -748,11 +755,20 @@ term, we may want to require automated upgrade/rollback tests, but we
748
755
are missing a bunch of machinery and tooling and can't do that now.
749
756
-->
750
757
758
+
n/a.
759
+
751
760
###### Is the rollout accompanied by any deprecations and/or removals of features, APIs, fields of API types, flags, etc.?
752
761
753
762
<!-- Even if applying deprecation policies, they may still surprise
754
763
some users. -->
755
764
765
+
By enabling aggregated discovery as the default, the new API is
766
+
slightly different from the unaggregated version. The
767
+
StorageVersionHash field is removed from resources in the aggregated
768
+
discovery API. The storage version migrator will have an additional
769
+
flag when initializing the discovery client to continue using the
770
+
unaggregated API.
771
+
756
772
### Monitoring Requirements
757
773
758
774
<!-- This section must be completed when targeting beta to a release.
@@ -766,6 +782,12 @@ the previous answers based on experience in the field. -->
766
782
Kubernetes API (e.g., checking if there are objects with field X set)
767
783
may be a last resort. Avoid logs or events for this purpose. -->
768
784
785
+
Operators can check whether an aggregated discovery request can be
0 commit comments