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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
azureBlobobjectParameters to reconcile to the AzureBlob source kind type.
bucketobjectParameters to reconcile to the Bucket source kind type.
complianceStatestringCombined status of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed objects. Known values are: "Compliant", "Non-Compliant", "Pending", "Suspended", and "Unknown". (Compliant, Non-Compliant, Pending, Suspended, Unknown)
configurationProtectedSettingsobjectKey-value pairs of protected configuration settings for the configuration.
errorMessagestringError message returned to the user in the case of provisioning failure.
gitRepositoryobjectParameters to reconcile to the GitRepository source kind type.
kustomizationsobjectArray of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
namespacestringThe namespace to which this configuration is installed to. Maximum of 253 lower case alphanumeric characters, hyphen and period only.
ociRepositoryobjectParameters to reconcile to the OCIRepository source kind type.
provisioningStatestringStatus of the creation of the fluxConfiguration. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Creating, Updating, Deleting)
reconciliationWaitDurationstringMaximum duration to wait for flux configuration reconciliation. E.g PT1H, PT5M, P1D.
repositoryPublicKeystringPublic Key associated with this fluxConfiguration (either generated within the cluster or provided by the user).
scopestringScope at which the operator will be installed. Known values are: "cluster" and "namespace". (cluster, namespace)
sourceKindstringSource Kind to pull the configuration data from. Known values are: "GitRepository", "Bucket", "AzureBlob", and "OCIRepository". (GitRepository, Bucket, AzureBlob, OCIRepository)
sourceSyncedCommitIdstringBranch and/or SHA of the source commit synced with the cluster.
sourceUpdatedAtstring (date-time)Datetime the fluxConfiguration synced its source on the cluster.
statusUpdatedAtstring (date-time)Datetime the fluxConfiguration synced its status on the cluster with Azure.
statusesarrayStatuses of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed objects provisioned by the fluxConfiguration.
suspendbooleanWhether this configuration should suspend its reconciliation of its kustomizations and sources.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
waitForReconciliationbooleanWhether flux configuration deployment should wait for cluster to reconcile the kustomizations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_rp, cluster_resource_name, cluster_name, flux_configuration_name, subscription_idGets details of the Flux Configuration.
listselectresource_group_name, cluster_rp, cluster_resource_name, cluster_name, subscription_idList all Flux Configurations.
create_or_updateinsertresource_group_name, cluster_rp, cluster_resource_name, cluster_name, flux_configuration_name, subscription_idCreate a new Kubernetes Flux Configuration.
updateupdateresource_group_name, cluster_rp, cluster_resource_name, cluster_name, flux_configuration_name, subscription_idUpdate an existing Kubernetes Flux Configuration.
create_or_updatereplaceresource_group_name, cluster_rp, cluster_resource_name, cluster_name, flux_configuration_name, subscription_idCreate a new Kubernetes Flux Configuration.
deletedeleteresource_group_name, cluster_rp, cluster_resource_name, cluster_name, flux_configuration_name, subscription_idforceDeleteThis will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cluster_namestringThe name of the kubernetes cluster. Required.
cluster_resource_namestringThe Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters, appliances. Required.
cluster_rpstringThe Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService. Required.
flux_configuration_namestringName of the Flux Configuration. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
forceDeletebooleanDelete the extension resource in Azure - not the normal asynchronous delete. Default value is None.

SELECT examples

Gets details of the Flux Configuration.

SELECT
id,
name,
azureBlob,
bucket,
complianceState,
configurationProtectedSettings,
errorMessage,
gitRepository,
kustomizations,
namespace,
ociRepository,
provisioningState,
reconciliationWaitDuration,
repositoryPublicKey,
scope,
sourceKind,
sourceSyncedCommitId,
sourceUpdatedAt,
statusUpdatedAt,
statuses,
suspend,
systemData,
type,
waitForReconciliation
FROM azure.kubernetes_configuration.flux_configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_rp = '{{ cluster_rp }}' -- required
AND cluster_resource_name = '{{ cluster_resource_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND flux_configuration_name = '{{ flux_configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new Kubernetes Flux Configuration.

INSERT INTO azure.kubernetes_configuration.flux_configurations (
properties,
resource_group_name,
cluster_rp,
cluster_resource_name,
cluster_name,
flux_configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ cluster_rp }}',
'{{ cluster_resource_name }}',
'{{ cluster_name }}',
'{{ flux_configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update an existing Kubernetes Flux Configuration.

UPDATE azure.kubernetes_configuration.flux_configurations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_rp = '{{ cluster_rp }}' --required
AND cluster_resource_name = '{{ cluster_resource_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND flux_configuration_name = '{{ flux_configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create a new Kubernetes Flux Configuration.

REPLACE azure.kubernetes_configuration.flux_configurations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_rp = '{{ cluster_rp }}' --required
AND cluster_resource_name = '{{ cluster_resource_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND flux_configuration_name = '{{ flux_configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.

DELETE FROM azure.kubernetes_configuration.flux_configurations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_rp = '{{ cluster_rp }}' --required
AND cluster_resource_name = '{{ cluster_resource_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND flux_configuration_name = '{{ flux_configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND forceDelete = '{{ forceDelete }}'
;