Skip to content

Commit

Permalink
rename google_gke_hub_feature policycontroller examples (#9845) (#17088)
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 8759097 commit f6b90c2
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/services/gkehub2/resource_gke_hub_feature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,15 +588,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 @@ -634,7 +634,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 @@ -698,7 +698,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 f6b90c2

Please sign in to comment.