* Add the name field for pipelines and pipeline versions
The API only accepted display_name, which accepted arbitrary characters
but this does not work well in Kubernetes native API mode (Kubernetes
pipeline store) since object names must be a valid DNS subdomain.
This commit adds the name field which is required, but for backwards
compatibility, the API will accept just name or display_name and
duplicate the set value to the unset field. For existing users, they
will only see that there is an extra field of "name" on pipelines and
pipeline versions that is the same value as "display_name".
The database migration logic adds a new DisplayName column and sets the
values to what was in the Name column. Confusingly, the API field
"display_name" used to map the a database column of "Name".
The UI now handles both name and display name but for a simpler user
experience, the display name form fields when uploading a pipeline are
hidden when not in Kubernetes native API mode (Kubernetes pipeline
store) since there is no need to have a display name since there is no
naming restrictions on the name.
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
* Add a better API error when a Kubernetes object name is invalid
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
---------
Signed-off-by: mprahl <mprahl@users.noreply.github.com>