Skip to content

Latest commit

 

History

History

argo-workflows

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/argo-workflows

Argo Workflows models.

Installation

Install with npm.

npm install @kubernetes-models/argo-workflows

Usage

import { Rollout } from "@kubernetes-models/argo-workflows/argoproj.io/v1alpha1/Workflow";

// Create a new Rollout
const workflow = new Workflow({
  metadata: {
    name: "workflows-demo"
  },
  spec: {
    entrypoint: "hello",
    templates: [
      {
        name: "hello",
        container: {
          image: "alpine:latest",
          command: ["echo", "Hello, Argo!"]
        }
      }
    ]
  }
});

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

License

MIT