Documentation
¶
Index ¶
- func Sort[T Resource](res []T) ([]T, error)
- type Container
- type ContainerArgs
- type ContainerInput
- type ContainerMap
- type ContainerMapInput
- type ContainerMapOutput
- type ContainerOutput
- func (ContainerOutput) ElementType() reflect.Type
- func (o ContainerOutput) Envs() PrinterMapOutput
- func (o ContainerOutput) Files() pulumi.StringMapOutput
- func (o ContainerOutput) HasFiles() bool
- func (o ContainerOutput) Image() pulumi.StringOutput
- func (o ContainerOutput) LimitCPU() pulumi.StringPtrOutput
- func (o ContainerOutput) LimitMemory() pulumi.StringPtrOutput
- func (o ContainerOutput) Ports() PortBindingArrayOutput
- func (o ContainerOutput) ToContainerOutput() ContainerOutput
- func (o ContainerOutput) ToContainerOutputWithContext(_ context.Context) ContainerOutput
- type DepCon
- type DepGraph
- type ExposeType
- type ExposeTypeInput
- type ExposeTypeOutput
- type ExposedMonopod
- type ExposedMonopodArgs
- type ExposedMonopodArgsInput
- type ExposedMonopodArgsOutput
- func (o ExposedMonopodArgsOutput) Container() ContainerOutput
- func (ExposedMonopodArgsOutput) ElementType() reflect.Type
- func (o ExposedMonopodArgsOutput) FromCIDR() pulumi.StringOutput
- func (o ExposedMonopodArgsOutput) Hostname() pulumi.StringOutput
- func (o ExposedMonopodArgsOutput) Identity() pulumi.StringOutput
- func (o ExposedMonopodArgsOutput) IngressLabels() pulumi.StringMapOutput
- func (o ExposedMonopodArgsOutput) IngressNamespace() pulumi.StringOutput
- func (o ExposedMonopodArgsOutput) Label() pulumi.StringPtrOutput
- func (o ExposedMonopodArgsOutput) ToExposedMonopodArgsOutput() ExposedMonopodArgsOutput
- func (o ExposedMonopodArgsOutput) ToExposedMonopodArgsOutputWithContext(_ context.Context) ExposedMonopodArgsOutput
- type ExposedMonopodArgsRaw
- type ExposedMultipod
- type ExposedMultipodArgs
- type ExposedMultipodArgsInput
- type ExposedMultipodArgsOutput
- func (o ExposedMultipodArgsOutput) Containers() ContainerMapOutput
- func (ExposedMultipodArgsOutput) ElementType() reflect.Type
- func (o ExposedMultipodArgsOutput) FromCIDR() pulumi.StringOutput
- func (o ExposedMultipodArgsOutput) Hostname() pulumi.StringOutput
- func (o ExposedMultipodArgsOutput) Identity() pulumi.StringOutput
- func (o ExposedMultipodArgsOutput) IngressLabels() pulumi.StringMapOutput
- func (o ExposedMultipodArgsOutput) IngressNamespace() pulumi.StringOutput
- func (o ExposedMultipodArgsOutput) Label() pulumi.StringPtrOutput
- func (o ExposedMultipodArgsOutput) Rules() RuleArrayOutput
- func (o ExposedMultipodArgsOutput) ToExposedMultipodArgsOutput() ExposedMultipodArgsOutput
- func (o ExposedMultipodArgsOutput) ToExposedMultipodArgsOutputWithContext(_ context.Context) ExposedMultipodArgsOutput
- type ExposedMultipodArgsRaw
- type IngressMapMap
- type IngressMapMapInput
- type IngressMapMapOutput
- func (IngressMapMapOutput) ElementType() reflect.Type
- func (o IngressMapMapOutput) MapIndex(k pulumi.StringInput) netwv1.IngressMapOutput
- func (o IngressMapMapOutput) ToIngressMapMapOutput() IngressMapMapOutput
- func (o IngressMapMapOutput) ToIngressMapMapOutputWithContext(_ context.Context) IngressMapMapOutput
- type IngressSpecMap
- type IngressSpecMapInput
- type IngressSpecMapMap
- type IngressSpecMapMapInput
- type IngressSpecMapMapOutput
- func (IngressSpecMapMapOutput) ElementType() reflect.Type
- func (o IngressSpecMapMapOutput) MapIndex(k pulumi.StringInput) IngressSpecMapOutput
- func (o IngressSpecMapMapOutput) ToIngressSpecMapMapOutput() IngressSpecMapMapOutput
- func (o IngressSpecMapMapOutput) ToIngressSpecMapMapOutputWithContext(_ context.Context) IngressSpecMapMapOutput
- type IngressSpecMapOutput
- func (IngressSpecMapOutput) ElementType() reflect.Type
- func (o IngressSpecMapOutput) MapIndex(k pulumi.StringInput) netwv1.IngressSpecOutput
- func (o IngressSpecMapOutput) ToIngressSpecMapOutput() IngressSpecMapOutput
- func (o IngressSpecMapOutput) ToIngressSpecMapOutputWithContext(_ context.Context) IngressSpecMapOutput
- type Kompose
- type KomposeArgs
- type KomposeArgsInput
- type KomposeArgsOutput
- func (KomposeArgsOutput) ElementType() reflect.Type
- func (o KomposeArgsOutput) FromCIDR() pulumi.StringOutput
- func (o KomposeArgsOutput) Hostname() pulumi.StringOutput
- func (o KomposeArgsOutput) Identity() pulumi.StringOutput
- func (o KomposeArgsOutput) IngressLabels() pulumi.StringMapOutput
- func (o KomposeArgsOutput) IngressNamespace() pulumi.StringOutput
- func (o KomposeArgsOutput) Label() pulumi.StringPtrOutput
- func (o KomposeArgsOutput) Ports() PortBindingMapArrayOutput
- func (o KomposeArgsOutput) YAML() pulumi.StringOutput
- type KomposeArgsRaw
- type Node
- type ObjectMetaArray
- type ObjectMetaArrayInput
- type ObjectMetaArrayOutput
- func (ObjectMetaArrayOutput) ElementType() reflect.Type
- func (o ObjectMetaArrayOutput) Index(i pulumi.IntInput) metav1.ObjectMetaOutput
- func (o ObjectMetaArrayOutput) ToObjectMetaArrayOutput() ObjectMetaArrayOutput
- func (o ObjectMetaArrayOutput) ToObjectMetaArrayOutputWithContext(_ context.Context) ObjectMetaArrayOutput
- type ObjectMetaMap
- type ObjectMetaMapInput
- type ObjectMetaMapMap
- type ObjectMetaMapMapInput
- type ObjectMetaMapMapOutput
- func (ObjectMetaMapMapOutput) ElementType() reflect.Type
- func (o ObjectMetaMapMapOutput) MapIndex(k pulumi.StringInput) ObjectMetaMapOutput
- func (o ObjectMetaMapMapOutput) ToObjectMetaMapMapOutput() ObjectMetaMapMapOutput
- func (o ObjectMetaMapMapOutput) ToObjectMetaMapMapOutputWithContext(_ context.Context) ObjectMetaMapMapOutput
- type ObjectMetaMapOutput
- func (ObjectMetaMapOutput) ElementType() reflect.Type
- func (o ObjectMetaMapOutput) MapIndex(k pulumi.StringInput) metav1.ObjectMetaOutput
- func (o ObjectMetaMapOutput) ToObjectMetaMapOutput() ObjectMetaMapOutput
- func (o ObjectMetaMapOutput) ToObjectMetaMapOutputWithContext(_ context.Context) ObjectMetaMapOutput
- type PortBinding
- type PortBindingArgs
- type PortBindingArray
- type PortBindingArrayInput
- type PortBindingArrayOutput
- func (PortBindingArrayOutput) ElementType() reflect.Type
- func (o PortBindingArrayOutput) Index(i pulumi.IntInput) PortBindingOutput
- func (o PortBindingArrayOutput) Len() int
- func (o PortBindingArrayOutput) ToPortBindingArrayOutput() PortBindingArrayOutput
- func (o PortBindingArrayOutput) ToPortBindingArrayOutputWithContext(_ context.Context) PortBindingArrayOutput
- type PortBindingInput
- type PortBindingMapArray
- type PortBindingMapArrayInput
- type PortBindingMapArrayOutput
- func (PortBindingMapArrayOutput) ElementType() reflect.Type
- func (o PortBindingMapArrayOutput) MapIndex(k pulumi.StringInput) PortBindingArrayOutput
- func (o PortBindingMapArrayOutput) ToPortBindingMapArrayOutput() PortBindingMapArrayOutput
- func (o PortBindingMapArrayOutput) ToPortBindingMapArrayOutputWithContext(_ context.Context) PortBindingMapArrayOutput
- type PortBindingOutput
- func (o PortBindingOutput) Annotations() pulumi.StringMapOutput
- func (PortBindingOutput) ElementType() reflect.Type
- func (o PortBindingOutput) ExposeType() ExposeTypeOutput
- func (o PortBindingOutput) Port() pulumi.IntOutput
- func (o PortBindingOutput) Protocol() pulumi.StringOutput
- func (o PortBindingOutput) ToPortBindingOutput() PortBindingOutput
- func (o PortBindingOutput) ToPortBindingOutputWithContext(_ context.Context) PortBindingOutput
- type Printer
- type PrinterArgs
- type PrinterInput
- type PrinterMap
- type PrinterMapInput
- type PrinterMapOutput
- func (PrinterMapOutput) ElementType() reflect.Type
- func (o PrinterMapOutput) MapIndex(k pulumi.StringInput) PrinterOutput
- func (o PrinterMapOutput) Print(deps ObjectMetaMapMapInput) pulumi.StringMapOutput
- func (o PrinterMapOutput) ToPrinterMapOutput() PrinterMapOutput
- func (o PrinterMapOutput) ToPrinterMapOutputWithContext(_ context.Context) PrinterMapOutput
- type PrinterOutput
- type Resource
- type Rule
- type RuleArgs
- type RuleArray
- type RuleArrayInput
- type RuleArrayOutput
- type RuleInput
- type RuleOutput
- func (o RuleOutput) ElementType() reflect.Type
- func (o RuleOutput) From() pulumi.StringOutput
- func (o RuleOutput) On() pulumi.IntOutput
- func (o RuleOutput) Protocol() pulumi.StringOutput
- func (o RuleOutput) To() pulumi.StringOutput
- func (o RuleOutput) ToContainerOutput() RuleOutput
- func (o RuleOutput) ToContainerOutputWithContext(_ context.Context) RuleOutput
- type ServiceMapMap
- type ServiceMapMapInput
- type ServiceMapMapOutput
- func (ServiceMapMapOutput) ElementType() reflect.Type
- func (o ServiceMapMapOutput) MapIndex(k pulumi.StringInput) corev1.ServiceMapOutput
- func (o ServiceMapMapOutput) ToServiceMapMapOutput() ServiceMapMapOutput
- func (o ServiceMapMapOutput) ToServiceMapMapOutputWithContext(_ context.Context) ServiceMapMapOutput
- type ServiceSpecMap
- type ServiceSpecMapInput
- type ServiceSpecMapMap
- type ServiceSpecMapMapInput
- type ServiceSpecMapMapOutput
- func (ServiceSpecMapMapOutput) ElementType() reflect.Type
- func (o ServiceSpecMapMapOutput) MapIndex(k pulumi.StringInput) ServiceSpecMapOutput
- func (o ServiceSpecMapMapOutput) ToServiceSpecMapMapOutput() ServiceSpecMapMapOutput
- func (o ServiceSpecMapMapOutput) ToServiceSpecMapMapOutputWithContext(_ context.Context) ServiceSpecMapMapOutput
- type ServiceSpecMapOutput
- func (ServiceSpecMapOutput) ElementType() reflect.Type
- func (o ServiceSpecMapOutput) MapIndex(k pulumi.StringInput) corev1.ServiceSpecOutput
- func (o ServiceSpecMapOutput) ToServiceSpecMapOutput() ServiceSpecMapOutput
- func (o ServiceSpecMapOutput) ToServiceSpecMapOutputWithContext(_ context.Context) ServiceSpecMapOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶ added in v0.4.0
type Container struct {
// Image to run (e.g. ctferio/chall-manager:latest).
Image string `pulumi:"image"`
// Ports to listen on.
Ports []PortBinding `pulumi:"ports"`
// Envs is a map of environment variable that is passed to the container.
// Leveraging the printers, these can be provisioned with an outer
// service name.
Envs map[string]Printer `pulumi:"envs"`
// Files is a map of absolute paths to a file and its content.
Files map[string]string `pulumi:"files"`
// LimitCPU is an optional (yet recommended) resource limit of CPU usage.
LimitCPU *string `pulumi:"limitCpu"`
// LimitMemory is an optional (yet recommended) resource limit of memory
// (RAM) usage.
LimitMemory *string `pulumi:"limitMemory"`
}
Container represents a computing unit that is deployed on Kubernetes (e.g. a Docker container by default).
type ContainerArgs ¶ added in v0.4.0
type ContainerArgs struct {
// Image to run (e.g. ctferio/chall-manager:latest).
Image pulumi.StringInput `pulumi:"image"`
// Ports to listen on.
Ports PortBindingArrayInput `pulumi:"ports"`
// Envs is a map of environment variable that is passed to the container.
// Leveraging the printers, these can be provisioned with an outer
// service name.
Envs PrinterMapInput `pulumi:"envs"`
// Files is a map of absolute paths to a file and its content.
Files pulumi.StringMapInput `pulumi:"files"`
// LimitCPU is an optional (yet recommended) resource limit of CPU usage.
LimitCPU pulumi.StringPtrInput `pulumi:"limitCpu"`
// LimitMemory is an optional (yet recommended) resource limit of memory
// (RAM) usage.
LimitMemory pulumi.StringPtrInput `pulumi:"limitMemory"`
}
ContainerArgs is the input of Container, i.e. a computing unit that is deployed on Kubernetes (e.g. a Docker container by default).
func (ContainerArgs) ElementType ¶ added in v0.4.0
func (ContainerArgs) ElementType() reflect.Type
func (ContainerArgs) ToContainerOutput ¶ added in v0.4.0
func (i ContainerArgs) ToContainerOutput() ContainerOutput
func (ContainerArgs) ToContainerOutputWithContext ¶ added in v0.4.0
func (i ContainerArgs) ToContainerOutputWithContext(ctx context.Context) ContainerOutput
type ContainerInput ¶ added in v0.4.0
type ContainerInput interface {
pulumi.Input
ToContainerOutput() ContainerOutput
ToContainerOutputWithContext(context.Context) ContainerOutput
}
type ContainerMap ¶ added in v0.4.0
type ContainerMap map[string]ContainerInput
func (ContainerMap) ElementType ¶ added in v0.4.0
func (ContainerMap) ElementType() reflect.Type
func (ContainerMap) ToContainerMapOutput ¶ added in v0.4.0
func (i ContainerMap) ToContainerMapOutput() ContainerMapOutput
func (ContainerMap) ToContainerMapOutputWithContext ¶ added in v0.4.0
func (i ContainerMap) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput
type ContainerMapInput ¶ added in v0.4.0
type ContainerMapInput interface {
pulumi.Input
ToContainerMapOutput() ContainerMapOutput
ToContainerMapOutputWithContext(context.Context) ContainerMapOutput
}
type ContainerMapOutput ¶ added in v0.4.0
type ContainerMapOutput struct{ *pulumi.OutputState }
func (ContainerMapOutput) ElementType ¶ added in v0.4.0
func (ContainerMapOutput) ElementType() reflect.Type
func (ContainerMapOutput) MapIndex ¶ added in v0.4.0
func (o ContainerMapOutput) MapIndex(k pulumi.StringInput) ContainerOutput
func (ContainerMapOutput) ToContainerMapOutput ¶ added in v0.4.0
func (o ContainerMapOutput) ToContainerMapOutput() ContainerMapOutput
func (ContainerMapOutput) ToContainerMapOutputWithContext ¶ added in v0.4.0
func (o ContainerMapOutput) ToContainerMapOutputWithContext(_ context.Context) ContainerMapOutput
type ContainerOutput ¶ added in v0.4.0
type ContainerOutput struct{ *pulumi.OutputState }
func (ContainerOutput) ElementType ¶ added in v0.4.0
func (ContainerOutput) ElementType() reflect.Type
func (ContainerOutput) Envs ¶ added in v0.4.0
func (o ContainerOutput) Envs() PrinterMapOutput
Envs is a map of environment variable that is passed to the container. Leveraging the printers, these can be provisioned with an outer service name.
func (ContainerOutput) Files ¶ added in v0.4.0
func (o ContainerOutput) Files() pulumi.StringMapOutput
Files is a map of absolute paths to a file and its content.
func (ContainerOutput) HasFiles ¶ added in v0.4.0
func (o ContainerOutput) HasFiles() bool
HasFiles is a helper that returns whether there are files known. It can be used to determine whether to create ConfigMaps and mount volumes to containers (else it would cost time and resources).
func (ContainerOutput) Image ¶ added in v0.4.0
func (o ContainerOutput) Image() pulumi.StringOutput
Image to run (e.g. ctferio/chall-manager:latest).
func (ContainerOutput) LimitCPU ¶ added in v0.4.0
func (o ContainerOutput) LimitCPU() pulumi.StringPtrOutput
LimitCPU is an optional (yet recommended) resource limit of CPU usage.
func (ContainerOutput) LimitMemory ¶ added in v0.4.0
func (o ContainerOutput) LimitMemory() pulumi.StringPtrOutput
LimitMemory is an optional (yet recommended) resource limit of memory (RAM) usage.
func (ContainerOutput) Ports ¶ added in v0.4.0
func (o ContainerOutput) Ports() PortBindingArrayOutput
Ports to listen on.
func (ContainerOutput) ToContainerOutput ¶ added in v0.4.0
func (o ContainerOutput) ToContainerOutput() ContainerOutput
func (ContainerOutput) ToContainerOutputWithContext ¶ added in v0.4.0
func (o ContainerOutput) ToContainerOutputWithContext(_ context.Context) ContainerOutput
type DepCon ¶ added in v0.4.0
type DepCon struct {
// contains filtered or unexported fields
}
func (*DepCon) GetDependencies ¶ added in v0.4.0
type DepGraph ¶ added in v0.4.0
type DepGraph[T Resource] struct { // Nodes maps a Node per its resource ID Nodes map[string]*Node[T] }
DepGraph is a dependency graph of resource.
func NewDepGraph ¶ added in v0.4.0
NewDepGraph builds a dependency graph of resource, with for each both the dependencies and dependents. It resolves dependencies thus ensure there is no missing nodes in the graph.
type ExposeType ¶
type ExposeType string
ExposeType represents an exposure of a PortBinding.
const ( // ExposeInternal defines a non-exposed [PortBinding]. ExposeInternal ExposeType = "" // ExposeNodePort defines a [PortBinding] that is exposed through // a Kubernetes Service typed "NodePort". ExposeNodePort ExposeType = "NodePort" // ExposeIngress defines a [PortBinding] that is exposed through // a Kubernetes Ingress. ExposeIngress ExposeType = "Ingress" // ExposeLoadBalancer defines a [PortBinding] that is exposed through // a Kubernetes Service typed "LoadBalancer". ExposeLoadBalancer ExposeType = "LoadBalancer" )
func (ExposeType) ElementType ¶ added in v0.4.0
func (ExposeType) ElementType() reflect.Type
func (ExposeType) ToExposeTypeOutput ¶ added in v0.4.0
func (i ExposeType) ToExposeTypeOutput() ExposeTypeOutput
func (ExposeType) ToExposeTypeOutputWithContext ¶ added in v0.4.0
func (i ExposeType) ToExposeTypeOutputWithContext(ctx context.Context) ExposeTypeOutput
type ExposeTypeInput ¶ added in v0.4.0
type ExposeTypeInput interface {
pulumi.Input
ToExposeTypeOutput() ExposeTypeOutput
ToExposeTypeOutputWithContext(context.Context) ExposeTypeOutput
}
type ExposeTypeOutput ¶ added in v0.4.0
type ExposeTypeOutput struct{ *pulumi.OutputState }
func (ExposeTypeOutput) ElementType ¶ added in v0.4.0
func (o ExposeTypeOutput) ElementType() reflect.Type
func (ExposeTypeOutput) Raw ¶ added in v0.4.0
func (o ExposeTypeOutput) Raw() ExposeType
Raw is a synchronous helper that returns the string value of the ExposeTypeOutput, such that it could be manipulated as a ExposeType directly (e.g. switch statements).
func (ExposeTypeOutput) ToExposeTypeOutput ¶ added in v0.4.0
func (o ExposeTypeOutput) ToExposeTypeOutput() ExposeTypeOutput
func (ExposeTypeOutput) ToExposeTypeOutputWithContext ¶ added in v0.4.0
func (o ExposeTypeOutput) ToExposeTypeOutputWithContext(_ context.Context) ExposeTypeOutput
type ExposedMonopod ¶
type ExposedMonopod struct {
pulumi.ResourceState
// URLs exposed by the container.
URLs pulumi.StringMapOutput
// contains filtered or unexported fields
}
func NewExposedMonopod ¶
func NewExposedMonopod(ctx *pulumi.Context, name string, args *ExposedMonopodArgs, opts ...pulumi.ResourceOption) (*ExposedMonopod, error)
type ExposedMonopodArgs ¶
type ExposedMonopodArgs struct {
Identity pulumi.StringInput `pulumi:"identity"`
Label pulumi.StringPtrInput `pulumi:"label"`
Hostname pulumi.StringInput `pulumi:"hostname"`
Container ContainerInput `pulumi:"container"`
FromCIDR pulumi.StringInput `pulumi:"fromCIDR"`
IngressNamespace pulumi.StringInput `pulumi:"ingressNamespace"`
IngressLabels pulumi.StringMapInput `pulumi:"ingressLabels"`
}
func (ExposedMonopodArgs) ElementType ¶ added in v0.4.0
func (ExposedMonopodArgs) ElementType() reflect.Type
func (ExposedMonopodArgs) ToExposedMonopodArgsOutput ¶ added in v0.4.0
func (i ExposedMonopodArgs) ToExposedMonopodArgsOutput() ExposedMonopodArgsOutput
func (ExposedMonopodArgs) ToExposedMonopodArgsOutputWithContext ¶ added in v0.4.0
func (i ExposedMonopodArgs) ToExposedMonopodArgsOutputWithContext(ctx context.Context) ExposedMonopodArgsOutput
type ExposedMonopodArgsInput ¶ added in v0.4.0
type ExposedMonopodArgsInput interface {
pulumi.Input
ToExposedMonopodArgsOutput() ExposedMonopodArgsOutput
ToExposedMonopodArgsOutputWithContext(context.Context) ExposedMonopodArgsOutput
}
type ExposedMonopodArgsOutput ¶ added in v0.4.0
type ExposedMonopodArgsOutput struct{ *pulumi.OutputState }
func (ExposedMonopodArgsOutput) Container ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) Container() ContainerOutput
func (ExposedMonopodArgsOutput) ElementType ¶ added in v0.4.0
func (ExposedMonopodArgsOutput) ElementType() reflect.Type
func (ExposedMonopodArgsOutput) FromCIDR ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) FromCIDR() pulumi.StringOutput
func (ExposedMonopodArgsOutput) Hostname ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) Hostname() pulumi.StringOutput
func (ExposedMonopodArgsOutput) Identity ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) Identity() pulumi.StringOutput
func (ExposedMonopodArgsOutput) IngressLabels ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) IngressLabels() pulumi.StringMapOutput
func (ExposedMonopodArgsOutput) IngressNamespace ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) IngressNamespace() pulumi.StringOutput
func (ExposedMonopodArgsOutput) Label ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) Label() pulumi.StringPtrOutput
func (ExposedMonopodArgsOutput) ToExposedMonopodArgsOutput ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) ToExposedMonopodArgsOutput() ExposedMonopodArgsOutput
func (ExposedMonopodArgsOutput) ToExposedMonopodArgsOutputWithContext ¶ added in v0.4.0
func (o ExposedMonopodArgsOutput) ToExposedMonopodArgsOutputWithContext(_ context.Context) ExposedMonopodArgsOutput
type ExposedMonopodArgsRaw ¶ added in v0.4.0
type ExposedMonopodArgsRaw struct {
Identity string `pulumi:"identity"`
Label *string `pulumi:"label"`
Hostname string `pulumi:"hostname"`
Container Container `pulumi:"container"`
FromCIDR string `pulumi:"fromCIDR"`
IngressNamespace string `pulumi:"ingressNamespace"`
IngressLabels map[string]string `pulumi:"ingressLabels"`
}
type ExposedMultipod ¶ added in v0.4.0
type ExposedMultipod struct {
pulumi.ResourceState
// URLs is a map of URL exposed by a container, identified by its name.
URLs pulumi.StringMapMapOutput
// contains filtered or unexported fields
}
func NewExposedMultipod ¶ added in v0.4.0
func NewExposedMultipod(ctx *pulumi.Context, name string, args *ExposedMultipodArgs, opts ...pulumi.ResourceOption) (*ExposedMultipod, error)
NewExposedMultipod builds the Kubernetes resources for an *ExposedMultipodArgsRaw. It fits the best cases of advanced web setups, cloud-based infrastructures, etc.
type ExposedMultipodArgs ¶ added in v0.4.0
type ExposedMultipodArgs struct {
Identity pulumi.StringInput `pulumi:"identity"`
Label pulumi.StringPtrInput `pulumi:"label"`
Hostname pulumi.StringInput `pulumi:"hostname"`
Containers ContainerMapInput `pulumi:"containers"`
Rules RuleArrayInput `pulumi:"rules"`
FromCIDR pulumi.StringInput `pulumi:"fromCIDR"`
IngressNamespace pulumi.StringInput `pulumi:"ingressNamespace"`
IngressLabels pulumi.StringMapInput `pulumi:"ingressLabels"`
}
func (ExposedMultipodArgs) ElementType ¶ added in v0.4.0
func (ExposedMultipodArgs) ElementType() reflect.Type
func (ExposedMultipodArgs) ToExposedMultipodArgsOutput ¶ added in v0.4.0
func (i ExposedMultipodArgs) ToExposedMultipodArgsOutput() ExposedMultipodArgsOutput
func (ExposedMultipodArgs) ToExposedMultipodArgsOutputWithContext ¶ added in v0.4.0
func (i ExposedMultipodArgs) ToExposedMultipodArgsOutputWithContext(ctx context.Context) ExposedMultipodArgsOutput
type ExposedMultipodArgsInput ¶ added in v0.4.0
type ExposedMultipodArgsInput interface {
pulumi.Input
ToExposedMultipodArgsOutput() ExposedMultipodArgsOutput
ToExposedMultipodArgsOutputWithContext(context.Context) ExposedMultipodArgsOutput
}
type ExposedMultipodArgsOutput ¶ added in v0.4.0
type ExposedMultipodArgsOutput struct{ *pulumi.OutputState }
func (ExposedMultipodArgsOutput) Containers ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) Containers() ContainerMapOutput
func (ExposedMultipodArgsOutput) ElementType ¶ added in v0.4.0
func (ExposedMultipodArgsOutput) ElementType() reflect.Type
func (ExposedMultipodArgsOutput) FromCIDR ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) FromCIDR() pulumi.StringOutput
func (ExposedMultipodArgsOutput) Hostname ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) Hostname() pulumi.StringOutput
func (ExposedMultipodArgsOutput) Identity ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) Identity() pulumi.StringOutput
func (ExposedMultipodArgsOutput) IngressLabels ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) IngressLabels() pulumi.StringMapOutput
func (ExposedMultipodArgsOutput) IngressNamespace ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) IngressNamespace() pulumi.StringOutput
func (ExposedMultipodArgsOutput) Label ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) Label() pulumi.StringPtrOutput
func (ExposedMultipodArgsOutput) Rules ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) Rules() RuleArrayOutput
func (ExposedMultipodArgsOutput) ToExposedMultipodArgsOutput ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) ToExposedMultipodArgsOutput() ExposedMultipodArgsOutput
func (ExposedMultipodArgsOutput) ToExposedMultipodArgsOutputWithContext ¶ added in v0.4.0
func (o ExposedMultipodArgsOutput) ToExposedMultipodArgsOutputWithContext(_ context.Context) ExposedMultipodArgsOutput
type ExposedMultipodArgsRaw ¶ added in v0.4.0
type ExposedMultipodArgsRaw struct {
Identity string `pulumi:"identity"`
Label *string `pulumi:"label"`
Hostname string `pulumi:"hostname"`
Containers map[string]Container `pulumi:"containers"`
Rules []Rule `pulumi:"rules"`
FromCIDR string `pulumi:"fromCIDR"`
IngressNamespace string `pulumi:"ingressNamespace"`
IngressLabels map[string]string `pulumi:"ingressLabels"`
}
type IngressMapMap ¶ added in v0.4.0
func (IngressMapMap) ElementType ¶ added in v0.4.0
func (IngressMapMap) ElementType() reflect.Type
func (IngressMapMap) ToIngressMapMapOutput ¶ added in v0.4.0
func (i IngressMapMap) ToIngressMapMapOutput() IngressMapMapOutput
func (IngressMapMap) ToIngressMapMapOutputWithContext ¶ added in v0.4.0
func (i IngressMapMap) ToIngressMapMapOutputWithContext(ctx context.Context) IngressMapMapOutput
type IngressMapMapInput ¶ added in v0.4.0
type IngressMapMapInput interface {
pulumi.Input
ToIngressMapMapOutput() IngressMapMapOutput
ToIngressMapMapOutputWithContext(context.Context) IngressMapMapOutput
}
type IngressMapMapOutput ¶ added in v0.4.0
type IngressMapMapOutput struct{ *pulumi.OutputState }
func (IngressMapMapOutput) ElementType ¶ added in v0.4.0
func (IngressMapMapOutput) ElementType() reflect.Type
func (IngressMapMapOutput) MapIndex ¶ added in v0.4.0
func (o IngressMapMapOutput) MapIndex(k pulumi.StringInput) netwv1.IngressMapOutput
func (IngressMapMapOutput) ToIngressMapMapOutput ¶ added in v0.4.0
func (o IngressMapMapOutput) ToIngressMapMapOutput() IngressMapMapOutput
func (IngressMapMapOutput) ToIngressMapMapOutputWithContext ¶ added in v0.4.0
func (o IngressMapMapOutput) ToIngressMapMapOutputWithContext(_ context.Context) IngressMapMapOutput
type IngressSpecMap ¶ added in v0.4.0
type IngressSpecMap map[string]netwv1.IngressSpecInput
func (IngressSpecMap) ElementType ¶ added in v0.4.0
func (IngressSpecMap) ElementType() reflect.Type
func (IngressSpecMap) ToIngressSpecMapOutput ¶ added in v0.4.0
func (i IngressSpecMap) ToIngressSpecMapOutput() IngressSpecMapOutput
func (IngressSpecMap) ToIngressSpecMapOutputWithContext ¶ added in v0.4.0
func (i IngressSpecMap) ToIngressSpecMapOutputWithContext(ctx context.Context) IngressSpecMapOutput
type IngressSpecMapInput ¶ added in v0.4.0
type IngressSpecMapInput interface {
pulumi.Input
ToIngressSpecMapOutput() IngressSpecMapOutput
ToIngressSpecMapOutputWithContext(context.Context) IngressSpecMapOutput
}
type IngressSpecMapMap ¶ added in v0.4.0
type IngressSpecMapMap map[string]map[string]netwv1.IngressSpec
func (IngressSpecMapMap) ElementType ¶ added in v0.4.0
func (IngressSpecMapMap) ElementType() reflect.Type
func (IngressSpecMapMap) ToIngressSpecMapMapOutput ¶ added in v0.4.0
func (i IngressSpecMapMap) ToIngressSpecMapMapOutput() IngressSpecMapMapOutput
func (IngressSpecMapMap) ToIngressSpecMapMapOutputWithContext ¶ added in v0.4.0
func (i IngressSpecMapMap) ToIngressSpecMapMapOutputWithContext(ctx context.Context) IngressSpecMapMapOutput
type IngressSpecMapMapInput ¶ added in v0.4.0
type IngressSpecMapMapInput interface {
pulumi.Input
ToIngressSpecMapMapOutput() IngressSpecMapMapOutput
ToIngressSpecMapMapOutputWithContext(context.Context) IngressSpecMapMapOutput
}
type IngressSpecMapMapOutput ¶ added in v0.4.0
type IngressSpecMapMapOutput struct{ *pulumi.OutputState }
func (IngressSpecMapMapOutput) ElementType ¶ added in v0.4.0
func (IngressSpecMapMapOutput) ElementType() reflect.Type
func (IngressSpecMapMapOutput) MapIndex ¶ added in v0.4.0
func (o IngressSpecMapMapOutput) MapIndex(k pulumi.StringInput) IngressSpecMapOutput
func (IngressSpecMapMapOutput) ToIngressSpecMapMapOutput ¶ added in v0.4.0
func (o IngressSpecMapMapOutput) ToIngressSpecMapMapOutput() IngressSpecMapMapOutput
func (IngressSpecMapMapOutput) ToIngressSpecMapMapOutputWithContext ¶ added in v0.4.0
func (o IngressSpecMapMapOutput) ToIngressSpecMapMapOutputWithContext(_ context.Context) IngressSpecMapMapOutput
type IngressSpecMapOutput ¶ added in v0.4.0
type IngressSpecMapOutput struct{ *pulumi.OutputState }
func (IngressSpecMapOutput) ElementType ¶ added in v0.4.0
func (IngressSpecMapOutput) ElementType() reflect.Type
func (IngressSpecMapOutput) MapIndex ¶ added in v0.4.0
func (o IngressSpecMapOutput) MapIndex(k pulumi.StringInput) netwv1.IngressSpecOutput
func (IngressSpecMapOutput) ToIngressSpecMapOutput ¶ added in v0.4.0
func (o IngressSpecMapOutput) ToIngressSpecMapOutput() IngressSpecMapOutput
func (IngressSpecMapOutput) ToIngressSpecMapOutputWithContext ¶ added in v0.4.0
func (o IngressSpecMapOutput) ToIngressSpecMapOutputWithContext(_ context.Context) IngressSpecMapOutput
type Kompose ¶ added in v0.4.0
type Kompose struct {
pulumi.ResourceState
URLs pulumi.StringMapMapOutput
// contains filtered or unexported fields
}
func NewKompose ¶ added in v0.4.0
func NewKompose(ctx *pulumi.Context, name string, args *KomposeArgs, opts ...pulumi.ResourceOption) (*Kompose, error)
NewKompose deploys a docker compose manifest on Kubernetes, using Kompose. It creates a namespace per instance, and isolate it from the others.
WARNING: does not support [env_file].
type KomposeArgs ¶ added in v0.4.0
type KomposeArgs struct {
Identity pulumi.StringInput `pulumi:"identity"`
Label pulumi.StringPtrInput `pulumi:"label"`
Hostname pulumi.StringInput `pulumi:"hostname"`
// YAML content of a docker-compose.yaml file.
YAML pulumi.StringInput `pulumi:"yaml"`
// Ports define the binding per each image for how to expose
// the containers.
// Nonetheless, as per Kompose behavior, it creates 1 Service
// for all ports, so the underlying Service type will be driven
// by the latest NodePort or LoadBalancer defined in the array.
// See #905 for more context.
Ports PortBindingMapArrayInput `pulumi:"ports"`
FromCIDR pulumi.StringInput `pulumi:"fromCIDR"`
IngressNamespace pulumi.StringInput `pulumi:"ingressNamespace"`
IngressLabels pulumi.StringMapInput `pulumi:"ingressLabels"`
}
func (KomposeArgs) ElementType ¶ added in v0.4.0
func (KomposeArgs) ElementType() reflect.Type
func (KomposeArgs) ToKomposeArgsOutput ¶ added in v0.4.0
func (i KomposeArgs) ToKomposeArgsOutput() KomposeArgsOutput
func (KomposeArgs) ToKomposeArgsOutputWithContext ¶ added in v0.4.0
func (i KomposeArgs) ToKomposeArgsOutputWithContext(ctx context.Context) KomposeArgsOutput
type KomposeArgsInput ¶ added in v0.4.0
type KomposeArgsInput interface {
pulumi.Input
ToKomposeArgsOutput() KomposeArgsOutput
ToKomposeArgsOutputWithContext(context.Context) KomposeArgsOutput
}
type KomposeArgsOutput ¶ added in v0.4.0
type KomposeArgsOutput struct{ *pulumi.OutputState }
func (KomposeArgsOutput) ElementType ¶ added in v0.4.0
func (KomposeArgsOutput) ElementType() reflect.Type
func (KomposeArgsOutput) FromCIDR ¶ added in v0.4.0
func (o KomposeArgsOutput) FromCIDR() pulumi.StringOutput
func (KomposeArgsOutput) Hostname ¶ added in v0.4.0
func (o KomposeArgsOutput) Hostname() pulumi.StringOutput
func (KomposeArgsOutput) Identity ¶ added in v0.4.0
func (o KomposeArgsOutput) Identity() pulumi.StringOutput
func (KomposeArgsOutput) IngressLabels ¶ added in v0.4.0
func (o KomposeArgsOutput) IngressLabels() pulumi.StringMapOutput
func (KomposeArgsOutput) IngressNamespace ¶ added in v0.4.0
func (o KomposeArgsOutput) IngressNamespace() pulumi.StringOutput
func (KomposeArgsOutput) Label ¶ added in v0.4.0
func (o KomposeArgsOutput) Label() pulumi.StringPtrOutput
func (KomposeArgsOutput) Ports ¶ added in v0.4.0
func (o KomposeArgsOutput) Ports() PortBindingMapArrayOutput
func (KomposeArgsOutput) YAML ¶ added in v0.4.0
func (o KomposeArgsOutput) YAML() pulumi.StringOutput
type KomposeArgsRaw ¶ added in v0.4.0
type KomposeArgsRaw struct {
Identity string `pulumi:"identity"`
Label *string `pulumi:"label"`
Hostname string `pulumi:"hostname"`
// YAML content of a docker-compose.yaml file.
YAML string `pulumi:"yaml"`
Ports map[string][]PortBinding `pulumi:"ports"`
FromCIDR string `pulumi:"fromCIDR"`
IngressNamespace string `pulumi:"ingressNamespace"`
IngressLabels map[string]string `pulumi:"ingressLabels"`
}
type ObjectMetaArray ¶ added in v0.4.0
type ObjectMetaArray map[string]metav1.ObjectMetaInput
func (ObjectMetaArray) ElementType ¶ added in v0.4.0
func (ObjectMetaArray) ElementType() reflect.Type
func (ObjectMetaArray) ToObjectMetaArrayOutput ¶ added in v0.4.0
func (i ObjectMetaArray) ToObjectMetaArrayOutput() ObjectMetaArrayOutput
func (ObjectMetaArray) ToObjectMetaArrayOutputWithContext ¶ added in v0.4.0
func (i ObjectMetaArray) ToObjectMetaArrayOutputWithContext(ctx context.Context) ObjectMetaArrayOutput
type ObjectMetaArrayInput ¶ added in v0.4.0
type ObjectMetaArrayInput interface {
pulumi.Input
ToObjectMetaArrayOutput() ObjectMetaArrayOutput
ToObjectMetaArrayOutputWithContext(context.Context) ObjectMetaArrayOutput
}
type ObjectMetaArrayOutput ¶ added in v0.4.0
type ObjectMetaArrayOutput struct{ *pulumi.OutputState }
func (ObjectMetaArrayOutput) ElementType ¶ added in v0.4.0
func (ObjectMetaArrayOutput) ElementType() reflect.Type
func (ObjectMetaArrayOutput) Index ¶ added in v0.4.0
func (o ObjectMetaArrayOutput) Index(i pulumi.IntInput) metav1.ObjectMetaOutput
func (ObjectMetaArrayOutput) ToObjectMetaArrayOutput ¶ added in v0.4.0
func (o ObjectMetaArrayOutput) ToObjectMetaArrayOutput() ObjectMetaArrayOutput
func (ObjectMetaArrayOutput) ToObjectMetaArrayOutputWithContext ¶ added in v0.4.0
func (o ObjectMetaArrayOutput) ToObjectMetaArrayOutputWithContext(_ context.Context) ObjectMetaArrayOutput
type ObjectMetaMap ¶ added in v0.4.0
type ObjectMetaMap map[string]metav1.ObjectMetaInput
func (ObjectMetaMap) ElementType ¶ added in v0.4.0
func (ObjectMetaMap) ElementType() reflect.Type
func (ObjectMetaMap) ToObjectMetaMapOutput ¶ added in v0.4.0
func (i ObjectMetaMap) ToObjectMetaMapOutput() ObjectMetaMapOutput
func (ObjectMetaMap) ToObjectMetaMapOutputWithContext ¶ added in v0.4.0
func (i ObjectMetaMap) ToObjectMetaMapOutputWithContext(ctx context.Context) ObjectMetaMapOutput
type ObjectMetaMapInput ¶ added in v0.4.0
type ObjectMetaMapInput interface {
pulumi.Input
ToObjectMetaMapOutput() ObjectMetaMapOutput
ToObjectMetaMapOutputWithContext(context.Context) ObjectMetaMapOutput
}
type ObjectMetaMapMap ¶ added in v0.4.0
type ObjectMetaMapMap map[string]map[string]metav1.ObjectMeta
func (ObjectMetaMapMap) ElementType ¶ added in v0.4.0
func (ObjectMetaMapMap) ElementType() reflect.Type
func (ObjectMetaMapMap) ToObjectMetaMapMapOutput ¶ added in v0.4.0
func (i ObjectMetaMapMap) ToObjectMetaMapMapOutput() ObjectMetaMapMapOutput
func (ObjectMetaMapMap) ToObjectMetaMapMapOutputWithContext ¶ added in v0.4.0
func (i ObjectMetaMapMap) ToObjectMetaMapMapOutputWithContext(ctx context.Context) ObjectMetaMapMapOutput
type ObjectMetaMapMapInput ¶ added in v0.4.0
type ObjectMetaMapMapInput interface {
pulumi.Input
ToObjectMetaMapMapOutput() ObjectMetaMapMapOutput
ToObjectMetaMapMapOutputWithContext(context.Context) ObjectMetaMapMapOutput
}
type ObjectMetaMapMapOutput ¶ added in v0.4.0
type ObjectMetaMapMapOutput struct{ *pulumi.OutputState }
func (ObjectMetaMapMapOutput) ElementType ¶ added in v0.4.0
func (ObjectMetaMapMapOutput) ElementType() reflect.Type
func (ObjectMetaMapMapOutput) MapIndex ¶ added in v0.4.0
func (o ObjectMetaMapMapOutput) MapIndex(k pulumi.StringInput) ObjectMetaMapOutput
func (ObjectMetaMapMapOutput) ToObjectMetaMapMapOutput ¶ added in v0.4.0
func (o ObjectMetaMapMapOutput) ToObjectMetaMapMapOutput() ObjectMetaMapMapOutput
func (ObjectMetaMapMapOutput) ToObjectMetaMapMapOutputWithContext ¶ added in v0.4.0
func (o ObjectMetaMapMapOutput) ToObjectMetaMapMapOutputWithContext(_ context.Context) ObjectMetaMapMapOutput
type ObjectMetaMapOutput ¶ added in v0.4.0
type ObjectMetaMapOutput struct{ *pulumi.OutputState }
func (ObjectMetaMapOutput) ElementType ¶ added in v0.4.0
func (ObjectMetaMapOutput) ElementType() reflect.Type
func (ObjectMetaMapOutput) MapIndex ¶ added in v0.4.0
func (o ObjectMetaMapOutput) MapIndex(k pulumi.StringInput) metav1.ObjectMetaOutput
func (ObjectMetaMapOutput) ToObjectMetaMapOutput ¶ added in v0.4.0
func (o ObjectMetaMapOutput) ToObjectMetaMapOutput() ObjectMetaMapOutput
func (ObjectMetaMapOutput) ToObjectMetaMapOutputWithContext ¶ added in v0.4.0
func (o ObjectMetaMapOutput) ToObjectMetaMapOutputWithContext(_ context.Context) ObjectMetaMapOutput
type PortBinding ¶ added in v0.4.0
type PortBinding struct {
// Port the [Container] listens on.
Port int `pulumi:"port"`
// Protocol to comunicate with the port.
// Defaults to TCP.
Protocol string `pulumi:"protocol"`
// ExposeType is the [ExposeType] strategy to expose the port.
ExposeType ExposeType `pulumi:"exposeType"`
// Annotations is an optional k=v map of annotations to set on
// the exposing resource (i.e. service or ingress) that exposes the container
// on this port.
//
// For instance, if the ExposeType=ExposeIngress, then the Annotations are
// passed to the Ingress resource.
// That could be a place to define pulumi.com/skipAwait=true if needed
// References:
// - https://www.pulumi.com/blog/improving-kubernetes-management-with-pulumis-await-logic/
// - https://github.com/pulumi/pulumi-kubernetes/issues/1812
Annotations map[string]string `pulumi:"annotations"`
}
PortBinding represents the exposure of a Container on a <port,protocol>.
func (PortBinding) Check ¶ added in v0.4.0
func (pb PortBinding) Check() (err error)
Check ensures the PortBinding configuration is good.
type PortBindingArgs ¶ added in v0.4.0
type PortBindingArgs struct {
// Port the [Container] listens on.
Port pulumi.IntInput `pulumi:"port"`
// Protocol to comunicate with the port.
// Defaults to TCP.
Protocol pulumi.StringInput `pulumi:"protocol"`
// ExposeType is the [ExposeType] strategy to expose the port.
ExposeType ExposeTypeInput `pulumi:"exposeType"`
// Annotations is an optional k=v map of annotations to set on
// the exposing resource (i.e. service or ingress) that exposes the container
// on this port.
//
// For instance, if the ExposeType=ExposeIngress, then the Annotations are
// passed to the Ingress resource.
// That could be a place to define pulumi.com/skipAwait=true if needed
// References:
// - https://www.pulumi.com/blog/improving-kubernetes-management-with-pulumis-await-logic/
// - https://github.com/pulumi/pulumi-kubernetes/issues/1812
Annotations pulumi.StringMapInput `pulumi:"annotations"`
}
PortBindingArgs is the input of PortBinding, i.e. represents the exposure of a Container on a <port,protocol>.
func (PortBindingArgs) ElementType ¶ added in v0.4.0
func (PortBindingArgs) ElementType() reflect.Type
func (PortBindingArgs) ToPortBindingOutput ¶ added in v0.4.0
func (i PortBindingArgs) ToPortBindingOutput() PortBindingOutput
func (PortBindingArgs) ToPortBindingOutputWithContext ¶ added in v0.4.0
func (i PortBindingArgs) ToPortBindingOutputWithContext(ctx context.Context) PortBindingOutput
type PortBindingArray ¶ added in v0.4.0
type PortBindingArray []PortBindingInput
func (PortBindingArray) ElementType ¶ added in v0.4.0
func (PortBindingArray) ElementType() reflect.Type
func (PortBindingArray) ToPortBindingArrayOutput ¶ added in v0.4.0
func (i PortBindingArray) ToPortBindingArrayOutput() PortBindingArrayOutput
func (PortBindingArray) ToPortBindingArrayOutputWithContext ¶ added in v0.4.0
func (i PortBindingArray) ToPortBindingArrayOutputWithContext(ctx context.Context) PortBindingArrayOutput
type PortBindingArrayInput ¶ added in v0.4.0
type PortBindingArrayInput interface {
pulumi.Input
ToPortBindingArrayOutput() PortBindingArrayOutput
ToPortBindingArrayOutputWithContext(context.Context) PortBindingArrayOutput
}
type PortBindingArrayOutput ¶ added in v0.4.0
type PortBindingArrayOutput struct{ *pulumi.OutputState }
func (PortBindingArrayOutput) ElementType ¶ added in v0.4.0
func (PortBindingArrayOutput) ElementType() reflect.Type
func (PortBindingArrayOutput) Index ¶ added in v0.4.0
func (o PortBindingArrayOutput) Index(i pulumi.IntInput) PortBindingOutput
func (PortBindingArrayOutput) Len ¶ added in v0.4.0
func (o PortBindingArrayOutput) Len() int
Len is a synchronous helper that returns the length of the array.
func (PortBindingArrayOutput) ToPortBindingArrayOutput ¶ added in v0.4.0
func (o PortBindingArrayOutput) ToPortBindingArrayOutput() PortBindingArrayOutput
func (PortBindingArrayOutput) ToPortBindingArrayOutputWithContext ¶ added in v0.4.0
func (o PortBindingArrayOutput) ToPortBindingArrayOutputWithContext(_ context.Context) PortBindingArrayOutput
type PortBindingInput ¶ added in v0.4.0
type PortBindingInput interface {
pulumi.Input
ToPortBindingOutput() PortBindingOutput
ToPortBindingOutputWithContext(context.Context) PortBindingOutput
}
type PortBindingMapArray ¶ added in v0.4.0
type PortBindingMapArray map[string]PortBindingArray
func (PortBindingMapArray) ElementType ¶ added in v0.4.0
func (PortBindingMapArray) ElementType() reflect.Type
func (PortBindingMapArray) ToPortBindingMapArrayOutput ¶ added in v0.4.0
func (i PortBindingMapArray) ToPortBindingMapArrayOutput() PortBindingMapArrayOutput
func (PortBindingMapArray) ToPortBindingMapArrayOutputWithContext ¶ added in v0.4.0
func (i PortBindingMapArray) ToPortBindingMapArrayOutputWithContext(ctx context.Context) PortBindingMapArrayOutput
type PortBindingMapArrayInput ¶ added in v0.4.0
type PortBindingMapArrayInput interface {
pulumi.Input
ToPortBindingMapArrayOutput() PortBindingMapArrayOutput
ToPortBindingMapArrayOutputWithContext(context.Context) PortBindingMapArrayOutput
}
type PortBindingMapArrayOutput ¶ added in v0.4.0
type PortBindingMapArrayOutput struct{ *pulumi.OutputState }
func (PortBindingMapArrayOutput) ElementType ¶ added in v0.4.0
func (PortBindingMapArrayOutput) ElementType() reflect.Type
func (PortBindingMapArrayOutput) MapIndex ¶ added in v0.4.0
func (o PortBindingMapArrayOutput) MapIndex(k pulumi.StringInput) PortBindingArrayOutput
func (PortBindingMapArrayOutput) ToPortBindingMapArrayOutput ¶ added in v0.4.0
func (o PortBindingMapArrayOutput) ToPortBindingMapArrayOutput() PortBindingMapArrayOutput
func (PortBindingMapArrayOutput) ToPortBindingMapArrayOutputWithContext ¶ added in v0.4.0
func (o PortBindingMapArrayOutput) ToPortBindingMapArrayOutputWithContext(_ context.Context) PortBindingMapArrayOutput
type PortBindingOutput ¶ added in v0.4.0
type PortBindingOutput struct{ *pulumi.OutputState }
func (PortBindingOutput) Annotations ¶ added in v0.5.2
func (o PortBindingOutput) Annotations() pulumi.StringMapOutput
func (PortBindingOutput) ElementType ¶ added in v0.4.0
func (PortBindingOutput) ElementType() reflect.Type
func (PortBindingOutput) ExposeType ¶ added in v0.4.0
func (o PortBindingOutput) ExposeType() ExposeTypeOutput
ExposeType is the ExposeType strategy to expose the port.
func (PortBindingOutput) Port ¶ added in v0.4.0
func (o PortBindingOutput) Port() pulumi.IntOutput
Port the Container listens on.
func (PortBindingOutput) Protocol ¶ added in v0.4.0
func (o PortBindingOutput) Protocol() pulumi.StringOutput
Protocol to comunicate with the port. Defaults to TCP.
func (PortBindingOutput) ToPortBindingOutput ¶ added in v0.4.0
func (o PortBindingOutput) ToPortBindingOutput() PortBindingOutput
func (PortBindingOutput) ToPortBindingOutputWithContext ¶ added in v0.4.0
func (o PortBindingOutput) ToPortBindingOutputWithContext(_ context.Context) PortBindingOutput
type Printer ¶ added in v0.4.0
type Printer struct {
// Fmt is the format of the string to output.
Fmt string `pulumi:"fmt"`
// Services are formatted as <service>[:<port>[/<protocol>]].
// It defaults protocol to TCP, and if there is only 1 port,
// defaults to it.
Services []string `pulumi:"services"`
}
Printer is a triggerable formatter. By defining services as the containers name and port binding (if many ports are defined, else optional) such that the service name to reach will be dynamically provided.
type PrinterArgs ¶ added in v0.4.0
type PrinterArgs struct {
// Fmt is the format of the string to output.
Fmt pulumi.StringInput `pulumi:"fmt"`
// Services are formatted as <service>[:<port>[/<protocol>]].
// It defaults protocol to TCP, and if there is only 1 port,
// defaults to it.
Services pulumi.StringArrayInput `pulumi:"services"`
}
PrinterArgs is the input of Printer, e.g. is a triggerable formatter. By defining services as the containers name and port binding (if many ports are defined, else optional) such that the service name to reach will be dynamically provided.
func NewPrinter ¶ added in v0.4.0
func NewPrinter(fmt string, services ...string) PrinterArgs
NewPrinter is a helper that transforms native strings to pulumi strings, easing the writing of a scenario. Example:
NewPrinter("http://%s", "a")
func (PrinterArgs) ElementType ¶ added in v0.4.0
func (PrinterArgs) ElementType() reflect.Type
func (PrinterArgs) ToPrinterOutput ¶ added in v0.4.0
func (i PrinterArgs) ToPrinterOutput() PrinterOutput
func (PrinterArgs) ToPrinterOutputWithContext ¶ added in v0.4.0
func (i PrinterArgs) ToPrinterOutputWithContext(ctx context.Context) PrinterOutput
type PrinterInput ¶ added in v0.4.0
type PrinterInput interface {
pulumi.Input
ToPrinterOutput() PrinterOutput
ToPrinterOutputWithContext(context.Context) PrinterOutput
}
type PrinterMap ¶ added in v0.4.0
type PrinterMap map[string]PrinterInput
func (PrinterMap) ElementType ¶ added in v0.4.0
func (PrinterMap) ElementType() reflect.Type
func (PrinterMap) ToPrinterMapOutput ¶ added in v0.4.0
func (i PrinterMap) ToPrinterMapOutput() PrinterMapOutput
func (PrinterMap) ToPrinterMapOutputWithContext ¶ added in v0.4.0
func (i PrinterMap) ToPrinterMapOutputWithContext(ctx context.Context) PrinterMapOutput
type PrinterMapInput ¶ added in v0.4.0
type PrinterMapInput interface {
pulumi.Input
ToPrinterMapOutput() PrinterMapOutput
ToPrinterMapOutputWithContext(context.Context) PrinterMapOutput
}
type PrinterMapOutput ¶ added in v0.4.0
type PrinterMapOutput struct{ *pulumi.OutputState }
func (PrinterMapOutput) ElementType ¶ added in v0.4.0
func (PrinterMapOutput) ElementType() reflect.Type
func (PrinterMapOutput) MapIndex ¶ added in v0.4.0
func (o PrinterMapOutput) MapIndex(k pulumi.StringInput) PrinterOutput
func (PrinterMapOutput) Print ¶ added in v0.4.0
func (o PrinterMapOutput) Print(deps ObjectMetaMapMapInput) pulumi.StringMapOutput
Print triggers the formatters using the service object metas to resolve dependencies.
func (PrinterMapOutput) ToPrinterMapOutput ¶ added in v0.4.0
func (o PrinterMapOutput) ToPrinterMapOutput() PrinterMapOutput
func (PrinterMapOutput) ToPrinterMapOutputWithContext ¶ added in v0.4.0
func (o PrinterMapOutput) ToPrinterMapOutputWithContext(_ context.Context) PrinterMapOutput
type PrinterOutput ¶ added in v0.4.0
type PrinterOutput struct{ *pulumi.OutputState }
func ToPrinter ¶ added in v0.4.0
func ToPrinter(in pulumi.StringInput) PrinterOutput
ToPrinter is a helper that transforms a pulumi.StringInput to a PrinterOutput, by using the string as the formatter and no services. Example:
ToPrinter(pulumi.String("..."))
func (PrinterOutput) ElementType ¶ added in v0.4.0
func (PrinterOutput) ElementType() reflect.Type
func (PrinterOutput) Fmt ¶ added in v0.4.0
func (o PrinterOutput) Fmt() pulumi.StringOutput
Fmt is the format of the string to output.
func (PrinterOutput) Services ¶ added in v0.4.0
func (o PrinterOutput) Services() pulumi.StringArrayOutput
Services are formatted as <service>[:<port>[/<protocol>]]. It defaults protocol to TCP, and if there is only 1 port, defaults to it.
func (PrinterOutput) ToPrinterOutput ¶ added in v0.4.0
func (o PrinterOutput) ToPrinterOutput() PrinterOutput
func (PrinterOutput) ToPrinterOutputWithContext ¶ added in v0.4.0
func (o PrinterOutput) ToPrinterOutputWithContext(_ context.Context) PrinterOutput
type Rule ¶ added in v0.4.0
type Rule struct {
// From which [Container].
From string `pulumi:"from"`
// To which [Container].
To string `pulumi:"to"`
// On which port.
On int `pulumi:"on"`
// Protocol to communicate with.
// Defaults to TCP.
Protocol string `pulumi:"protocol"`
}
Rule represents a networking rule between Container. It is transformed into a Kubernetes NetworkPolicy.
type RuleArgs ¶ added in v0.4.0
type RuleArgs struct {
// From which [Container].
From pulumi.StringInput `pulumi:"from"`
// To which [Container].
To pulumi.StringInput `pulumi:"to"`
// On which port.
On pulumi.IntInput `pulumi:"on"`
// Protocol to communicate with.
// Defaults to TCP.
Protocol pulumi.StringInput `pulumi:"protocol"`
}
RuleArgs is the input of Rule, i.e. represents a networking rule between Container. It is transformed into a Kubernetes NetworkPolicy.
func (RuleArgs) ElementType ¶ added in v0.4.0
func (RuleArgs) ToRuleOutput ¶ added in v0.4.0
func (i RuleArgs) ToRuleOutput() RuleOutput
func (RuleArgs) ToRuleOutputWithContext ¶ added in v0.4.0
func (i RuleArgs) ToRuleOutputWithContext(ctx context.Context) RuleOutput
type RuleArray ¶ added in v0.4.0
type RuleArray []RuleInput
func (RuleArray) ElementType ¶ added in v0.4.0
func (RuleArray) ToRuleArrayOutput ¶ added in v0.4.0
func (i RuleArray) ToRuleArrayOutput() RuleArrayOutput
func (RuleArray) ToRuleArrayOutputWithContext ¶ added in v0.4.0
func (i RuleArray) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput
type RuleArrayInput ¶ added in v0.4.0
type RuleArrayInput interface {
pulumi.Input
ToRuleArrayOutput() RuleArrayOutput
ToRuleArrayOutputWithContext(context.Context) RuleArrayOutput
}
type RuleArrayOutput ¶ added in v0.4.0
type RuleArrayOutput struct{ *pulumi.OutputState }
func (RuleArrayOutput) ElementType ¶ added in v0.4.0
func (RuleArrayOutput) ElementType() reflect.Type
func (RuleArrayOutput) Index ¶ added in v0.4.0
func (o RuleArrayOutput) Index(i pulumi.IntInput) RuleOutput
func (RuleArrayOutput) ToRuleArrayOutput ¶ added in v0.4.0
func (o RuleArrayOutput) ToRuleArrayOutput() RuleArrayOutput
func (RuleArrayOutput) ToRuleArrayOutputWithContext ¶ added in v0.4.0
func (o RuleArrayOutput) ToRuleArrayOutputWithContext(_ context.Context) RuleArrayOutput
type RuleInput ¶ added in v0.4.0
type RuleInput interface {
pulumi.Input
ToRuleOutput() RuleOutput
ToRuleOutputWithContext(context.Context) RuleOutput
}
type RuleOutput ¶ added in v0.4.0
type RuleOutput struct{ *pulumi.OutputState }
func (RuleOutput) ElementType ¶ added in v0.4.0
func (o RuleOutput) ElementType() reflect.Type
func (RuleOutput) From ¶ added in v0.4.0
func (o RuleOutput) From() pulumi.StringOutput
From which Container.
func (RuleOutput) Protocol ¶ added in v0.4.0
func (o RuleOutput) Protocol() pulumi.StringOutput
Protocol to communicate with. Defaults to TCP.
func (RuleOutput) To ¶ added in v0.4.0
func (o RuleOutput) To() pulumi.StringOutput
To which Container.
func (RuleOutput) ToContainerOutput ¶ added in v0.4.0
func (o RuleOutput) ToContainerOutput() RuleOutput
func (RuleOutput) ToContainerOutputWithContext ¶ added in v0.4.0
func (o RuleOutput) ToContainerOutputWithContext(_ context.Context) RuleOutput
type ServiceMapMap ¶ added in v0.4.0
func (ServiceMapMap) ElementType ¶ added in v0.4.0
func (ServiceMapMap) ElementType() reflect.Type
func (ServiceMapMap) ToServiceMapMapOutput ¶ added in v0.4.0
func (i ServiceMapMap) ToServiceMapMapOutput() ServiceMapMapOutput
func (ServiceMapMap) ToServiceMapMapOutputWithContext ¶ added in v0.4.0
func (i ServiceMapMap) ToServiceMapMapOutputWithContext(ctx context.Context) ServiceMapMapOutput
type ServiceMapMapInput ¶ added in v0.4.0
type ServiceMapMapInput interface {
pulumi.Input
ToServiceMapMapOutput() ServiceMapMapOutput
ToServiceMapMapOutputWithContext(context.Context) ServiceMapMapOutput
}
type ServiceMapMapOutput ¶ added in v0.4.0
type ServiceMapMapOutput struct{ *pulumi.OutputState }
func (ServiceMapMapOutput) ElementType ¶ added in v0.4.0
func (ServiceMapMapOutput) ElementType() reflect.Type
func (ServiceMapMapOutput) MapIndex ¶ added in v0.4.0
func (o ServiceMapMapOutput) MapIndex(k pulumi.StringInput) corev1.ServiceMapOutput
func (ServiceMapMapOutput) ToServiceMapMapOutput ¶ added in v0.4.0
func (o ServiceMapMapOutput) ToServiceMapMapOutput() ServiceMapMapOutput
func (ServiceMapMapOutput) ToServiceMapMapOutputWithContext ¶ added in v0.4.0
func (o ServiceMapMapOutput) ToServiceMapMapOutputWithContext(_ context.Context) ServiceMapMapOutput
type ServiceSpecMap ¶ added in v0.4.0
type ServiceSpecMap map[string]corev1.ServiceSpecInput
func (ServiceSpecMap) ElementType ¶ added in v0.4.0
func (ServiceSpecMap) ElementType() reflect.Type
func (ServiceSpecMap) ToServiceSpecMapOutput ¶ added in v0.4.0
func (i ServiceSpecMap) ToServiceSpecMapOutput() ServiceSpecMapOutput
func (ServiceSpecMap) ToServiceSpecMapOutputWithContext ¶ added in v0.4.0
func (i ServiceSpecMap) ToServiceSpecMapOutputWithContext(ctx context.Context) ServiceSpecMapOutput
type ServiceSpecMapInput ¶ added in v0.4.0
type ServiceSpecMapInput interface {
pulumi.Input
ToServiceSpecMapOutput() ServiceSpecMapOutput
ToServiceSpecMapOutputWithContext(context.Context) ServiceSpecMapOutput
}
type ServiceSpecMapMap ¶ added in v0.4.0
type ServiceSpecMapMap map[string]map[string]corev1.ServiceSpec
func (ServiceSpecMapMap) ElementType ¶ added in v0.4.0
func (ServiceSpecMapMap) ElementType() reflect.Type
func (ServiceSpecMapMap) ToServiceSpecMapMapOutput ¶ added in v0.4.0
func (i ServiceSpecMapMap) ToServiceSpecMapMapOutput() ServiceSpecMapMapOutput
func (ServiceSpecMapMap) ToServiceSpecMapMapOutputWithContext ¶ added in v0.4.0
func (i ServiceSpecMapMap) ToServiceSpecMapMapOutputWithContext(ctx context.Context) ServiceSpecMapMapOutput
type ServiceSpecMapMapInput ¶ added in v0.4.0
type ServiceSpecMapMapInput interface {
pulumi.Input
ToServiceSpecMapMapOutput() ServiceSpecMapMapOutput
ToServiceSpecMapMapOutputWithContext(context.Context) ServiceSpecMapMapOutput
}
type ServiceSpecMapMapOutput ¶ added in v0.4.0
type ServiceSpecMapMapOutput struct{ *pulumi.OutputState }
func (ServiceSpecMapMapOutput) ElementType ¶ added in v0.4.0
func (ServiceSpecMapMapOutput) ElementType() reflect.Type
func (ServiceSpecMapMapOutput) MapIndex ¶ added in v0.4.0
func (o ServiceSpecMapMapOutput) MapIndex(k pulumi.StringInput) ServiceSpecMapOutput
func (ServiceSpecMapMapOutput) ToServiceSpecMapMapOutput ¶ added in v0.4.0
func (o ServiceSpecMapMapOutput) ToServiceSpecMapMapOutput() ServiceSpecMapMapOutput
func (ServiceSpecMapMapOutput) ToServiceSpecMapMapOutputWithContext ¶ added in v0.4.0
func (o ServiceSpecMapMapOutput) ToServiceSpecMapMapOutputWithContext(_ context.Context) ServiceSpecMapMapOutput
type ServiceSpecMapOutput ¶ added in v0.4.0
type ServiceSpecMapOutput struct{ *pulumi.OutputState }
func (ServiceSpecMapOutput) ElementType ¶ added in v0.4.0
func (ServiceSpecMapOutput) ElementType() reflect.Type
func (ServiceSpecMapOutput) MapIndex ¶ added in v0.4.0
func (o ServiceSpecMapOutput) MapIndex(k pulumi.StringInput) corev1.ServiceSpecOutput
func (ServiceSpecMapOutput) ToServiceSpecMapOutput ¶ added in v0.4.0
func (o ServiceSpecMapOutput) ToServiceSpecMapOutput() ServiceSpecMapOutput
func (ServiceSpecMapOutput) ToServiceSpecMapOutputWithContext ¶ added in v0.4.0
func (o ServiceSpecMapOutput) ToServiceSpecMapOutputWithContext(_ context.Context) ServiceSpecMapOutput