Skip to content

Latest commit

 

History

History
 
 

kapp-controller

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/kapp-controller

Carvel kapp contoller models.

Installation

Install with npm.

npm install @kubernetes-models/kapp-controller

Usage

import { App } from "@kubernetes-models/kapp-controller/kappctrl.k14s.io/v1alpha1/App";

// Create a new Application
const app = new App({
  metadata: { name: "hello" },
  spec: {
    serviceAccountName: "default-ns-sa",
    fetch: [
      {
        git: {
          url: "https://github.com/vmware-tanzu/carvel-simple-app-on-kubernetes",
          ref: "origin/develop",
          subPath: "config-step-2-template"
        }
      }
    ],
    template: [{ ytt: {} }],
    deploy: [{ kapp: {} }]
  }
});

// Validate against JSON schema
app.validate();

License

See LICENSE