Skip to content

Latest commit

 

History

History

thanos-operator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/thanos-operator

Thanos operator models.

Installation

Install with npm.

npm install @kubernetes-models/thanos-operator

Usage

import { Thanos } from "@kubernetes-models/thanos-operator/monitoring.banzaicloud.io/v1alpha1/Thanos";

// Create a new Thanos
const thanos = new Thanos({
  metadata: { name: "example" },
  spec: {
    query: {},
    rule: {},
    storeGateway: {}
  }
});

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

License

See LICENSE