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
+24
-15
@@ -4,6 +4,15 @@
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* A volume, bind mount, or config file attached to a Dokploy service.
|
||||
*
|
||||
* * `type = "volume"` — a named Docker volume; set `volumeName`.
|
||||
* * `type = "bind"` — a path on the host; set `hostPath`.
|
||||
* * `type = "file"` — a file rendered from `content`; set `filePath`.
|
||||
*
|
||||
* > **A `volume` mount must set `volumeName`.** Dokploy hands an unset name to Docker as an empty source, which creates a fresh anonymous volume on every deploy and orphans the previous one — the data never survives a redeploy. The provider rejects that combination at plan time.
|
||||
*/
|
||||
export class Mount extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing Mount resource's state with the given name, ID, and optional extra
|
||||
@@ -53,7 +62,7 @@ export class Mount extends pulumi.CustomResource {
|
||||
*/
|
||||
declare public readonly serviceId: pulumi.Output<string>;
|
||||
/**
|
||||
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`.
|
||||
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`, `libsql`.
|
||||
*/
|
||||
declare public readonly serviceType: pulumi.Output<string>;
|
||||
/**
|
||||
@@ -121,35 +130,35 @@ export interface MountState {
|
||||
/**
|
||||
* Contents of the generated file, when `type` is `file`.
|
||||
*/
|
||||
content?: pulumi.Input<string>;
|
||||
content?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Path of the generated file, when `type` is `file`.
|
||||
*/
|
||||
filePath?: pulumi.Input<string>;
|
||||
filePath?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Path on the host, when `type` is `bind`.
|
||||
*/
|
||||
hostPath?: pulumi.Input<string>;
|
||||
hostPath?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Path inside the container where the mount appears.
|
||||
*/
|
||||
mountPath?: pulumi.Input<string>;
|
||||
mountPath?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* ID of the service this mount attaches to. Must match `serviceType` — an application ID, a compose ID, a postgres ID, and so on.
|
||||
*/
|
||||
serviceId?: pulumi.Input<string>;
|
||||
serviceId?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`.
|
||||
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`, `libsql`.
|
||||
*/
|
||||
serviceType?: pulumi.Input<string>;
|
||||
serviceType?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* The kind of mount to create. Valid values: `bind`, `volume`, `file`.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
type?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Name of the Docker volume, when `type` is `volume`.
|
||||
*/
|
||||
volumeName?: pulumi.Input<string>;
|
||||
volumeName?: pulumi.Input<string | undefined>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -159,15 +168,15 @@ export interface MountArgs {
|
||||
/**
|
||||
* Contents of the generated file, when `type` is `file`.
|
||||
*/
|
||||
content?: pulumi.Input<string>;
|
||||
content?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Path of the generated file, when `type` is `file`.
|
||||
*/
|
||||
filePath?: pulumi.Input<string>;
|
||||
filePath?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Path on the host, when `type` is `bind`.
|
||||
*/
|
||||
hostPath?: pulumi.Input<string>;
|
||||
hostPath?: pulumi.Input<string | undefined>;
|
||||
/**
|
||||
* Path inside the container where the mount appears.
|
||||
*/
|
||||
@@ -177,7 +186,7 @@ export interface MountArgs {
|
||||
*/
|
||||
serviceId: pulumi.Input<string>;
|
||||
/**
|
||||
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`.
|
||||
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`, `libsql`.
|
||||
*/
|
||||
serviceType: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -187,5 +196,5 @@ export interface MountArgs {
|
||||
/**
|
||||
* Name of the Docker volume, when `type` is `volume`.
|
||||
*/
|
||||
volumeName?: pulumi.Input<string>;
|
||||
volumeName?: pulumi.Input<string | undefined>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user