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

0.3.1 • Public • Published

@kubernetes-models/flagger

Flagger models.

Installation

Install with npm.

npm install @kubernetes-models/flagger

Usage

import { Canary } from "@kubernetes-models/flagger/flagger.app/v1beta1/Canary";

// Create a new Canary
const canary = new Canary({
  metadata: {
    name: "example"
  },
  spec: {
    targetRef: {
      apiVersion: "apps/v1",
      kind: "Deployment",
      name: "example"
    },
    service: { port: 9898 },
    analysis: {
      interval: "1m",
      threshold: 10,
      maxWeight: 50,
      stepWeight: 5
    }
  }
});

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

License

MIT

Package Sidebar

Install

npm i @kubernetes-models/flagger

Weekly Downloads

9

Version

0.3.1

License

MIT

Unpacked Size

272 kB

Total Files

21

Last publish

Collaborators

  • tommy351