We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f863e7 commit 64ebb18Copy full SHA for 64ebb18
operator/src/crdgen.rs
@@ -1,6 +1,15 @@
1
use kube::CustomResourceExt;
2
3
fn main() {
4
+ let args: Vec<String> = std::env::args().collect();
5
+ if args.len() > 1 && args[1] == "json" {
6
+ print!(
7
+ "{}",
8
+ serde_json::to_string_pretty(&operator::SubmitApiPort::crd()).unwrap()
9
+ );
10
+ return;
11
+ }
12
+
13
print!(
14
"{}",
15
serde_yaml::to_string(&operator::SubmitApiPort::crd()).unwrap()
0 commit comments