Skip to content

Revision condition reason consolidation #880

Closed

Description

@akyyy

/area API

/kind cleanup
/kind dev

Expected Behavior

The revision condition reasons are a set of constants, which should be defined in
https://github.com/elafros/elafros/blob/master/pkg/apis/ela/v1alpha1/revision_types.go

Actual Behavior

In https://github.com/elafros/elafros/blob/master/pkg/controller/revision/revision.go and other files, we are using strings like:
Reason: "ServiceReady"
Reason: "ProgressDeadlineExceeded"
Reason: "Inactive"
Reason: "ContainerMissing"
Reason: "Deploying"
Reason: "Activating"

Activity

  1. added
    area/API
    kind/cleanup
    kind/feature
    on May 10, 2018
  2. akyyy commented on Jun 19, 2018

    @akyyy
    ContributorAuthor

    Another reason has been added "Deactivating"

  3. mattmoor commented on Jul 8, 2018

    @mattmoor
    Contributor

    Reason is not an enum (this is spelled out in docs/spec/errors.md)

    This is intended to be a terse message for the end-user, but not something off of which clients should take programatic action.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIkind/cleanupkind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions