:sparkles: replace action string with enum by jpatel-pivotal · Pull Request #1 · dsharp-pivotal/controller-runtime · GitHub
Skip to content

✨ replace action string with enum#1

Open
jpatel-pivotal wants to merge 1 commit into
dsharp-pivotal:testingclientfrom
jemishp:testingclient
Open

✨ replace action string with enum#1
jpatel-pivotal wants to merge 1 commit into
dsharp-pivotal:testingclientfrom
jemishp:testingclient

Conversation

@jpatel-pivotal

Copy link
Copy Markdown

This pr refactors resourceActionKey.action from a string to an enum.

  • isValid() only allows valid string values for action
  • returns injected errors only if the action is valid

@dsharp-pivotal dsharp-pivotal force-pushed the testingclient branch 2 times, most recently from de4c858 to c701497 Compare March 5, 2021 18:51
@dsharp-pivotal dsharp-pivotal force-pushed the testingclient branch 2 times, most recently from 8d38f00 to b5359d9 Compare April 3, 2021 00:56
- only allows valid string values for action
- returns injected errors only if action is valid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants