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
fix(backend/sdk): Fix REST API outputs for pipeline versions with invalid platform specs (kubeflow#12183)
* Skip setting spec.platformSpec when platform spec is empty
An empty platform spec causes a bug where the REST API will not return a
pipeline spec because it errantly thinks the empty platform spec is the
pipeline spec.
Signed-off-by: mprahl <[email protected]>
* Fix REST API outputs for pipeline versions with invalid platform specs
When a platform spec did not contain a `kubernetes` platform when
defined as a Kubernetes manifest (e.g. `spec.platformSpec: {}`),
`YamlStringToPipelineSpecStruct` was errantly detecting it as the
pipeline spec when outputting the pipeline version through the REST API.
This caused the REST API to not return a pipeline spec in the case of it
being empty, and caused the UI to load the pipeline and to properly
create a run.
The solution is when translating from the Kubernetes object to a model
representation, the invalid platform specs are not included. This allows
for proper REST API output while also not modifying the user's spec in
the mutating webhook which would cause GitOps tools to always reconcile.
Signed-off-by: mprahl <[email protected]>
---------
Signed-off-by: mprahl <[email protected]>
(cherry picked from commit 3ea6b60)
0 commit comments