Skip to content

Clean up resource naming assumptions #1186

Closed

Description

@mattmoor

I keep seeing places where we're baking assumptions about sub-resource naming into the system in various ways, e.g. revision.Name + "-deployment".

These should be going through shared library methods like controller.GetRevisionDeploymentName.

Activity

  1. added
    area/API
    area/test-and-release
    kind/cleanup
    on Jun 13, 2018
  2. mattmoor commented on Jun 13, 2018

    @mattmoor
    ContributorAuthor

    + "-ingress" is another one I've seen.

  3. mattmoor commented on Jul 8, 2018

    @mattmoor
    ContributorAuthor

    These naming methods have largely moved into subpackages of the controllers e.g. pkg/controller/revision/resources/names

  4. yolocs commented on Jul 31, 2018

    @yolocs
    Contributor

    It seems such assumptions no longer exist except in some tests.

  5. mattmoor commented on Aug 23, 2018

    @mattmoor
    ContributorAuthor

    @yolo3301 some not all.

    IMO we should be able to add some limited mutation to each of these and tests should pass.

  6. mattmoor commented on Oct 31, 2018

    @mattmoor
    ContributorAuthor

    Going to close this out

  7. added a commit that references this issue on Aug 3, 2022
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/APIarea/test-and-releasekind/cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions