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

feat(cmd/run): --config option flag #2339

Merged
merged 9 commits into from
Jun 3, 2021

Conversation

squakez
Copy link
Contributor

@squakez squakez commented May 27, 2021

With this PR we are:

  • Introducing --config [configmap|secret|file]:name run option flag
  • Deprecating --configmap and --secret run option flag
  • Changing --config global flag with --kube-config
  • Supporting modeline for --config

The goal is to provide a unique config flag to manage all different kind of configuration as explained in #2003. This flag eventually differs from resource as it is meant to only provide configuration files that will be evaluated by the Integration runtime.

Release Note

feat(cmd/run): --config option flag

* Introducing --config [configmap|secret|file]:name
* Deprecate --configmap and --secret

Ref apache#2003
The old config flag is clashing with the new one that we want to introduce for run subcommand. It makes sense to rename it as --kube-config as it makes reference to kube configuration file.

Ref apache#2003
@squakez
Copy link
Contributor Author

squakez commented May 31, 2021

@nicolaferraro, I've added d4077a4 to this PR in order to check if a --config is a binary file (sending the user to --resource in such case). Please, have a further look and if you see it's okey, feel free to merge. Thanks!

pkg/cmd/modeline.go Outdated Show resolved Hide resolved
Introduced a new list of flags that accept multiple values. If they are passed a file: syntax, the value will be expanded with the relative file location
@squakez
Copy link
Contributor Author

squakez commented Jun 1, 2021

@nicolaferraro, I've added 5765133 which should fix the concerns related to the modeline. Indeed, that problem was wider as it was affecting the rest of flags that were using file: option. Thanks a lot for that!
There is a failure on the CI, but it does not seem related to these changes. If you kindly can re-run that, so we can see if this PR is passing all the tests, please.

@nicolaferraro nicolaferraro merged commit 7d291c4 into apache:main Jun 3, 2021
@nicolaferraro nicolaferraro mentioned this pull request Jul 2, 2021
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.

None yet

2 participants