0.0.15 • Published 2 years ago

@c6o/kubeclient-resources v0.0.15

Weekly downloads
-
License
https://github.co...
Repository
github
Last release
2 years ago

kubernetes-types

DO NOT modify any of the files in this package as they are all generated by the generator project

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: [
      /* ... */
    ],
  },
}