@cdktf/provider-kubernetes
Version:
Prebuilt kubernetes Provider for Terraform CDK (cdktf)
916 lines • 301 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import * as cdktf from 'cdktf';
import { PodSpecInitContainerEnv, PodSpecInitContainerEnvList, PodSpecInitContainerEnvFrom, PodSpecInitContainerEnvFromList, PodSpecInitContainerLifecycle, PodSpecInitContainerLifecycleOutputReference, PodSpecInitContainerLivenessProbe, PodSpecInitContainerLivenessProbeOutputReference, PodSpecAffinity, PodSpecAffinityOutputReference, PodSpecContainer, PodSpecContainerList, PodSpecDnsConfig, PodSpecDnsConfigOutputReference, PodSpecHostAliases, PodSpecHostAliasesList, PodSpecImagePullSecrets, PodSpecImagePullSecretsList } from './structs0';
export interface PodSpecInitContainerPort {
/**
* Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#container_port Pod#container_port}
*/
readonly containerPort: number;
/**
* What host IP to bind the external port to.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#host_ip Pod#host_ip}
*/
readonly hostIp?: string;
/**
* Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#host_port Pod#host_port}
*/
readonly hostPort?: number;
/**
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#name Pod#name}
*/
readonly name?: string;
/**
* Protocol for port. Must be UDP or TCP. Defaults to "TCP".
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#protocol Pod#protocol}
*/
readonly protocol?: string;
}
export declare function podSpecInitContainerPortToTerraform(struct?: PodSpecInitContainerPort | cdktf.IResolvable): any;
export declare function podSpecInitContainerPortToHclTerraform(struct?: PodSpecInitContainerPort | cdktf.IResolvable): any;
export declare class PodSpecInitContainerPortOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodSpecInitContainerPort | cdktf.IResolvable | undefined;
set internalValue(value: PodSpecInitContainerPort | cdktf.IResolvable | undefined);
private _containerPort?;
get containerPort(): number;
set containerPort(value: number);
get containerPortInput(): number | undefined;
private _hostIp?;
get hostIp(): string;
set hostIp(value: string);
resetHostIp(): void;
get hostIpInput(): string | undefined;
private _hostPort?;
get hostPort(): number;
set hostPort(value: number);
resetHostPort(): void;
get hostPortInput(): number | undefined;
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _protocol?;
get protocol(): string;
set protocol(value: string);
resetProtocol(): void;
get protocolInput(): string | undefined;
}
export declare class PodSpecInitContainerPortList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodSpecInitContainerPort[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodSpecInitContainerPortOutputReference;
}
export interface PodSpecInitContainerReadinessProbeExec {
/**
* Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#command Pod#command}
*/
readonly command?: string[];
}
export declare function podSpecInitContainerReadinessProbeExecToTerraform(struct?: PodSpecInitContainerReadinessProbeExecOutputReference | PodSpecInitContainerReadinessProbeExec): any;
export declare function podSpecInitContainerReadinessProbeExecToHclTerraform(struct?: PodSpecInitContainerReadinessProbeExecOutputReference | PodSpecInitContainerReadinessProbeExec): any;
export declare class PodSpecInitContainerReadinessProbeExecOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerReadinessProbeExec | undefined;
set internalValue(value: PodSpecInitContainerReadinessProbeExec | undefined);
private _command?;
get command(): string[];
set command(value: string[]);
resetCommand(): void;
get commandInput(): string[] | undefined;
}
export interface PodSpecInitContainerReadinessProbeGrpc {
/**
* Number of the port to access on the container. Number must be in the range 1 to 65535.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#port Pod#port}
*/
readonly port: number;
/**
* Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#service Pod#service}
*/
readonly service?: string;
}
export declare function podSpecInitContainerReadinessProbeGrpcToTerraform(struct?: PodSpecInitContainerReadinessProbeGrpc | cdktf.IResolvable): any;
export declare function podSpecInitContainerReadinessProbeGrpcToHclTerraform(struct?: PodSpecInitContainerReadinessProbeGrpc | cdktf.IResolvable): any;
export declare class PodSpecInitContainerReadinessProbeGrpcOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodSpecInitContainerReadinessProbeGrpc | cdktf.IResolvable | undefined;
set internalValue(value: PodSpecInitContainerReadinessProbeGrpc | cdktf.IResolvable | undefined);
private _port?;
get port(): number;
set port(value: number);
get portInput(): number | undefined;
private _service?;
get service(): string;
set service(value: string);
resetService(): void;
get serviceInput(): string | undefined;
}
export declare class PodSpecInitContainerReadinessProbeGrpcList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodSpecInitContainerReadinessProbeGrpc[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodSpecInitContainerReadinessProbeGrpcOutputReference;
}
export interface PodSpecInitContainerReadinessProbeHttpGetHttpHeader {
/**
* The header field name
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#name Pod#name}
*/
readonly name?: string;
/**
* The header field value
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#value Pod#value}
*/
readonly value?: string;
}
export declare function podSpecInitContainerReadinessProbeHttpGetHttpHeaderToTerraform(struct?: PodSpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare function podSpecInitContainerReadinessProbeHttpGetHttpHeaderToHclTerraform(struct?: PodSpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare class PodSpecInitContainerReadinessProbeHttpGetHttpHeaderOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodSpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable | undefined;
set internalValue(value: PodSpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
resetValue(): void;
get valueInput(): string | undefined;
}
export declare class PodSpecInitContainerReadinessProbeHttpGetHttpHeaderList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodSpecInitContainerReadinessProbeHttpGetHttpHeader[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodSpecInitContainerReadinessProbeHttpGetHttpHeaderOutputReference;
}
export interface PodSpecInitContainerReadinessProbeHttpGet {
/**
* Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#host Pod#host}
*/
readonly host?: string;
/**
* Path to access on the HTTP server.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#path Pod#path}
*/
readonly path?: string;
/**
* Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#port Pod#port}
*/
readonly port?: string;
/**
* Scheme to use for connecting to the host.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#scheme Pod#scheme}
*/
readonly scheme?: string;
/**
* http_header block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#http_header Pod#http_header}
*/
readonly httpHeader?: PodSpecInitContainerReadinessProbeHttpGetHttpHeader[] | cdktf.IResolvable;
}
export declare function podSpecInitContainerReadinessProbeHttpGetToTerraform(struct?: PodSpecInitContainerReadinessProbeHttpGetOutputReference | PodSpecInitContainerReadinessProbeHttpGet): any;
export declare function podSpecInitContainerReadinessProbeHttpGetToHclTerraform(struct?: PodSpecInitContainerReadinessProbeHttpGetOutputReference | PodSpecInitContainerReadinessProbeHttpGet): any;
export declare class PodSpecInitContainerReadinessProbeHttpGetOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerReadinessProbeHttpGet | undefined;
set internalValue(value: PodSpecInitContainerReadinessProbeHttpGet | undefined);
private _host?;
get host(): string;
set host(value: string);
resetHost(): void;
get hostInput(): string | undefined;
private _path?;
get path(): string;
set path(value: string);
resetPath(): void;
get pathInput(): string | undefined;
private _port?;
get port(): string;
set port(value: string);
resetPort(): void;
get portInput(): string | undefined;
private _scheme?;
get scheme(): string;
set scheme(value: string);
resetScheme(): void;
get schemeInput(): string | undefined;
private _httpHeader;
get httpHeader(): PodSpecInitContainerReadinessProbeHttpGetHttpHeaderList;
putHttpHeader(value: PodSpecInitContainerReadinessProbeHttpGetHttpHeader[] | cdktf.IResolvable): void;
resetHttpHeader(): void;
get httpHeaderInput(): cdktf.IResolvable | PodSpecInitContainerReadinessProbeHttpGetHttpHeader[] | undefined;
}
export interface PodSpecInitContainerReadinessProbeTcpSocket {
/**
* Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#port Pod#port}
*/
readonly port: string;
}
export declare function podSpecInitContainerReadinessProbeTcpSocketToTerraform(struct?: PodSpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable): any;
export declare function podSpecInitContainerReadinessProbeTcpSocketToHclTerraform(struct?: PodSpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable): any;
export declare class PodSpecInitContainerReadinessProbeTcpSocketOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodSpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable | undefined;
set internalValue(value: PodSpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable | undefined);
private _port?;
get port(): string;
set port(value: string);
get portInput(): string | undefined;
}
export declare class PodSpecInitContainerReadinessProbeTcpSocketList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodSpecInitContainerReadinessProbeTcpSocket[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodSpecInitContainerReadinessProbeTcpSocketOutputReference;
}
export interface PodSpecInitContainerReadinessProbe {
/**
* Minimum consecutive failures for the probe to be considered failed after having succeeded.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#failure_threshold Pod#failure_threshold}
*/
readonly failureThreshold?: number;
/**
* Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#initial_delay_seconds Pod#initial_delay_seconds}
*/
readonly initialDelaySeconds?: number;
/**
* How often (in seconds) to perform the probe
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#period_seconds Pod#period_seconds}
*/
readonly periodSeconds?: number;
/**
* Minimum consecutive successes for the probe to be considered successful after having failed.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#success_threshold Pod#success_threshold}
*/
readonly successThreshold?: number;
/**
* Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#timeout_seconds Pod#timeout_seconds}
*/
readonly timeoutSeconds?: number;
/**
* exec block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#exec Pod#exec}
*/
readonly exec?: PodSpecInitContainerReadinessProbeExec;
/**
* grpc block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#grpc Pod#grpc}
*/
readonly grpc?: PodSpecInitContainerReadinessProbeGrpc[] | cdktf.IResolvable;
/**
* http_get block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#http_get Pod#http_get}
*/
readonly httpGet?: PodSpecInitContainerReadinessProbeHttpGet;
/**
* tcp_socket block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#tcp_socket Pod#tcp_socket}
*/
readonly tcpSocket?: PodSpecInitContainerReadinessProbeTcpSocket[] | cdktf.IResolvable;
}
export declare function podSpecInitContainerReadinessProbeToTerraform(struct?: PodSpecInitContainerReadinessProbeOutputReference | PodSpecInitContainerReadinessProbe): any;
export declare function podSpecInitContainerReadinessProbeToHclTerraform(struct?: PodSpecInitContainerReadinessProbeOutputReference | PodSpecInitContainerReadinessProbe): any;
export declare class PodSpecInitContainerReadinessProbeOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerReadinessProbe | undefined;
set internalValue(value: PodSpecInitContainerReadinessProbe | undefined);
private _failureThreshold?;
get failureThreshold(): number;
set failureThreshold(value: number);
resetFailureThreshold(): void;
get failureThresholdInput(): number | undefined;
private _initialDelaySeconds?;
get initialDelaySeconds(): number;
set initialDelaySeconds(value: number);
resetInitialDelaySeconds(): void;
get initialDelaySecondsInput(): number | undefined;
private _periodSeconds?;
get periodSeconds(): number;
set periodSeconds(value: number);
resetPeriodSeconds(): void;
get periodSecondsInput(): number | undefined;
private _successThreshold?;
get successThreshold(): number;
set successThreshold(value: number);
resetSuccessThreshold(): void;
get successThresholdInput(): number | undefined;
private _timeoutSeconds?;
get timeoutSeconds(): number;
set timeoutSeconds(value: number);
resetTimeoutSeconds(): void;
get timeoutSecondsInput(): number | undefined;
private _exec;
get exec(): PodSpecInitContainerReadinessProbeExecOutputReference;
putExec(value: PodSpecInitContainerReadinessProbeExec): void;
resetExec(): void;
get execInput(): PodSpecInitContainerReadinessProbeExec | undefined;
private _grpc;
get grpc(): PodSpecInitContainerReadinessProbeGrpcList;
putGrpc(value: PodSpecInitContainerReadinessProbeGrpc[] | cdktf.IResolvable): void;
resetGrpc(): void;
get grpcInput(): cdktf.IResolvable | PodSpecInitContainerReadinessProbeGrpc[] | undefined;
private _httpGet;
get httpGet(): PodSpecInitContainerReadinessProbeHttpGetOutputReference;
putHttpGet(value: PodSpecInitContainerReadinessProbeHttpGet): void;
resetHttpGet(): void;
get httpGetInput(): PodSpecInitContainerReadinessProbeHttpGet | undefined;
private _tcpSocket;
get tcpSocket(): PodSpecInitContainerReadinessProbeTcpSocketList;
putTcpSocket(value: PodSpecInitContainerReadinessProbeTcpSocket[] | cdktf.IResolvable): void;
resetTcpSocket(): void;
get tcpSocketInput(): cdktf.IResolvable | PodSpecInitContainerReadinessProbeTcpSocket[] | undefined;
}
export interface PodSpecInitContainerResources {
/**
* Describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#limits Pod#limits}
*/
readonly limits?: {
[key: string]: string;
};
/**
* Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#requests Pod#requests}
*/
readonly requests?: {
[key: string]: string;
};
}
export declare function podSpecInitContainerResourcesToTerraform(struct?: PodSpecInitContainerResourcesOutputReference | PodSpecInitContainerResources): any;
export declare function podSpecInitContainerResourcesToHclTerraform(struct?: PodSpecInitContainerResourcesOutputReference | PodSpecInitContainerResources): any;
export declare class PodSpecInitContainerResourcesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerResources | undefined;
set internalValue(value: PodSpecInitContainerResources | undefined);
private _limits?;
get limits(): {
[key: string]: string;
};
set limits(value: {
[key: string]: string;
});
resetLimits(): void;
get limitsInput(): {
[key: string]: string;
} | undefined;
private _requests?;
get requests(): {
[key: string]: string;
};
set requests(value: {
[key: string]: string;
});
resetRequests(): void;
get requestsInput(): {
[key: string]: string;
} | undefined;
}
export interface PodSpecInitContainerSecurityContextCapabilities {
/**
* Added capabilities
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#add Pod#add}
*/
readonly add?: string[];
/**
* Removed capabilities
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#drop Pod#drop}
*/
readonly drop?: string[];
}
export declare function podSpecInitContainerSecurityContextCapabilitiesToTerraform(struct?: PodSpecInitContainerSecurityContextCapabilitiesOutputReference | PodSpecInitContainerSecurityContextCapabilities): any;
export declare function podSpecInitContainerSecurityContextCapabilitiesToHclTerraform(struct?: PodSpecInitContainerSecurityContextCapabilitiesOutputReference | PodSpecInitContainerSecurityContextCapabilities): any;
export declare class PodSpecInitContainerSecurityContextCapabilitiesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerSecurityContextCapabilities | undefined;
set internalValue(value: PodSpecInitContainerSecurityContextCapabilities | undefined);
private _add?;
get add(): string[];
set add(value: string[]);
resetAdd(): void;
get addInput(): string[] | undefined;
private _drop?;
get drop(): string[];
set drop(value: string[]);
resetDrop(): void;
get dropInput(): string[] | undefined;
}
export interface PodSpecInitContainerSecurityContextSeLinuxOptions {
/**
* Level is SELinux level label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#level Pod#level}
*/
readonly level?: string;
/**
* Role is a SELinux role label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#role Pod#role}
*/
readonly role?: string;
/**
* Type is a SELinux type label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#type Pod#type}
*/
readonly type?: string;
/**
* User is a SELinux user label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#user Pod#user}
*/
readonly user?: string;
}
export declare function podSpecInitContainerSecurityContextSeLinuxOptionsToTerraform(struct?: PodSpecInitContainerSecurityContextSeLinuxOptionsOutputReference | PodSpecInitContainerSecurityContextSeLinuxOptions): any;
export declare function podSpecInitContainerSecurityContextSeLinuxOptionsToHclTerraform(struct?: PodSpecInitContainerSecurityContextSeLinuxOptionsOutputReference | PodSpecInitContainerSecurityContextSeLinuxOptions): any;
export declare class PodSpecInitContainerSecurityContextSeLinuxOptionsOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerSecurityContextSeLinuxOptions | undefined;
set internalValue(value: PodSpecInitContainerSecurityContextSeLinuxOptions | undefined);
private _level?;
get level(): string;
set level(value: string);
resetLevel(): void;
get levelInput(): string | undefined;
private _role?;
get role(): string;
set role(value: string);
resetRole(): void;
get roleInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
private _user?;
get user(): string;
set user(value: string);
resetUser(): void;
get userInput(): string | undefined;
}
export interface PodSpecInitContainerSecurityContextSeccompProfile {
/**
* Localhost Profile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#localhost_profile Pod#localhost_profile}
*/
readonly localhostProfile?: string;
/**
* Type indicates which kind of seccomp profile will be applied. Valid options are: Localhost, RuntimeDefault, Unconfined.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#type Pod#type}
*/
readonly type?: string;
}
export declare function podSpecInitContainerSecurityContextSeccompProfileToTerraform(struct?: PodSpecInitContainerSecurityContextSeccompProfileOutputReference | PodSpecInitContainerSecurityContextSeccompProfile): any;
export declare function podSpecInitContainerSecurityContextSeccompProfileToHclTerraform(struct?: PodSpecInitContainerSecurityContextSeccompProfileOutputReference | PodSpecInitContainerSecurityContextSeccompProfile): any;
export declare class PodSpecInitContainerSecurityContextSeccompProfileOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerSecurityContextSeccompProfile | undefined;
set internalValue(value: PodSpecInitContainerSecurityContextSeccompProfile | undefined);
private _localhostProfile?;
get localhostProfile(): string;
set localhostProfile(value: string);
resetLocalhostProfile(): void;
get localhostProfileInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
}
export interface PodSpecInitContainerSecurityContext {
/**
* AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#allow_privilege_escalation Pod#allow_privilege_escalation}
*/
readonly allowPrivilegeEscalation?: boolean | cdktf.IResolvable;
/**
* Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#privileged Pod#privileged}
*/
readonly privileged?: boolean | cdktf.IResolvable;
/**
* Whether this container has a read-only root filesystem. Default is false.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#read_only_root_filesystem Pod#read_only_root_filesystem}
*/
readonly readOnlyRootFilesystem?: boolean | cdktf.IResolvable;
/**
* The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#run_as_group Pod#run_as_group}
*/
readonly runAsGroup?: string;
/**
* Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#run_as_non_root Pod#run_as_non_root}
*/
readonly runAsNonRoot?: boolean | cdktf.IResolvable;
/**
* The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#run_as_user Pod#run_as_user}
*/
readonly runAsUser?: string;
/**
* capabilities block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#capabilities Pod#capabilities}
*/
readonly capabilities?: PodSpecInitContainerSecurityContextCapabilities;
/**
* se_linux_options block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#se_linux_options Pod#se_linux_options}
*/
readonly seLinuxOptions?: PodSpecInitContainerSecurityContextSeLinuxOptions;
/**
* seccomp_profile block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#seccomp_profile Pod#seccomp_profile}
*/
readonly seccompProfile?: PodSpecInitContainerSecurityContextSeccompProfile;
}
export declare function podSpecInitContainerSecurityContextToTerraform(struct?: PodSpecInitContainerSecurityContextOutputReference | PodSpecInitContainerSecurityContext): any;
export declare function podSpecInitContainerSecurityContextToHclTerraform(struct?: PodSpecInitContainerSecurityContextOutputReference | PodSpecInitContainerSecurityContext): any;
export declare class PodSpecInitContainerSecurityContextOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerSecurityContext | undefined;
set internalValue(value: PodSpecInitContainerSecurityContext | undefined);
private _allowPrivilegeEscalation?;
get allowPrivilegeEscalation(): boolean | cdktf.IResolvable;
set allowPrivilegeEscalation(value: boolean | cdktf.IResolvable);
resetAllowPrivilegeEscalation(): void;
get allowPrivilegeEscalationInput(): boolean | cdktf.IResolvable | undefined;
private _privileged?;
get privileged(): boolean | cdktf.IResolvable;
set privileged(value: boolean | cdktf.IResolvable);
resetPrivileged(): void;
get privilegedInput(): boolean | cdktf.IResolvable | undefined;
private _readOnlyRootFilesystem?;
get readOnlyRootFilesystem(): boolean | cdktf.IResolvable;
set readOnlyRootFilesystem(value: boolean | cdktf.IResolvable);
resetReadOnlyRootFilesystem(): void;
get readOnlyRootFilesystemInput(): boolean | cdktf.IResolvable | undefined;
private _runAsGroup?;
get runAsGroup(): string;
set runAsGroup(value: string);
resetRunAsGroup(): void;
get runAsGroupInput(): string | undefined;
private _runAsNonRoot?;
get runAsNonRoot(): boolean | cdktf.IResolvable;
set runAsNonRoot(value: boolean | cdktf.IResolvable);
resetRunAsNonRoot(): void;
get runAsNonRootInput(): boolean | cdktf.IResolvable | undefined;
private _runAsUser?;
get runAsUser(): string;
set runAsUser(value: string);
resetRunAsUser(): void;
get runAsUserInput(): string | undefined;
private _capabilities;
get capabilities(): PodSpecInitContainerSecurityContextCapabilitiesOutputReference;
putCapabilities(value: PodSpecInitContainerSecurityContextCapabilities): void;
resetCapabilities(): void;
get capabilitiesInput(): PodSpecInitContainerSecurityContextCapabilities | undefined;
private _seLinuxOptions;
get seLinuxOptions(): PodSpecInitContainerSecurityContextSeLinuxOptionsOutputReference;
putSeLinuxOptions(value: PodSpecInitContainerSecurityContextSeLinuxOptions): void;
resetSeLinuxOptions(): void;
get seLinuxOptionsInput(): PodSpecInitContainerSecurityContextSeLinuxOptions | undefined;
private _seccompProfile;
get seccompProfile(): PodSpecInitContainerSecurityContextSeccompProfileOutputReference;
putSeccompProfile(value: PodSpecInitContainerSecurityContextSeccompProfile): void;
resetSeccompProfile(): void;
get seccompProfileInput(): PodSpecInitContainerSecurityContextSeccompProfile | undefined;
}
export interface PodSpecInitContainerStartupProbeExec {
/**
* Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#command Pod#command}
*/
readonly command?: string[];
}
export declare function podSpecInitContainerStartupProbeExecToTerraform(struct?: PodSpecInitContainerStartupProbeExecOutputReference | PodSpecInitContainerStartupProbeExec): any;
export declare function podSpecInitContainerStartupProbeExecToHclTerraform(struct?: PodSpecInitContainerStartupProbeExecOutputReference | PodSpecInitContainerStartupProbeExec): any;
export declare class PodSpecInitContainerStartupProbeExecOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodSpecInitContainerStartupProbeExec | undefined;
set internalValue(value: PodSpecInitContainerStartupProbeExec | undefined);
private _command?;
get command(): string[];
set command(value: string[]);
resetCommand(): void;
get commandInput(): string[] | undefined;
}
export interface PodSpecInitContainerStartupProbeGrpc {
/**
* Number of the port to access on the container. Number must be in the range 1 to 65535.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#port Pod#port}
*/
readonly port: number;
/**
* Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#service Pod#service}
*/
readonly service?: string;
}
export declare function podSpecInitContainerStartupProbeGrpcToTerraform(struct?: PodSpecInitContainerStartupProbeGrpc | cdktf.IResolvable): any;
export declare function podSpecInitContainerStartupProbeGrpcToHclTerraform(struct?: PodSpecInitContainerStartupProbeGrpc | cdktf.IResolvable): any;
export declare class PodSpecInitContainerStartupProbeGrpcOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodSpecInitContainerStartupProbeGrpc | cdktf.IResolvable | undefined;
set internalValue(value: PodSpecInitContainerStartupProbeGrpc | cdktf.IResolvable | undefined);
private _port?;
get port(): number;
set port(value: number);
get portInput(): number | undefined;
private _service?;
get service(): string;
set service(value: string);
resetService(): void;
get serviceInput(): string | undefined;
}
export declare class PodSpecInitContainerStartupProbeGrpcList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodSpecInitContainerStartupProbeGrpc[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodSpecInitContainerStartupProbeGrpcOutputReference;
}
export interface PodSpecInitContainerStartupProbeHttpGetHttpHeader {
/**
* The header field name
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#name Pod#name}
*/
readonly name?: string;
/**
* The header field value
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#value Pod#value}
*/
readonly value?: string;
}
export declare function podSpecInitContainerStartupProbeHttpGetHttpHeaderToTerraform(struct?: PodSpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare function podSpecInitContainerStartupProbeHttpGetHttpHeaderToHclTerraform(struct?: PodSpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare class PodSpecInitContainerStartupProbeHttpGetHttpHeaderOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodSpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable | undefined;
set internalValue(value: PodSpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
resetValue(): void;
get valueInput(): string | undefined;
}
export declare class PodSpecInitContainerStartupProbeHttpGetHttpHeaderList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodSpecInitContainerStartupProbeHttpGetHttpHeader[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodSpecInitContainerStartupProbeHttpGetHttpHeaderOutputReference;
}
export interface PodSpecInitContainerStartupProbeHttpGet {
/**
* Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#host Pod#host}
*/
readonly host?: string;
/**
* Path to access on the HTTP server.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#path Pod#path}
*/
readonly path?: string;
/**
* Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#port Pod#port}
*/
readonly port?: string;
/**
* Scheme to use for connecting to the host.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#scheme Pod#scheme}
*/
readonly scheme?: string;
/**
* http_header block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod#http_header Pod#http_header}
*/
readonly httpHeader?: PodSpecInitContainerStartupProbeHttpGetHttpHeader[] | cdktf.IResolvable;
}
export declare function podSpecInitContainerStartupProbeHttpGetToTerraform(struct?: PodSpecInitContainerStartupProbeHttpGetOutputReference | PodSpecInitContainerStartupProbeHttpGet): any;
export declare function podSpecInitContainerStartupProbeHttpGetToHclTerraform(struct?: PodSpecInitContainerStartupProbeHttpGetOutputReference | PodSpecInitContainerStartupProbeHttpGet): any;
export declare class PodSpecInitContainerStartupProbeHttpGetOutputReference ext