Skip to content

Conversation

estroz
Copy link
Member

@estroz estroz commented Oct 19, 2018

Description of the change: scaffold-specific file names were moved from pkg/scaffold/constants.go to scaffold files that use them. Both file and directory constants were exported, and are now used in commands/operator-sdk/cmd instead of hard-coded strings.

Motivation for the change: we want to prevent data drift on changes to the SDK's structure, and solidify naming conventions so files and directories can be used properly as arguments. Moving file names to their respective scaffold files agrees with the idea that utility packages and files containing disparate data are best avoided.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 19, 2018
@estroz estroz changed the title Constants refactor [WIP] Constants refactor Oct 19, 2018
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 19, 2018
@estroz estroz force-pushed the constants-refactor branch from 6d1dea6 to e0dfeda Compare October 19, 2018 23:38
@estroz estroz mentioned this pull request Oct 19, 2018
@estroz estroz force-pushed the constants-refactor branch from e0dfeda to 8649226 Compare October 22, 2018 17:38
@estroz estroz force-pushed the constants-refactor branch from 8649226 to 73b64c2 Compare October 22, 2018 19:22
@estroz estroz changed the title [WIP] Constants refactor Constants refactor Oct 22, 2018
…onstants instead of hard-coded strings for dirs and filenames
@estroz estroz force-pushed the constants-refactor branch from 73b64c2 to 09d91f8 Compare October 22, 2018 20:58
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 22, 2018
@estroz
Copy link
Member Author

estroz commented Oct 25, 2018

Closing, as #649 is being merged directly.

@estroz estroz closed this Oct 25, 2018
@estroz estroz deleted the constants-refactor branch October 25, 2018 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs discussion size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants