@kubernetes-models/argo-cd
v2.6.2
Published
Argo CD models
Downloads
14,125
Maintainers
Readme
@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