Skip to content

Commit

Permalink
allow to ignore CRD per upstream
Browse files Browse the repository at this point in the history
Calico decided to bundle a CRD from another project

Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Sep 20, 2024
1 parent b964865 commit 11afbd4
Show file tree
Hide file tree
Showing 4 changed files with 345 additions and 589 deletions.
4 changes: 4 additions & 0 deletions code-generator/src/bin/crd_v1_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ fn main() {
if response.status().is_success() {
if let Ok(content) = response.text() {
for crd in parse_crds(content) {
if source.ignores.iter().any(|&ignore| ignore.group == crd.spec.group && ignore.version == crd.spec.versions[0].name) {
println!(" Ignoring {}/{}", crd.spec.group, crd.spec.versions[0].name);
continue
}
let directory = format!(
"{}/crd-catalog/{}/{}/{}",
root,
Expand Down
Loading

0 comments on commit 11afbd4

Please sign in to comment.