Revision 73dcade7
app/services/katello/pulp3/docker_manifest.rb | ||
---|---|---|
{
|
||
schema_version: unit['schema_version'],
|
||
digest: unit['digest'],
|
||
pulp_id: unit[unit_identifier]
|
||
pulp_id: unit[unit_identifier],
|
||
annotations: unit['annotations'],
|
||
labels: unit['labels'],
|
||
is_bootable: unit['is_bootable'],
|
||
is_flatpak: unit['is_flatpak']
|
||
}
|
||
end
|
||
end
|
app/views/katello/api/v2/docker_manifests/show.json.rabl | ||
---|---|---|
object @resource
|
||
|
||
attributes :id, :schema_version, :digest, :manifest_type
|
||
attributes :annotations, :labels, :is_bootable, :is_flatpak
|
||
|
||
child :docker_tags => :tags do
|
||
attributes :associated_meta_tag_identifier => :id
|
db/migrate/20240423112842_add_fields_to_katello_docker_manifest.rb | ||
---|---|---|
class AddFieldsToKatelloDockerManifest < ActiveRecord::Migration[6.1]
|
||
def change
|
||
add_column :katello_docker_manifests, :annotations, :jsonb, default: {}
|
||
add_column :katello_docker_manifests, :labels, :jsonb, default: {}
|
||
add_column :katello_docker_manifests, :is_bootable, :boolean, default: false
|
||
add_column :katello_docker_manifests, :is_flatpak, :boolean, default: false
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #37379 - Index labels and other fields for manifests (#10975)