ChartNamespaceArgs

data class ChartNamespaceArgs(val autoCreateRepo: Output<Boolean>? = null, val defaultRepoType: Output<String>? = null, val instanceId: Output<String>? = null, val namespaceName: Output<String>? = null) : ConvertibleToJava<ChartNamespaceArgs>

Provides a CR Chart Namespace resource. For information about CR Chart Namespace and how to use it, see What is Chart Namespace.

NOTE: Available in v1.149.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cr.RegistryEnterpriseInstance;
import com.pulumi.alicloud.cr.RegistryEnterpriseInstanceArgs;
import com.pulumi.alicloud.cr.ChartNamespace;
import com.pulumi.alicloud.cr.ChartNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultRegistryEnterpriseInstance = new RegistryEnterpriseInstance("defaultRegistryEnterpriseInstance", RegistryEnterpriseInstanceArgs.builder()
.paymentType("Subscription")
.period(1)
.instanceType("Advanced")
.instanceName("name")
.build());
var defaultChartNamespace = new ChartNamespace("defaultChartNamespace", ChartNamespaceArgs.builder()
.instanceId(defaultRegistryEnterpriseInstance.id())
.namespaceName("name")
.build());
}
}

Import

CR Chart Namespace can be imported using the id, e.g.

$ pulumi import alicloud:cr/chartNamespace:ChartNamespace example <instance_id>:<namespace_name>

Constructors

Link copied to clipboard
fun ChartNamespaceArgs(autoCreateRepo: Output<Boolean>? = null, defaultRepoType: Output<String>? = null, instanceId: Output<String>? = null, namespaceName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ChartNamespaceArgs

Properties

Link copied to clipboard
val autoCreateRepo: Output<Boolean>? = null

Specifies whether to automatically create repositories in the namespace. Valid values:

Link copied to clipboard
val defaultRepoType: Output<String>? = null

DefaultRepoType. Valid values: PRIVATE, PUBLIC.

Link copied to clipboard
val instanceId: Output<String>? = null

The ID of the Container Registry instance.

Link copied to clipboard
val namespaceName: Output<String>? = null

The name of the namespace that you want to create.