Skip to content
Open
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
36 changes: 35 additions & 1 deletion v0/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -36702,7 +36702,7 @@
"properties" : {
"type" : {
"type" : "string",
"enum" : [ "Aws" ]
"enum" : [ "Aws", "Azure" ]
}
},
"$schema" : "http://json-schema.org/draft-07/schema#",
Expand All @@ -36721,6 +36721,21 @@
}
}
}
}, {
"if" : {
"properties" : {
"type" : {
"const" : "Azure"
}
}
},
"then" : {
"properties" : {
"spec" : {
"$ref" : "#/definitions/pipeline/steps/cd/TerrafromAzureProviderCredentialSpec"
}
}
}
} ]
},
"AWSIAMRoleCredentialSpec" : {
Expand Down Expand Up @@ -36751,6 +36766,25 @@
"discriminator" : "type",
"$schema" : "http://json-schema.org/draft-07/schema#"
},
"TerrafromAzureProviderCredentialSpec" : {
"title" : "TerrafromAzureProviderCredentialSpec",
"type" : "object",
"allOf" : [ {
"$ref" : "#/definitions/pipeline/steps/cd/TerraformProviderCredentialSpec"
}, {
"type" : "object",
"required" : [ "connectorRef", "subscriptionId" ],
"properties" : {
"connectorRef" : {
"type" : "string"
},
"subscriptionId" : {
"type" : "string"
}
}
} ],
"$schema" : "http://json-schema.org/draft-07/schema#"
},
"JenkinsBuildStepNode" : {
"title" : "JenkinsBuildStepNode",
"type" : "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: TerrafromAzureProviderCredentialSpec
type: object
allOf:
- $ref: 'terraform-provider-credential-spec.yaml'
- type: object
required:
- connectorRef
- subscriptionId
properties:
connectorRef:
type: string
subscriptionId:
type: string
$schema: http://json-schema.org/draft-07/schema#
11 changes: 10 additions & 1 deletion v0/pipeline/steps/cd/terraform-provider-credential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ properties:
type: string
enum:
- Aws
- Azure
$schema: http://json-schema.org/draft-07/schema#
allOf:
- if:
Expand All @@ -17,4 +18,12 @@ allOf:
then:
properties:
spec:
$ref: 'aws-iam-role-credential-spec.yaml'
$ref: 'aws-iam-role-credential-spec.yaml'
- if:
properties:
type:
const: Azure
then:
properties:
spec:
$ref: 'terraform-azure-provider-credential-spec.yaml'
36 changes: 35 additions & 1 deletion v0/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -21384,7 +21384,7 @@
"properties" : {
"type" : {
"type" : "string",
"enum" : [ "Aws" ]
"enum" : [ "Aws", "Azure" ]
}
},
"$schema" : "http://json-schema.org/draft-07/schema#",
Expand All @@ -21403,6 +21403,21 @@
}
}
}
}, {
"if" : {
"properties" : {
"type" : {
"const" : "Azure"
}
}
},
"then" : {
"properties" : {
"spec" : {
"$ref" : "#/definitions/pipeline/steps/cd/TerrafromAzureProviderCredentialSpec"
}
}
}
} ]
},
"AWSIAMRoleCredentialSpec" : {
Expand Down Expand Up @@ -21433,6 +21448,25 @@
"discriminator" : "type",
"$schema" : "http://json-schema.org/draft-07/schema#"
},
"TerrafromAzureProviderCredentialSpec" : {
"title" : "TerrafromAzureProviderCredentialSpec",
"type" : "object",
"allOf" : [ {
"$ref" : "#/definitions/pipeline/steps/cd/TerraformProviderCredentialSpec"
}, {
"type" : "object",
"required" : [ "connectorRef", "subscriptionId" ],
"properties" : {
"connectorRef" : {
"type" : "string"
},
"subscriptionId" : {
"type" : "string"
}
}
} ],
"$schema" : "http://json-schema.org/draft-07/schema#"
},
"TerraformCloudRollbackStepNode_template" : {
"title" : "TerraformCloudRollbackStepNode_template",
"type" : "object",
Expand Down