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

0.4.1 • Public • Published

@kubernetes-models/linkerd

Linkerd models.

Installation

Install with npm.

npm install @kubernetes-models/linkerd
import { ServiceProfile } from '@kubernetes-models/linkerd/linkerd.io/v1alpha2/ServiceProfile';

const serviceProfile = new ServiceProfile({
  metadata: {
    name: "example"
  },
  spec: {
    routes: [
      {
        name: "example",
        condition: {
          method: "GET",
          pathRegex: "/v1/example/.*"
        }
      }
    ]
  },
});

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

License

MIT

Package Sidebar

Install

npm i @kubernetes-models/linkerd

Weekly Downloads

444

Version

0.4.1

License

MIT

Unpacked Size

1.38 MB

Total Files

153

Last publish

Collaborators

  • tommy351