Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ Store abstraction for persisting Config #2057

Closed
wants to merge 1 commit into from

Conversation

Adirio
Copy link
Contributor

@Adirio Adirio commented Mar 3, 2021

This PR exports the project configuration scaffolding machinery through a Store interface that has been implemented for the current YAML representation.

PreRunE and PostRunE are used to handle configuration file loading and saving.

Also, all the filesystem abstractions that were being created have been centralized to a single one provided by the CLI. This includes filesystem abstractions that were used for:

  • Scaffolding project configuration file: previously could be several per command call.
  • Scaffolding the command-related files: previously were several per command.

NOTE: the addition of the Store interface and implementation is not a breaking change. However, the changes needed to inject the filesystem abstraction from the CLI to the different scaffolders does require to change certain interfaces.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 3, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Adirio

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 3, 2021
@Adirio Adirio force-pushed the config-store branch 2 times, most recently from 3ec8ac2 to 450aa15 Compare March 11, 2021 08:39
- Use PreRunE and PostRunE functions to handle configuration file loading and saving
- Use a filesystem provided by the cli to persist the project config and to scaffold files

Signed-off-by: Adrian Orive <[email protected]>
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 13, 2021
@k8s-ci-robot
Copy link
Contributor

@Adirio: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Adirio
Copy link
Contributor Author

Adirio commented Mar 15, 2021

Closed in favor of #2083

@Adirio Adirio closed this Mar 15, 2021
@Adirio Adirio deleted the config-store branch March 15, 2021 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Export config file schafolding machinery
2 participants