published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
Resource for managing Harness Chaos Fault Templates. Phase 1: Core fields (identity, name, description, tags, category, infrastructure, basic spec)
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// ============================================================================
// Harness Chaos Fault Template Resource Examples
// ============================================================================
//
// Fault templates define reusable chaos faults for experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Faults inject failures into systems (pod delete, network latency, etc.)
// - Type is usually "Custom" for custom faults
// - Category and infrastructures define where fault can run
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Basic Kubernetes Fault (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: Custom Kubernetes fault with container spec
const kubernetesFault = new harness.chaos.FaultTemplate("kubernetes_fault", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
hubIdentity: projectLevel.identity,
identity: "k8s-fault-template",
name: "Kubernetes Fault Template",
description: "Custom Kubernetes fault for chaos injection",
categories: ["Kubernetes"],
infrastructures: ["KubernetesV2"],
type: "Custom",
permissionsRequired: "Basic",
tags: [
"kubernetes",
"fault",
"custom",
],
links: [{
name: "Documentation",
url: "https://docs.harness.io/chaos",
}],
spec: {
chaos: {
faultName: "byoc-injector",
params: [
{
name: "CHAOS_DURATION",
value: "30s",
},
{
name: "CHAOS_INTERVAL",
value: "5s",
},
],
kubernetes: {
image: "chaosnative/go-runner:ci",
commands: [
"/bin/bash",
"-c",
],
args: ["echo 'Running chaos fault'; sleep 30"],
imagePullPolicy: "IfNotPresent",
resources: {
limits: {
cpu: "150m",
memory: "150Mi",
},
requests: {
cpu: "100m",
memory: "100Mi",
},
},
},
},
},
}, {
dependsOn: [projectLevel],
});
// ----------------------------------------------------------------------------
// Example 2: Fault with Environment Variables (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with environment variables for configuration
const faultWithEnv = new harness.chaos.FaultTemplate("fault_with_env", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
hubIdentity: projectLevel.identity,
identity: "fault-with-env-template",
name: "Fault with Environment Variables",
description: "Fault template with environment configuration",
categories: ["Kubernetes"],
infrastructures: ["KubernetesV2"],
type: "Custom",
permissionsRequired: "Basic",
tags: [
"kubernetes",
"env",
"config",
],
links: [{
name: "Documentation",
url: "https://docs.harness.io/chaos",
}],
spec: {
chaos: {
faultName: "byoc-injector",
params: [
{
name: "CHAOS_DURATION",
value: "15s",
},
{
name: "CHAOS_INTERVAL",
value: "3s",
},
{
name: "TARGET_NAMESPACE",
value: "<+input>.default('default')",
},
],
kubernetes: {
image: "chaosnative/go-runner:ci",
commands: [
"/bin/bash",
"-c",
],
args: ["echo 'Fault with env vars'; sleep 15"],
imagePullPolicy: "IfNotPresent",
envs: [
{
name: "TARGET_NAMESPACE",
value: "<+input>.default('default')",
},
{
name: "CHAOS_MODE",
value: "pod",
},
],
resources: {
limits: {
cpu: "200m",
memory: "200Mi",
},
},
},
},
},
variables: [{
name: "target_namespace",
value: "<+input>",
type: "string",
required: false,
description: "Target namespace for chaos injection",
}],
}, {
dependsOn: [projectLevel],
});
// ----------------------------------------------------------------------------
// Example 3: Fault with Advanced Configuration (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with node selector, labels, and annotations
const advancedFault = new harness.chaos.FaultTemplate("advanced_fault", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
hubIdentity: projectLevel.identity,
identity: "advanced-fault-template",
name: "Advanced Fault Template",
description: "Fault with advanced Kubernetes configuration",
categories: ["Kubernetes"],
infrastructures: ["KubernetesV2"],
type: "Custom",
permissionsRequired: "Basic",
tags: [
"kubernetes",
"advanced",
"production",
],
links: [
{
name: "Documentation",
url: "https://docs.harness.io/chaos",
},
{
name: "Support",
url: "https://support.harness.io",
},
],
spec: {
chaos: {
faultName: "byoc-injector",
params: [
{
name: "CHAOS_DURATION",
value: "<+input>.default('30s')",
},
{
name: "CHAOS_INTERVAL",
value: "<+input>.default('5s')",
},
],
kubernetes: {
image: "chaosnative/go-runner:ci",
commands: [
"/bin/bash",
"-c",
],
args: ["echo 'Advanced chaos fault'; sleep 30"],
imagePullPolicy: "IfNotPresent",
nodeSelector: {
disktype: "ssd",
zone: "us-west-1a",
},
labels: {
app: "chaos-fault",
environment: "production",
"managed-by": "terraform",
},
annotations: {
description: "Advanced chaos fault",
owner: "chaos-team",
},
resources: {
limits: {
cpu: "250m",
memory: "256Mi",
},
requests: {
cpu: "125m",
memory: "128Mi",
},
},
},
},
},
variables: [
{
name: "chaos_duration",
value: "<+input>",
type: "string",
required: true,
description: "Duration of chaos injection",
},
{
name: "chaos_interval",
value: "<+input>",
type: "string",
required: false,
description: "Interval between chaos injections",
},
],
}, {
dependsOn: [projectLevel],
});
import pulumi
import pulumi_harness as harness
# ============================================================================
# Harness Chaos Fault Template Resource Examples
# ============================================================================
#
# Fault templates define reusable chaos faults for experiments.
# These examples are based on TESTED configurations from the e2e-test suite.
#
# Key Points:
# - Faults inject failures into systems (pod delete, network latency, etc.)
# - Type is usually "Custom" for custom faults
# - Category and infrastructures define where fault can run
# ============================================================================
# ----------------------------------------------------------------------------
# Example 1: Basic Kubernetes Fault (TESTED ✅)
# ----------------------------------------------------------------------------
# Most common pattern: Custom Kubernetes fault with container spec
kubernetes_fault = harness.chaos.FaultTemplate("kubernetes_fault",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
hub_identity=project_level["identity"],
identity="k8s-fault-template",
name="Kubernetes Fault Template",
description="Custom Kubernetes fault for chaos injection",
categories=["Kubernetes"],
infrastructures=["KubernetesV2"],
type="Custom",
permissions_required="Basic",
tags=[
"kubernetes",
"fault",
"custom",
],
links=[{
"name": "Documentation",
"url": "https://docs.harness.io/chaos",
}],
spec={
"chaos": {
"fault_name": "byoc-injector",
"params": [
{
"name": "CHAOS_DURATION",
"value": "30s",
},
{
"name": "CHAOS_INTERVAL",
"value": "5s",
},
],
"kubernetes": {
"image": "chaosnative/go-runner:ci",
"commands": [
"/bin/bash",
"-c",
],
"args": ["echo 'Running chaos fault'; sleep 30"],
"image_pull_policy": "IfNotPresent",
"resources": {
"limits": {
"cpu": "150m",
"memory": "150Mi",
},
"requests": {
"cpu": "100m",
"memory": "100Mi",
},
},
},
},
},
opts = pulumi.ResourceOptions(depends_on=[project_level]))
# ----------------------------------------------------------------------------
# Example 2: Fault with Environment Variables (TESTED ✅)
# ----------------------------------------------------------------------------
# Fault with environment variables for configuration
fault_with_env = harness.chaos.FaultTemplate("fault_with_env",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
hub_identity=project_level["identity"],
identity="fault-with-env-template",
name="Fault with Environment Variables",
description="Fault template with environment configuration",
categories=["Kubernetes"],
infrastructures=["KubernetesV2"],
type="Custom",
permissions_required="Basic",
tags=[
"kubernetes",
"env",
"config",
],
links=[{
"name": "Documentation",
"url": "https://docs.harness.io/chaos",
}],
spec={
"chaos": {
"fault_name": "byoc-injector",
"params": [
{
"name": "CHAOS_DURATION",
"value": "15s",
},
{
"name": "CHAOS_INTERVAL",
"value": "3s",
},
{
"name": "TARGET_NAMESPACE",
"value": "<+input>.default('default')",
},
],
"kubernetes": {
"image": "chaosnative/go-runner:ci",
"commands": [
"/bin/bash",
"-c",
],
"args": ["echo 'Fault with env vars'; sleep 15"],
"image_pull_policy": "IfNotPresent",
"envs": [
{
"name": "TARGET_NAMESPACE",
"value": "<+input>.default('default')",
},
{
"name": "CHAOS_MODE",
"value": "pod",
},
],
"resources": {
"limits": {
"cpu": "200m",
"memory": "200Mi",
},
},
},
},
},
variables=[{
"name": "target_namespace",
"value": "<+input>",
"type": "string",
"required": False,
"description": "Target namespace for chaos injection",
}],
opts = pulumi.ResourceOptions(depends_on=[project_level]))
# ----------------------------------------------------------------------------
# Example 3: Fault with Advanced Configuration (TESTED ✅)
# ----------------------------------------------------------------------------
# Fault with node selector, labels, and annotations
advanced_fault = harness.chaos.FaultTemplate("advanced_fault",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
hub_identity=project_level["identity"],
identity="advanced-fault-template",
name="Advanced Fault Template",
description="Fault with advanced Kubernetes configuration",
categories=["Kubernetes"],
infrastructures=["KubernetesV2"],
type="Custom",
permissions_required="Basic",
tags=[
"kubernetes",
"advanced",
"production",
],
links=[
{
"name": "Documentation",
"url": "https://docs.harness.io/chaos",
},
{
"name": "Support",
"url": "https://support.harness.io",
},
],
spec={
"chaos": {
"fault_name": "byoc-injector",
"params": [
{
"name": "CHAOS_DURATION",
"value": "<+input>.default('30s')",
},
{
"name": "CHAOS_INTERVAL",
"value": "<+input>.default('5s')",
},
],
"kubernetes": {
"image": "chaosnative/go-runner:ci",
"commands": [
"/bin/bash",
"-c",
],
"args": ["echo 'Advanced chaos fault'; sleep 30"],
"image_pull_policy": "IfNotPresent",
"node_selector": {
"disktype": "ssd",
"zone": "us-west-1a",
},
"labels": {
"app": "chaos-fault",
"environment": "production",
"managed-by": "terraform",
},
"annotations": {
"description": "Advanced chaos fault",
"owner": "chaos-team",
},
"resources": {
"limits": {
"cpu": "250m",
"memory": "256Mi",
},
"requests": {
"cpu": "125m",
"memory": "128Mi",
},
},
},
},
},
variables=[
{
"name": "chaos_duration",
"value": "<+input>",
"type": "string",
"required": True,
"description": "Duration of chaos injection",
},
{
"name": "chaos_interval",
"value": "<+input>",
"type": "string",
"required": False,
"description": "Interval between chaos injections",
},
],
opts = pulumi.ResourceOptions(depends_on=[project_level]))
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// ============================================================================
// Harness Chaos Fault Template Resource Examples
// ============================================================================
//
// Fault templates define reusable chaos faults for experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Faults inject failures into systems (pod delete, network latency, etc.)
// - Type is usually "Custom" for custom faults
// - Category and infrastructures define where fault can run
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Basic Kubernetes Fault (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: Custom Kubernetes fault with container spec
_, err := chaos.NewFaultTemplate(ctx, "kubernetes_fault", &chaos.FaultTemplateArgs{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
HubIdentity: pulumi.Any(projectLevel.Identity),
Identity: pulumi.String("k8s-fault-template"),
Name: pulumi.String("Kubernetes Fault Template"),
Description: pulumi.String("Custom Kubernetes fault for chaos injection"),
Categories: pulumi.StringArray{
pulumi.String("Kubernetes"),
},
Infrastructures: pulumi.StringArray{
pulumi.String("KubernetesV2"),
},
Type: pulumi.String("Custom"),
PermissionsRequired: pulumi.String("Basic"),
Tags: pulumi.StringArray{
pulumi.String("kubernetes"),
pulumi.String("fault"),
pulumi.String("custom"),
},
Links: chaos.FaultTemplateLinkArray{
&chaos.FaultTemplateLinkArgs{
Name: pulumi.String("Documentation"),
Url: pulumi.String("https://docs.harness.io/chaos"),
},
},
Spec: &chaos.FaultTemplateSpecArgs{
Chaos: &chaos.FaultTemplateSpecChaosArgs{
FaultName: pulumi.String("byoc-injector"),
Params: chaos.FaultTemplateSpecChaosParamArray{
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("CHAOS_DURATION"),
Value: pulumi.String("30s"),
},
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("CHAOS_INTERVAL"),
Value: pulumi.String("5s"),
},
},
Kubernetes: &chaos.FaultTemplateSpecChaosKubernetesArgs{
Image: pulumi.String("chaosnative/go-runner:ci"),
Commands: pulumi.StringArray{
pulumi.String("/bin/bash"),
pulumi.String("-c"),
},
Args: pulumi.StringArray{
pulumi.String("echo 'Running chaos fault'; sleep 30"),
},
ImagePullPolicy: pulumi.String("IfNotPresent"),
Resources: &chaos.FaultTemplateSpecChaosKubernetesResourcesArgs{
Limits: pulumi.StringMap{
"cpu": pulumi.String("150m"),
"memory": pulumi.String("150Mi"),
},
Requests: pulumi.StringMap{
"cpu": pulumi.String("100m"),
"memory": pulumi.String("100Mi"),
},
},
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
projectLevel,
}))
if err != nil {
return err
}
// ----------------------------------------------------------------------------
// Example 2: Fault with Environment Variables (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with environment variables for configuration
_, err = chaos.NewFaultTemplate(ctx, "fault_with_env", &chaos.FaultTemplateArgs{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
HubIdentity: pulumi.Any(projectLevel.Identity),
Identity: pulumi.String("fault-with-env-template"),
Name: pulumi.String("Fault with Environment Variables"),
Description: pulumi.String("Fault template with environment configuration"),
Categories: pulumi.StringArray{
pulumi.String("Kubernetes"),
},
Infrastructures: pulumi.StringArray{
pulumi.String("KubernetesV2"),
},
Type: pulumi.String("Custom"),
PermissionsRequired: pulumi.String("Basic"),
Tags: pulumi.StringArray{
pulumi.String("kubernetes"),
pulumi.String("env"),
pulumi.String("config"),
},
Links: chaos.FaultTemplateLinkArray{
&chaos.FaultTemplateLinkArgs{
Name: pulumi.String("Documentation"),
Url: pulumi.String("https://docs.harness.io/chaos"),
},
},
Spec: &chaos.FaultTemplateSpecArgs{
Chaos: &chaos.FaultTemplateSpecChaosArgs{
FaultName: pulumi.String("byoc-injector"),
Params: chaos.FaultTemplateSpecChaosParamArray{
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("CHAOS_DURATION"),
Value: pulumi.String("15s"),
},
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("CHAOS_INTERVAL"),
Value: pulumi.String("3s"),
},
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("TARGET_NAMESPACE"),
Value: pulumi.String("<+input>.default('default')"),
},
},
Kubernetes: &chaos.FaultTemplateSpecChaosKubernetesArgs{
Image: pulumi.String("chaosnative/go-runner:ci"),
Commands: pulumi.StringArray{
pulumi.String("/bin/bash"),
pulumi.String("-c"),
},
Args: pulumi.StringArray{
pulumi.String("echo 'Fault with env vars'; sleep 15"),
},
ImagePullPolicy: pulumi.String("IfNotPresent"),
Envs: chaos.FaultTemplateSpecChaosKubernetesEnvArray{
&chaos.FaultTemplateSpecChaosKubernetesEnvArgs{
Name: pulumi.String("TARGET_NAMESPACE"),
Value: pulumi.String("<+input>.default('default')"),
},
&chaos.FaultTemplateSpecChaosKubernetesEnvArgs{
Name: pulumi.String("CHAOS_MODE"),
Value: pulumi.String("pod"),
},
},
Resources: &chaos.FaultTemplateSpecChaosKubernetesResourcesArgs{
Limits: pulumi.StringMap{
"cpu": pulumi.String("200m"),
"memory": pulumi.String("200Mi"),
},
},
},
},
},
Variables: chaos.FaultTemplateVariableArray{
&chaos.FaultTemplateVariableArgs{
Name: pulumi.String("target_namespace"),
Value: pulumi.String("<+input>"),
Type: pulumi.String("string"),
Required: pulumi.Bool(false),
Description: pulumi.String("Target namespace for chaos injection"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
projectLevel,
}))
if err != nil {
return err
}
// ----------------------------------------------------------------------------
// Example 3: Fault with Advanced Configuration (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with node selector, labels, and annotations
_, err = chaos.NewFaultTemplate(ctx, "advanced_fault", &chaos.FaultTemplateArgs{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
HubIdentity: pulumi.Any(projectLevel.Identity),
Identity: pulumi.String("advanced-fault-template"),
Name: pulumi.String("Advanced Fault Template"),
Description: pulumi.String("Fault with advanced Kubernetes configuration"),
Categories: pulumi.StringArray{
pulumi.String("Kubernetes"),
},
Infrastructures: pulumi.StringArray{
pulumi.String("KubernetesV2"),
},
Type: pulumi.String("Custom"),
PermissionsRequired: pulumi.String("Basic"),
Tags: pulumi.StringArray{
pulumi.String("kubernetes"),
pulumi.String("advanced"),
pulumi.String("production"),
},
Links: chaos.FaultTemplateLinkArray{
&chaos.FaultTemplateLinkArgs{
Name: pulumi.String("Documentation"),
Url: pulumi.String("https://docs.harness.io/chaos"),
},
&chaos.FaultTemplateLinkArgs{
Name: pulumi.String("Support"),
Url: pulumi.String("https://support.harness.io"),
},
},
Spec: &chaos.FaultTemplateSpecArgs{
Chaos: &chaos.FaultTemplateSpecChaosArgs{
FaultName: pulumi.String("byoc-injector"),
Params: chaos.FaultTemplateSpecChaosParamArray{
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("CHAOS_DURATION"),
Value: pulumi.String("<+input>.default('30s')"),
},
&chaos.FaultTemplateSpecChaosParamArgs{
Name: pulumi.String("CHAOS_INTERVAL"),
Value: pulumi.String("<+input>.default('5s')"),
},
},
Kubernetes: &chaos.FaultTemplateSpecChaosKubernetesArgs{
Image: pulumi.String("chaosnative/go-runner:ci"),
Commands: pulumi.StringArray{
pulumi.String("/bin/bash"),
pulumi.String("-c"),
},
Args: pulumi.StringArray{
pulumi.String("echo 'Advanced chaos fault'; sleep 30"),
},
ImagePullPolicy: pulumi.String("IfNotPresent"),
NodeSelector: pulumi.StringMap{
"disktype": pulumi.String("ssd"),
"zone": pulumi.String("us-west-1a"),
},
Labels: pulumi.StringMap{
"app": pulumi.String("chaos-fault"),
"environment": pulumi.String("production"),
"managed-by": pulumi.String("terraform"),
},
Annotations: pulumi.StringMap{
"description": pulumi.String("Advanced chaos fault"),
"owner": pulumi.String("chaos-team"),
},
Resources: &chaos.FaultTemplateSpecChaosKubernetesResourcesArgs{
Limits: pulumi.StringMap{
"cpu": pulumi.String("250m"),
"memory": pulumi.String("256Mi"),
},
Requests: pulumi.StringMap{
"cpu": pulumi.String("125m"),
"memory": pulumi.String("128Mi"),
},
},
},
},
},
Variables: chaos.FaultTemplateVariableArray{
&chaos.FaultTemplateVariableArgs{
Name: pulumi.String("chaos_duration"),
Value: pulumi.String("<+input>"),
Type: pulumi.String("string"),
Required: pulumi.Bool(true),
Description: pulumi.String("Duration of chaos injection"),
},
&chaos.FaultTemplateVariableArgs{
Name: pulumi.String("chaos_interval"),
Value: pulumi.String("<+input>"),
Type: pulumi.String("string"),
Required: pulumi.Bool(false),
Description: pulumi.String("Interval between chaos injections"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
projectLevel,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
// ============================================================================
// Harness Chaos Fault Template Resource Examples
// ============================================================================
//
// Fault templates define reusable chaos faults for experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Faults inject failures into systems (pod delete, network latency, etc.)
// - Type is usually "Custom" for custom faults
// - Category and infrastructures define where fault can run
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Basic Kubernetes Fault (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: Custom Kubernetes fault with container spec
var kubernetesFault = new Harness.Chaos.FaultTemplate("kubernetes_fault", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
HubIdentity = projectLevel.Identity,
Identity = "k8s-fault-template",
Name = "Kubernetes Fault Template",
Description = "Custom Kubernetes fault for chaos injection",
Categories = new[]
{
"Kubernetes",
},
Infrastructures = new[]
{
"KubernetesV2",
},
Type = "Custom",
PermissionsRequired = "Basic",
Tags = new[]
{
"kubernetes",
"fault",
"custom",
},
Links = new[]
{
new Harness.Chaos.Inputs.FaultTemplateLinkArgs
{
Name = "Documentation",
Url = "https://docs.harness.io/chaos",
},
},
Spec = new Harness.Chaos.Inputs.FaultTemplateSpecArgs
{
Chaos = new Harness.Chaos.Inputs.FaultTemplateSpecChaosArgs
{
FaultName = "byoc-injector",
Params = new[]
{
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "CHAOS_DURATION",
Value = "30s",
},
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "CHAOS_INTERVAL",
Value = "5s",
},
},
Kubernetes = new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesArgs
{
Image = "chaosnative/go-runner:ci",
Commands = new[]
{
"/bin/bash",
"-c",
},
Args = new[]
{
"echo 'Running chaos fault'; sleep 30",
},
ImagePullPolicy = "IfNotPresent",
Resources = new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesResourcesArgs
{
Limits =
{
{ "cpu", "150m" },
{ "memory", "150Mi" },
},
Requests =
{
{ "cpu", "100m" },
{ "memory", "100Mi" },
},
},
},
},
},
}, new CustomResourceOptions
{
DependsOn =
{
projectLevel,
},
});
// ----------------------------------------------------------------------------
// Example 2: Fault with Environment Variables (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with environment variables for configuration
var faultWithEnv = new Harness.Chaos.FaultTemplate("fault_with_env", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
HubIdentity = projectLevel.Identity,
Identity = "fault-with-env-template",
Name = "Fault with Environment Variables",
Description = "Fault template with environment configuration",
Categories = new[]
{
"Kubernetes",
},
Infrastructures = new[]
{
"KubernetesV2",
},
Type = "Custom",
PermissionsRequired = "Basic",
Tags = new[]
{
"kubernetes",
"env",
"config",
},
Links = new[]
{
new Harness.Chaos.Inputs.FaultTemplateLinkArgs
{
Name = "Documentation",
Url = "https://docs.harness.io/chaos",
},
},
Spec = new Harness.Chaos.Inputs.FaultTemplateSpecArgs
{
Chaos = new Harness.Chaos.Inputs.FaultTemplateSpecChaosArgs
{
FaultName = "byoc-injector",
Params = new[]
{
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "CHAOS_DURATION",
Value = "15s",
},
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "CHAOS_INTERVAL",
Value = "3s",
},
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "TARGET_NAMESPACE",
Value = "<+input>.default('default')",
},
},
Kubernetes = new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesArgs
{
Image = "chaosnative/go-runner:ci",
Commands = new[]
{
"/bin/bash",
"-c",
},
Args = new[]
{
"echo 'Fault with env vars'; sleep 15",
},
ImagePullPolicy = "IfNotPresent",
Envs = new[]
{
new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesEnvArgs
{
Name = "TARGET_NAMESPACE",
Value = "<+input>.default('default')",
},
new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesEnvArgs
{
Name = "CHAOS_MODE",
Value = "pod",
},
},
Resources = new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesResourcesArgs
{
Limits =
{
{ "cpu", "200m" },
{ "memory", "200Mi" },
},
},
},
},
},
Variables = new[]
{
new Harness.Chaos.Inputs.FaultTemplateVariableArgs
{
Name = "target_namespace",
Value = "<+input>",
Type = "string",
Required = false,
Description = "Target namespace for chaos injection",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
projectLevel,
},
});
// ----------------------------------------------------------------------------
// Example 3: Fault with Advanced Configuration (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with node selector, labels, and annotations
var advancedFault = new Harness.Chaos.FaultTemplate("advanced_fault", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
HubIdentity = projectLevel.Identity,
Identity = "advanced-fault-template",
Name = "Advanced Fault Template",
Description = "Fault with advanced Kubernetes configuration",
Categories = new[]
{
"Kubernetes",
},
Infrastructures = new[]
{
"KubernetesV2",
},
Type = "Custom",
PermissionsRequired = "Basic",
Tags = new[]
{
"kubernetes",
"advanced",
"production",
},
Links = new[]
{
new Harness.Chaos.Inputs.FaultTemplateLinkArgs
{
Name = "Documentation",
Url = "https://docs.harness.io/chaos",
},
new Harness.Chaos.Inputs.FaultTemplateLinkArgs
{
Name = "Support",
Url = "https://support.harness.io",
},
},
Spec = new Harness.Chaos.Inputs.FaultTemplateSpecArgs
{
Chaos = new Harness.Chaos.Inputs.FaultTemplateSpecChaosArgs
{
FaultName = "byoc-injector",
Params = new[]
{
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "CHAOS_DURATION",
Value = "<+input>.default('30s')",
},
new Harness.Chaos.Inputs.FaultTemplateSpecChaosParamArgs
{
Name = "CHAOS_INTERVAL",
Value = "<+input>.default('5s')",
},
},
Kubernetes = new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesArgs
{
Image = "chaosnative/go-runner:ci",
Commands = new[]
{
"/bin/bash",
"-c",
},
Args = new[]
{
"echo 'Advanced chaos fault'; sleep 30",
},
ImagePullPolicy = "IfNotPresent",
NodeSelector =
{
{ "disktype", "ssd" },
{ "zone", "us-west-1a" },
},
Labels =
{
{ "app", "chaos-fault" },
{ "environment", "production" },
{ "managed-by", "terraform" },
},
Annotations =
{
{ "description", "Advanced chaos fault" },
{ "owner", "chaos-team" },
},
Resources = new Harness.Chaos.Inputs.FaultTemplateSpecChaosKubernetesResourcesArgs
{
Limits =
{
{ "cpu", "250m" },
{ "memory", "256Mi" },
},
Requests =
{
{ "cpu", "125m" },
{ "memory", "128Mi" },
},
},
},
},
},
Variables = new[]
{
new Harness.Chaos.Inputs.FaultTemplateVariableArgs
{
Name = "chaos_duration",
Value = "<+input>",
Type = "string",
Required = true,
Description = "Duration of chaos injection",
},
new Harness.Chaos.Inputs.FaultTemplateVariableArgs
{
Name = "chaos_interval",
Value = "<+input>",
Type = "string",
Required = false,
Description = "Interval between chaos injections",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
projectLevel,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.FaultTemplate;
import com.pulumi.harness.chaos.FaultTemplateArgs;
import com.pulumi.harness.chaos.inputs.FaultTemplateLinkArgs;
import com.pulumi.harness.chaos.inputs.FaultTemplateSpecArgs;
import com.pulumi.harness.chaos.inputs.FaultTemplateSpecChaosArgs;
import com.pulumi.harness.chaos.inputs.FaultTemplateSpecChaosKubernetesArgs;
import com.pulumi.harness.chaos.inputs.FaultTemplateSpecChaosKubernetesResourcesArgs;
import com.pulumi.harness.chaos.inputs.FaultTemplateVariableArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
// ============================================================================
// Harness Chaos Fault Template Resource Examples
// ============================================================================
//
// Fault templates define reusable chaos faults for experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Faults inject failures into systems (pod delete, network latency, etc.)
// - Type is usually "Custom" for custom faults
// - Category and infrastructures define where fault can run
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Basic Kubernetes Fault (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: Custom Kubernetes fault with container spec
var kubernetesFault = new FaultTemplate("kubernetesFault", FaultTemplateArgs.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.hubIdentity(projectLevel.identity())
.identity("k8s-fault-template")
.name("Kubernetes Fault Template")
.description("Custom Kubernetes fault for chaos injection")
.categories("Kubernetes")
.infrastructures("KubernetesV2")
.type("Custom")
.permissionsRequired("Basic")
.tags(
"kubernetes",
"fault",
"custom")
.links(FaultTemplateLinkArgs.builder()
.name("Documentation")
.url("https://docs.harness.io/chaos")
.build())
.spec(FaultTemplateSpecArgs.builder()
.chaos(FaultTemplateSpecChaosArgs.builder()
.faultName("byoc-injector")
.params(
FaultTemplateSpecChaosParamArgs.builder()
.name("CHAOS_DURATION")
.value("30s")
.build(),
FaultTemplateSpecChaosParamArgs.builder()
.name("CHAOS_INTERVAL")
.value("5s")
.build())
.kubernetes(FaultTemplateSpecChaosKubernetesArgs.builder()
.image("chaosnative/go-runner:ci")
.commands(
"/bin/bash",
"-c")
.args("echo 'Running chaos fault'; sleep 30")
.imagePullPolicy("IfNotPresent")
.resources(FaultTemplateSpecChaosKubernetesResourcesArgs.builder()
.limits(Map.ofEntries(
Map.entry("cpu", "150m"),
Map.entry("memory", "150Mi")
))
.requests(Map.ofEntries(
Map.entry("cpu", "100m"),
Map.entry("memory", "100Mi")
))
.build())
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(projectLevel)
.build());
// ----------------------------------------------------------------------------
// Example 2: Fault with Environment Variables (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with environment variables for configuration
var faultWithEnv = new FaultTemplate("faultWithEnv", FaultTemplateArgs.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.hubIdentity(projectLevel.identity())
.identity("fault-with-env-template")
.name("Fault with Environment Variables")
.description("Fault template with environment configuration")
.categories("Kubernetes")
.infrastructures("KubernetesV2")
.type("Custom")
.permissionsRequired("Basic")
.tags(
"kubernetes",
"env",
"config")
.links(FaultTemplateLinkArgs.builder()
.name("Documentation")
.url("https://docs.harness.io/chaos")
.build())
.spec(FaultTemplateSpecArgs.builder()
.chaos(FaultTemplateSpecChaosArgs.builder()
.faultName("byoc-injector")
.params(
FaultTemplateSpecChaosParamArgs.builder()
.name("CHAOS_DURATION")
.value("15s")
.build(),
FaultTemplateSpecChaosParamArgs.builder()
.name("CHAOS_INTERVAL")
.value("3s")
.build(),
FaultTemplateSpecChaosParamArgs.builder()
.name("TARGET_NAMESPACE")
.value("<+input>.default('default')")
.build())
.kubernetes(FaultTemplateSpecChaosKubernetesArgs.builder()
.image("chaosnative/go-runner:ci")
.commands(
"/bin/bash",
"-c")
.args("echo 'Fault with env vars'; sleep 15")
.imagePullPolicy("IfNotPresent")
.envs(
FaultTemplateSpecChaosKubernetesEnvArgs.builder()
.name("TARGET_NAMESPACE")
.value("<+input>.default('default')")
.build(),
FaultTemplateSpecChaosKubernetesEnvArgs.builder()
.name("CHAOS_MODE")
.value("pod")
.build())
.resources(FaultTemplateSpecChaosKubernetesResourcesArgs.builder()
.limits(Map.ofEntries(
Map.entry("cpu", "200m"),
Map.entry("memory", "200Mi")
))
.build())
.build())
.build())
.build())
.variables(FaultTemplateVariableArgs.builder()
.name("target_namespace")
.value("<+input>")
.type("string")
.required(false)
.description("Target namespace for chaos injection")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(projectLevel)
.build());
// ----------------------------------------------------------------------------
// Example 3: Fault with Advanced Configuration (TESTED ✅)
// ----------------------------------------------------------------------------
// Fault with node selector, labels, and annotations
var advancedFault = new FaultTemplate("advancedFault", FaultTemplateArgs.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.hubIdentity(projectLevel.identity())
.identity("advanced-fault-template")
.name("Advanced Fault Template")
.description("Fault with advanced Kubernetes configuration")
.categories("Kubernetes")
.infrastructures("KubernetesV2")
.type("Custom")
.permissionsRequired("Basic")
.tags(
"kubernetes",
"advanced",
"production")
.links(
FaultTemplateLinkArgs.builder()
.name("Documentation")
.url("https://docs.harness.io/chaos")
.build(),
FaultTemplateLinkArgs.builder()
.name("Support")
.url("https://support.harness.io")
.build())
.spec(FaultTemplateSpecArgs.builder()
.chaos(FaultTemplateSpecChaosArgs.builder()
.faultName("byoc-injector")
.params(
FaultTemplateSpecChaosParamArgs.builder()
.name("CHAOS_DURATION")
.value("<+input>.default('30s')")
.build(),
FaultTemplateSpecChaosParamArgs.builder()
.name("CHAOS_INTERVAL")
.value("<+input>.default('5s')")
.build())
.kubernetes(FaultTemplateSpecChaosKubernetesArgs.builder()
.image("chaosnative/go-runner:ci")
.commands(
"/bin/bash",
"-c")
.args("echo 'Advanced chaos fault'; sleep 30")
.imagePullPolicy("IfNotPresent")
.nodeSelector(Map.ofEntries(
Map.entry("disktype", "ssd"),
Map.entry("zone", "us-west-1a")
))
.labels(Map.ofEntries(
Map.entry("app", "chaos-fault"),
Map.entry("environment", "production"),
Map.entry("managed-by", "terraform")
))
.annotations(Map.ofEntries(
Map.entry("description", "Advanced chaos fault"),
Map.entry("owner", "chaos-team")
))
.resources(FaultTemplateSpecChaosKubernetesResourcesArgs.builder()
.limits(Map.ofEntries(
Map.entry("cpu", "250m"),
Map.entry("memory", "256Mi")
))
.requests(Map.ofEntries(
Map.entry("cpu", "125m"),
Map.entry("memory", "128Mi")
))
.build())
.build())
.build())
.build())
.variables(
FaultTemplateVariableArgs.builder()
.name("chaos_duration")
.value("<+input>")
.type("string")
.required(true)
.description("Duration of chaos injection")
.build(),
FaultTemplateVariableArgs.builder()
.name("chaos_interval")
.value("<+input>")
.type("string")
.required(false)
.description("Interval between chaos injections")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(projectLevel)
.build());
}
}
resources:
# ============================================================================
# Harness Chaos Fault Template Resource Examples
# ============================================================================
#
# Fault templates define reusable chaos faults for experiments.
# These examples are based on TESTED configurations from the e2e-test suite.
#
# Key Points:
# - Faults inject failures into systems (pod delete, network latency, etc.)
# - Type is usually "Custom" for custom faults
# - Category and infrastructures define where fault can run
# ============================================================================
# ----------------------------------------------------------------------------
# Example 1: Basic Kubernetes Fault (TESTED ✅)
# ----------------------------------------------------------------------------
# Most common pattern: Custom Kubernetes fault with container spec
kubernetesFault:
type: harness:chaos:FaultTemplate
name: kubernetes_fault
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
hubIdentity: ${projectLevel.identity}
identity: k8s-fault-template
name: Kubernetes Fault Template
description: Custom Kubernetes fault for chaos injection
categories:
- Kubernetes
infrastructures:
- KubernetesV2
type: Custom
permissionsRequired: Basic
tags:
- kubernetes
- fault
- custom
links:
- name: Documentation
url: https://docs.harness.io/chaos
spec:
chaos:
faultName: byoc-injector
params:
- name: CHAOS_DURATION
value: 30s
- name: CHAOS_INTERVAL
value: 5s
kubernetes:
image: chaosnative/go-runner:ci
commands:
- /bin/bash
- -c
args:
- echo 'Running chaos fault'; sleep 30
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 150m
memory: 150Mi
requests:
cpu: 100m
memory: 100Mi
options:
dependsOn:
- ${projectLevel}
# ----------------------------------------------------------------------------
# Example 2: Fault with Environment Variables (TESTED ✅)
# ----------------------------------------------------------------------------
# Fault with environment variables for configuration
faultWithEnv:
type: harness:chaos:FaultTemplate
name: fault_with_env
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
hubIdentity: ${projectLevel.identity}
identity: fault-with-env-template
name: Fault with Environment Variables
description: Fault template with environment configuration
categories:
- Kubernetes
infrastructures:
- KubernetesV2
type: Custom
permissionsRequired: Basic
tags:
- kubernetes
- env
- config
links:
- name: Documentation
url: https://docs.harness.io/chaos
spec:
chaos:
faultName: byoc-injector
params:
- name: CHAOS_DURATION
value: 15s
- name: CHAOS_INTERVAL
value: 3s
- name: TARGET_NAMESPACE
value: <+input>.default('default')
kubernetes:
image: chaosnative/go-runner:ci
commands:
- /bin/bash
- -c
args:
- echo 'Fault with env vars'; sleep 15
imagePullPolicy: IfNotPresent
envs:
- name: TARGET_NAMESPACE
value: <+input>.default('default')
- name: CHAOS_MODE
value: pod
resources:
limits:
cpu: 200m
memory: 200Mi
variables:
- name: target_namespace
value: <+input>
type: string
required: false
description: Target namespace for chaos injection
options:
dependsOn:
- ${projectLevel}
# ----------------------------------------------------------------------------
# Example 3: Fault with Advanced Configuration (TESTED ✅)
# ----------------------------------------------------------------------------
# Fault with node selector, labels, and annotations
advancedFault:
type: harness:chaos:FaultTemplate
name: advanced_fault
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
hubIdentity: ${projectLevel.identity}
identity: advanced-fault-template
name: Advanced Fault Template
description: Fault with advanced Kubernetes configuration
categories:
- Kubernetes
infrastructures:
- KubernetesV2
type: Custom
permissionsRequired: Basic
tags:
- kubernetes
- advanced
- production
links:
- name: Documentation
url: https://docs.harness.io/chaos
- name: Support
url: https://support.harness.io
spec:
chaos:
faultName: byoc-injector
params:
- name: CHAOS_DURATION
value: <+input>.default('30s')
- name: CHAOS_INTERVAL
value: <+input>.default('5s')
kubernetes:
image: chaosnative/go-runner:ci
commands:
- /bin/bash
- -c
args:
- echo 'Advanced chaos fault'; sleep 30
imagePullPolicy: IfNotPresent
nodeSelector:
disktype: ssd
zone: us-west-1a
labels:
app: chaos-fault
environment: production
managed-by: terraform
annotations:
description: Advanced chaos fault
owner: chaos-team
resources:
limits:
cpu: 250m
memory: 256Mi
requests:
cpu: 125m
memory: 128Mi
variables:
- name: chaos_duration
value: <+input>
type: string
required: true
description: Duration of chaos injection
- name: chaos_interval
value: <+input>
type: string
required: false
description: Interval between chaos injections
options:
dependsOn:
- ${projectLevel}
Create FaultTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FaultTemplate(name: string, args: FaultTemplateArgs, opts?: CustomResourceOptions);@overload
def FaultTemplate(resource_name: str,
args: FaultTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FaultTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
hub_identity: Optional[str] = None,
identity: Optional[str] = None,
links: Optional[Sequence[FaultTemplateLinkArgs]] = None,
permissions_required: Optional[str] = None,
categories: Optional[Sequence[str]] = None,
infrastructures: Optional[Sequence[str]] = None,
keywords: Optional[Sequence[str]] = None,
kind: Optional[str] = None,
api_version: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
description: Optional[str] = None,
platforms: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
revision: Optional[str] = None,
spec: Optional[FaultTemplateSpecArgs] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
variables: Optional[Sequence[FaultTemplateVariableArgs]] = None)func NewFaultTemplate(ctx *Context, name string, args FaultTemplateArgs, opts ...ResourceOption) (*FaultTemplate, error)public FaultTemplate(string name, FaultTemplateArgs args, CustomResourceOptions? opts = null)
public FaultTemplate(String name, FaultTemplateArgs args)
public FaultTemplate(String name, FaultTemplateArgs args, CustomResourceOptions options)
type: harness:chaos:FaultTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FaultTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FaultTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FaultTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FaultTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FaultTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FaultTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FaultTemplate resource accepts the following input properties:
- Hub
Identity string - Hub identity reference
- Identity string
- Unique identifier for the fault template (immutable)
- Api
Version string - API version
- Categories List<string>
- Fault categories
- Description string
- Description of the fault template
- Infrastructures List<string>
- List of supported infrastructures
- Keywords List<string>
- Search keywords
- Kind string
- Resource kind
- Links
List<Fault
Template Link> - Related links
- Name string
- Name of the fault template
- Org
Id string - Organization identifier
- Permissions
Required string - Required permissions for the fault
- Platforms List<string>
- Supported platforms
- Project
Id string - Project identifier
- Revision string
- Template revision (defaults to v1 if not specified)
- Spec
Fault
Template Spec - Fault specification
- List<string>
- Tags for the fault template
- Type string
- Fault type
- Variables
List<Fault
Template Variable> - Template variables
- Hub
Identity string - Hub identity reference
- Identity string
- Unique identifier for the fault template (immutable)
- Api
Version string - API version
- Categories []string
- Fault categories
- Description string
- Description of the fault template
- Infrastructures []string
- List of supported infrastructures
- Keywords []string
- Search keywords
- Kind string
- Resource kind
- Links
[]Fault
Template Link Args - Related links
- Name string
- Name of the fault template
- Org
Id string - Organization identifier
- Permissions
Required string - Required permissions for the fault
- Platforms []string
- Supported platforms
- Project
Id string - Project identifier
- Revision string
- Template revision (defaults to v1 if not specified)
- Spec
Fault
Template Spec Args - Fault specification
- []string
- Tags for the fault template
- Type string
- Fault type
- Variables
[]Fault
Template Variable Args - Template variables
- hub
Identity String - Hub identity reference
- identity String
- Unique identifier for the fault template (immutable)
- api
Version String - API version
- categories List<String>
- Fault categories
- description String
- Description of the fault template
- infrastructures List<String>
- List of supported infrastructures
- keywords List<String>
- Search keywords
- kind String
- Resource kind
- links
List<Fault
Template Link> - Related links
- name String
- Name of the fault template
- org
Id String - Organization identifier
- permissions
Required String - Required permissions for the fault
- platforms List<String>
- Supported platforms
- project
Id String - Project identifier
- revision String
- Template revision (defaults to v1 if not specified)
- spec
Fault
Template Spec - Fault specification
- List<String>
- Tags for the fault template
- type String
- Fault type
- variables
List<Fault
Template Variable> - Template variables
- hub
Identity string - Hub identity reference
- identity string
- Unique identifier for the fault template (immutable)
- api
Version string - API version
- categories string[]
- Fault categories
- description string
- Description of the fault template
- infrastructures string[]
- List of supported infrastructures
- keywords string[]
- Search keywords
- kind string
- Resource kind
- links
Fault
Template Link[] - Related links
- name string
- Name of the fault template
- org
Id string - Organization identifier
- permissions
Required string - Required permissions for the fault
- platforms string[]
- Supported platforms
- project
Id string - Project identifier
- revision string
- Template revision (defaults to v1 if not specified)
- spec
Fault
Template Spec - Fault specification
- string[]
- Tags for the fault template
- type string
- Fault type
- variables
Fault
Template Variable[] - Template variables
- hub_
identity str - Hub identity reference
- identity str
- Unique identifier for the fault template (immutable)
- api_
version str - API version
- categories Sequence[str]
- Fault categories
- description str
- Description of the fault template
- infrastructures Sequence[str]
- List of supported infrastructures
- keywords Sequence[str]
- Search keywords
- kind str
- Resource kind
- links
Sequence[Fault
Template Link Args] - Related links
- name str
- Name of the fault template
- org_
id str - Organization identifier
- permissions_
required str - Required permissions for the fault
- platforms Sequence[str]
- Supported platforms
- project_
id str - Project identifier
- revision str
- Template revision (defaults to v1 if not specified)
- spec
Fault
Template Spec Args - Fault specification
- Sequence[str]
- Tags for the fault template
- type str
- Fault type
- variables
Sequence[Fault
Template Variable Args] - Template variables
- hub
Identity String - Hub identity reference
- identity String
- Unique identifier for the fault template (immutable)
- api
Version String - API version
- categories List<String>
- Fault categories
- description String
- Description of the fault template
- infrastructures List<String>
- List of supported infrastructures
- keywords List<String>
- Search keywords
- kind String
- Resource kind
- links List<Property Map>
- Related links
- name String
- Name of the fault template
- org
Id String - Organization identifier
- permissions
Required String - Required permissions for the fault
- platforms List<String>
- Supported platforms
- project
Id String - Project identifier
- revision String
- Template revision (defaults to v1 if not specified)
- spec Property Map
- Fault specification
- List<String>
- Tags for the fault template
- type String
- Fault type
- variables List<Property Map>
- Template variables
Outputs
All input properties are implicitly available as output properties. Additionally, the FaultTemplate resource produces the following output properties:
- Account
Id string - Account identifier
- Created
At int - Creation timestamp
- Created
By string - Creator user ID
- Hub
Ref string - Hub reference (computed)
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Enterprise bool - Whether this is an enterprise-only template
- Is
Removed bool - Soft delete flag
- Updated
At int - Update timestamp
- Updated
By string - Updater user ID
- Account
Id string - Account identifier
- Created
At int - Creation timestamp
- Created
By string - Creator user ID
- Hub
Ref string - Hub reference (computed)
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Enterprise bool - Whether this is an enterprise-only template
- Is
Removed bool - Soft delete flag
- Updated
At int - Update timestamp
- Updated
By string - Updater user ID
- account
Id String - Account identifier
- created
At Integer - Creation timestamp
- created
By String - Creator user ID
- hub
Ref String - Hub reference (computed)
- id String
- The provider-assigned unique ID for this managed resource.
- is
Enterprise Boolean - Whether this is an enterprise-only template
- is
Removed Boolean - Soft delete flag
- updated
At Integer - Update timestamp
- updated
By String - Updater user ID
- account
Id string - Account identifier
- created
At number - Creation timestamp
- created
By string - Creator user ID
- hub
Ref string - Hub reference (computed)
- id string
- The provider-assigned unique ID for this managed resource.
- is
Enterprise boolean - Whether this is an enterprise-only template
- is
Removed boolean - Soft delete flag
- updated
At number - Update timestamp
- updated
By string - Updater user ID
- account_
id str - Account identifier
- created_
at int - Creation timestamp
- created_
by str - Creator user ID
- hub_
ref str - Hub reference (computed)
- id str
- The provider-assigned unique ID for this managed resource.
- is_
enterprise bool - Whether this is an enterprise-only template
- is_
removed bool - Soft delete flag
- updated_
at int - Update timestamp
- updated_
by str - Updater user ID
- account
Id String - Account identifier
- created
At Number - Creation timestamp
- created
By String - Creator user ID
- hub
Ref String - Hub reference (computed)
- id String
- The provider-assigned unique ID for this managed resource.
- is
Enterprise Boolean - Whether this is an enterprise-only template
- is
Removed Boolean - Soft delete flag
- updated
At Number - Update timestamp
- updated
By String - Updater user ID
Look up Existing FaultTemplate Resource
Get an existing FaultTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FaultTemplateState, opts?: CustomResourceOptions): FaultTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
api_version: Optional[str] = None,
categories: Optional[Sequence[str]] = None,
created_at: Optional[int] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
hub_identity: Optional[str] = None,
hub_ref: Optional[str] = None,
identity: Optional[str] = None,
infrastructures: Optional[Sequence[str]] = None,
is_enterprise: Optional[bool] = None,
is_removed: Optional[bool] = None,
keywords: Optional[Sequence[str]] = None,
kind: Optional[str] = None,
links: Optional[Sequence[FaultTemplateLinkArgs]] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
permissions_required: Optional[str] = None,
platforms: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
revision: Optional[str] = None,
spec: Optional[FaultTemplateSpecArgs] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
updated_at: Optional[int] = None,
updated_by: Optional[str] = None,
variables: Optional[Sequence[FaultTemplateVariableArgs]] = None) -> FaultTemplatefunc GetFaultTemplate(ctx *Context, name string, id IDInput, state *FaultTemplateState, opts ...ResourceOption) (*FaultTemplate, error)public static FaultTemplate Get(string name, Input<string> id, FaultTemplateState? state, CustomResourceOptions? opts = null)public static FaultTemplate get(String name, Output<String> id, FaultTemplateState state, CustomResourceOptions options)resources: _: type: harness:chaos:FaultTemplate get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Account identifier
- Api
Version string - API version
- Categories List<string>
- Fault categories
- Created
At int - Creation timestamp
- Created
By string - Creator user ID
- Description string
- Description of the fault template
- Hub
Identity string - Hub identity reference
- Hub
Ref string - Hub reference (computed)
- Identity string
- Unique identifier for the fault template (immutable)
- Infrastructures List<string>
- List of supported infrastructures
- Is
Enterprise bool - Whether this is an enterprise-only template
- Is
Removed bool - Soft delete flag
- Keywords List<string>
- Search keywords
- Kind string
- Resource kind
- Links
List<Fault
Template Link> - Related links
- Name string
- Name of the fault template
- Org
Id string - Organization identifier
- Permissions
Required string - Required permissions for the fault
- Platforms List<string>
- Supported platforms
- Project
Id string - Project identifier
- Revision string
- Template revision (defaults to v1 if not specified)
- Spec
Fault
Template Spec - Fault specification
- List<string>
- Tags for the fault template
- Type string
- Fault type
- Updated
At int - Update timestamp
- Updated
By string - Updater user ID
- Variables
List<Fault
Template Variable> - Template variables
- Account
Id string - Account identifier
- Api
Version string - API version
- Categories []string
- Fault categories
- Created
At int - Creation timestamp
- Created
By string - Creator user ID
- Description string
- Description of the fault template
- Hub
Identity string - Hub identity reference
- Hub
Ref string - Hub reference (computed)
- Identity string
- Unique identifier for the fault template (immutable)
- Infrastructures []string
- List of supported infrastructures
- Is
Enterprise bool - Whether this is an enterprise-only template
- Is
Removed bool - Soft delete flag
- Keywords []string
- Search keywords
- Kind string
- Resource kind
- Links
[]Fault
Template Link Args - Related links
- Name string
- Name of the fault template
- Org
Id string - Organization identifier
- Permissions
Required string - Required permissions for the fault
- Platforms []string
- Supported platforms
- Project
Id string - Project identifier
- Revision string
- Template revision (defaults to v1 if not specified)
- Spec
Fault
Template Spec Args - Fault specification
- []string
- Tags for the fault template
- Type string
- Fault type
- Updated
At int - Update timestamp
- Updated
By string - Updater user ID
- Variables
[]Fault
Template Variable Args - Template variables
- account
Id String - Account identifier
- api
Version String - API version
- categories List<String>
- Fault categories
- created
At Integer - Creation timestamp
- created
By String - Creator user ID
- description String
- Description of the fault template
- hub
Identity String - Hub identity reference
- hub
Ref String - Hub reference (computed)
- identity String
- Unique identifier for the fault template (immutable)
- infrastructures List<String>
- List of supported infrastructures
- is
Enterprise Boolean - Whether this is an enterprise-only template
- is
Removed Boolean - Soft delete flag
- keywords List<String>
- Search keywords
- kind String
- Resource kind
- links
List<Fault
Template Link> - Related links
- name String
- Name of the fault template
- org
Id String - Organization identifier
- permissions
Required String - Required permissions for the fault
- platforms List<String>
- Supported platforms
- project
Id String - Project identifier
- revision String
- Template revision (defaults to v1 if not specified)
- spec
Fault
Template Spec - Fault specification
- List<String>
- Tags for the fault template
- type String
- Fault type
- updated
At Integer - Update timestamp
- updated
By String - Updater user ID
- variables
List<Fault
Template Variable> - Template variables
- account
Id string - Account identifier
- api
Version string - API version
- categories string[]
- Fault categories
- created
At number - Creation timestamp
- created
By string - Creator user ID
- description string
- Description of the fault template
- hub
Identity string - Hub identity reference
- hub
Ref string - Hub reference (computed)
- identity string
- Unique identifier for the fault template (immutable)
- infrastructures string[]
- List of supported infrastructures
- is
Enterprise boolean - Whether this is an enterprise-only template
- is
Removed boolean - Soft delete flag
- keywords string[]
- Search keywords
- kind string
- Resource kind
- links
Fault
Template Link[] - Related links
- name string
- Name of the fault template
- org
Id string - Organization identifier
- permissions
Required string - Required permissions for the fault
- platforms string[]
- Supported platforms
- project
Id string - Project identifier
- revision string
- Template revision (defaults to v1 if not specified)
- spec
Fault
Template Spec - Fault specification
- string[]
- Tags for the fault template
- type string
- Fault type
- updated
At number - Update timestamp
- updated
By string - Updater user ID
- variables
Fault
Template Variable[] - Template variables
- account_
id str - Account identifier
- api_
version str - API version
- categories Sequence[str]
- Fault categories
- created_
at int - Creation timestamp
- created_
by str - Creator user ID
- description str
- Description of the fault template
- hub_
identity str - Hub identity reference
- hub_
ref str - Hub reference (computed)
- identity str
- Unique identifier for the fault template (immutable)
- infrastructures Sequence[str]
- List of supported infrastructures
- is_
enterprise bool - Whether this is an enterprise-only template
- is_
removed bool - Soft delete flag
- keywords Sequence[str]
- Search keywords
- kind str
- Resource kind
- links
Sequence[Fault
Template Link Args] - Related links
- name str
- Name of the fault template
- org_
id str - Organization identifier
- permissions_
required str - Required permissions for the fault
- platforms Sequence[str]
- Supported platforms
- project_
id str - Project identifier
- revision str
- Template revision (defaults to v1 if not specified)
- spec
Fault
Template Spec Args - Fault specification
- Sequence[str]
- Tags for the fault template
- type str
- Fault type
- updated_
at int - Update timestamp
- updated_
by str - Updater user ID
- variables
Sequence[Fault
Template Variable Args] - Template variables
- account
Id String - Account identifier
- api
Version String - API version
- categories List<String>
- Fault categories
- created
At Number - Creation timestamp
- created
By String - Creator user ID
- description String
- Description of the fault template
- hub
Identity String - Hub identity reference
- hub
Ref String - Hub reference (computed)
- identity String
- Unique identifier for the fault template (immutable)
- infrastructures List<String>
- List of supported infrastructures
- is
Enterprise Boolean - Whether this is an enterprise-only template
- is
Removed Boolean - Soft delete flag
- keywords List<String>
- Search keywords
- kind String
- Resource kind
- links List<Property Map>
- Related links
- name String
- Name of the fault template
- org
Id String - Organization identifier
- permissions
Required String - Required permissions for the fault
- platforms List<String>
- Supported platforms
- project
Id String - Project identifier
- revision String
- Template revision (defaults to v1 if not specified)
- spec Property Map
- Fault specification
- List<String>
- Tags for the fault template
- type String
- Fault type
- updated
At Number - Update timestamp
- updated
By String - Updater user ID
- variables List<Property Map>
- Template variables
Supporting Types
FaultTemplateLink, FaultTemplateLinkArgs
FaultTemplateSpec, FaultTemplateSpecArgs
- Chaos
Fault
Template Spec Chaos - Chaos configuration
- Target
Fault
Template Spec Target - Target configuration
- Chaos
Fault
Template Spec Chaos - Chaos configuration
- Target
Fault
Template Spec Target - Target configuration
- chaos
Fault
Template Spec Chaos - Chaos configuration
- target
Fault
Template Spec Target - Target configuration
- chaos
Fault
Template Spec Chaos - Chaos configuration
- target
Fault
Template Spec Target - Target configuration
- chaos
Fault
Template Spec Chaos - Chaos configuration
- target
Fault
Template Spec Target - Target configuration
- chaos Property Map
- Chaos configuration
- target Property Map
- Target configuration
FaultTemplateSpecChaos, FaultTemplateSpecChaosArgs
- Auth
Fault
Template Spec Chaos Auth - Authentication configuration
- Fault
Name string - Name of the fault. Note: API may return a default value (e.g., 'byoc-injector') instead of the configured value due to API limitations.
- Kubernetes
Fault
Template Spec Chaos Kubernetes - Kubernetes-specific chaos configuration
- Params
List<Fault
Template Spec Chaos Param> - Fault parameters
- Status
Check FaultTimeouts Template Spec Chaos Status Check Timeouts - Status check timeout configuration
- Tls
Fault
Template Spec Chaos Tls - TLS configuration
- Auth
Fault
Template Spec Chaos Auth - Authentication configuration
- Fault
Name string - Name of the fault. Note: API may return a default value (e.g., 'byoc-injector') instead of the configured value due to API limitations.
- Kubernetes
Fault
Template Spec Chaos Kubernetes - Kubernetes-specific chaos configuration
- Params
[]Fault
Template Spec Chaos Param - Fault parameters
- Status
Check FaultTimeouts Template Spec Chaos Status Check Timeouts - Status check timeout configuration
- Tls
Fault
Template Spec Chaos Tls - TLS configuration
- auth
Fault
Template Spec Chaos Auth - Authentication configuration
- fault
Name String - Name of the fault. Note: API may return a default value (e.g., 'byoc-injector') instead of the configured value due to API limitations.
- kubernetes
Fault
Template Spec Chaos Kubernetes - Kubernetes-specific chaos configuration
- params
List<Fault
Template Spec Chaos Param> - Fault parameters
- status
Check FaultTimeouts Template Spec Chaos Status Check Timeouts - Status check timeout configuration
- tls
Fault
Template Spec Chaos Tls - TLS configuration
- auth
Fault
Template Spec Chaos Auth - Authentication configuration
- fault
Name string - Name of the fault. Note: API may return a default value (e.g., 'byoc-injector') instead of the configured value due to API limitations.
- kubernetes
Fault
Template Spec Chaos Kubernetes - Kubernetes-specific chaos configuration
- params
Fault
Template Spec Chaos Param[] - Fault parameters
- status
Check FaultTimeouts Template Spec Chaos Status Check Timeouts - Status check timeout configuration
- tls
Fault
Template Spec Chaos Tls - TLS configuration
- auth
Fault
Template Spec Chaos Auth - Authentication configuration
- fault_
name str - Name of the fault. Note: API may return a default value (e.g., 'byoc-injector') instead of the configured value due to API limitations.
- kubernetes
Fault
Template Spec Chaos Kubernetes - Kubernetes-specific chaos configuration
- params
Sequence[Fault
Template Spec Chaos Param] - Fault parameters
- status_
check_ Faulttimeouts Template Spec Chaos Status Check Timeouts - Status check timeout configuration
- tls
Fault
Template Spec Chaos Tls - TLS configuration
- auth Property Map
- Authentication configuration
- fault
Name String - Name of the fault. Note: API may return a default value (e.g., 'byoc-injector') instead of the configured value due to API limitations.
- kubernetes Property Map
- Kubernetes-specific chaos configuration
- params List<Property Map>
- Fault parameters
- status
Check Property MapTimeouts - Status check timeout configuration
- tls Property Map
- TLS configuration
FaultTemplateSpecChaosAuth, FaultTemplateSpecChaosAuthArgs
- Aws
Fault
Template Spec Chaos Auth Aws - AWS authentication
- Azure
Fault
Template Spec Chaos Auth Azure - Azure authentication
- Gcp
Fault
Template Spec Chaos Auth Gcp - GCP authentication
- Redis
Fault
Template Spec Chaos Auth Redis - Redis authentication
- Ssh
Fault
Template Spec Chaos Auth Ssh - SSH authentication
- Vmware
Fault
Template Spec Chaos Auth Vmware - VMware authentication
- Aws
Fault
Template Spec Chaos Auth Aws - AWS authentication
- Azure
Fault
Template Spec Chaos Auth Azure - Azure authentication
- Gcp
Fault
Template Spec Chaos Auth Gcp - GCP authentication
- Redis
Fault
Template Spec Chaos Auth Redis - Redis authentication
- Ssh
Fault
Template Spec Chaos Auth Ssh - SSH authentication
- Vmware
Fault
Template Spec Chaos Auth Vmware - VMware authentication
- aws
Fault
Template Spec Chaos Auth Aws - AWS authentication
- azure
Fault
Template Spec Chaos Auth Azure - Azure authentication
- gcp
Fault
Template Spec Chaos Auth Gcp - GCP authentication
- redis
Fault
Template Spec Chaos Auth Redis - Redis authentication
- ssh
Fault
Template Spec Chaos Auth Ssh - SSH authentication
- vmware
Fault
Template Spec Chaos Auth Vmware - VMware authentication
- aws
Fault
Template Spec Chaos Auth Aws - AWS authentication
- azure
Fault
Template Spec Chaos Auth Azure - Azure authentication
- gcp
Fault
Template Spec Chaos Auth Gcp - GCP authentication
- redis
Fault
Template Spec Chaos Auth Redis - Redis authentication
- ssh
Fault
Template Spec Chaos Auth Ssh - SSH authentication
- vmware
Fault
Template Spec Chaos Auth Vmware - VMware authentication
- aws
Fault
Template Spec Chaos Auth Aws - AWS authentication
- azure
Fault
Template Spec Chaos Auth Azure - Azure authentication
- gcp
Fault
Template Spec Chaos Auth Gcp - GCP authentication
- redis
Fault
Template Spec Chaos Auth Redis - Redis authentication
- ssh
Fault
Template Spec Chaos Auth Ssh - SSH authentication
- vmware
Fault
Template Spec Chaos Auth Vmware - VMware authentication
- aws Property Map
- AWS authentication
- azure Property Map
- Azure authentication
- gcp Property Map
- GCP authentication
- redis Property Map
- Redis authentication
- ssh Property Map
- SSH authentication
- vmware Property Map
- VMware authentication
FaultTemplateSpecChaosAuthAws, FaultTemplateSpecChaosAuthAwsArgs
- Access
Key stringId - AWS access key ID
- Region string
- AWS region
- Secret
Access stringKey - AWS secret access key
- Access
Key stringId - AWS access key ID
- Region string
- AWS region
- Secret
Access stringKey - AWS secret access key
- access
Key StringId - AWS access key ID
- region String
- AWS region
- secret
Access StringKey - AWS secret access key
- access
Key stringId - AWS access key ID
- region string
- AWS region
- secret
Access stringKey - AWS secret access key
- access_
key_ strid - AWS access key ID
- region str
- AWS region
- secret_
access_ strkey - AWS secret access key
- access
Key StringId - AWS access key ID
- region String
- AWS region
- secret
Access StringKey - AWS secret access key
FaultTemplateSpecChaosAuthAzure, FaultTemplateSpecChaosAuthAzureArgs
- Client
Id string - Azure client ID
- Client
Secret string - Azure client secret
- Subscription
Id string - Azure subscription ID
- Tenant
Id string - Azure tenant ID
- Client
Id string - Azure client ID
- Client
Secret string - Azure client secret
- Subscription
Id string - Azure subscription ID
- Tenant
Id string - Azure tenant ID
- client
Id String - Azure client ID
- client
Secret String - Azure client secret
- subscription
Id String - Azure subscription ID
- tenant
Id String - Azure tenant ID
- client
Id string - Azure client ID
- client
Secret string - Azure client secret
- subscription
Id string - Azure subscription ID
- tenant
Id string - Azure tenant ID
- client_
id str - Azure client ID
- client_
secret str - Azure client secret
- subscription_
id str - Azure subscription ID
- tenant_
id str - Azure tenant ID
- client
Id String - Azure client ID
- client
Secret String - Azure client secret
- subscription
Id String - Azure subscription ID
- tenant
Id String - Azure tenant ID
FaultTemplateSpecChaosAuthGcp, FaultTemplateSpecChaosAuthGcpArgs
- Project
Id string - GCP project ID
- Service
Account stringKey - GCP service account key (JSON)
- Project
Id string - GCP project ID
- Service
Account stringKey - GCP service account key (JSON)
- project
Id String - GCP project ID
- service
Account StringKey - GCP service account key (JSON)
- project
Id string - GCP project ID
- service
Account stringKey - GCP service account key (JSON)
- project_
id str - GCP project ID
- service_
account_ strkey - GCP service account key (JSON)
- project
Id String - GCP project ID
- service
Account StringKey - GCP service account key (JSON)
FaultTemplateSpecChaosAuthRedis, FaultTemplateSpecChaosAuthRedisArgs
FaultTemplateSpecChaosAuthSsh, FaultTemplateSpecChaosAuthSshArgs
- Username string
- SSH username
- Password string
- SSH password
- Private
Key string - SSH private key
- Username string
- SSH username
- Password string
- SSH password
- Private
Key string - SSH private key
- username String
- SSH username
- password String
- SSH password
- private
Key String - SSH private key
- username string
- SSH username
- password string
- SSH password
- private
Key string - SSH private key
- username str
- SSH username
- password str
- SSH password
- private_
key str - SSH private key
- username String
- SSH username
- password String
- SSH password
- private
Key String - SSH private key
FaultTemplateSpecChaosAuthVmware, FaultTemplateSpecChaosAuthVmwareArgs
- Password string
- VMware password
- Username string
- VMware username
- Vcenter
Server string - vCenter server address
- Password string
- VMware password
- Username string
- VMware username
- Vcenter
Server string - vCenter server address
- password String
- VMware password
- username String
- VMware username
- vcenter
Server String - vCenter server address
- password string
- VMware password
- username string
- VMware username
- vcenter
Server string - vCenter server address
- password str
- VMware password
- username str
- VMware username
- vcenter_
server str - vCenter server address
- password String
- VMware password
- username String
- VMware username
- vcenter
Server String - vCenter server address
FaultTemplateSpecChaosKubernetes, FaultTemplateSpecChaosKubernetesArgs
- Annotations Dictionary<string, string>
- Pod annotations
- Args List<string>
- Container arguments
- Commands List<string>
- Container command
- Config
Maps List<FaultTemplate Spec Chaos Kubernetes Config Map> - ConfigMap volumes
- Container
Security FaultContext Template Spec Chaos Kubernetes Container Security Context - Container security context
- Envs
List<Fault
Template Spec Chaos Kubernetes Env> - Environment variables
- Host
File List<FaultVolumes Template Spec Chaos Kubernetes Host File Volume> - Host path volumes
- Host
Ipc bool - Use host IPC namespace
- Host
Network bool - Use host network namespace
- Host
Pid bool - Use host PID namespace
- Image string
- Container image for chaos experiment
- Image
Pull stringPolicy - Image pull policy
- Image
Pull List<string>Secrets - Image pull secrets
- Labels Dictionary<string, string>
- Pod labels
- Node
Selector Dictionary<string, string> - Node selector for pod scheduling
- Pod
Security FaultContext Template Spec Chaos Kubernetes Pod Security Context - Pod security context
- Resources
Fault
Template Spec Chaos Kubernetes Resources - Resource requirements
- Secrets
List<Fault
Template Spec Chaos Kubernetes Secret> - Secret volumes
- Tolerations
List<Fault
Template Spec Chaos Kubernetes Toleration> - Pod tolerations
- Annotations map[string]string
- Pod annotations
- Args []string
- Container arguments
- Commands []string
- Container command
- Config
Maps []FaultTemplate Spec Chaos Kubernetes Config Map - ConfigMap volumes
- Container
Security FaultContext Template Spec Chaos Kubernetes Container Security Context - Container security context
- Envs
[]Fault
Template Spec Chaos Kubernetes Env - Environment variables
- Host
File []FaultVolumes Template Spec Chaos Kubernetes Host File Volume - Host path volumes
- Host
Ipc bool - Use host IPC namespace
- Host
Network bool - Use host network namespace
- Host
Pid bool - Use host PID namespace
- Image string
- Container image for chaos experiment
- Image
Pull stringPolicy - Image pull policy
- Image
Pull []stringSecrets - Image pull secrets
- Labels map[string]string
- Pod labels
- Node
Selector map[string]string - Node selector for pod scheduling
- Pod
Security FaultContext Template Spec Chaos Kubernetes Pod Security Context - Pod security context
- Resources
Fault
Template Spec Chaos Kubernetes Resources - Resource requirements
- Secrets
[]Fault
Template Spec Chaos Kubernetes Secret - Secret volumes
- Tolerations
[]Fault
Template Spec Chaos Kubernetes Toleration - Pod tolerations
- annotations Map<String,String>
- Pod annotations
- args List<String>
- Container arguments
- commands List<String>
- Container command
- config
Maps List<FaultTemplate Spec Chaos Kubernetes Config Map> - ConfigMap volumes
- container
Security FaultContext Template Spec Chaos Kubernetes Container Security Context - Container security context
- envs
List<Fault
Template Spec Chaos Kubernetes Env> - Environment variables
- host
File List<FaultVolumes Template Spec Chaos Kubernetes Host File Volume> - Host path volumes
- host
Ipc Boolean - Use host IPC namespace
- host
Network Boolean - Use host network namespace
- host
Pid Boolean - Use host PID namespace
- image String
- Container image for chaos experiment
- image
Pull StringPolicy - Image pull policy
- image
Pull List<String>Secrets - Image pull secrets
- labels Map<String,String>
- Pod labels
- node
Selector Map<String,String> - Node selector for pod scheduling
- pod
Security FaultContext Template Spec Chaos Kubernetes Pod Security Context - Pod security context
- resources
Fault
Template Spec Chaos Kubernetes Resources - Resource requirements
- secrets
List<Fault
Template Spec Chaos Kubernetes Secret> - Secret volumes
- tolerations
List<Fault
Template Spec Chaos Kubernetes Toleration> - Pod tolerations
- annotations {[key: string]: string}
- Pod annotations
- args string[]
- Container arguments
- commands string[]
- Container command
- config
Maps FaultTemplate Spec Chaos Kubernetes Config Map[] - ConfigMap volumes
- container
Security FaultContext Template Spec Chaos Kubernetes Container Security Context - Container security context
- envs
Fault
Template Spec Chaos Kubernetes Env[] - Environment variables
- host
File FaultVolumes Template Spec Chaos Kubernetes Host File Volume[] - Host path volumes
- host
Ipc boolean - Use host IPC namespace
- host
Network boolean - Use host network namespace
- host
Pid boolean - Use host PID namespace
- image string
- Container image for chaos experiment
- image
Pull stringPolicy - Image pull policy
- image
Pull string[]Secrets - Image pull secrets
- labels {[key: string]: string}
- Pod labels
- node
Selector {[key: string]: string} - Node selector for pod scheduling
- pod
Security FaultContext Template Spec Chaos Kubernetes Pod Security Context - Pod security context
- resources
Fault
Template Spec Chaos Kubernetes Resources - Resource requirements
- secrets
Fault
Template Spec Chaos Kubernetes Secret[] - Secret volumes
- tolerations
Fault
Template Spec Chaos Kubernetes Toleration[] - Pod tolerations
- annotations Mapping[str, str]
- Pod annotations
- args Sequence[str]
- Container arguments
- commands Sequence[str]
- Container command
- config_
maps Sequence[FaultTemplate Spec Chaos Kubernetes Config Map] - ConfigMap volumes
- container_
security_ Faultcontext Template Spec Chaos Kubernetes Container Security Context - Container security context
- envs
Sequence[Fault
Template Spec Chaos Kubernetes Env] - Environment variables
- host_
file_ Sequence[Faultvolumes Template Spec Chaos Kubernetes Host File Volume] - Host path volumes
- host_
ipc bool - Use host IPC namespace
- host_
network bool - Use host network namespace
- host_
pid bool - Use host PID namespace
- image str
- Container image for chaos experiment
- image_
pull_ strpolicy - Image pull policy
- image_
pull_ Sequence[str]secrets - Image pull secrets
- labels Mapping[str, str]
- Pod labels
- node_
selector Mapping[str, str] - Node selector for pod scheduling
- pod_
security_ Faultcontext Template Spec Chaos Kubernetes Pod Security Context - Pod security context
- resources
Fault
Template Spec Chaos Kubernetes Resources - Resource requirements
- secrets
Sequence[Fault
Template Spec Chaos Kubernetes Secret] - Secret volumes
- tolerations
Sequence[Fault
Template Spec Chaos Kubernetes Toleration] - Pod tolerations
- annotations Map<String>
- Pod annotations
- args List<String>
- Container arguments
- commands List<String>
- Container command
- config
Maps List<Property Map> - ConfigMap volumes
- container
Security Property MapContext - Container security context
- envs List<Property Map>
- Environment variables
- host
File List<Property Map>Volumes - Host path volumes
- host
Ipc Boolean - Use host IPC namespace
- host
Network Boolean - Use host network namespace
- host
Pid Boolean - Use host PID namespace
- image String
- Container image for chaos experiment
- image
Pull StringPolicy - Image pull policy
- image
Pull List<String>Secrets - Image pull secrets
- labels Map<String>
- Pod labels
- node
Selector Map<String> - Node selector for pod scheduling
- pod
Security Property MapContext - Pod security context
- resources Property Map
- Resource requirements
- secrets List<Property Map>
- Secret volumes
- tolerations List<Property Map>
- Pod tolerations
FaultTemplateSpecChaosKubernetesConfigMap, FaultTemplateSpecChaosKubernetesConfigMapArgs
- mount_
path str - Mount path
- name str
- ConfigMap name
- mount_
mode int - Mount mode (0-3)
FaultTemplateSpecChaosKubernetesContainerSecurityContext, FaultTemplateSpecChaosKubernetesContainerSecurityContextArgs
- Allow
Privilege boolEscalation - Allow privilege escalation
- Capabilities
Fault
Template Spec Chaos Kubernetes Container Security Context Capabilities - Linux capabilities
- Privileged bool
- Run container in privileged mode
- Read
Only boolRoot Filesystem - Mount root filesystem as read-only
- Run
As intGroup - Group ID to run as
- Run
As boolNon Root - Run as non-root user
- Run
As intUser - User ID to run as
- Allow
Privilege boolEscalation - Allow privilege escalation
- Capabilities
Fault
Template Spec Chaos Kubernetes Container Security Context Capabilities - Linux capabilities
- Privileged bool
- Run container in privileged mode
- Read
Only boolRoot Filesystem - Mount root filesystem as read-only
- Run
As intGroup - Group ID to run as
- Run
As boolNon Root - Run as non-root user
- Run
As intUser - User ID to run as
- allow
Privilege BooleanEscalation - Allow privilege escalation
- capabilities
Fault
Template Spec Chaos Kubernetes Container Security Context Capabilities - Linux capabilities
- privileged Boolean
- Run container in privileged mode
- read
Only BooleanRoot Filesystem - Mount root filesystem as read-only
- run
As IntegerGroup - Group ID to run as
- run
As BooleanNon Root - Run as non-root user
- run
As IntegerUser - User ID to run as
- allow
Privilege booleanEscalation - Allow privilege escalation
- capabilities
Fault
Template Spec Chaos Kubernetes Container Security Context Capabilities - Linux capabilities
- privileged boolean
- Run container in privileged mode
- read
Only booleanRoot Filesystem - Mount root filesystem as read-only
- run
As numberGroup - Group ID to run as
- run
As booleanNon Root - Run as non-root user
- run
As numberUser - User ID to run as
- allow_
privilege_ boolescalation - Allow privilege escalation
- capabilities
Fault
Template Spec Chaos Kubernetes Container Security Context Capabilities - Linux capabilities
- privileged bool
- Run container in privileged mode
- read_
only_ boolroot_ filesystem - Mount root filesystem as read-only
- run_
as_ intgroup - Group ID to run as
- run_
as_ boolnon_ root - Run as non-root user
- run_
as_ intuser - User ID to run as
- allow
Privilege BooleanEscalation - Allow privilege escalation
- capabilities Property Map
- Linux capabilities
- privileged Boolean
- Run container in privileged mode
- read
Only BooleanRoot Filesystem - Mount root filesystem as read-only
- run
As NumberGroup - Group ID to run as
- run
As BooleanNon Root - Run as non-root user
- run
As NumberUser - User ID to run as
FaultTemplateSpecChaosKubernetesContainerSecurityContextCapabilities, FaultTemplateSpecChaosKubernetesContainerSecurityContextCapabilitiesArgs
FaultTemplateSpecChaosKubernetesEnv, FaultTemplateSpecChaosKubernetesEnvArgs
FaultTemplateSpecChaosKubernetesHostFileVolume, FaultTemplateSpecChaosKubernetesHostFileVolumeArgs
- mount_
path str - Mount path
- name str
- Volume name
- host_
path str - Host path on the node
- type str
- Host path type (e.g., Directory, File, BlockDevice, CharDevice)
FaultTemplateSpecChaosKubernetesPodSecurityContext, FaultTemplateSpecChaosKubernetesPodSecurityContextArgs
- Fs
Group int - Filesystem group ID
- Run
As intGroup - Group ID to run as
- Run
As boolNon Root - Run as non-root user
- Run
As intUser - User ID to run as
- Fs
Group int - Filesystem group ID
- Run
As intGroup - Group ID to run as
- Run
As boolNon Root - Run as non-root user
- Run
As intUser - User ID to run as
- fs
Group Integer - Filesystem group ID
- run
As IntegerGroup - Group ID to run as
- run
As BooleanNon Root - Run as non-root user
- run
As IntegerUser - User ID to run as
- fs
Group number - Filesystem group ID
- run
As numberGroup - Group ID to run as
- run
As booleanNon Root - Run as non-root user
- run
As numberUser - User ID to run as
- fs_
group int - Filesystem group ID
- run_
as_ intgroup - Group ID to run as
- run_
as_ boolnon_ root - Run as non-root user
- run_
as_ intuser - User ID to run as
- fs
Group Number - Filesystem group ID
- run
As NumberGroup - Group ID to run as
- run
As BooleanNon Root - Run as non-root user
- run
As NumberUser - User ID to run as
FaultTemplateSpecChaosKubernetesResources, FaultTemplateSpecChaosKubernetesResourcesArgs
FaultTemplateSpecChaosKubernetesSecret, FaultTemplateSpecChaosKubernetesSecretArgs
- Mount
Path string - Mount path
- Secret
Name string - Secret name
- Mount
Mode int - Mount mode (0-3)
- Mount
Path string - Mount path
- Secret
Name string - Secret name
- Mount
Mode int - Mount mode (0-3)
- mount
Path String - Mount path
- secret
Name String - Secret name
- mount
Mode Integer - Mount mode (0-3)
- mount
Path string - Mount path
- secret
Name string - Secret name
- mount
Mode number - Mount mode (0-3)
- mount_
path str - Mount path
- secret_
name str - Secret name
- mount_
mode int - Mount mode (0-3)
- mount
Path String - Mount path
- secret
Name String - Secret name
- mount
Mode Number - Mount mode (0-3)
FaultTemplateSpecChaosKubernetesToleration, FaultTemplateSpecChaosKubernetesTolerationArgs
- Effect string
- Toleration effect (NoSchedule, PreferNoSchedule, NoExecute)
- Key string
- Toleration key
- Operator string
- Toleration operator (Equal, Exists)
- Toleration
Seconds int - Toleration seconds
- Value string
- Toleration value
- Effect string
- Toleration effect (NoSchedule, PreferNoSchedule, NoExecute)
- Key string
- Toleration key
- Operator string
- Toleration operator (Equal, Exists)
- Toleration
Seconds int - Toleration seconds
- Value string
- Toleration value
- effect String
- Toleration effect (NoSchedule, PreferNoSchedule, NoExecute)
- key String
- Toleration key
- operator String
- Toleration operator (Equal, Exists)
- toleration
Seconds Integer - Toleration seconds
- value String
- Toleration value
- effect string
- Toleration effect (NoSchedule, PreferNoSchedule, NoExecute)
- key string
- Toleration key
- operator string
- Toleration operator (Equal, Exists)
- toleration
Seconds number - Toleration seconds
- value string
- Toleration value
- effect str
- Toleration effect (NoSchedule, PreferNoSchedule, NoExecute)
- key str
- Toleration key
- operator str
- Toleration operator (Equal, Exists)
- toleration_
seconds int - Toleration seconds
- value str
- Toleration value
- effect String
- Toleration effect (NoSchedule, PreferNoSchedule, NoExecute)
- key String
- Toleration key
- operator String
- Toleration operator (Equal, Exists)
- toleration
Seconds Number - Toleration seconds
- value String
- Toleration value
FaultTemplateSpecChaosParam, FaultTemplateSpecChaosParamArgs
FaultTemplateSpecChaosStatusCheckTimeouts, FaultTemplateSpecChaosStatusCheckTimeoutsArgs
FaultTemplateSpecChaosTls, FaultTemplateSpecChaosTlsArgs
- Ca
Certificate string - CA certificate
- Client
Certificate string - Client certificate
- Client
Key string - Client key
- Ca
Certificate string - CA certificate
- Client
Certificate string - Client certificate
- Client
Key string - Client key
- ca
Certificate String - CA certificate
- client
Certificate String - Client certificate
- client
Key String - Client key
- ca
Certificate string - CA certificate
- client
Certificate string - Client certificate
- client
Key string - Client key
- ca_
certificate str - CA certificate
- client_
certificate str - Client certificate
- client_
key str - Client key
- ca
Certificate String - CA certificate
- client
Certificate String - Client certificate
- client
Key String - Client key
FaultTemplateSpecTarget, FaultTemplateSpecTargetArgs
- Application
Fault
Template Spec Target Application - Application target configuration
- Kubernetes
List<Fault
Template Spec Target Kubernete> - Kubernetes target configuration
- Application
Fault
Template Spec Target Application - Application target configuration
- Kubernetes
[]Fault
Template Spec Target Kubernete - Kubernetes target configuration
- application
Fault
Template Spec Target Application - Application target configuration
- kubernetes
List<Fault
Template Spec Target Kubernete> - Kubernetes target configuration
- application
Fault
Template Spec Target Application - Application target configuration
- kubernetes
Fault
Template Spec Target Kubernete[] - Kubernetes target configuration
- application
Fault
Template Spec Target Application - Application target configuration
- kubernetes
Sequence[Fault
Template Spec Target Kubernete] - Kubernetes target configuration
- application Property Map
- Application target configuration
- kubernetes List<Property Map>
- Kubernetes target configuration
FaultTemplateSpecTargetApplication, FaultTemplateSpecTargetApplicationArgs
FaultTemplateSpecTargetKubernete, FaultTemplateSpecTargetKuberneteArgs
- Annotation
Check string - Annotation check expression
- Annotations Dictionary<string, string>
- Annotation selectors
- Kind string
- Resource kind (e.g., deployment, pod)
- Labels Dictionary<string, string>
- Label selectors
- Names List<string>
- Specific resource names
- Namespace string
- Target namespace
- Annotation
Check string - Annotation check expression
- Annotations map[string]string
- Annotation selectors
- Kind string
- Resource kind (e.g., deployment, pod)
- Labels map[string]string
- Label selectors
- Names []string
- Specific resource names
- Namespace string
- Target namespace
- annotation
Check String - Annotation check expression
- annotations Map<String,String>
- Annotation selectors
- kind String
- Resource kind (e.g., deployment, pod)
- labels Map<String,String>
- Label selectors
- names List<String>
- Specific resource names
- namespace String
- Target namespace
- annotation
Check string - Annotation check expression
- annotations {[key: string]: string}
- Annotation selectors
- kind string
- Resource kind (e.g., deployment, pod)
- labels {[key: string]: string}
- Label selectors
- names string[]
- Specific resource names
- namespace string
- Target namespace
- annotation_
check str - Annotation check expression
- annotations Mapping[str, str]
- Annotation selectors
- kind str
- Resource kind (e.g., deployment, pod)
- labels Mapping[str, str]
- Label selectors
- names Sequence[str]
- Specific resource names
- namespace str
- Target namespace
- annotation
Check String - Annotation check expression
- annotations Map<String>
- Annotation selectors
- kind String
- Resource kind (e.g., deployment, pod)
- labels Map<String>
- Label selectors
- names List<String>
- Specific resource names
- namespace String
- Target namespace
FaultTemplateVariable, FaultTemplateVariableArgs
- Name string
- Variable name
- Description string
- Variable description
- Required bool
- Whether the variable is required
- Type string
- Variable type
- Value string
- Variable value
- Name string
- Variable name
- Description string
- Variable description
- Required bool
- Whether the variable is required
- Type string
- Variable type
- Value string
- Variable value
- name String
- Variable name
- description String
- Variable description
- required Boolean
- Whether the variable is required
- type String
- Variable type
- value String
- Variable value
- name string
- Variable name
- description string
- Variable description
- required boolean
- Whether the variable is required
- type string
- Variable type
- value string
- Variable value
- name str
- Variable name
- description str
- Variable description
- required bool
- Whether the variable is required
- type str
- Variable type
- value str
- Variable value
- name String
- Variable name
- description String
- Variable description
- required Boolean
- Whether the variable is required
- type String
- Variable type
- value String
- Variable value
Import
The pulumi import command can be used, for example:
Example 1: Import Project-level Fault Template Format: org_id/project_id/hub_identity/template_identity
$ pulumi import harness:chaos/faultTemplate:FaultTemplate example my_org/my_project/my-chaos-hub/pod-delete-fault
Example 2: Import Org-level Fault Template Format: org_id/hub_identity/template_identity
$ pulumi import harness:chaos/faultTemplate:FaultTemplate org_example my_org/org-chaos-hub/org-pod-delete
Example 3: Import Account-level Fault Template Format: hub_identity/template_identity
$ pulumi import harness:chaos/faultTemplate:FaultTemplate account_example account-chaos-hub/account-network-fault
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Tuesday, Apr 21, 2026 by Pulumi
