Skip to content

Add file flag to the CLI create command#209

Merged
k-gostev merged 4 commits intoeclipse-kanto:dev-m5from
bosch-io:create-flag
Nov 16, 2023
Merged

Add file flag to the CLI create command#209
k-gostev merged 4 commits intoeclipse-kanto:dev-m5from
bosch-io:create-flag

Conversation

@daniel-milchev
Copy link
Contributor

[#208] Added the file flag. Added unit and integration tests for it.
Signed-off-by: Daniel Milchev [email protected]

@dimitar-dimitrow dimitar-dimitrow linked an issue Nov 10, 2023 that may be closed by this pull request
Copy link
Contributor

@dimitar-dimitrow dimitar-dimitrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As currently implemented one can use the file flag in combination with other flags.

  • If the same property(e.g. privileged) is defined through both it's flag and in the file, the property from the file is applied.
  • If the property is defined only through it's flag and is missing in the file, then the flag gets applied.
    This behavior is not intuitive, as usually flags have the highest priority. Applying the file as a base and then merging the configuration applied through flags is not straightforward and is prone to errors. As discussed with @k-gostev the best option is to forbid applying other flags when file is used.

@daniel-milchev daniel-milchev changed the base branch from main to dev-m5 November 16, 2023 08:38
@k-gostev k-gostev merged commit 77f94ac into eclipse-kanto:dev-m5 Nov 16, 2023
@k-gostev k-gostev deleted the create-flag branch November 16, 2023 13:20
dimitar-dimitrow added a commit that referenced this pull request May 10, 2024
[#234] Merge `dev-m5` branch into `main`
* [#51] Improve containerd client unit tests (#203)
* [#201] Optimized, deterministic intermediate desired state feedback messages (#204)
* [#208] Add file flag to the CLI create command (#209)
* [#191] Container remains Stopped after container-management service restart (#214)
* [#210] Remove command should accept more than one container ID (#212)
* [#196] Starting of constantly restarting container fails (#216)
* [#67] Implement signed images verification (#215)
* [#91] Provide unit tests covering signed images verification (#220)
* [#213] Add quiet flag, to the list command. (#221)
* [#217] CLI Remove command improvements (#224)

---------

Signed-off-by: Daniel Milchev [email protected]
Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Kristiyan Gostev <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Co-authored-by: Daniel Milchev <[email protected]>
Co-authored-by: Stoyan Zoubev <[email protected]>
Co-authored-by: Dimitar Dimitrov <[email protected]>
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.

Add file flag to the CLI create command

3 participants