operator/src/main/java/oracle/kubernetes/operator/helpers/CrdHelper.java
public static void main(String[] args) {
    if (args == null || args.length != 2) {
      throw new IllegalArgumentException();
    }

    CrdContext context = new CrdContext(null, null, null);

    String outputFileName = args[0];
    Path outputFilePath = Paths.get(outputFileName);

    try (Writer writer = Files.newBufferedWriter(outputFilePath)) {
      writer.write(
          "# Copyright (c) 2020, Oracle Corporation and/or its affiliates.\n"
              + "# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.\n");
      writer.write("\n");
      Yaml.dump(context.model, writer);
    } catch (IOException io) {
      throw new RuntimeException(io);
    }

    String betaOutputFileName = args[1];
    Path betaOutputFilePath = Paths.get(betaOutputFileName);

    try (Writer writer = Files.newBufferedWriter(betaOutputFilePath)) {
      writer.write(
          "# Copyright (c) 2020, Oracle Corporation and/or its affiliates.\n"
              + "# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.\n");
      writer.write("\n");
      Yaml.dump(context.betaModel, writer);
    } catch (IOException io) {
      throw new RuntimeException(io);
    }
  }
/**
   * Used by build to generate crd-validation.yaml
   * @param args Arguments that must be one value giving file name to create
   */
Used by build to generate crd-validation.yaml
@param args Arguments that must be one value giving file name to create
Used by build to generate crd - validation . yaml @param args Arguments that must be one value giving file name to create
public static void main(String[] args) {
    if (args == null || args.length != 2) {
      throw new IllegalArgumentException();
    }
    CrdContext context = new CrdContext(null, null, null);
    String outputFileName = args[0];
    Path outputFilePath = Paths.get(outputFileName);
    try (Writer writer = Files.newBufferedWriter(outputFilePath)) {
      writer.write(
          "# Copyright (c) 2020, Oracle Corporation and/or its affiliates.\n"
              + "# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.\n");
      writer.write("\n");
      Yaml.dump(context.model, writer);
    } catch (IOException io) {
      throw new RuntimeException(io);
    }
    String betaOutputFileName = args[1];
    Path betaOutputFilePath = Paths.get(betaOutputFileName);
    try (Writer writer = Files.newBufferedWriter(betaOutputFilePath)) {
      writer.write(
          "# Copyright (c) 2020, Oracle Corporation and/or its affiliates.\n"
              + "# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.\n");
      writer.write("\n");
      Yaml.dump(context.betaModel, writer);
    } catch (IOException io) {
      throw new RuntimeException(io);
    }
  }
public static void main ( String [ ] args ) { if ( args == null || args . length != 2 ) { throw new IllegalArgumentException ( ) ; } CrdContext context = new CrdContext ( null , null , null ) ; String outputFileName = args [ 0 ] ; Path outputFilePath = Paths . get ( outputFileName ) ; try ( Writer writer = Files . newBufferedWriter ( outputFilePath ) ) { writer . write ( "# Copyright (c) 2020, Oracle Corporation and/or its affiliates.\n" + "# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.\n" ) ; writer . write ( "\n" ) ; Yaml . dump ( context . model , writer ) ; } catch ( IOException io ) { throw new RuntimeException ( io ) ; } String betaOutputFileName = args [ 1 ] ; Path betaOutputFilePath = Paths . get ( betaOutputFileName ) ; try ( Writer writer = Files . newBufferedWriter ( betaOutputFilePath ) ) { writer . write ( "# Copyright (c) 2020, Oracle Corporation and/or its affiliates.\n" + "# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.\n" ) ; writer . write ( "\n" ) ; Yaml . dump ( context . betaModel , writer ) ; } catch ( IOException io ) { throw new RuntimeException ( io ) ; } }
Used by build to generate crd-validation.yaml
 @param args Arguments that must be one value giving file name to create
Used by build to generate crd - validation . yaml @param args Arguments that must be one value giving file name to create