Skip to content

Latest commit

 

History

History

linkerd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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