chore(deps): update module github.com/pulumi/pulumi-kubernetes/sdk/v4 to v4.5.5

This commit is contained in:
Renovate Bot 2023-12-05 22:49:32 +00:00 committed by RouxAntoine
parent 29b649678e
commit 85586c381c
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
5 changed files with 716 additions and 3 deletions

View File

@ -31,6 +31,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &Middleware{}
case "kubernetes:traefik.io/v1alpha1:MiddlewareTCP":
r = &MiddlewareTCP{}
case "kubernetes:traefik.io/v1alpha1:ServersTransport":
r = &ServersTransport{}
case "kubernetes:traefik.io/v1alpha1:ServersTransportTCP":
r = &ServersTransportTCP{}
case "kubernetes:traefik.io/v1alpha1:TLSOption":

View File

@ -13161,6 +13161,555 @@ func (o MiddlewareTCPSpecIpWhiteListPtrOutput) SourceRange() pulumi.StringArrayO
}).(pulumi.StringArrayOutput)
}
// ServersTransport is the CRD implementation of a ServersTransport. If no serversTransport is specified, the default@internal will be used. The default@internal serversTransport is created from the static configuration. More info: https://doc.traefik.io/traefik/v2.10/routing/services/#serverstransport_1
type ServersTransportType struct {
ApiVersion *string `pulumi:"apiVersion"`
Kind *string `pulumi:"kind"`
Metadata v1.ObjectMeta `pulumi:"metadata"`
// ServersTransportSpec defines the desired state of a ServersTransport.
Spec ServersTransportSpec `pulumi:"spec"`
}
type ServersTransportMetadata struct {
}
// ServersTransportSpec defines the desired state of a ServersTransport.
type ServersTransportSpec struct {
// CertificatesSecrets defines a list of secret storing client certificates for mTLS.
CertificatesSecrets []string `pulumi:"certificatesSecrets"`
// DisableHTTP2 disables HTTP/2 for connections with backend servers.
DisableHTTP2 *bool `pulumi:"disableHTTP2"`
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
ForwardingTimeouts *ServersTransportSpecForwardingTimeouts `pulumi:"forwardingTimeouts"`
// InsecureSkipVerify disables SSL certificate verification.
InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"`
// MaxIdleConnsPerHost controls the maximum idle (keep-alive) to keep per-host.
MaxIdleConnsPerHost *int `pulumi:"maxIdleConnsPerHost"`
// PeerCertURI defines the peer cert URI used to match against SAN URI during the peer certificate verification.
PeerCertURI *string `pulumi:"peerCertURI"`
// RootCAsSecrets defines a list of CA secret used to validate self-signed certificate.
RootCAsSecrets []string `pulumi:"rootCAsSecrets"`
// ServerName defines the server name used to contact the server.
ServerName *string `pulumi:"serverName"`
}
// ServersTransportSpecInput is an input type that accepts ServersTransportSpecArgs and ServersTransportSpecOutput values.
// You can construct a concrete instance of `ServersTransportSpecInput` via:
//
// ServersTransportSpecArgs{...}
type ServersTransportSpecInput interface {
pulumi.Input
ToServersTransportSpecOutput() ServersTransportSpecOutput
ToServersTransportSpecOutputWithContext(context.Context) ServersTransportSpecOutput
}
// ServersTransportSpec defines the desired state of a ServersTransport.
type ServersTransportSpecArgs struct {
// CertificatesSecrets defines a list of secret storing client certificates for mTLS.
CertificatesSecrets pulumi.StringArrayInput `pulumi:"certificatesSecrets"`
// DisableHTTP2 disables HTTP/2 for connections with backend servers.
DisableHTTP2 pulumi.BoolPtrInput `pulumi:"disableHTTP2"`
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
ForwardingTimeouts ServersTransportSpecForwardingTimeoutsPtrInput `pulumi:"forwardingTimeouts"`
// InsecureSkipVerify disables SSL certificate verification.
InsecureSkipVerify pulumi.BoolPtrInput `pulumi:"insecureSkipVerify"`
// MaxIdleConnsPerHost controls the maximum idle (keep-alive) to keep per-host.
MaxIdleConnsPerHost pulumi.IntPtrInput `pulumi:"maxIdleConnsPerHost"`
// PeerCertURI defines the peer cert URI used to match against SAN URI during the peer certificate verification.
PeerCertURI pulumi.StringPtrInput `pulumi:"peerCertURI"`
// RootCAsSecrets defines a list of CA secret used to validate self-signed certificate.
RootCAsSecrets pulumi.StringArrayInput `pulumi:"rootCAsSecrets"`
// ServerName defines the server name used to contact the server.
ServerName pulumi.StringPtrInput `pulumi:"serverName"`
}
func (ServersTransportSpecArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServersTransportSpec)(nil)).Elem()
}
func (i ServersTransportSpecArgs) ToServersTransportSpecOutput() ServersTransportSpecOutput {
return i.ToServersTransportSpecOutputWithContext(context.Background())
}
func (i ServersTransportSpecArgs) ToServersTransportSpecOutputWithContext(ctx context.Context) ServersTransportSpecOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportSpecOutput)
}
func (i ServersTransportSpecArgs) ToOutput(ctx context.Context) pulumix.Output[ServersTransportSpec] {
return pulumix.Output[ServersTransportSpec]{
OutputState: i.ToServersTransportSpecOutputWithContext(ctx).OutputState,
}
}
func (i ServersTransportSpecArgs) ToServersTransportSpecPtrOutput() ServersTransportSpecPtrOutput {
return i.ToServersTransportSpecPtrOutputWithContext(context.Background())
}
func (i ServersTransportSpecArgs) ToServersTransportSpecPtrOutputWithContext(ctx context.Context) ServersTransportSpecPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportSpecOutput).ToServersTransportSpecPtrOutputWithContext(ctx)
}
// ServersTransportSpecPtrInput is an input type that accepts ServersTransportSpecArgs, ServersTransportSpecPtr and ServersTransportSpecPtrOutput values.
// You can construct a concrete instance of `ServersTransportSpecPtrInput` via:
//
// ServersTransportSpecArgs{...}
//
// or:
//
// nil
type ServersTransportSpecPtrInput interface {
pulumi.Input
ToServersTransportSpecPtrOutput() ServersTransportSpecPtrOutput
ToServersTransportSpecPtrOutputWithContext(context.Context) ServersTransportSpecPtrOutput
}
type serversTransportSpecPtrType ServersTransportSpecArgs
func ServersTransportSpecPtr(v *ServersTransportSpecArgs) ServersTransportSpecPtrInput {
return (*serversTransportSpecPtrType)(v)
}
func (*serversTransportSpecPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServersTransportSpec)(nil)).Elem()
}
func (i *serversTransportSpecPtrType) ToServersTransportSpecPtrOutput() ServersTransportSpecPtrOutput {
return i.ToServersTransportSpecPtrOutputWithContext(context.Background())
}
func (i *serversTransportSpecPtrType) ToServersTransportSpecPtrOutputWithContext(ctx context.Context) ServersTransportSpecPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportSpecPtrOutput)
}
func (i *serversTransportSpecPtrType) ToOutput(ctx context.Context) pulumix.Output[*ServersTransportSpec] {
return pulumix.Output[*ServersTransportSpec]{
OutputState: i.ToServersTransportSpecPtrOutputWithContext(ctx).OutputState,
}
}
// ServersTransportSpec defines the desired state of a ServersTransport.
type ServersTransportSpecOutput struct{ *pulumi.OutputState }
func (ServersTransportSpecOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServersTransportSpec)(nil)).Elem()
}
func (o ServersTransportSpecOutput) ToServersTransportSpecOutput() ServersTransportSpecOutput {
return o
}
func (o ServersTransportSpecOutput) ToServersTransportSpecOutputWithContext(ctx context.Context) ServersTransportSpecOutput {
return o
}
func (o ServersTransportSpecOutput) ToServersTransportSpecPtrOutput() ServersTransportSpecPtrOutput {
return o.ToServersTransportSpecPtrOutputWithContext(context.Background())
}
func (o ServersTransportSpecOutput) ToServersTransportSpecPtrOutputWithContext(ctx context.Context) ServersTransportSpecPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServersTransportSpec) *ServersTransportSpec {
return &v
}).(ServersTransportSpecPtrOutput)
}
func (o ServersTransportSpecOutput) ToOutput(ctx context.Context) pulumix.Output[ServersTransportSpec] {
return pulumix.Output[ServersTransportSpec]{
OutputState: o.OutputState,
}
}
// CertificatesSecrets defines a list of secret storing client certificates for mTLS.
func (o ServersTransportSpecOutput) CertificatesSecrets() pulumi.StringArrayOutput {
return o.ApplyT(func(v ServersTransportSpec) []string { return v.CertificatesSecrets }).(pulumi.StringArrayOutput)
}
// DisableHTTP2 disables HTTP/2 for connections with backend servers.
func (o ServersTransportSpecOutput) DisableHTTP2() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ServersTransportSpec) *bool { return v.DisableHTTP2 }).(pulumi.BoolPtrOutput)
}
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
func (o ServersTransportSpecOutput) ForwardingTimeouts() ServersTransportSpecForwardingTimeoutsPtrOutput {
return o.ApplyT(func(v ServersTransportSpec) *ServersTransportSpecForwardingTimeouts { return v.ForwardingTimeouts }).(ServersTransportSpecForwardingTimeoutsPtrOutput)
}
// InsecureSkipVerify disables SSL certificate verification.
func (o ServersTransportSpecOutput) InsecureSkipVerify() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ServersTransportSpec) *bool { return v.InsecureSkipVerify }).(pulumi.BoolPtrOutput)
}
// MaxIdleConnsPerHost controls the maximum idle (keep-alive) to keep per-host.
func (o ServersTransportSpecOutput) MaxIdleConnsPerHost() pulumi.IntPtrOutput {
return o.ApplyT(func(v ServersTransportSpec) *int { return v.MaxIdleConnsPerHost }).(pulumi.IntPtrOutput)
}
// PeerCertURI defines the peer cert URI used to match against SAN URI during the peer certificate verification.
func (o ServersTransportSpecOutput) PeerCertURI() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServersTransportSpec) *string { return v.PeerCertURI }).(pulumi.StringPtrOutput)
}
// RootCAsSecrets defines a list of CA secret used to validate self-signed certificate.
func (o ServersTransportSpecOutput) RootCAsSecrets() pulumi.StringArrayOutput {
return o.ApplyT(func(v ServersTransportSpec) []string { return v.RootCAsSecrets }).(pulumi.StringArrayOutput)
}
// ServerName defines the server name used to contact the server.
func (o ServersTransportSpecOutput) ServerName() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServersTransportSpec) *string { return v.ServerName }).(pulumi.StringPtrOutput)
}
type ServersTransportSpecPtrOutput struct{ *pulumi.OutputState }
func (ServersTransportSpecPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServersTransportSpec)(nil)).Elem()
}
func (o ServersTransportSpecPtrOutput) ToServersTransportSpecPtrOutput() ServersTransportSpecPtrOutput {
return o
}
func (o ServersTransportSpecPtrOutput) ToServersTransportSpecPtrOutputWithContext(ctx context.Context) ServersTransportSpecPtrOutput {
return o
}
func (o ServersTransportSpecPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ServersTransportSpec] {
return pulumix.Output[*ServersTransportSpec]{
OutputState: o.OutputState,
}
}
func (o ServersTransportSpecPtrOutput) Elem() ServersTransportSpecOutput {
return o.ApplyT(func(v *ServersTransportSpec) ServersTransportSpec {
if v != nil {
return *v
}
var ret ServersTransportSpec
return ret
}).(ServersTransportSpecOutput)
}
// CertificatesSecrets defines a list of secret storing client certificates for mTLS.
func (o ServersTransportSpecPtrOutput) CertificatesSecrets() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ServersTransportSpec) []string {
if v == nil {
return nil
}
return v.CertificatesSecrets
}).(pulumi.StringArrayOutput)
}
// DisableHTTP2 disables HTTP/2 for connections with backend servers.
func (o ServersTransportSpecPtrOutput) DisableHTTP2() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ServersTransportSpec) *bool {
if v == nil {
return nil
}
return v.DisableHTTP2
}).(pulumi.BoolPtrOutput)
}
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
func (o ServersTransportSpecPtrOutput) ForwardingTimeouts() ServersTransportSpecForwardingTimeoutsPtrOutput {
return o.ApplyT(func(v *ServersTransportSpec) *ServersTransportSpecForwardingTimeouts {
if v == nil {
return nil
}
return v.ForwardingTimeouts
}).(ServersTransportSpecForwardingTimeoutsPtrOutput)
}
// InsecureSkipVerify disables SSL certificate verification.
func (o ServersTransportSpecPtrOutput) InsecureSkipVerify() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ServersTransportSpec) *bool {
if v == nil {
return nil
}
return v.InsecureSkipVerify
}).(pulumi.BoolPtrOutput)
}
// MaxIdleConnsPerHost controls the maximum idle (keep-alive) to keep per-host.
func (o ServersTransportSpecPtrOutput) MaxIdleConnsPerHost() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ServersTransportSpec) *int {
if v == nil {
return nil
}
return v.MaxIdleConnsPerHost
}).(pulumi.IntPtrOutput)
}
// PeerCertURI defines the peer cert URI used to match against SAN URI during the peer certificate verification.
func (o ServersTransportSpecPtrOutput) PeerCertURI() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServersTransportSpec) *string {
if v == nil {
return nil
}
return v.PeerCertURI
}).(pulumi.StringPtrOutput)
}
// RootCAsSecrets defines a list of CA secret used to validate self-signed certificate.
func (o ServersTransportSpecPtrOutput) RootCAsSecrets() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ServersTransportSpec) []string {
if v == nil {
return nil
}
return v.RootCAsSecrets
}).(pulumi.StringArrayOutput)
}
// ServerName defines the server name used to contact the server.
func (o ServersTransportSpecPtrOutput) ServerName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServersTransportSpec) *string {
if v == nil {
return nil
}
return v.ServerName
}).(pulumi.StringPtrOutput)
}
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
type ServersTransportSpecForwardingTimeouts struct {
// DialTimeout is the amount of time to wait until a connection to a backend server can be established.
DialTimeout interface{} `pulumi:"dialTimeout"`
// IdleConnTimeout is the maximum period for which an idle HTTP keep-alive connection will remain open before closing itself.
IdleConnTimeout interface{} `pulumi:"idleConnTimeout"`
// PingTimeout is the timeout after which the HTTP/2 connection will be closed if a response to ping is not received.
PingTimeout interface{} `pulumi:"pingTimeout"`
// ReadIdleTimeout is the timeout after which a health check using ping frame will be carried out if no frame is received on the HTTP/2 connection.
ReadIdleTimeout interface{} `pulumi:"readIdleTimeout"`
// ResponseHeaderTimeout is the amount of time to wait for a server's response headers after fully writing the request (including its body, if any).
ResponseHeaderTimeout interface{} `pulumi:"responseHeaderTimeout"`
}
// ServersTransportSpecForwardingTimeoutsInput is an input type that accepts ServersTransportSpecForwardingTimeoutsArgs and ServersTransportSpecForwardingTimeoutsOutput values.
// You can construct a concrete instance of `ServersTransportSpecForwardingTimeoutsInput` via:
//
// ServersTransportSpecForwardingTimeoutsArgs{...}
type ServersTransportSpecForwardingTimeoutsInput interface {
pulumi.Input
ToServersTransportSpecForwardingTimeoutsOutput() ServersTransportSpecForwardingTimeoutsOutput
ToServersTransportSpecForwardingTimeoutsOutputWithContext(context.Context) ServersTransportSpecForwardingTimeoutsOutput
}
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
type ServersTransportSpecForwardingTimeoutsArgs struct {
// DialTimeout is the amount of time to wait until a connection to a backend server can be established.
DialTimeout pulumi.Input `pulumi:"dialTimeout"`
// IdleConnTimeout is the maximum period for which an idle HTTP keep-alive connection will remain open before closing itself.
IdleConnTimeout pulumi.Input `pulumi:"idleConnTimeout"`
// PingTimeout is the timeout after which the HTTP/2 connection will be closed if a response to ping is not received.
PingTimeout pulumi.Input `pulumi:"pingTimeout"`
// ReadIdleTimeout is the timeout after which a health check using ping frame will be carried out if no frame is received on the HTTP/2 connection.
ReadIdleTimeout pulumi.Input `pulumi:"readIdleTimeout"`
// ResponseHeaderTimeout is the amount of time to wait for a server's response headers after fully writing the request (including its body, if any).
ResponseHeaderTimeout pulumi.Input `pulumi:"responseHeaderTimeout"`
}
func (ServersTransportSpecForwardingTimeoutsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServersTransportSpecForwardingTimeouts)(nil)).Elem()
}
func (i ServersTransportSpecForwardingTimeoutsArgs) ToServersTransportSpecForwardingTimeoutsOutput() ServersTransportSpecForwardingTimeoutsOutput {
return i.ToServersTransportSpecForwardingTimeoutsOutputWithContext(context.Background())
}
func (i ServersTransportSpecForwardingTimeoutsArgs) ToServersTransportSpecForwardingTimeoutsOutputWithContext(ctx context.Context) ServersTransportSpecForwardingTimeoutsOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportSpecForwardingTimeoutsOutput)
}
func (i ServersTransportSpecForwardingTimeoutsArgs) ToOutput(ctx context.Context) pulumix.Output[ServersTransportSpecForwardingTimeouts] {
return pulumix.Output[ServersTransportSpecForwardingTimeouts]{
OutputState: i.ToServersTransportSpecForwardingTimeoutsOutputWithContext(ctx).OutputState,
}
}
func (i ServersTransportSpecForwardingTimeoutsArgs) ToServersTransportSpecForwardingTimeoutsPtrOutput() ServersTransportSpecForwardingTimeoutsPtrOutput {
return i.ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(context.Background())
}
func (i ServersTransportSpecForwardingTimeoutsArgs) ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(ctx context.Context) ServersTransportSpecForwardingTimeoutsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportSpecForwardingTimeoutsOutput).ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(ctx)
}
// ServersTransportSpecForwardingTimeoutsPtrInput is an input type that accepts ServersTransportSpecForwardingTimeoutsArgs, ServersTransportSpecForwardingTimeoutsPtr and ServersTransportSpecForwardingTimeoutsPtrOutput values.
// You can construct a concrete instance of `ServersTransportSpecForwardingTimeoutsPtrInput` via:
//
// ServersTransportSpecForwardingTimeoutsArgs{...}
//
// or:
//
// nil
type ServersTransportSpecForwardingTimeoutsPtrInput interface {
pulumi.Input
ToServersTransportSpecForwardingTimeoutsPtrOutput() ServersTransportSpecForwardingTimeoutsPtrOutput
ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(context.Context) ServersTransportSpecForwardingTimeoutsPtrOutput
}
type serversTransportSpecForwardingTimeoutsPtrType ServersTransportSpecForwardingTimeoutsArgs
func ServersTransportSpecForwardingTimeoutsPtr(v *ServersTransportSpecForwardingTimeoutsArgs) ServersTransportSpecForwardingTimeoutsPtrInput {
return (*serversTransportSpecForwardingTimeoutsPtrType)(v)
}
func (*serversTransportSpecForwardingTimeoutsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServersTransportSpecForwardingTimeouts)(nil)).Elem()
}
func (i *serversTransportSpecForwardingTimeoutsPtrType) ToServersTransportSpecForwardingTimeoutsPtrOutput() ServersTransportSpecForwardingTimeoutsPtrOutput {
return i.ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(context.Background())
}
func (i *serversTransportSpecForwardingTimeoutsPtrType) ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(ctx context.Context) ServersTransportSpecForwardingTimeoutsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportSpecForwardingTimeoutsPtrOutput)
}
func (i *serversTransportSpecForwardingTimeoutsPtrType) ToOutput(ctx context.Context) pulumix.Output[*ServersTransportSpecForwardingTimeouts] {
return pulumix.Output[*ServersTransportSpecForwardingTimeouts]{
OutputState: i.ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(ctx).OutputState,
}
}
// ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
type ServersTransportSpecForwardingTimeoutsOutput struct{ *pulumi.OutputState }
func (ServersTransportSpecForwardingTimeoutsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServersTransportSpecForwardingTimeouts)(nil)).Elem()
}
func (o ServersTransportSpecForwardingTimeoutsOutput) ToServersTransportSpecForwardingTimeoutsOutput() ServersTransportSpecForwardingTimeoutsOutput {
return o
}
func (o ServersTransportSpecForwardingTimeoutsOutput) ToServersTransportSpecForwardingTimeoutsOutputWithContext(ctx context.Context) ServersTransportSpecForwardingTimeoutsOutput {
return o
}
func (o ServersTransportSpecForwardingTimeoutsOutput) ToServersTransportSpecForwardingTimeoutsPtrOutput() ServersTransportSpecForwardingTimeoutsPtrOutput {
return o.ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(context.Background())
}
func (o ServersTransportSpecForwardingTimeoutsOutput) ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(ctx context.Context) ServersTransportSpecForwardingTimeoutsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServersTransportSpecForwardingTimeouts) *ServersTransportSpecForwardingTimeouts {
return &v
}).(ServersTransportSpecForwardingTimeoutsPtrOutput)
}
func (o ServersTransportSpecForwardingTimeoutsOutput) ToOutput(ctx context.Context) pulumix.Output[ServersTransportSpecForwardingTimeouts] {
return pulumix.Output[ServersTransportSpecForwardingTimeouts]{
OutputState: o.OutputState,
}
}
// DialTimeout is the amount of time to wait until a connection to a backend server can be established.
func (o ServersTransportSpecForwardingTimeoutsOutput) DialTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v ServersTransportSpecForwardingTimeouts) interface{} { return v.DialTimeout }).(pulumi.AnyOutput)
}
// IdleConnTimeout is the maximum period for which an idle HTTP keep-alive connection will remain open before closing itself.
func (o ServersTransportSpecForwardingTimeoutsOutput) IdleConnTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v ServersTransportSpecForwardingTimeouts) interface{} { return v.IdleConnTimeout }).(pulumi.AnyOutput)
}
// PingTimeout is the timeout after which the HTTP/2 connection will be closed if a response to ping is not received.
func (o ServersTransportSpecForwardingTimeoutsOutput) PingTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v ServersTransportSpecForwardingTimeouts) interface{} { return v.PingTimeout }).(pulumi.AnyOutput)
}
// ReadIdleTimeout is the timeout after which a health check using ping frame will be carried out if no frame is received on the HTTP/2 connection.
func (o ServersTransportSpecForwardingTimeoutsOutput) ReadIdleTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v ServersTransportSpecForwardingTimeouts) interface{} { return v.ReadIdleTimeout }).(pulumi.AnyOutput)
}
// ResponseHeaderTimeout is the amount of time to wait for a server's response headers after fully writing the request (including its body, if any).
func (o ServersTransportSpecForwardingTimeoutsOutput) ResponseHeaderTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v ServersTransportSpecForwardingTimeouts) interface{} { return v.ResponseHeaderTimeout }).(pulumi.AnyOutput)
}
type ServersTransportSpecForwardingTimeoutsPtrOutput struct{ *pulumi.OutputState }
func (ServersTransportSpecForwardingTimeoutsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServersTransportSpecForwardingTimeouts)(nil)).Elem()
}
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) ToServersTransportSpecForwardingTimeoutsPtrOutput() ServersTransportSpecForwardingTimeoutsPtrOutput {
return o
}
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) ToServersTransportSpecForwardingTimeoutsPtrOutputWithContext(ctx context.Context) ServersTransportSpecForwardingTimeoutsPtrOutput {
return o
}
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ServersTransportSpecForwardingTimeouts] {
return pulumix.Output[*ServersTransportSpecForwardingTimeouts]{
OutputState: o.OutputState,
}
}
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) Elem() ServersTransportSpecForwardingTimeoutsOutput {
return o.ApplyT(func(v *ServersTransportSpecForwardingTimeouts) ServersTransportSpecForwardingTimeouts {
if v != nil {
return *v
}
var ret ServersTransportSpecForwardingTimeouts
return ret
}).(ServersTransportSpecForwardingTimeoutsOutput)
}
// DialTimeout is the amount of time to wait until a connection to a backend server can be established.
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) DialTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v *ServersTransportSpecForwardingTimeouts) interface{} {
if v == nil {
return nil
}
return v.DialTimeout
}).(pulumi.AnyOutput)
}
// IdleConnTimeout is the maximum period for which an idle HTTP keep-alive connection will remain open before closing itself.
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) IdleConnTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v *ServersTransportSpecForwardingTimeouts) interface{} {
if v == nil {
return nil
}
return v.IdleConnTimeout
}).(pulumi.AnyOutput)
}
// PingTimeout is the timeout after which the HTTP/2 connection will be closed if a response to ping is not received.
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) PingTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v *ServersTransportSpecForwardingTimeouts) interface{} {
if v == nil {
return nil
}
return v.PingTimeout
}).(pulumi.AnyOutput)
}
// ReadIdleTimeout is the timeout after which a health check using ping frame will be carried out if no frame is received on the HTTP/2 connection.
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) ReadIdleTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v *ServersTransportSpecForwardingTimeouts) interface{} {
if v == nil {
return nil
}
return v.ReadIdleTimeout
}).(pulumi.AnyOutput)
}
// ResponseHeaderTimeout is the amount of time to wait for a server's response headers after fully writing the request (including its body, if any).
func (o ServersTransportSpecForwardingTimeoutsPtrOutput) ResponseHeaderTimeout() pulumi.AnyOutput {
return o.ApplyT(func(v *ServersTransportSpecForwardingTimeouts) interface{} {
if v == nil {
return nil
}
return v.ResponseHeaderTimeout
}).(pulumi.AnyOutput)
}
// ServersTransportTCP is the CRD implementation of a TCPServersTransport. If no tcpServersTransport is specified, a default one named default@internal will be used. The default@internal tcpServersTransport can be configured in the static configuration. More info: https://doc.traefik.io/traefik/v3.0/routing/services/#serverstransport_3
type ServersTransportTCPType struct {
ApiVersion *string `pulumi:"apiVersion"`
@ -18609,6 +19158,10 @@ func init() {
pulumi.RegisterInputType(reflect.TypeOf((*MiddlewareTCPSpecInFlightConnPtrInput)(nil)).Elem(), MiddlewareTCPSpecInFlightConnArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*MiddlewareTCPSpecIpWhiteListInput)(nil)).Elem(), MiddlewareTCPSpecIpWhiteListArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*MiddlewareTCPSpecIpWhiteListPtrInput)(nil)).Elem(), MiddlewareTCPSpecIpWhiteListArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportSpecInput)(nil)).Elem(), ServersTransportSpecArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportSpecPtrInput)(nil)).Elem(), ServersTransportSpecArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportSpecForwardingTimeoutsInput)(nil)).Elem(), ServersTransportSpecForwardingTimeoutsArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportSpecForwardingTimeoutsPtrInput)(nil)).Elem(), ServersTransportSpecForwardingTimeoutsArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportTCPSpecInput)(nil)).Elem(), ServersTransportTCPSpecArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportTCPSpecPtrInput)(nil)).Elem(), ServersTransportTCPSpecArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportTCPSpecTlsInput)(nil)).Elem(), ServersTransportTCPSpecTlsArgs{})
@ -18787,6 +19340,10 @@ func init() {
pulumi.RegisterOutputType(MiddlewareTCPSpecInFlightConnPtrOutput{})
pulumi.RegisterOutputType(MiddlewareTCPSpecIpWhiteListOutput{})
pulumi.RegisterOutputType(MiddlewareTCPSpecIpWhiteListPtrOutput{})
pulumi.RegisterOutputType(ServersTransportSpecOutput{})
pulumi.RegisterOutputType(ServersTransportSpecPtrOutput{})
pulumi.RegisterOutputType(ServersTransportSpecForwardingTimeoutsOutput{})
pulumi.RegisterOutputType(ServersTransportSpecForwardingTimeoutsPtrOutput{})
pulumi.RegisterOutputType(ServersTransportTCPSpecOutput{})
pulumi.RegisterOutputType(ServersTransportTCPSpecPtrOutput{})
pulumi.RegisterOutputType(ServersTransportTCPSpecTlsOutput{})

View File

@ -0,0 +1,154 @@
// Code generated by crd2pulumi DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1alpha1
import (
"context"
"reflect"
"antoine-roux.tk/projects/go/pulumi-library/crds/kubernetes/internal"
v1 "github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
)
// ServersTransport is the CRD implementation of a ServersTransport. If no serversTransport is specified, the default@internal will be used. The default@internal serversTransport is created from the static configuration. More info: https://doc.traefik.io/traefik/v2.10/routing/services/#serverstransport_1
type ServersTransport struct {
pulumi.CustomResourceState
ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"`
Kind pulumi.StringPtrOutput `pulumi:"kind"`
Metadata v1.ObjectMetaOutput `pulumi:"metadata"`
// ServersTransportSpec defines the desired state of a ServersTransport.
Spec ServersTransportSpecOutput `pulumi:"spec"`
}
// NewServersTransport registers a new resource with the given unique name, arguments, and options.
func NewServersTransport(ctx *pulumi.Context,
name string, args *ServersTransportArgs, opts ...pulumi.ResourceOption) (*ServersTransport, error) {
if args == nil {
args = &ServersTransportArgs{}
}
args.ApiVersion = pulumi.StringPtr("traefik.io/v1alpha1")
args.Kind = pulumi.StringPtr("ServersTransport")
opts = internal.PkgResourceDefaultOpts(opts)
var resource ServersTransport
err := ctx.RegisterResource("kubernetes:traefik.io/v1alpha1:ServersTransport", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetServersTransport gets an existing ServersTransport resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetServersTransport(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ServersTransportState, opts ...pulumi.ResourceOption) (*ServersTransport, error) {
var resource ServersTransport
err := ctx.ReadResource("kubernetes:traefik.io/v1alpha1:ServersTransport", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ServersTransport resources.
type serversTransportState struct {
}
type ServersTransportState struct {
}
func (ServersTransportState) ElementType() reflect.Type {
return reflect.TypeOf((*serversTransportState)(nil)).Elem()
}
type serversTransportArgs struct {
ApiVersion *string `pulumi:"apiVersion"`
Kind *string `pulumi:"kind"`
Metadata *v1.ObjectMeta `pulumi:"metadata"`
// ServersTransportSpec defines the desired state of a ServersTransport.
Spec *ServersTransportSpec `pulumi:"spec"`
}
// The set of arguments for constructing a ServersTransport resource.
type ServersTransportArgs struct {
ApiVersion pulumi.StringPtrInput
Kind pulumi.StringPtrInput
Metadata v1.ObjectMetaPtrInput
// ServersTransportSpec defines the desired state of a ServersTransport.
Spec ServersTransportSpecPtrInput
}
func (ServersTransportArgs) ElementType() reflect.Type {
return reflect.TypeOf((*serversTransportArgs)(nil)).Elem()
}
type ServersTransportInput interface {
pulumi.Input
ToServersTransportOutput() ServersTransportOutput
ToServersTransportOutputWithContext(ctx context.Context) ServersTransportOutput
}
func (*ServersTransport) ElementType() reflect.Type {
return reflect.TypeOf((**ServersTransport)(nil)).Elem()
}
func (i *ServersTransport) ToServersTransportOutput() ServersTransportOutput {
return i.ToServersTransportOutputWithContext(context.Background())
}
func (i *ServersTransport) ToServersTransportOutputWithContext(ctx context.Context) ServersTransportOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServersTransportOutput)
}
func (i *ServersTransport) ToOutput(ctx context.Context) pulumix.Output[*ServersTransport] {
return pulumix.Output[*ServersTransport]{
OutputState: i.ToServersTransportOutputWithContext(ctx).OutputState,
}
}
type ServersTransportOutput struct{ *pulumi.OutputState }
func (ServersTransportOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServersTransport)(nil)).Elem()
}
func (o ServersTransportOutput) ToServersTransportOutput() ServersTransportOutput {
return o
}
func (o ServersTransportOutput) ToServersTransportOutputWithContext(ctx context.Context) ServersTransportOutput {
return o
}
func (o ServersTransportOutput) ToOutput(ctx context.Context) pulumix.Output[*ServersTransport] {
return pulumix.Output[*ServersTransport]{
OutputState: o.OutputState,
}
}
func (o ServersTransportOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServersTransport) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
func (o ServersTransportOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServersTransport) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput)
}
func (o ServersTransportOutput) Metadata() v1.ObjectMetaOutput {
return o.ApplyT(func(v *ServersTransport) v1.ObjectMetaOutput { return v.Metadata }).(v1.ObjectMetaOutput)
}
// ServersTransportSpec defines the desired state of a ServersTransport.
func (o ServersTransportOutput) Spec() ServersTransportSpecOutput {
return o.ApplyT(func(v *ServersTransport) ServersTransportSpecOutput { return v.Spec }).(ServersTransportSpecOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ServersTransportInput)(nil)).Elem(), &ServersTransport{})
pulumi.RegisterOutputType(ServersTransportOutput{})
}

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.21.5
require (
github.com/blang/semver v3.5.1+incompatible
github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.5.4
github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.5.5
github.com/pulumi/pulumi/sdk/v3 v3.95.0
)

4
go.sum
View File

@ -151,8 +151,8 @@ github.com/pulumi/appdash v0.0.0-20231130102013-538fec2a741d h1:dRSCMm3Eme0AaQzF
github.com/pulumi/appdash v0.0.0-20231130102013-538fec2a741d/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI=
github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04=
github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.5.4 h1:f+0xGINXUOv64e+GIuYPTUmSCL6cWNI1OoeJx+6rqPk=
github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.5.4/go.mod h1:E71mSAsusn1tMAbUUQlXavRdrbFtYpikkcczeWBr6+w=
github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.5.5 h1:gA+TR5UEITRZNlk6DQxMlMDXJmkB51EofuBrH3QL+/A=
github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.5.5/go.mod h1:E71mSAsusn1tMAbUUQlXavRdrbFtYpikkcczeWBr6+w=
github.com/pulumi/pulumi/sdk/v3 v3.95.0 h1:SBpFZYdbVF8DtmiEosut2BRVRjLxPpcQf5bOkyPWosQ=
github.com/pulumi/pulumi/sdk/v3 v3.95.0/go.mod h1:xzyBCCPSyLSqOVyfwlaXIS7FqxpiGyLcOOWCzBF7ZKY=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=