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