@kubernetes-models/pipelines-as-code
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@kubernetes-models/pipelines-as-code

Pipelines-as-Code models.

Installation

Install with npm.

npm install @kubernetes-models/pipelines-as-code

Usage

import { Repository } from "@kubernetes-models/pipelines-as-code/pipelinesascode.tekton.dev/v1alpha1/Repository";

// Create a new Application
const repository = new Repository({
  metadata: {
    name: "pac-repo"
  },
  spec: {
    url: "https://github.com/linda/project",
    git_provider: {
      secret: {
        name: 'my-secret',
        key: 'repo-secret',
      },
      webhook_secret: {
        name: 'my-secret',
        key: 'webhook-secret',
      },
    },
  },
});

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

License

MIT

Package Sidebar

Install

npm i @kubernetes-models/pipelines-as-code

Weekly Downloads

245

Version

0.2.0

License

MIT

Unpacked Size

54.9 kB

Total Files

17

Last publish

Collaborators

  • tommy351