@kubernetes-models/argo-cd
TypeScript icon, indicating that this package has built-in type declarations

2.5.0 • Public • Published

@kubernetes-models/argo-cd

Argo CD models.

Installation

Install with npm.

npm install @kubernetes-models/argo-cd

Usage

import { Application } from "@kubernetes-models/argo-cd/argoproj.io/v1alpha1/Application";

// Create a new Application
const app = new Application({
  metadata: {
    name: "guestbook"
  },
  spec: {
    project: "default",
    source: {
      repoURL: "https://github.com/argoproj/argocd-example-apps.git",
      targetRevision: "HEAD",
      path: "guestbook"
    },
    destination: {
      server: "https://kubernetes.default.svc",
      namespace: "guestbook"
    }
  }
});

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

License

MIT

Package Sidebar

Install

npm i @kubernetes-models/argo-cd

Weekly Downloads

1,142

Version

2.5.0

License

MIT

Unpacked Size

6.48 MB

Total Files

21

Last publish

Collaborators

  • tommy351