import { KubernetesObject } from 'kpt-functions' ; import * as apiCoreV1 from './io.k8s.api.core.v1' ; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1' ; import * as apimachineryPkgRuntime from './io.k8s.apimachinery.pkg.runtime' ; import * as pkgUtilIntstr from './io.k8s.apimachinery.pkg.util.intstr' ; export class ControllerRevision implements KubernetesObject { public apiVersion : string ; public data ? : apimachineryPkgRuntime . RawExtension ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public revision : number ; constructor ( desc ) { this . apiVersion = ControllerRevision . apiVersion ; this . data = desc . data ; this . kind = ControllerRevision . kind ; this . metadata = desc . metadata ; this . revision = desc . revision ; } } export function isControllerRevision ( o ) { return o && o . apiVersion === ControllerRevision . apiVersion && o . kind === ControllerRevision . kind ; } export namespace ControllerRevision { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "ControllerRevision" ; export interface Interface { data ? : apimachineryPkgRuntime . RawExtension ; metadata : apisMetaV1 . ObjectMeta ; revision : number ; } } export class ControllerRevisionList { public apiVersion : string ; public items : ControllerRevision [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = ControllerRevisionList . apiVersion ; this . items = desc . items . map ( ( i ) => new ControllerRevision ( i ) ) ; this . kind = ControllerRevisionList . kind ; this . metadata = desc . metadata ; } } export function isControllerRevisionList ( o ) { return o && o . apiVersion === ControllerRevisionList . apiVersion && o . kind === ControllerRevisionList . kind ; } export namespace ControllerRevisionList { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "ControllerRevisionList" ; export interface Interface { items : ControllerRevision [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class DaemonSet implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : DaemonSetSpec ; public status ? : DaemonSetStatus ; constructor ( desc ) { this . apiVersion = DaemonSet . apiVersion ; this . kind = DaemonSet . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isDaemonSet ( o ) { return o && o . apiVersion === DaemonSet . apiVersion && o . kind === DaemonSet . kind ; } export namespace DaemonSet { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "DaemonSet" ; export function named ( name ) { return new DaemonSet ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : DaemonSetSpec ; status ? : DaemonSetStatus ; } } export class DaemonSetCondition { public lastTransitionTime ? : apisMetaV1 . Time ; public message ? : string ; public reason ? : string ; public status : string ; public type : string ; constructor ( desc ) { this . lastTransitionTime = desc . lastTransitionTime ; this . message = desc . message ; this . reason = desc . reason ; this . status = desc . status ; this . type = desc . type ; } } export class DaemonSetList { public apiVersion : string ; public items : DaemonSet [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = DaemonSetList . apiVersion ; this . items = desc . items . map ( ( i ) => new DaemonSet ( i ) ) ; this . kind = DaemonSetList . kind ; this . metadata = desc . metadata ; } } export function isDaemonSetList ( o ) { return o && o . apiVersion === DaemonSetList . apiVersion && o . kind === DaemonSetList . kind ; } export namespace DaemonSetList { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "DaemonSetList" ; export interface Interface { items : DaemonSet [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class DaemonSetSpec { public minReadySeconds ? : number ; public revisionHistoryLimit ? : number ; public selector : apisMetaV1 . LabelSelector ; public template : apiCoreV1 . PodTemplateSpec ; public updateStrategy ? : DaemonSetUpdateStrategy ; constructor ( desc ) { this . minReadySeconds = desc . minReadySeconds ; this . revisionHistoryLimit = desc . revisionHistoryLimit ; this . selector = desc . selector ; this . template = desc . template ; this . updateStrategy = desc . updateStrategy ; } } export class DaemonSetStatus { public collisionCount ? : number ; public conditions ? : DaemonSetCondition [ ] ; public currentNumberScheduled : number ; public desiredNumberScheduled : number ; public numberAvailable ? : number ; public numberMisscheduled : number ; public numberReady : number ; public numberUnavailable ? : number ; public observedGeneration ? : number ; public updatedNumberScheduled ? : number ; constructor ( desc ) { this . collisionCount = desc . collisionCount ; this . conditions = desc . conditions ; this . currentNumberScheduled = desc . currentNumberScheduled ; this . desiredNumberScheduled = desc . desiredNumberScheduled ; this . numberAvailable = desc . numberAvailable ; this . numberMisscheduled = desc . numberMisscheduled ; this . numberReady = desc . numberReady ; this . numberUnavailable = desc . numberUnavailable ; this . observedGeneration = desc . observedGeneration ; this . updatedNumberScheduled = desc . updatedNumberScheduled ; } } export class DaemonSetUpdateStrategy { public rollingUpdate ? : RollingUpdateDaemonSet ; public type ? : string ; } export class Deployment implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : DeploymentSpec ; public status ? : DeploymentStatus ; constructor ( desc ) { this . apiVersion = Deployment . apiVersion ; this . kind = Deployment . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isDeployment ( o ) { return o && o . apiVersion === Deployment . apiVersion && o . kind === Deployment . kind ; } export namespace Deployment { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "Deployment" ; export function named ( name ) { return new Deployment ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : DeploymentSpec ; status ? : DeploymentStatus ; } } export class DeploymentCondition { public lastTransitionTime ? : apisMetaV1 . Time ; public lastUpdateTime ? : apisMetaV1 . Time ; public message ? : string ; public reason ? : string ; public status : string ; public type : string ; constructor ( desc ) { this . lastTransitionTime = desc . lastTransitionTime ; this . lastUpdateTime = desc . lastUpdateTime ; this . message = desc . message ; this . reason = desc . reason ; this . status = desc . status ; this . type = desc . type ; } } export class DeploymentList { public apiVersion : string ; public items : Deployment [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = DeploymentList . apiVersion ; this . items = desc . items . map ( ( i ) => new Deployment ( i ) ) ; this . kind = DeploymentList . kind ; this . metadata = desc . metadata ; } } export function isDeploymentList ( o ) { return o && o . apiVersion === DeploymentList . apiVersion && o . kind === DeploymentList . kind ; } export namespace DeploymentList { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "DeploymentList" ; export interface Interface { items : Deployment [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class DeploymentSpec { public minReadySeconds ? : number ; public paused ? : boolean ; public progressDeadlineSeconds ? : number ; public replicas ? : number ; public revisionHistoryLimit ? : number ; public selector : apisMetaV1 . LabelSelector ; public strategy ? : DeploymentStrategy ; public template : apiCoreV1 . PodTemplateSpec ; constructor ( desc ) { this . minReadySeconds = desc . minReadySeconds ; this . paused = desc . paused ; this . progressDeadlineSeconds = desc . progressDeadlineSeconds ; this . replicas = desc . replicas ; this . revisionHistoryLimit = desc . revisionHistoryLimit ; this . selector = desc . selector ; this . strategy = desc . strategy ; this . template = desc . template ; } } export class DeploymentStatus { public availableReplicas ? : number ; public collisionCount ? : number ; public conditions ? : DeploymentCondition [ ] ; public observedGeneration ? : number ; public readyReplicas ? : number ; public replicas ? : number ; public unavailableReplicas ? : number ; public updatedReplicas ? : number ; } export class DeploymentStrategy { public rollingUpdate ? : RollingUpdateDeployment ; public type ? : string ; } export class ReplicaSet implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : ReplicaSetSpec ; public status ? : ReplicaSetStatus ; constructor ( desc ) { this . apiVersion = ReplicaSet . apiVersion ; this . kind = ReplicaSet . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isReplicaSet ( o ) { return o && o . apiVersion === ReplicaSet . apiVersion && o . kind === ReplicaSet . kind ; } export namespace ReplicaSet { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "ReplicaSet" ; export function named ( name ) { return new ReplicaSet ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : ReplicaSetSpec ; status ? : ReplicaSetStatus ; } } export class ReplicaSetCondition { public lastTransitionTime ? : apisMetaV1 . Time ; public message ? : string ; public reason ? : string ; public status : string ; public type : string ; constructor ( desc ) { this . lastTransitionTime = desc . lastTransitionTime ; this . message = desc . message ; this . reason = desc . reason ; this . status = desc . status ; this . type = desc . type ; } } export class ReplicaSetList { public apiVersion : string ; public items : ReplicaSet [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = ReplicaSetList . apiVersion ; this . items = desc . items . map ( ( i ) => new ReplicaSet ( i ) ) ; this . kind = ReplicaSetList . kind ; this . metadata = desc . metadata ; } } export function isReplicaSetList ( o ) { return o && o . apiVersion === ReplicaSetList . apiVersion && o . kind === ReplicaSetList . kind ; } export namespace ReplicaSetList { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "ReplicaSetList" ; export interface Interface { items : ReplicaSet [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class ReplicaSetSpec { public minReadySeconds ? : number ; public replicas ? : number ; public selector : apisMetaV1 . LabelSelector ; public template ? : apiCoreV1 . PodTemplateSpec ; constructor ( desc ) { this . minReadySeconds = desc . minReadySeconds ; this . replicas = desc . replicas ; this . selector = desc . selector ; this . template = desc . template ; } } export class ReplicaSetStatus { public availableReplicas ? : number ; public conditions ? : ReplicaSetCondition [ ] ; public fullyLabeledReplicas ? : number ; public observedGeneration ? : number ; public readyReplicas ? : number ; public replicas : number ; constructor ( desc ) { this . availableReplicas = desc . availableReplicas ; this . conditions = desc . conditions ; this . fullyLabeledReplicas = desc . fullyLabeledReplicas ; this . observedGeneration = desc . observedGeneration ; this . readyReplicas = desc . readyReplicas ; this . replicas = desc . replicas ; } } export class RollingUpdateDaemonSet { public maxUnavailable ? : pkgUtilIntstr . IntOrString ; } export class RollingUpdateDeployment { public maxSurge ? : pkgUtilIntstr . IntOrString ; public maxUnavailable ? : pkgUtilIntstr . IntOrString ; } export class RollingUpdateStatefulSetStrategy { public partition ? : number ; } export class StatefulSet implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : StatefulSetSpec ; public status ? : StatefulSetStatus ; constructor ( desc ) { this . apiVersion = StatefulSet . apiVersion ; this . kind = StatefulSet . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isStatefulSet ( o ) { return o && o . apiVersion === StatefulSet . apiVersion && o . kind === StatefulSet . kind ; } export namespace StatefulSet { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "StatefulSet" ; export function named ( name ) { return new StatefulSet ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : StatefulSetSpec ; status ? : StatefulSetStatus ; } } export class StatefulSetCondition { public lastTransitionTime ? : apisMetaV1 . Time ; public message ? : string ; public reason ? : string ; public status : string ; public type : string ; constructor ( desc ) { this . lastTransitionTime = desc . lastTransitionTime ; this . message = desc . message ; this . reason = desc . reason ; this . status = desc . status ; this . type = desc . type ; } } export class StatefulSetList { public apiVersion : string ; public items : StatefulSet [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = StatefulSetList . apiVersion ; this . items = desc . items . map ( ( i ) => new StatefulSet ( i ) ) ; this . kind = StatefulSetList . kind ; this . metadata = desc . metadata ; } } export function isStatefulSetList ( o ) { return o && o . apiVersion === StatefulSetList . apiVersion && o . kind === StatefulSetList . kind ; } export namespace StatefulSetList { export const apiVersion = "apps/v1" ; export const group = "apps" ; export const version = "v1" ; export const kind = "StatefulSetList" ; export interface Interface { items : StatefulSet [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class StatefulSetSpec { public podManagementPolicy ? : string ; public replicas ? : number ; public revisionHistoryLimit ? : number ; public selector : apisMetaV1 . LabelSelector ; public serviceName : string ; public template : apiCoreV1 . PodTemplateSpec ; public updateStrategy ? : StatefulSetUpdateStrategy ; public volumeClaimTemplates ? : apiCoreV1 . PersistentVolumeClaim [ ] ; constructor ( desc ) { this . podManagementPolicy = desc . podManagementPolicy ; this . replicas = desc . replicas ; this . revisionHistoryLimit = desc . revisionHistoryLimit ; this . selector = desc . selector ; this . serviceName = desc . serviceName ; this . template = desc . template ; this . updateStrategy = desc . updateStrategy ; this . volumeClaimTemplates = ( desc . volumeClaimTemplates !== undefined ) ? desc . volumeClaimTemplates . map ( ( i ) => new apiCoreV1 . PersistentVolumeClaim ( i ) ) : undefined ; } } export class StatefulSetStatus { public collisionCount ? : number ; public conditions ? : StatefulSetCondition [ ] ; public currentReplicas ? : number ; public currentRevision ? : string ; public observedGeneration ? : number ; public readyReplicas ? : number ; public replicas : number ; public updateRevision ? : string ; public updatedReplicas ? : number ; constructor ( desc ) { this . collisionCount = desc . collisionCount ; this . conditions = desc . conditions ; this . currentReplicas = desc . currentReplicas ; this . currentRevision = desc . currentRevision ; this . observedGeneration = desc . observedGeneration ; this . readyReplicas = desc . readyReplicas ; this . replicas = desc . replicas ; this . updateRevision = desc . updateRevision ; this . updatedReplicas = desc . updatedReplicas ; } } export class StatefulSetUpdateStrategy { public rollingUpdate ? : RollingUpdateStatefulSetStrategy ; public type ? : string ; }