There was an error while loading. Please reload this page.
1 parent bd817c8 commit 2636427Copy full SHA for 2636427
1 file changed
src/main.rs
@@ -247,6 +247,10 @@ fn clean_last_applied_configuration(
247
248
#[derive(Parser, Default, Debug)]
249
struct Args {
250
+ #[arg(long)]
251
+ only: Vec<String>,
252
253
+ exclude: Vec<String>,
254
output_dir: String,
255
}
256
@@ -276,6 +280,14 @@ async fn main() -> anyhow::Result<()> {
276
280
continue;
277
281
278
282
283
+ if args.exclude.contains(&ar.plural) {
284
+ continue;
285
+ }
286
+
287
+ if !args.only.is_empty() && !args.only.contains(&ar.plural) {
288
289
290
279
291
println!("Processing {}", ar.plural);
292
293
let apis: Vec<Api<DynamicObject>> = if caps.scope == Scope::Cluster {
0 commit comments