diff --git a/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go b/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go index 3c7328bf9032..4c6aca95f6f5 100644 --- a/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" arckubernetes "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" diff --git a/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource_test.go b/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource_test.go index ac861680836d..3dac7219cc5f 100644 --- a/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource_test.go +++ b/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource_test.go @@ -12,7 +12,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -517,6 +517,20 @@ func (r ArcKubernetesFluxConfigurationResource) azureBlobWithServicePrincipalSec return fmt.Sprintf(` %[1]s +provider "azuread" {} + +resource "azuread_application" "test" { + display_name = "acctestspa-%[2]d" +} + +resource "azuread_service_principal" "test" { + application_id = azuread_application.test.application_id +} + +resource "azuread_service_principal_password" "test" { + service_principal_id = azuread_service_principal.test.object_id +} + resource "azurerm_storage_account" "test" { name = "sa%[2]d" resource_group_name = azurerm_resource_group.test.name @@ -537,13 +551,13 @@ data "azurerm_client_config" "test" { resource "azurerm_role_assignment" "test_queue" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Queue Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_role_assignment" "test_blob" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Blob Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_arc_kubernetes_flux_configuration" "test" { @@ -554,9 +568,9 @@ resource "azurerm_arc_kubernetes_flux_configuration" "test" { blob_storage { container_id = azurerm_storage_container.test.id service_principal { - client_id = "%[3]s" - tenant_id = "%[4]s" - client_secret = "%[5]s" + client_id = azuread_service_principal.test.client_id + tenant_id = data.azurerm_client_config.test.tenant_id + client_secret = azuread_service_principal_password.test.value } } @@ -570,13 +584,23 @@ resource "azurerm_arc_kubernetes_flux_configuration" "test" { azurerm_role_assignment.test_blob ] } -`, r.template(data, credential, privateKey, publicKey), data.RandomInteger, os.Getenv("ARM_CLIENT_ID"), os.Getenv("ARM_TENANT_ID"), os.Getenv("ARM_CLIENT_SECRET")) +`, r.template(data, credential, privateKey, publicKey), data.RandomInteger) } func (r ArcKubernetesFluxConfigurationResource) azureBlobWithServicePrincipalCertificate(data acceptance.TestData, credential string, privateKey string, publicKey string) string { return fmt.Sprintf(` %[1]s +provider "azuread" {} + +resource "azuread_application" "test" { + display_name = "acctestspa-%[2]d" +} + +resource "azuread_service_principal" "test" { + application_id = azuread_application.test.application_id +} + resource "azurerm_storage_account" "test" { name = "sa%[2]d" resource_group_name = azurerm_resource_group.test.name @@ -597,13 +621,13 @@ data "azurerm_client_config" "test" { resource "azurerm_role_assignment" "test_queue" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Queue Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_role_assignment" "test_blob" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Blob Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_arc_kubernetes_flux_configuration" "test" { @@ -614,10 +638,10 @@ resource "azurerm_arc_kubernetes_flux_configuration" "test" { blob_storage { container_id = azurerm_storage_container.test.id service_principal { - client_id = "%[3]s" - tenant_id = "%[4]s" - client_certificate_base64 = "%[5]s" - client_certificate_password = "%[6]s" + client_id = azuread_service_principal.test.client_id + tenant_id = data.azurerm_client_config.test.tenant_id + client_certificate_base64 = "%[3]s" + client_certificate_password = "%[4]s" client_certificate_send_chain = true } } @@ -632,7 +656,7 @@ resource "azurerm_arc_kubernetes_flux_configuration" "test" { azurerm_role_assignment.test_blob ] } -`, r.template(data, credential, privateKey, publicKey), data.RandomInteger, os.Getenv("ARM_CLIENT_ID"), os.Getenv("ARM_TENANT_ID"), os.Getenv("ARM_CLIENT_CERTIFICATE"), os.Getenv("ARM_CLIENT_CERTIFICATE_PASSWORD")) +`, r.template(data, credential, privateKey, publicKey), data.RandomInteger, os.Getenv("ARM_CLIENT_CERTIFICATE"), os.Getenv("ARM_CLIENT_CERTIFICATE_PASSWORD")) } func (r ArcKubernetesFluxConfigurationResource) kustomizationNameDuplicated(data acceptance.TestData, credential string, privateKey string, publicKey string) string { diff --git a/internal/services/arckubernetes/client/client.go b/internal/services/arckubernetes/client/client.go index e9609c976da1..d57df1f8562e 100644 --- a/internal/services/arckubernetes/client/client.go +++ b/internal/services/arckubernetes/client/client.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions" - "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/containers/client/client.go b/internal/services/containers/client/client.go index 764c6a84ab9d..e24090f037a0 100644 --- a/internal/services/containers/client/client.go +++ b/internal/services/containers/client/client.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters" "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots" "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions" - "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/go-azure-sdk/sdk/environments" "github.com/hashicorp/terraform-provider-azurerm/internal/common" diff --git a/internal/services/containers/kubernetes_flux_configuration_resource.go b/internal/services/containers/kubernetes_flux_configuration_resource.go index 1badab9cf242..7f02cd75f200 100644 --- a/internal/services/containers/kubernetes_flux_configuration_resource.go +++ b/internal/services/containers/kubernetes_flux_configuration_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" @@ -30,6 +30,11 @@ const ( FluxGitSemverRange string = "semver" ) +const ( + SubstituteFromKindConfigMap string = "ConfigMap" + SubstituteFromKindSecret string = "Secret" +) + type KubernetesFluxConfigurationModel struct { Name string `tfschema:"name"` ClusterID string `tfschema:"cluster_id"` @@ -88,14 +93,27 @@ type GitRepositoryDefinitionModel struct { } type KustomizationDefinitionModel struct { - Name string `tfschema:"name"` - Path string `tfschema:"path"` - TimeoutInSeconds int64 `tfschema:"timeout_in_seconds"` - SyncIntervalInSeconds int64 `tfschema:"sync_interval_in_seconds"` - RetryIntervalInSeconds int64 `tfschema:"retry_interval_in_seconds"` - Force bool `tfschema:"recreating_enabled"` - Prune bool `tfschema:"garbage_collection_enabled"` - DependsOn []string `tfschema:"depends_on"` + Name string `tfschema:"name"` + Path string `tfschema:"path"` + TimeoutInSeconds int64 `tfschema:"timeout_in_seconds"` + SyncIntervalInSeconds int64 `tfschema:"sync_interval_in_seconds"` + RetryIntervalInSeconds int64 `tfschema:"retry_interval_in_seconds"` + Force bool `tfschema:"recreating_enabled"` + Prune bool `tfschema:"garbage_collection_enabled"` + DependsOn []string `tfschema:"depends_on"` + PostBuild []PostBuildDefinitionModel `tfschema:"post_build"` + Wait bool `tfschema:"wait"` +} + +type PostBuildDefinitionModel struct { + Substitute map[string]string `tfschema:"substitute"` + SubstituteFrom []SubstituteFromDefinitionModel `tfschema:"substitute_from"` +} + +type SubstituteFromDefinitionModel struct { + Kind string `tfschema:"kind"` + Name string `tfschema:"name"` + Optional bool `tfschema:"optional"` } type ManagedIdentityDefinitionModel struct { @@ -218,6 +236,55 @@ func (r KubernetesFluxConfigurationResource) Arguments() map[string]*pluginsdk.S Type: pluginsdk.TypeString, }, }, + + "post_build": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "substitute": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + "substitute_from": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "kind": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice([]string{ + SubstituteFromKindConfigMap, + SubstituteFromKindSecret, + }, false), + }, + "name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "optional": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + }, + }, + }, + "wait": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, }, }, }, @@ -841,10 +908,12 @@ func expandKustomizationDefinitionModel(inputList []KustomizationDefinitionModel DependsOn: &input.DependsOn, Force: &input.Force, Name: &input.Name, + PostBuild: expandPostBuildDefinitionModel(input.PostBuild), Prune: &input.Prune, RetryIntervalInSeconds: &input.RetryIntervalInSeconds, SyncIntervalInSeconds: &input.SyncIntervalInSeconds, TimeoutInSeconds: &input.TimeoutInSeconds, + Wait: &input.Wait, } if input.Path != "" { @@ -857,6 +926,45 @@ func expandKustomizationDefinitionModel(inputList []KustomizationDefinitionModel return &outputList } +func expandPostBuildDefinitionModel(inputList []PostBuildDefinitionModel) *fluxconfiguration.PostBuildDefinition { + if len(inputList) == 0 { + return nil + } + + input := inputList[0] + + output := fluxconfiguration.PostBuildDefinition{} + + if len(input.Substitute) > 0 { + output.Substitute = &input.Substitute + } + + if len(input.SubstituteFrom) > 0 { + output.SubstituteFrom = expandSubstituteFromDefinitionModel(input.SubstituteFrom) + } + + return &output +} + +func expandSubstituteFromDefinitionModel(inputList []SubstituteFromDefinitionModel) *[]fluxconfiguration.SubstituteFromDefinition { + if len(inputList) == 0 { + return nil + } + + input := inputList + output := make([]fluxconfiguration.SubstituteFromDefinition, 0) + + for _, v := range input { + output = append(output, fluxconfiguration.SubstituteFromDefinition{ + Kind: &v.Kind, + Name: &v.Name, + Optional: &v.Optional, + }) + } + + return &output +} + func expandServicePrincipalDefinitionModel(inputList []ServicePrincipalDefinitionModel) *fluxconfiguration.ServicePrincipalDefinition { if len(inputList) == 0 { return nil @@ -1057,10 +1165,46 @@ func flattenKustomizationDefinitionModel(inputList *map[string]fluxconfiguration Force: pointer.From(input.Force), Name: pointer.From(input.Name), Path: pointer.From(input.Path), + PostBuild: flattenPostBuildDefinitionModel(input.PostBuild), Prune: pointer.From(input.Prune), RetryIntervalInSeconds: pointer.From(input.RetryIntervalInSeconds), SyncIntervalInSeconds: pointer.From(input.SyncIntervalInSeconds), TimeoutInSeconds: pointer.From(input.TimeoutInSeconds), + Wait: pointer.From(input.Wait), + } + + outputList = append(outputList, output) + } + + return outputList +} + +func flattenPostBuildDefinitionModel(input *fluxconfiguration.PostBuildDefinition) []PostBuildDefinitionModel { + outputList := make([]PostBuildDefinitionModel, 0) + + if input == nil { + return outputList + } + + output := PostBuildDefinitionModel{ + Substitute: pointer.From(input.Substitute), + SubstituteFrom: flattenSubstituteFromDefinitionModel(input.SubstituteFrom), + } + + return append(outputList, output) +} + +func flattenSubstituteFromDefinitionModel(input *[]fluxconfiguration.SubstituteFromDefinition) []SubstituteFromDefinitionModel { + outputList := make([]SubstituteFromDefinitionModel, 0) + if input == nil { + return outputList + } + + for _, v := range *input { + output := SubstituteFromDefinitionModel{ + Kind: pointer.From(v.Kind), + Name: pointer.From(v.Name), + Optional: pointer.From(v.Optional), } outputList = append(outputList, output) diff --git a/internal/services/containers/kubernetes_flux_configuration_resource_test.go b/internal/services/containers/kubernetes_flux_configuration_resource_test.go index fc3f4c3f18bb..e9fa1d9cef88 100644 --- a/internal/services/containers/kubernetes_flux_configuration_resource_test.go +++ b/internal/services/containers/kubernetes_flux_configuration_resource_test.go @@ -12,7 +12,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -196,6 +196,20 @@ func TestAccKubernetesFluxConfiguration_kustomizationNameDuplicated(t *testing.T }) } +func TestAccKubernetesFluxConfiguration_kustomizationPostBuild(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_kubernetes_flux_configuration", "test") + r := KubernetesFluxConfigurationResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.kustomizationPostBuild(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func (r KubernetesFluxConfigurationResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := fluxconfiguration.ParseScopedFluxConfigurationID(state.ID) if err != nil { @@ -566,6 +580,20 @@ func (r KubernetesFluxConfigurationResource) azureBlobWithServicePrincipalSecret return fmt.Sprintf(` %[1]s +provider "azuread" {} + +resource "azuread_application" "test" { + display_name = "acctestspa-%[2]d" +} + +resource "azuread_service_principal" "test" { + application_id = azuread_application.test.application_id +} + +resource "azuread_service_principal_password" "test" { + service_principal_id = azuread_service_principal.test.object_id +} + resource "azurerm_storage_account" "test" { name = "sa%[2]d" resource_group_name = azurerm_resource_group.test.name @@ -586,13 +614,13 @@ data "azurerm_client_config" "test" { resource "azurerm_role_assignment" "test_queue" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Queue Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_role_assignment" "test_blob" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Blob Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_kubernetes_flux_configuration" "test" { @@ -603,9 +631,9 @@ resource "azurerm_kubernetes_flux_configuration" "test" { blob_storage { container_id = azurerm_storage_container.test.id service_principal { - client_id = "%[3]s" - tenant_id = "%[4]s" - client_secret = "%[5]s" + client_id = azuread_service_principal.test.client_id + tenant_id = data.azurerm_client_config.test.tenant_id + client_secret = azuread_service_principal_password.test.value } } @@ -619,13 +647,23 @@ resource "azurerm_kubernetes_flux_configuration" "test" { azurerm_role_assignment.test_blob ] } -`, r.template(data), data.RandomInteger, os.Getenv("ARM_CLIENT_ID"), os.Getenv("ARM_TENANT_ID"), os.Getenv("ARM_CLIENT_SECRET")) +`, r.template(data), data.RandomInteger) } func (r KubernetesFluxConfigurationResource) azureBlobWithServicePrincipalCertificate(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s +provider "azuread" {} + +resource "azuread_application" "test" { + display_name = "acctestspa-%[2]d" +} + +resource "azuread_service_principal" "test" { + application_id = azuread_application.test.application_id +} + resource "azurerm_storage_account" "test" { name = "sa%[2]d" resource_group_name = azurerm_resource_group.test.name @@ -646,13 +684,13 @@ data "azurerm_client_config" "test" { resource "azurerm_role_assignment" "test_queue" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Queue Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_role_assignment" "test_blob" { scope = azurerm_storage_account.test.id role_definition_name = "Storage Blob Data Contributor" - principal_id = data.azurerm_client_config.test.object_id + principal_id = azuread_service_principal.test.object_id } resource "azurerm_kubernetes_flux_configuration" "test" { @@ -663,10 +701,10 @@ resource "azurerm_kubernetes_flux_configuration" "test" { blob_storage { container_id = azurerm_storage_container.test.id service_principal { - client_id = "%[3]s" - tenant_id = "%[4]s" - client_certificate_base64 = "%[5]s" - client_certificate_password = "%[6]s" + client_id = azuread_service_principal.test.client_id + tenant_id = data.azurerm_client_config.test.tenant_id + client_certificate_base64 = "%[3]s" + client_certificate_password = "%[4]s" client_certificate_send_chain = true } } @@ -681,7 +719,7 @@ resource "azurerm_kubernetes_flux_configuration" "test" { azurerm_role_assignment.test_blob ] } -`, r.template(data), data.RandomInteger, os.Getenv("ARM_CLIENT_ID"), os.Getenv("ARM_TENANT_ID"), os.Getenv("ARM_CLIENT_CERTIFICATE"), os.Getenv("ARM_CLIENT_CERTIFICATE_PASSWORD")) +`, r.template(data), data.RandomInteger, os.Getenv("ARM_CLIENT_CERTIFICATE"), os.Getenv("ARM_CLIENT_CERTIFICATE_PASSWORD")) } func (r KubernetesFluxConfigurationResource) kustomizationNameDuplicated(data acceptance.TestData) string { @@ -715,3 +753,43 @@ resource "azurerm_kubernetes_flux_configuration" "test" { } `, template, data.RandomInteger) } + +func (r KubernetesFluxConfigurationResource) kustomizationPostBuild(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` + %s + +resource "azurerm_kubernetes_flux_configuration" "test" { + name = "acctest-fc-%d" + cluster_id = azurerm_kubernetes_cluster.test.id + namespace = "flux" + + git_repository { + url = "https://github.com/Azure/arc-k8s-demo" + reference_type = "branch" + reference_value = "main" + } + + kustomizations { + name = "kustomization-1" + path = "./test/path" + post_build { + substitute = { + "key" = "value", + "key2" = "value2" + } + substitute_from { + kind = "Secret" + name = "secret-name" + optional = false + } + } + wait = false + } + + depends_on = [ + azurerm_kubernetes_cluster_extension.test + ] +} +`, template, data.RandomInteger) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_kustomizationdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_kustomizationdefinition.go deleted file mode 100644 index f290effccf3a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_kustomizationdefinition.go +++ /dev/null @@ -1,15 +0,0 @@ -package fluxconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KustomizationDefinition struct { - DependsOn *[]string `json:"dependsOn,omitempty"` - Force *bool `json:"force,omitempty"` - Name *string `json:"name,omitempty"` - Path *string `json:"path,omitempty"` - Prune *bool `json:"prune,omitempty"` - RetryIntervalInSeconds *int64 `json:"retryIntervalInSeconds,omitempty"` - SyncIntervalInSeconds *int64 `json:"syncIntervalInSeconds,omitempty"` - TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_kustomizationpatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_kustomizationpatchdefinition.go deleted file mode 100644 index 988a0b73b931..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_kustomizationpatchdefinition.go +++ /dev/null @@ -1,14 +0,0 @@ -package fluxconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KustomizationPatchDefinition struct { - DependsOn *[]string `json:"dependsOn,omitempty"` - Force *bool `json:"force,omitempty"` - Path *string `json:"path,omitempty"` - Prune *bool `json:"prune,omitempty"` - RetryIntervalInSeconds *int64 `json:"retryIntervalInSeconds,omitempty"` - SyncIntervalInSeconds *int64 `json:"syncIntervalInSeconds,omitempty"` - TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md index 9c645d7efd89..a6b33bfc9568 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration` Documentation -The `fluxconfiguration` SDK allows for interaction with Azure Resource Manager `kubernetesconfiguration` (API Version `2022-11-01`). +The `fluxconfiguration` SDK allows for interaction with Azure Resource Manager `kubernetesconfiguration` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/id_scopedfluxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/id_scopedfluxconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/id_scopedfluxconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/id_scopedfluxconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_azureblobdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_azureblobdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_azureblobdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_azureblobdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_azureblobpatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_azureblobpatchdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_azureblobpatchdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_azureblobpatchdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_bucketdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_bucketdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_bucketdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_bucketdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_bucketpatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_bucketpatchdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_bucketpatchdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_bucketpatchdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationpatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationpatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationpatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationpatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationpatchproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationpatchproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationpatchproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationproperties.go index ca4d4b334dd9..1ddb605cb296 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_fluxconfigurationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_fluxconfigurationproperties.go @@ -19,6 +19,7 @@ type FluxConfigurationProperties struct { Kustomizations *map[string]KustomizationDefinition `json:"kustomizations,omitempty"` Namespace *string `json:"namespace,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ReconciliationWaitDuration *string `json:"reconciliationWaitDuration,omitempty"` RepositoryPublicKey *string `json:"repositoryPublicKey,omitempty"` Scope *ScopeType `json:"scope,omitempty"` SourceKind *SourceKindType `json:"sourceKind,omitempty"` @@ -27,6 +28,7 @@ type FluxConfigurationProperties struct { StatusUpdatedAt *string `json:"statusUpdatedAt,omitempty"` Statuses *[]ObjectStatusDefinition `json:"statuses,omitempty"` Suspend *bool `json:"suspend,omitempty"` + WaitForReconciliation *bool `json:"waitForReconciliation,omitempty"` } func (o *FluxConfigurationProperties) GetSourceUpdatedAtAsTime() (*time.Time, error) { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_gitrepositorydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_gitrepositorydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_gitrepositorydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_gitrepositorydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_gitrepositorypatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_gitrepositorypatchdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_gitrepositorypatchdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_gitrepositorypatchdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_helmreleasepropertiesdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_helmreleasepropertiesdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_helmreleasepropertiesdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_helmreleasepropertiesdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_kustomizationdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_kustomizationdefinition.go new file mode 100644 index 000000000000..1797c7dae5d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_kustomizationdefinition.go @@ -0,0 +1,17 @@ +package fluxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KustomizationDefinition struct { + DependsOn *[]string `json:"dependsOn,omitempty"` + Force *bool `json:"force,omitempty"` + Name *string `json:"name,omitempty"` + Path *string `json:"path,omitempty"` + PostBuild *PostBuildDefinition `json:"postBuild,omitempty"` + Prune *bool `json:"prune,omitempty"` + RetryIntervalInSeconds *int64 `json:"retryIntervalInSeconds,omitempty"` + SyncIntervalInSeconds *int64 `json:"syncIntervalInSeconds,omitempty"` + TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` + Wait *bool `json:"wait,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_kustomizationpatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_kustomizationpatchdefinition.go new file mode 100644 index 000000000000..ff7f9e541b2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_kustomizationpatchdefinition.go @@ -0,0 +1,16 @@ +package fluxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KustomizationPatchDefinition struct { + DependsOn *[]string `json:"dependsOn,omitempty"` + Force *bool `json:"force,omitempty"` + Path *string `json:"path,omitempty"` + PostBuild *PostBuildDefinition `json:"postBuild,omitempty"` + Prune *bool `json:"prune,omitempty"` + RetryIntervalInSeconds *int64 `json:"retryIntervalInSeconds,omitempty"` + SyncIntervalInSeconds *int64 `json:"syncIntervalInSeconds,omitempty"` + TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` + Wait *bool `json:"wait,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_managedidentitydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_managedidentitydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_managedidentitydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_managedidentitydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_managedidentitypatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_managedidentitypatchdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_managedidentitypatchdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_managedidentitypatchdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_objectreferencedefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_objectreferencedefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_objectreferencedefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_objectreferencedefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_objectstatusconditiondefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_objectstatusconditiondefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_objectstatusconditiondefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_objectstatusconditiondefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_objectstatusdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_objectstatusdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_objectstatusdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_objectstatusdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_postbuilddefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_postbuilddefinition.go new file mode 100644 index 000000000000..85b45889c26e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_postbuilddefinition.go @@ -0,0 +1,9 @@ +package fluxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PostBuildDefinition struct { + Substitute *map[string]string `json:"substitute,omitempty"` + SubstituteFrom *[]SubstituteFromDefinition `json:"substituteFrom,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_repositoryrefdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_repositoryrefdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_repositoryrefdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_repositoryrefdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_serviceprincipaldefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_serviceprincipaldefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_serviceprincipaldefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_serviceprincipaldefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_serviceprincipalpatchdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_serviceprincipalpatchdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/model_serviceprincipalpatchdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_serviceprincipalpatchdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_substitutefromdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_substitutefromdefinition.go new file mode 100644 index 000000000000..3ce02779a40f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/model_substitutefromdefinition.go @@ -0,0 +1,10 @@ +package fluxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubstituteFromDefinition struct { + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Optional *bool `json:"optional,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/version.go index ca0e7395f358..cc1a17da5fda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/version.go @@ -3,8 +3,8 @@ package fluxconfiguration // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-11-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/fluxconfiguration/2022-11-01" + return "hashicorp/go-azure-sdk/fluxconfiguration/2023-05-01" } diff --git a/vendor/modules.txt b/vendor/modules.txt index e247a5cf35aa..5939c792ba04 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -611,7 +611,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions -github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters diff --git a/website/docs/r/kubernetes_flux_configuration.html.markdown b/website/docs/r/kubernetes_flux_configuration.html.markdown index 554da12c50a8..fac8c6001920 100644 --- a/website/docs/r/kubernetes_flux_configuration.html.markdown +++ b/website/docs/r/kubernetes_flux_configuration.html.markdown @@ -54,6 +54,16 @@ resource "azurerm_kubernetes_flux_configuration" "example" { kustomizations { name = "kustomization-1" + + post_build { + substitute = { + example_var = "substitute_with_this" + } + substitute_from { + kind = "ConfigMap" + name = "example-configmap" + } + } } depends_on = [ @@ -104,6 +114,10 @@ A `kustomizations` block supports the following: * `depends_on` - (Optional) Specifies other kustomizations that this kustomization depends on. This kustomization will not reconcile until all dependencies have completed their reconciliation. +* `post_build` - (Optional) A `post_build` block as defined below. + +* `wait` - (Optional) Whether to enable health check for all Kubernetes objects created by this Kustomization. Defaults to `true`. + --- An `blob_storage` block supports the following: @@ -192,6 +206,24 @@ A `git_repository` block supports the following: * `timeout_in_seconds` - (Optional) Specifies the maximum time to attempt to reconcile the cluster git repository source with the remote. Defaults to `600`. +--- + +A `post_build` block supports the following: + +* `substitute` - (Optional) Specifies the key/value pairs holding the variables to be substituted in this Kustomization. + +* `substitute_from` - (Optional) A `substitute_from` block as defined below. + +--- + +A `substitute_from` block supports the following: + +* `kind` - (Required) Specifies the source kind to hold the variables to be used in substitution. Possible values are `ConfigMap` and `Secret`. + +* `name` - (Required) Specifies the name of the ConfigMap/Secret that holds the variables to be used in substitution. + +* `optional` - (Optional) Whether to proceed without ConfigMap/Secret if it is not present. Defaults to `false`. + ## Attributes Reference In addition to the Arguments listed above - the following Attributes are exported: