Bridge what Dokploy v0.30 added, and let the docs through
Six new resources from terraform-provider-dokploy v0.2.0 -- Network, DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`, `icon`) and Application. Verified with `pulumi up` against a live v0.30.2 instance: create, preview-clean, and destroy. The upstream provider also now refuses a volume Mount with no `volumeName`, which Dokploy would otherwise turn into an anonymous Docker volume recreated on every deploy. That surfaces here at preview time, before anything exists. Two things made that fix nearly invisible to Pulumi users, so this commit fixes the second one: the bridge resolves the upstream `docs/` through the Go module cache, where a locally `replace`d dependency never lands, so tfgen was emitting every resource with no description at all. UpstreamRepoPath now points at the checkout and all 445 inputs carry documentation -- with names rendered per language, so Python readers see `volume_name` where TypeScript readers see `volumeName`.
This commit is contained in:
Generated
+29
-8
@@ -11,6 +11,7 @@ import (
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// Look up an existing application by ID.
|
||||
func LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ...pulumi.InvokeOption) (*LookupApplicationResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupApplicationResult
|
||||
@@ -23,20 +24,30 @@ func LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ..
|
||||
|
||||
// A collection of arguments for invoking getApplication.
|
||||
type LookupApplicationArgs struct {
|
||||
// Application identifier.
|
||||
Id string `pulumi:"id"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getApplication.
|
||||
type LookupApplicationResult struct {
|
||||
AppName string `pulumi:"appName"`
|
||||
// Docker service name.
|
||||
AppName string `pulumi:"appName"`
|
||||
// Current status.
|
||||
ApplicationStatus string `pulumi:"applicationStatus"`
|
||||
BuildType string `pulumi:"buildType"`
|
||||
CreatedAt string `pulumi:"createdAt"`
|
||||
Description string `pulumi:"description"`
|
||||
EnvironmentId string `pulumi:"environmentId"`
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
SourceType string `pulumi:"sourceType"`
|
||||
// Build strategy.
|
||||
BuildType string `pulumi:"buildType"`
|
||||
// Creation timestamp.
|
||||
CreatedAt string `pulumi:"createdAt"`
|
||||
// Application description.
|
||||
Description string `pulumi:"description"`
|
||||
// Owning environment.
|
||||
EnvironmentId string `pulumi:"environmentId"`
|
||||
// Application identifier.
|
||||
Id string `pulumi:"id"`
|
||||
// Application name.
|
||||
Name string `pulumi:"name"`
|
||||
// Source of the code or image.
|
||||
SourceType string `pulumi:"sourceType"`
|
||||
}
|
||||
|
||||
func LookupApplicationOutput(ctx *pulumi.Context, args LookupApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupApplicationResultOutput {
|
||||
@@ -50,6 +61,7 @@ func LookupApplicationOutput(ctx *pulumi.Context, args LookupApplicationOutputAr
|
||||
|
||||
// A collection of arguments for invoking getApplication.
|
||||
type LookupApplicationOutputArgs struct {
|
||||
// Application identifier.
|
||||
Id pulumi.StringInput `pulumi:"id"`
|
||||
}
|
||||
|
||||
@@ -72,38 +84,47 @@ func (o LookupApplicationResultOutput) ToLookupApplicationResultOutputWithContex
|
||||
return o
|
||||
}
|
||||
|
||||
// Docker service name.
|
||||
func (o LookupApplicationResultOutput) AppName() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.AppName }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Current status.
|
||||
func (o LookupApplicationResultOutput) ApplicationStatus() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.ApplicationStatus }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Build strategy.
|
||||
func (o LookupApplicationResultOutput) BuildType() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.BuildType }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Creation timestamp.
|
||||
func (o LookupApplicationResultOutput) CreatedAt() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.CreatedAt }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Application description.
|
||||
func (o LookupApplicationResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Owning environment.
|
||||
func (o LookupApplicationResultOutput) EnvironmentId() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.EnvironmentId }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Application identifier.
|
||||
func (o LookupApplicationResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Application name.
|
||||
func (o LookupApplicationResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Source of the code or image.
|
||||
func (o LookupApplicationResultOutput) SourceType() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.SourceType }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user