Skip to main content

source_control_configurations

Creates, updates, deletes, gets or lists a source_control_configurations resource.

Overview

Namesource_control_configurations
TypeResource
Idazure.kubernetes_configuration.source_control_configurations

Fields

NameDatatypeDescription
propertiesobjectProperties to create a Source Control Configuration resource
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, clusterResourceName, clusterRp, resourceGroupName, sourceControlConfigurationName, subscriptionIdGets details of the Source Control Configuration.
listSELECTclusterName, clusterResourceName, clusterRp, resourceGroupName, subscriptionIdList all Source Control Configurations.
create_or_updateINSERTclusterName, clusterResourceName, clusterRp, resourceGroupName, sourceControlConfigurationName, subscriptionIdCreate a new Kubernetes Source Control Configuration.
deleteDELETEclusterName, clusterResourceName, clusterRp, resourceGroupName, sourceControlConfigurationName, subscriptionIdThis will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.

SELECT examples

List all Source Control Configurations.

SELECT
properties,
systemData
FROM azure.kubernetes_configuration.source_control_configurations
WHERE clusterName = '{{ clusterName }}'
AND clusterResourceName = '{{ clusterResourceName }}'
AND clusterRp = '{{ clusterRp }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new source_control_configurations resource.

/*+ create */
INSERT INTO azure.kubernetes_configuration.source_control_configurations (
clusterName,
clusterResourceName,
clusterRp,
resourceGroupName,
sourceControlConfigurationName,
subscriptionId,
properties,
systemData
)
SELECT
'{{ clusterName }}',
'{{ clusterResourceName }}',
'{{ clusterRp }}',
'{{ resourceGroupName }}',
'{{ sourceControlConfigurationName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ systemData }}'
;

DELETE example

Deletes the specified source_control_configurations resource.

/*+ delete */
DELETE FROM azure.kubernetes_configuration.source_control_configurations
WHERE clusterName = '{{ clusterName }}'
AND clusterResourceName = '{{ clusterResourceName }}'
AND clusterRp = '{{ clusterRp }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sourceControlConfigurationName = '{{ sourceControlConfigurationName }}'
AND subscriptionId = '{{ subscriptionId }}';