Skip to content

Conformance test for container that fails to start. #2010

Closed

Description

@mattmoor

If a container fails to come up, a Revision should not become ready.

We should define a sample that explicitly has and fails a readiness probe and ensure that when it is deployed it is never reported as Ready: True (or made the Configuration's LatestReadyRevision)

Activity

  1. added
    area/API
    area/test-and-release
    kind/feature
    kind/spec
    on Sep 12, 2018
  2. steuhs commented on Sep 20, 2018

    @steuhs
    Contributor

    @mattmoor do you have any reference to the docs/implementation of readiness probe? Where is "Ready: True" coming from?

  3. steuhs commented on Oct 17, 2018

    @steuhs
    Contributor

    @tcnghia It seems Matt is busy. Would you be able to help with my questions?

  4. tcnghia commented on Oct 18, 2018

    @tcnghia
    Contributor

    @steuhs Ready=True is from the Status of the Revision. For example https://github.com/knative/serving/blob/master/test/conformance/blue_green_test.go#L221.

    The ReadinessProbe is specified in the Service or Configuration by setting the Spec.Container.ReadinessProbe field like this https://github.com/knative/docs/blob/4e9fb40c9d0fb1ec75db895cd2ddee7fc066200a/serving/samples/traffic-splitting/updated_configuration.yaml#L33 . This will be used as health check. Only when this health check passes we should mark Revision.Status.Ready to True. I believe Matt is asking for a test verifying this behavior.

  5. mattmoor commented on Oct 31, 2018

    @mattmoor
    ContributorAuthor

    @steuhs Sorry, Github notifications are too much of a firehose. Any progress here, or should we unassign?

  6. steuhs commented on Nov 1, 2018

    @steuhs
    Contributor

    @mattmoor I am not sure if I would have any bandwidth for this. You can feel free to unassign

  7. markusthoemmes commented on Dec 19, 2018

    @markusthoemmes
    Contributor

    /assign

    This is in the works by #2722

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

Metadata

Metadata

Assignees

Labels

area/APIarea/test-and-releasekind/featurekind/spec

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions