You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user upgrades from zowe version A to version B, existing configuration can take on new meaning, and new configuration may be required which ideally should be automated whenever possible.
Consider, what happens to the following during an upgrade:
The contents of the workspace directory. Do they need to change?
The contents of the user's zowe.yaml. Does it need to change?
Does one component become replaced by another if one is the successor of another? If so, what happens to their configs?
Some of these questions can only be answered by components themselves. Its impossible to bake all knowledge of all components into zwe.
Currently ever user runs "zwe init" during a zowe install, and I believe this would be done during an upgrade as well (Though, certain "init" actions only need to be done once or at least only when there's a change, so a "zwe upgrade" command may be better!)
During such a command, we could run through the components to see if they have an upgrade to perform.
Consider adding a commands.upgrade to the manifest.yaml of components
That command would be given the version zowe was coming FROM, the current zowe.yaml & all its env vars, and therefore the path to the workspace too.
Such a command would be expected to automate config when possible, AND send some return code back to zwe that states whether or not the upgrade is COMPLETE or FAILED or NEEDS MANUAL STEPS
Keep in mind: if a component just wants to update its default yaml config, none of this is needed. Instead, there will eventually be the ability for a component to ship a "defaults.yaml" file within it and its presence/absence and changes will all be handled automatically when an upgrade occurs.
The text was updated successfully, but these errors were encountered:
When a user upgrades from zowe version A to version B, existing configuration can take on new meaning, and new configuration may be required which ideally should be automated whenever possible.
Consider, what happens to the following during an upgrade:
Some of these questions can only be answered by components themselves. Its impossible to bake all knowledge of all components into zwe.
Currently ever user runs "zwe init" during a zowe install, and I believe this would be done during an upgrade as well (Though, certain "init" actions only need to be done once or at least only when there's a change, so a "zwe upgrade" command may be better!)
During such a command, we could run through the components to see if they have an upgrade to perform.
Consider adding a
commands.upgrade
to the manifest.yaml of componentsThat command would be given the version zowe was coming FROM, the current zowe.yaml & all its env vars, and therefore the path to the workspace too.
Such a command would be expected to automate config when possible, AND send some return code back to zwe that states whether or not the upgrade is COMPLETE or FAILED or NEEDS MANUAL STEPS
Keep in mind: if a component just wants to update its default yaml config, none of this is needed. Instead, there will eventually be the ability for a component to ship a "defaults.yaml" file within it and its presence/absence and changes will all be handled automatically when an upgrade occurs.
The text was updated successfully, but these errors were encountered: