Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/keda

KEDA models.

Installation

Install with npm.

npm install @kubernetes-models/keda

Usage

import { ScaledObject } from "@kubernetes-models/keda/keda.sh/v1alpha1/ScaledObject";

// Create a new ScaledObject
const scaledObject = new ScaledObject({
  metadata: {
    name: "example",
  },
  spec: {
    scaleTargetRef: {
      name: 'example',
    },
    triggers: [
      {
        type: "cpu",
        metadata: {
          type: "Utilization",
          value: "70",
        },
      }
    ],
  },
});

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

License

See LICENSE