Skip to content

feat:[IAC-3673]: adding Iacm TG step #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 170 additions & 0 deletions v0/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -30707,6 +30707,174 @@
}
}
}
},
"IACMTerragruntPluginStepNode" : {
"title" : "IACMTerragruntPluginStepNode",
"type" : "object",
"required" : [ "identifier", "name", "spec", "type" ],
"properties" : {
"description" : {
"type" : "string",
"desc" : "This is the description for IACMTerragruntPluginStepNode"
},
"enforce" : {
"$ref" : "#/definitions/pipeline/common/PolicyConfig"
},
"failureStrategies" : {
"oneOf" : [ {
"type" : "array",
"items" : {
"$ref" : "#/definitions/pipeline/common/FailureStrategyConfig"
}
}, {
"type" : "string",
"pattern" : "^<\\+input>$",
"minLength" : 1
} ]
},
"identifier" : {
"type" : "string",
"pattern" : "^[a-zA-Z_][0-9a-zA-Z_]{0,127}$"
},
"name" : {
"type" : "string",
"pattern" : "^[a-zA-Z_0-9-.][-0-9a-zA-Z_\\s.]{0,127}$"
},
"strategy" : {
"oneOf" : [ {
"$ref" : "#/definitions/pipeline/common/StrategyConfig"
}, {
"type" : "string",
"pattern" : "^<\\+input>$",
"minLength" : 1
} ]
},
"timeout" : {
"type" : "string",
"pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+(\\s?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
},
"type" : {
"type" : "string",
"enum" : [ "IACMTerragruntPlugin" ]
},
"when" : {
"oneOf" : [ {
"$ref" : "#/definitions/pipeline/common/StepWhenCondition"
}, {
"type" : "string",
"pattern" : "^<\\+input>$",
"minLength" : 1
} ]
}
},
"$schema" : "http://json-schema.org/draft-07/schema#",
"allOf" : [ {
"if" : {
"properties" : {
"type" : {
"const" : "IACMTerragruntPlugin"
}
}
},
"then" : {
"properties" : {
"spec" : {
"$ref" : "#/definitions/pipeline/steps/iacm/IACMTerragruntPluginInfo"
}
}
}
} ]
},
"IACMTerragruntPluginInfo" : {
"title" : "IACMTerragruntPluginInfo",
"allOf" : [ {
"$ref" : "#/definitions/pipeline/common/StepSpecType"
}, {
"type" : "object",
"required" : [ "command" ],
"properties" : {
"command" : {
"type" : "string"
},
"image" : {
"type" : "string"
},
"resources" : {
"$ref" : "#/definitions/pipeline/common/ContainerResource"
},
"target" : {
"oneOf" : [ {
"type" : "array",
"items" : {
"type" : "string"
}
}, {
"type" : "string",
"pattern" : "^<\\+input>((\\.)((executionInput\\(\\))|(allowedValues|default|regex)\\(.+?\\)))*$",
"minLength" : 1
} ]
},
"replace" : {
"oneOf" : [ {
"type" : "array",
"items" : {
"type" : "string"
}
}, {
"type" : "string",
"pattern" : "^<\\+input>((\\.)((executionInput\\(\\))|(allowedValues|default|regex)\\(.+?\\)))*$",
"minLength" : 1
} ]
},
"import" : {
"oneOf" : [ {
"type" : "array",
"items" : {
"$ref" : "#/definitions/pipeline/steps/iacm/ImportCommandParameterField"
}
}, {
"type" : "string",
"pattern" : "^<\\+input>((\\.)((executionInput\\(\\))|(allowedValues|default|regex)\\(.+?\\)))*$",
"minLength" : 1
} ]
}
}
} ],
"$schema" : "http://json-schema.org/draft-07/schema#",
"type" : "object",
"required" : [ "command" ],
"properties" : {
"command" : {
"type" : "string"
},
"image" : {
"type" : "string"
},
"description" : {
"desc" : "This is the description for IACMTerragruntPluginInfo"
},
"resources" : {
"$ref" : "#/definitions/pipeline/common/ContainerResource"
},
"target" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"replace" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"import" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/pipeline/steps/iacm/ImportCommandParameterField"
}
}
}
}
},
"cd" : {
Expand Down Expand Up @@ -61563,6 +61731,8 @@
"$ref" : "#/definitions/pipeline/steps/common/SnykScanNode"
}, {
"$ref" : "#/definitions/pipeline/steps/iacm/IACMModuleTestPluginStepNode"
}, {
"$ref" : "#/definitions/pipeline/steps/iacm/IACMTerragruntPluginStepNode"
} ]
},
"description" : {
Expand Down
1 change: 1 addition & 0 deletions v0/pipeline/stages/iacm/execution-wrapper-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ properties:
- $ref: ../../steps/common/checkov-scan-node.yaml
- $ref: ../../steps/common/snyk-scan-node.yaml
- $ref: ../../steps/iacm/iacmmoduletest-plugin-step-node.yaml
- $ref: ../../steps/iacm/iacmterragrunt-plugin-step-node.yaml

description:
desc: This is the description for ExecutionWrapperConfig
Expand Down
62 changes: 62 additions & 0 deletions v0/pipeline/steps/iacm/iacmterragrunt-plugin-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
title: IACMTerragruntPluginInfo
allOf:
- $ref: ../../common/step-spec-type.yaml
- type: object
required:
- command
properties:
command:
type: string
image:
type: string
resources:
$ref: ../../common/container-resource.yaml
target:
oneOf:
- type: array
items:
type: string
- type: string
pattern: ^<\+input>((\.)((executionInput\(\))|(allowedValues|default|regex)\(.+?\)))*$
minLength: 1
replace:
oneOf:
- type: array
items:
type: string
- type: string
pattern: ^<\+input>((\.)((executionInput\(\))|(allowedValues|default|regex)\(.+?\)))*$
minLength: 1
import:
oneOf:
- type: array
items:
$ref: ./iacm-import-command-parameter.yaml
- type: string
pattern: ^<\+input>((\.)((executionInput\(\))|(allowedValues|default|regex)\(.+?\)))*$
minLength: 1
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- command
properties:
command:
type: string
image:
type: string
description:
desc: This is the description for IACMTerragruntPluginInfo
resources:
$ref: ../../common/container-resource.yaml
target:
type: array
items:
type: string
replace:
type: array
items:
type: string
import:
type: array
items:
$ref: ./iacm-import-command-parameter.yaml
56 changes: 56 additions & 0 deletions v0/pipeline/steps/iacm/iacmterragrunt-plugin-step-node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
title: IACMTerragruntPluginStepNode
type: object
required:
- identifier
- name
- spec
- type
properties:
description:
type: string
desc: This is the description for IACMTerragruntPluginStepNode
enforce:
$ref: ../../common/policy-config.yaml
failureStrategies:
oneOf:
- type: array
items:
$ref: ../../common/failure-strategy-config.yaml
- type: string
pattern: ^<\+input>$
minLength: 1
identifier:
type: string
pattern: ^[a-zA-Z_][0-9a-zA-Z_]{0,127}$
name:
type: string
pattern: ^[a-zA-Z_0-9-.][-0-9a-zA-Z_\s.]{0,127}$
strategy:
oneOf:
- $ref: ../../common/strategy-config.yaml
- type: string
pattern: ^<\+input>$
minLength: 1
timeout:
type: string
pattern: ^(([1-9])+\d+[s])|(((([1-9])+\d*[mhwd])+(\s?\d+[smhwd])*)|(.*<\+.*>(?!.*\.executionInput\(\)).*)|(^$))$
type:
type: string
enum:
- IACMTerragruntPlugin
when:
oneOf:
- $ref: ../../common/step-when-condition.yaml
- type: string
pattern: ^<\+input>$
minLength: 1
$schema: http://json-schema.org/draft-07/schema#
allOf:
- if:
properties:
type:
const: IACMTerragruntPlugin
then:
properties:
spec:
$ref: iacmterragrunt-plugin-info.yaml
Loading