Package org.cdk8s

Class App

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.88.0 (build eaabd08)",
               date="2023-09-18T13:04:13.930Z")
    @Stability(Stable)
    public class App
    extends software.constructs.Construct
    Represents a cdk8s application.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  App.Builder
      A fluent builder for App.
      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
      • Nested classes/interfaces inherited from interface software.constructs.IConstruct

        software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        App()
      Defines an app.
        App​(AppProps props)
      Defines an app.
      protected App​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected App​(software.amazon.jsii.JsiiObjectRef objRef)  
    • Constructor Detail

      • App

        protected App​(software.amazon.jsii.JsiiObjectRef objRef)
      • App

        protected App​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • App

        @Stability(Stable)
        public App​(@Nullable
                   AppProps props)
        Defines an app.

        Parameters:
        props - configuration options.
      • App

        @Stability(Stable)
        public App()
        Defines an app.
    • Method Detail

      • synth

        @Stability(Stable)
        public void synth()
        Synthesizes all manifests to the output directory.
      • synthYaml

        @Stability(Stable)
        @NotNull
        public String synthYaml()
        Synthesizes the app into a YAML string.

        Returns:
        A string with all YAML objects across all charts in this app.
      • getCharts

        @Stability(Stable)
        @NotNull
        public List<Chart> getCharts()
        Returns all the charts in this app, sorted topologically.
      • getOutdir

        @Stability(Stable)
        @NotNull
        public String getOutdir()
        The output directory into which manifests will be synthesized.
      • getOutputFileExtension

        @Stability(Stable)
        @NotNull
        public String getOutputFileExtension()
        The file extension to use for rendered YAML files.

        Default: .k8s.yaml

      • getYamlOutputType

        @Stability(Stable)
        @NotNull
        public YamlOutputType getYamlOutputType()
        How to divide the YAML output into files.

        Default: YamlOutputType.FILE_PER_CHART