Skip to content

Commit c1da46a

Browse files
author
alrammr
committed
add github provider support for kubernetes flux configuration
1 parent d64fd24 commit c1da46a

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

internal/services/containers/kubernetes_flux_configuration_resource_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,20 @@ func TestAccKubernetesFluxConfiguration_gitRepositoryProviderGeneric(t *testing.
259259
})
260260
}
261261

262+
func TestAccKubernetesFluxConfiguration_gitRepositoryProviderGitHub(t *testing.T) {
263+
data := acceptance.BuildTestData(t, "azurerm_kubernetes_flux_configuration", "test")
264+
r := KubernetesFluxConfigurationResource{}
265+
data.ResourceTest(t, r, []acceptance.TestStep{
266+
{
267+
Config: r.gitRepositoryProvider(data, "GitHub"),
268+
Check: acceptance.ComposeTestCheckFunc(
269+
check.That(data.ResourceName).ExistsInAzure(r),
270+
),
271+
},
272+
data.ImportStep(),
273+
})
274+
}
275+
262276
func TestAccKubernetesFluxConfiguration_gitRepositoryProviderUpdate(t *testing.T) {
263277
data := acceptance.BuildTestData(t, "azurerm_kubernetes_flux_configuration", "test")
264278
r := KubernetesFluxConfigurationResource{}
@@ -284,6 +298,13 @@ func TestAccKubernetesFluxConfiguration_gitRepositoryProviderUpdate(t *testing.T
284298
),
285299
},
286300
data.ImportStep(),
301+
{
302+
Config: r.gitRepositoryProvider(data, "GitHub"),
303+
Check: acceptance.ComposeTestCheckFunc(
304+
check.That(data.ResourceName).ExistsInAzure(r),
305+
),
306+
},
307+
data.ImportStep(),
287308
{
288309
Config: r.basic(data),
289310
Check: acceptance.ComposeTestCheckFunc(

vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2024-11-01/fluxconfiguration/constants.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/docs/r/kubernetes_flux_configuration.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ A `git_repository` block supports the following:
196196

197197
* `https_key_base64` - (Optional) Specifies the Base64-encoded HTTPS personal access token or password that will be used to access the repository.
198198

199-
* `provider` - (Optional) Specifies the OIDC provider used for workload identity federation authentication against git repositories. Possible values are `Azure`, `Generic`.
199+
* `provider` - (Optional) Specifies the OIDC provider used for workload identity federation authentication against git repositories. Possible values are `Azure`, `Generic`, `GitHub`.
200200

201201
* `local_auth_reference` - (Optional) Specifies the name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets. It must be between 1 and 63 characters. It can contain only lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number.
202202

0 commit comments

Comments
 (0)