The sourceControlConfigurations resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.
For a list of changed properties in each API version, see change log.
To create a Microsoft.KubernetesConfiguration/sourceControlConfigurations resource, add the following JSON to your template.
{
"type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
"apiVersion": "2022-11-01",
"name": "string",
"scope": "string",
"properties": {
"configurationProtectedSettings": {},
"enableHelmOperator": "bool",
"helmOperatorProperties": {
"chartValues": "string",
"chartVersion": "string"
},
"operatorInstanceName": "string",
"operatorNamespace": "string",
"operatorParams": "string",
"operatorScope": "string",
"operatorType": "Flux",
"repositoryUrl": "string",
"sshKnownHostsContents": "string"
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.KubernetesConfiguration/sourceControlConfigurations' |
apiVersion | The resource api version | '2022-11-01' |
name | The resource name | string (required) |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For JSON, set the value to the full name of the resource to apply the extension resource to. |
properties | Properties to create a Source Control Configuration resource | SourceControlConfigurationProperties |
Name | Description | Value |
---|---|---|
configurationProtectedSettings | Name-value pairs of protected configuration settings for the configuration | object |
enableHelmOperator | Option to enable Helm Operator for this git configuration. | bool |
helmOperatorProperties | Properties for Helm operator. | HelmOperatorProperties |
operatorInstanceName | Instance name of the operator - identifying the specific configuration. | string |
operatorNamespace | The namespace to which this operator is installed to. Maximum of 253 lower case alphanumeric characters, hyphen and period only. | string |
operatorParams | Any Parameters for the Operator instance in string format. | string |
operatorScope | Scope at which the operator will be installed. | 'cluster' 'namespace' |
operatorType | Type of the operator | 'Flux' |
repositoryUrl | Url of the SourceControl Repository. | string |
sshKnownHostsContents | Base64-encoded known_hosts contents containing public SSH keys required to access private Git instances | string |
Name | Description | Value |
---|---|---|
chartValues | Values override for the operator Helm chart. | string |
chartVersion | Version of the operator Helm chart. | string |