Skip to content

pkg/generator: add code generation for config/config.yaml#71

Merged
fanminshi merged 3 commits intooperator-framework:masterfrom
fanminshi:gen_config
Feb 28, 2018
Merged

pkg/generator: add code generation for config/config.yaml#71
fanminshi merged 3 commits intooperator-framework:masterfrom
fanminshi:gen_config

Conversation

@fanminshi
Copy link
Copy Markdown
Contributor

@fanminshi fanminshi commented Feb 28, 2018

this pr allows operator-sdk new to save its input and flags such as api-version, kind, and projectName into config/config.yaml file.

the config/config.yaml allows other commands such as operator-sdk build retrieve this project's metadata and perform actions base on them.

@fanminshi
Copy link
Copy Markdown
Contributor Author

Manual test:

$ operator-sdk new app-operator --api-version=app.example.com/v1alpha1 --kind=AppService
$ cat app-operator/config/config.yaml
apiVersion: app.example.com/v1alpha1
kind: AppService
projectName: app-operator

@fanminshi
Copy link
Copy Markdown
Contributor Author

cc/ @hasbro17

@fanminshi fanminshi mentioned this pull request Feb 28, 2018
21 tasks
@hasbro17
Copy link
Copy Markdown
Contributor

LGTM

@fanminshi fanminshi merged commit a5947fc into operator-framework:master Feb 28, 2018
m1kola pushed a commit to m1kola/operator-sdk that referenced this pull request Jun 7, 2024
Bug 1872080: Updating release/ansible/Dockerfile.rhel8 and release/helm/Dockerfile baseimages to match ocp-build-data config
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