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
The responsibility of Upgrade is to migrate the whole config from one version to the next. This opens the possibility for a class of bugs, where the main pipeline (SkaffoldConfig.Pipeline) is migrated to a new version, but none of the pipeline configs in the profiles SkaffoldConfig.Profiles[*].Pipeline (see for example #2415). If there are use-cases where profile-pipelines need to be upgraded differently than the main pipeline, the following suggestion is void.
which upgrades a given pipeline to the next version. In addition, add an upgrade helper which migrates the main pipeline and all profile pipelines to the next version.
This will be backwards compatible with skaffold schema versions before the Pipeline structure was introduced.
The text was updated successfully, but these errors were encountered:
Currently, the schema upgrade mechanism works by implementing the
VersionedConfig
interface:The responsibility of
Upgrade
is to migrate the whole config from one version to the next. This opens the possibility for a class of bugs, where the main pipeline (SkaffoldConfig.Pipeline
) is migrated to a new version, but none of the pipeline configs in the profilesSkaffoldConfig.Profiles[*].Pipeline
(see for example #2415). If there are use-cases where profile-pipelines need to be upgraded differently than the main pipeline, the following suggestion is void.Suggestion
Add a new interface
which upgrades a given pipeline to the next version. In addition, add an upgrade helper which migrates the main pipeline and all profile pipelines to the next version.
This will be backwards compatible with skaffold schema versions before the
Pipeline
structure was introduced.The text was updated successfully, but these errors were encountered: