Skip to content

Revision condition reason consolidation #880

@akyyy

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIAPI objects and controllerskind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.kind/featureWell-understood/specified features, ready for coding.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions