Skip to content

silverlyra/kubernetes-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5944d75 · May 16, 2024

History

10 Commits
May 16, 2024
Jul 22, 2021
May 16, 2024
May 16, 2024
Dec 14, 2018
Dec 13, 2018
Dec 22, 2018
May 16, 2024
May 16, 2024
May 16, 2024

Repository files navigation

kubernetes-types

This package provides TypeScript definitions for Kubernetes API types, generated from the Kubernetes OpenAPI definitions.

Example

import {Pod} from 'kubernetes-types/core/v1'
import {ObjectMeta} from 'kubernetes-types/meta/v1'

let metadata: ObjectMeta = {name: 'example', labels: {app: 'example'}}
let pod: Pod = {
  apiVersion: 'v1',
  kind: 'Pod', // 'v1' and 'Pod' are the only accepted values for a Pod

  metadata,

  spec: {
    containers: [
      /* ... */
    ],
  },
}

Versioning

As an NPM package, kubernetes-types follows semver. The major and minor version of the package will track the Kubernetes API version, while the patch version will follow updates to the generated types.

You should install the version of the types matching the Kubernetes API version you want to be compatible with. Consult NPM for the list of available versions of this package.

This repository

This repository contains the code used to generate the TypeScript types, not the types themselves.

About

Kubernetes resource types for TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published