Skip to content

Clarify the correct ways to differentiate different behavioral modes of API resources #859

Open
@pmorie

Description

@pmorie

We've had a number of questions during API design for service-catalog about using magic values. I believe the prevailing consensus amongst the owners of the project is that magic values in APIs are undesirable, but the API convention document does not give any treatment to this topic. Varations of how this has come up:

  • Magic values for the names of objects as used in reference; ie, when a field that holds a reference to a k8s resource takes on a special value, the behavior of the enclosing resource changes
  • Magic values for non-reference fields

I think it would be great to document this and get clarity for newcomers to the project, but would like to see some agreement in this issue before I file a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/developer-guideIssues or PRs related to the developer guidelifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.sig/architectureCategorizes an issue or PR as relevant to SIG Architecture.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions