Skip to content

Commit

Permalink
rename google_gke_hub_feature policycontroller examples (#9845) (#6896)
Browse files Browse the repository at this point in the history
[upstream:6a107d87f1b0107ac7dbd044a3434e3ebd784590]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jan 23, 2024
1 parent 24a7f98 commit e0a698f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/9845.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
8 changes: 4 additions & 4 deletions google-beta/services/gkehub2/resource_gke_hub_feature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,15 +645,15 @@ func TestAccGKEHubFeature_FleetDefaultMemberConfigPolicyController(t *testing.T)
ImportStateVerifyIgnore: []string{"project", "update_time"},
},
{
Config: testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerUpdate(context),
Config: testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerFull(context),
},
{
ResourceName: "google_gke_hub_feature.feature",
ImportState: true,
ImportStateVerify: true,
},
{
Config: testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerUpdateSetEmpty(context),
Config: testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerMinimal(context),
},
{
ResourceName: "google_gke_hub_feature.feature",
Expand Down Expand Up @@ -691,7 +691,7 @@ resource "google_gke_hub_feature" "feature" {
`, context)
}

func testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerUpdate(context map[string]interface{}) string {
func testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerFull(context map[string]interface{}) string {
return gkeHubFeatureProjectSetupForGA(context) + acctest.Nprintf(`
resource "google_gke_hub_feature" "feature" {
name = "policycontroller"
Expand Down Expand Up @@ -755,7 +755,7 @@ resource "google_gke_hub_feature" "feature" {
`, context)
}

func testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerUpdateSetEmpty(context map[string]interface{}) string {
func testAccGKEHubFeature_FleetDefaultMemberConfigPolicyControllerMinimal(context map[string]interface{}) string {
return gkeHubFeatureProjectSetupForGA(context) + acctest.Nprintf(`
resource "google_gke_hub_feature" "feature" {
name = "policycontroller"
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/gke_hub_feature.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ resource "google_gke_hub_feature" "feature" {
}
}
```
## Example Usage - Enable Fleet Default Member Config Policycontroller Update
## Example Usage - Enable Fleet Default Member Config Policycontroller Full


```hcl
Expand Down Expand Up @@ -258,7 +258,7 @@ resource "google_gke_hub_feature" "feature" {
}
}
```
## Example Usage - Enable Fleet Default Member Config Policycontroller Set Empty
## Example Usage - Enable Fleet Default Member Config Policycontroller Minimal


```hcl
Expand Down

0 comments on commit e0a698f

Please sign in to comment.