source_control_configurations
Creates, updates, deletes, gets or lists a source_control_configurations
resource.
Overview
Name | source_control_configurations |
Type | Resource |
Id | azure.kubernetes_configuration.source_control_configurations |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Properties to create a Source Control Configuration resource |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | clusterName, clusterResourceName, clusterRp, resourceGroupName, sourceControlConfigurationName, subscriptionId | Gets details of the Source Control Configuration. |
list | SELECT | clusterName, clusterResourceName, clusterRp, resourceGroupName, subscriptionId | List all Source Control Configurations. |
create_or_update | INSERT | clusterName, clusterResourceName, clusterRp, resourceGroupName, sourceControlConfigurationName, subscriptionId | Create a new Kubernetes Source Control Configuration. |
delete | DELETE | clusterName, clusterResourceName, clusterRp, resourceGroupName, sourceControlConfigurationName, subscriptionId | This 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: repositoryUrl
value: string
- name: operatorNamespace
value: string
- name: operatorInstanceName
value: string
- name: operatorType
value: []
- name: operatorParams
value: string
- name: configurationProtectedSettings
value: []
- name: operatorScope
value: []
- name: repositoryPublicKey
value: string
- name: sshKnownHostsContents
value: string
- name: enableHelmOperator
value: boolean
- name: helmOperatorProperties
value:
- name: chartVersion
value: []
- name: chartValues
value: []
- name: provisioningState
value: string
- name: complianceStatus
value:
- name: complianceState
value: string
- name: lastConfigApplied
value: string
- name: message
value: string
- name: messageLevel
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
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 }}';