Skip to content

IsReady should take ObservedGeneration into account #8004

Closed

Description

@whaught

Describe the feature

We've created the KRShaped interface to ensure API resources all conform to the common duck type fields (TypeMeta, ObjectMeta, and a duck Status), and we've used this logic to ensure we are properly updating ObservedGeneration when we reconcile a resource.

Currently IsReady is implemented for many of the API shapes. We should consider codifying that into the interface and ensuring that it always means:

foo.Status.ObservedGeneration == foo.Generation && foo.GetTopLevelCondition().Status == True

When generations do not match, we should consider readiness unknown until reconciliation has occurred.

Activity

  1. added
    kind/feature
    on May 19, 2020
  2. whaught commented on May 19, 2020

    @whaught
    ContributorAuthor

    /assign

  3. whaught commented on Jun 8, 2020

    @whaught
    ContributorAuthor

    /close

  4. knative-prow-robot commented on Jun 8, 2020

    @knative-prow-robot
    Contributor

    @whaught: Closing this issue.

    Details

    In response to this:

    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions