flux_configurations
Creates, updates, deletes, gets or lists a flux_configurations
resource.
Overview
Name | flux_configurations |
Type | Resource |
Id | azure.kubernetes_configuration.flux_configurations |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Properties to create a Flux 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, fluxConfigurationName, resourceGroupName, subscriptionId | Gets details of the Flux Configuration. |
list | SELECT | clusterName, clusterResourceName, clusterRp, resourceGroupName, subscriptionId | List all Flux Configurations. |
create_or_update | INSERT | clusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionId | Create a new Kubernetes Flux Configuration. |
delete | DELETE | clusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionId | This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo. |
update | UPDATE | clusterName, clusterResourceName, clusterRp, fluxConfigurationName, resourceGroupName, subscriptionId | Update 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: scope
value: []
- name: namespace
value: string
- name: sourceKind
value: []
- name: suspend
value: boolean
- name: gitRepository
value:
- name: url
value: string
- name: timeoutInSeconds
value: integer
- name: syncIntervalInSeconds
value: integer
- name: repositoryRef
value:
- name: branch
value: string
- name: tag
value: string
- name: semver
value: string
- name: commit
value: string
- name: sshKnownHosts
value: string
- name: httpsUser
value: string
- name: httpsCACert
value: string
- name: localAuthRef
value: string
- name: bucket
value:
- name: url
value: string
- name: bucketName
value: string
- name: insecure
value: boolean
- name: timeoutInSeconds
value: integer
- name: syncIntervalInSeconds
value: integer
- name: accessKey
value: string
- name: localAuthRef
value: string
- name: azureBlob
value:
- name: url
value: string
- name: containerName
value: string
- name: timeoutInSeconds
value: integer
- name: syncIntervalInSeconds
value: integer
- name: servicePrincipal
value:
- name: clientId
value: string
- name: tenantId
value: string
- name: clientSecret
value: string
- name: clientCertificate
value: string
- name: clientCertificatePassword
value: string
- name: clientCertificateSendChain
value: boolean
- name: accountKey
value: string
- name: sasToken
value: string
- name: managedIdentity
value:
- name: clientId
value: string
- name: localAuthRef
value: string
- name: ociRepository
value:
- name: url
value: string
- name: timeoutInSeconds
value: integer
- name: syncIntervalInSeconds
value: integer
- name: repositoryRef
value:
- name: tag
value: string
- name: semver
value: string
- name: digest
value: string
- name: layerSelector
value:
- name: mediaType
value: string
- name: operation
value: []
- name: verify
value:
- name: provider
value: string
- name: verificationConfig
value: object
- name: matchOidcIdentity
value:
- - name: issuer
value: string
- name: subject
value: string
- name: insecure
value: boolean
- name: useWorkloadIdentity
value: boolean
- name: serviceAccountName
value: string
- name: tlsConfig
value:
- name: clientCertificate
value: string
- name: privateKey
value: string
- name: caCertificate
value: string
- name: localAuthRef
value: string
- name: kustomizations
value: object
- name: configurationProtectedSettings
value: object
- name: statuses
value:
- - name: name
value: string
- name: namespace
value: string
- name: kind
value: string
- name: complianceState
value: []
- name: appliedBy
value:
- name: name
value: string
- name: namespace
value: string
- name: statusConditions
value:
- - name: lastTransitionTime
value: string
- name: message
value: string
- name: reason
value: string
- name: status
value: string
- name: type
value: string
- name: helmReleaseProperties
value:
- name: lastRevisionApplied
value: integer
- name: failureCount
value: integer
- name: installFailureCount
value: integer
- name: upgradeFailureCount
value: integer
- name: repositoryPublicKey
value: string
- name: sourceSyncedCommitId
value: string
- name: sourceUpdatedAt
value: string
- name: statusUpdatedAt
value: string
- name: waitForReconciliation
value: boolean
- name: reconciliationWaitDuration
value: string
- name: provisioningState
value: []
- name: errorMessage
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
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 }}';