Skip to content

Commit

Permalink
Fixes #37383 - Add OSTree Include/Exclude Refs options (#10980)
Browse files Browse the repository at this point in the history
* Fixes #37383 - Add OSTree Include/Exclude Refs options

* Refs #37383 - Fix ostree VCRs

---------

Co-authored-by: Samir Jha <samirjha1525@gmail.com>
  • Loading branch information
lumarel and sjha4 committed May 10, 2024
1 parent 651453e commit 846b651
Show file tree
Hide file tree
Showing 6 changed files with 3,500 additions and 1,700 deletions.
7 changes: 7 additions & 0 deletions lib/katello/repository_types/ostree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
distribution_class PulpOstreeClient::OstreeOstreeDistribution
repo_sync_url_class PulpOstreeClient::RepositorySyncURL

generic_remote_option :include_refs, title: N_("Include Refs"), type: Array, input_type: "text", delimiter: ",", default: [],
description: N_("A comma-separated list of refs to include during a sync. The wildcards *, ? are recognized.")

generic_remote_option :exclude_refs, title: N_("Exclude Refs"), type: Array, input_type: "text", delimiter: ",", default: [],
description: N_("A comma-separated list of tags to exclude during a sync. The wildcards *, ? are recognized. 'exclude_refs' is evaluated after 'include_refs'.")

url_description N_("URL of an OSTree repository.")

generic_content_type 'ostree_ref',
Expand Down Expand Up @@ -47,4 +53,5 @@
default_managed_content_type :ostree_ref

test_url 'https://fixtures.pulpproject.org/ostree/small/'
test_url_root_options generic_remote_options: {include_refs: ['rawhide']}.to_json
end

0 comments on commit 846b651

Please sign in to comment.