Skip to main content

flux_configurations

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

Overview

Nameflux_configurations
TypeResource
Idazure.kubernetes_configuration.flux_configurations

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionIdGets details of the Flux Configuration.
listSELECTclusterName, clusterResourceName, clusterRp, resourceGroupName, subscriptionIdList all Flux Configurations.
create_or_updateINSERTclusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionIdCreate a new Kubernetes Flux Configuration.
deleteDELETEclusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionIdThis will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
updateUPDATEclusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionIdUpdate an existing Kubernetes Flux Configuration.

SELECT examples

List all Flux Configurations.

SELECT
properties,
systemData
FROM azure.kubernetes_configuration.flux_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 flux_configurations resource.

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

UPDATE example

Updates a flux_configurations resource.

/*+ update */
UPDATE azure.kubernetes_configuration.flux_configurations
SET
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND clusterResourceName = '{{ clusterResourceName }}'
AND clusterRp = '{{ clusterRp }}'
AND fluxConfigurationName = '{{ fluxConfigurationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified flux_configurations resource.

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