Skip to content

Latest commit

 

History

History

envoy-gateway

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/envoy-gateway

Envoy Gateway models.

Installation

Install with npm.

npm install @kubernetes-models/envoy-gateway

Usage

import { BackendTrafficPolicy } from "@kubernetes-models/envoy-gateway/gateway.envoyproxy.io/v1alpha1";

// Create a new BackendTrafficPolicy
const app = new BackendTrafficPolicy({
  metadata: {
    namespace: "envoy-gateway",
    name: "target-gateway-1"
  },
  spec: {
    targetRef: {
      group: "gateway.networking.k8s.io",
      kind: "Gateway",
      name: "gateway-1",
      namespace: "envoy-gateway"
    }
  }
});

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

License

MIT