Skip to content

Make key optional in CommitStatus resources #1913

Description

@gnunn1

In the current design the user must provide a key field in the various CommitStatus resources and this is used to match keys listed in activeCommitStatuses and proposedCommitStatuses in the PromotionStrategy resource.

I feel like this key field is mostly redundant as I am always setting the key to be the same as the name. If I change the name I need to change the key so within the CommitStatus it's not particularly DRY.

As a result I would like to see the key field made optional and if not specified then the name of the CommitStatus is used as the key. This would need to be implemented in a way that doesn't trigger a diff when using Argo CD to apply CommitStatus resources, i.e. the controller should not set the .spec.key field to the name field automatically however either using it implicitly or setting a .status.key field would be fine.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions