@soft-stech/envoy-gateway
v0.2.0
Published
Envoy Gateway models
Downloads
2
Readme
@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