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`.
230 lines
8.9 KiB
C#
Generated
230 lines
8.9 KiB
C#
Generated
// *** WARNING: this file was generated by pulumi-language-dotnet. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Threading.Tasks;
|
|
using Pulumi.Serialization;
|
|
using Pulumi;
|
|
|
|
namespace Maxvojtkov.Dokploy
|
|
{
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[DokployResourceType("dokploy:index/mount:Mount")]
|
|
public partial class Mount : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// Contents of the generated file, when `Type` is `File`.
|
|
/// </summary>
|
|
[Output("content")]
|
|
public Output<string?> Content { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Path of the generated file, when `Type` is `File`.
|
|
/// </summary>
|
|
[Output("filePath")]
|
|
public Output<string?> FilePath { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Path on the host, when `Type` is `Bind`.
|
|
/// </summary>
|
|
[Output("hostPath")]
|
|
public Output<string?> HostPath { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Path inside the container where the mount appears.
|
|
/// </summary>
|
|
[Output("mountPath")]
|
|
public Output<string> MountPath { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// ID of the service this mount attaches to. Must match `ServiceType` — an application ID, a compose ID, a postgres ID, and so on.
|
|
/// </summary>
|
|
[Output("serviceId")]
|
|
public Output<string> ServiceId { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// The kind of service this mount attaches to. Valid values: `Application`, `Postgres`, `Mysql`, `Mariadb`, `Mongo`, `Redis`, `Compose`, `Libsql`.
|
|
/// </summary>
|
|
[Output("serviceType")]
|
|
public Output<string> ServiceType { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// The kind of mount to create. Valid values: `Bind`, `Volume`, `File`.
|
|
/// </summary>
|
|
[Output("type")]
|
|
public Output<string> Type { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Name of the Docker volume, when `Type` is `Volume`.
|
|
/// </summary>
|
|
[Output("volumeName")]
|
|
public Output<string?> VolumeName { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a Mount resource with the given unique name, arguments, and options.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resource</param>
|
|
/// <param name="args">The arguments used to populate this resource's properties</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public Mount(string name, MountArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/mount:Mount", name, args ?? new MountArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private Mount(string name, Input<string> id, MountState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/mount:Mount", name, state, MakeResourceOptions(options, id))
|
|
{
|
|
}
|
|
|
|
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
|
{
|
|
var defaultOptions = new CustomResourceOptions
|
|
{
|
|
Version = Utilities.Version,
|
|
PluginDownloadURL = "https://gitea.coolify.vojtkov.dev/usr_unknown/pulumi-dokploy/releases/download/v${VERSION}",
|
|
};
|
|
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
|
// Override the ID if one was specified for consistency with other language SDKs.
|
|
merged.Id = id ?? merged.Id;
|
|
return merged;
|
|
}
|
|
/// <summary>
|
|
/// Get an existing Mount resource's state with the given name, ID, and optional extra
|
|
/// properties used to qualify the lookup.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resulting resource.</param>
|
|
/// <param name="id">The unique provider ID of the resource to lookup.</param>
|
|
/// <param name="state">Any extra arguments used during the lookup.</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public static Mount Get(string name, Input<string> id, MountState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new Mount(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class MountArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Contents of the generated file, when `Type` is `File`.
|
|
/// </summary>
|
|
[Input("content")]
|
|
public Input<string>? Content { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path of the generated file, when `Type` is `File`.
|
|
/// </summary>
|
|
[Input("filePath")]
|
|
public Input<string>? FilePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path on the host, when `Type` is `Bind`.
|
|
/// </summary>
|
|
[Input("hostPath")]
|
|
public Input<string>? HostPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path inside the container where the mount appears.
|
|
/// </summary>
|
|
[Input("mountPath", required: true)]
|
|
public Input<string> MountPath { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// ID of the service this mount attaches to. Must match `ServiceType` — an application ID, a compose ID, a postgres ID, and so on.
|
|
/// </summary>
|
|
[Input("serviceId", required: true)]
|
|
public Input<string> ServiceId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// The kind of service this mount attaches to. Valid values: `Application`, `Postgres`, `Mysql`, `Mariadb`, `Mongo`, `Redis`, `Compose`, `Libsql`.
|
|
/// </summary>
|
|
[Input("serviceType", required: true)]
|
|
public Input<string> ServiceType { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// The kind of mount to create. Valid values: `Bind`, `Volume`, `File`.
|
|
/// </summary>
|
|
[Input("type", required: true)]
|
|
public Input<string> Type { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Name of the Docker volume, when `Type` is `Volume`.
|
|
/// </summary>
|
|
[Input("volumeName")]
|
|
public Input<string>? VolumeName { get; set; }
|
|
|
|
public MountArgs()
|
|
{
|
|
}
|
|
public static new MountArgs Empty => new MountArgs();
|
|
}
|
|
|
|
public sealed class MountState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Contents of the generated file, when `Type` is `File`.
|
|
/// </summary>
|
|
[Input("content")]
|
|
public Input<string>? Content { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path of the generated file, when `Type` is `File`.
|
|
/// </summary>
|
|
[Input("filePath")]
|
|
public Input<string>? FilePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path on the host, when `Type` is `Bind`.
|
|
/// </summary>
|
|
[Input("hostPath")]
|
|
public Input<string>? HostPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path inside the container where the mount appears.
|
|
/// </summary>
|
|
[Input("mountPath")]
|
|
public Input<string>? MountPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// ID of the service this mount attaches to. Must match `ServiceType` — an application ID, a compose ID, a postgres ID, and so on.
|
|
/// </summary>
|
|
[Input("serviceId")]
|
|
public Input<string>? ServiceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The kind of service this mount attaches to. Valid values: `Application`, `Postgres`, `Mysql`, `Mariadb`, `Mongo`, `Redis`, `Compose`, `Libsql`.
|
|
/// </summary>
|
|
[Input("serviceType")]
|
|
public Input<string>? ServiceType { get; set; }
|
|
|
|
/// <summary>
|
|
/// The kind of mount to create. Valid values: `Bind`, `Volume`, `File`.
|
|
/// </summary>
|
|
[Input("type")]
|
|
public Input<string>? Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Name of the Docker volume, when `Type` is `Volume`.
|
|
/// </summary>
|
|
[Input("volumeName")]
|
|
public Input<string>? VolumeName { get; set; }
|
|
|
|
public MountState()
|
|
{
|
|
}
|
|
public static new MountState Empty => new MountState();
|
|
}
|
|
}
|