Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Allow provider override when using config file #647

Merged

Conversation

darkowlzz
Copy link
Contributor

When using ignite configuration file, the global flags --runtime and
--network-plugin were ignored. This change enables the overrides to work.

The default runtime and network-plugin name assignment is moved from
providers into NewIgniteCommand and the defaults are set only when the
values are empty after applying config files and flag overrides.

@darkowlzz darkowlzz requested a review from twelho as a code owner July 19, 2020 18:53
When using ignite configuration file, the global flags --runtime and
--network-plugin were ignored. This enables the overrides to work.

The default runtime and network-plugin name assignment is moved from
providers into NewIgniteCommand and the defaults are set only when the
values are empty after applying config files and flag overrides.
@darkowlzz darkowlzz force-pushed the config-provisioner-override branch from 33a33f3 to c49e317 Compare July 19, 2020 19:20
@darkowlzz
Copy link
Contributor Author

Writing a test for this will be easier if we have runtime and network-plugin info in the VM object.
I've manually tested this and it doesn't change any of the existing behaviors as per the e2e tests.

@darkowlzz darkowlzz added documentation/improvement Improve something in the docs kind/bug Categorizes issue or PR as related to a bug. and removed documentation/improvement Improve something in the docs labels Jul 19, 2020
Copy link
Contributor

@twelho twelho left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@darkowlzz darkowlzz changed the title Allow provisioner override when using config file Allow provider override when using config file Jul 20, 2020
@stealthybox stealthybox merged commit 8cc1c30 into weaveworks:master Jul 20, 2020
@darkowlzz darkowlzz deleted the config-provisioner-override branch July 20, 2020 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants