Skip to content

Commit

Permalink
docs: clarify that is_crd_stablished does not imply discovery done (#951
Browse files Browse the repository at this point in the history
)

docs: clarify that is_crd_stablished does not imply discovery

Signed-off-by: clux <[email protected]>
  • Loading branch information
clux authored Jul 9, 2022
1 parent 04c3578 commit a7ebe6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kube-runtime/src/wait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ pub mod conditions {
}

/// An await condition for `CustomResourceDefinition` that returns `true` once it has been accepted and established
///
/// Note that this condition only guarantees you that you can use `Api<CustomResourceDefinition>` when it is ready.
/// It usually takes extra time for Discovery to notice the custom resource, and there is no condition for this.
#[must_use]
pub fn is_crd_established() -> impl Condition<CustomResourceDefinition> {
|obj: Option<&CustomResourceDefinition>| {
Expand Down

0 comments on commit a7ebe6d

Please sign in to comment.