0.1.14 • Published 5 years ago

k8stypes v0.1.14

Weekly downloads
30
License
MIT
Repository
gitlab
Last release
5 years ago

k8stypes

This repository contains TypeScript type definitions for Kubernetes resources.

Usage

Installation

npm install -D k8stypes;

Usage

TypeScript

import { Deployment } from 'k8stypes/apps/v1/Deployment';

const deployment : Deployment = {/* ... */};
export deployment;

JavaScript

/**
 * @typedef {import('k8stypes/apps/v1/Deployment').Deployment} Deployment
 */

/** @type {Deployment} */
const deployment = {/* ... */};
module.exports = deployment;

Development Runbook

All development should be done within the /src directory. The root directory is used only for publishing to NPM.

Retrieving the latest Kubernetes OpenAPI specification

npm run update;

This has only been tested to work on Ubuntu.

Generating the TypeScript definitions

npm run generate;

This will result in a ./src directory containing the TypeScript definitions.

Building the JavaScript version

npm run build;

This will result in the NPM publishable package at ./lib. Run npm publish from ./lib of the repository to publish it:

Publishing the package

  1. Bump the appropriate version in package.json
  2. Commit the change
  3. Navigate to ./lib and run:
npm publish;

License

This code is licensed under the MIT license.

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago