Skip to content

Commit 4e12da7

Browse files
authored
docs: update naming style from imperative to declarative (#491)
Change style from imperative to declarative. #482 Signed-off-by: Steve Wall <steven.wall@capstonec.com>
1 parent 3e51062 commit 4e12da7

File tree

65 files changed

+230
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+230
-230
lines changed

docs/guides/tanzu-mission-control_cluster.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ data "tanzu-mission-control_cluster" "ready_only_cluster_view" {
5454
}
5555
5656
# Create Tanzu Mission Control Tanzu Kubernetes Grid Service workload cluster entry
57-
resource "tanzu-mission-control_cluster" "create_tkgs_workload" {
57+
resource "tanzu-mission-control_cluster" "tkgs_workload" {
5858
management_cluster_name = "<management-cluster>"
5959
provisioner_name = "<prov-name>"
6060
name = "<cluster-name>"
@@ -175,7 +175,7 @@ data "tanzu-mission-control_cluster" "ready_only_cluster_view" {
175175
}
176176
177177
// Create Tanzu Mission Control Tanzu Kubernetes Grid vSphere workload cluster entry
178-
resource "tanzu-mission-control_cluster" "create_tkg_vsphere_cluster" {
178+
resource "tanzu-mission-control_cluster" "tkg_vsphere_cluster" {
179179
management_cluster_name = "<management-cluster>" // Default: attached
180180
provisioner_name = "<prov-name>" // Default: attached
181181
name = "<cluster-name>" // Required
@@ -312,7 +312,7 @@ data "tanzu-mission-control_cluster" "ready_only_cluster_view" {
312312
}
313313
314314
// Create Tanzu Mission Control Tanzu Kubernetes Grid AWS workload cluster entry
315-
resource "tanzu-mission-control_cluster" "create_tkg_aws_cluster" {
315+
resource "tanzu-mission-control_cluster" "tkg_aws_cluster" {
316316
management_cluster_name = "<management-cluster>" // Default: attached
317317
provisioner_name = "<prov-name>" // Default: attached
318318
name = "<cluster-name>" // Required

docs/guides/tanzu-mission-control_gitops.md

+34-34
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ terraform {
6262
}
6363
6464
# Create cluster group
65-
resource "tanzu-mission-control_cluster_group" "create_cluster_group" {
65+
resource "tanzu-mission-control_cluster_group" "cluster_group" {
6666
name = "demo-cluster-group"
6767
}
6868
@@ -84,15 +84,15 @@ resource "tanzu-mission-control_cluster" "attach_cluster_with_kubeconfig" {
8484
}
8585
8686
spec {
87-
cluster_group = tanzu-mission-control_cluster_group.create_cluster_group.name // Default: default
87+
cluster_group = tanzu-mission-control_cluster_group.cluster_group.name // Default: default
8888
}
8989
9090
ready_wait_timeout = "15m" # Default: waits until 3 min for the cluster to become ready
9191
// The deployment link and the command needed to be run to attach this cluster would be provided in the output.status.execution_cmd
9292
}
9393
9494
# Create basic Repository Credential
95-
resource "tanzu-mission-control_repository_credential" "create_cluster_source_secret_username_password" {
95+
resource "tanzu-mission-control_repository_credential" "cluster_source_secret_username_password" {
9696
name = "tf-secret" # Required
9797
9898
scope {
@@ -119,7 +119,7 @@ resource "tanzu-mission-control_repository_credential" "create_cluster_source_se
119119
}
120120
121121
# Create cluster level Git Repository with basic authentication
122-
resource "tanzu-mission-control_git_repository" "create_cluster_git_repository" {
122+
resource "tanzu-mission-control_git_repository" "cluster_git_repository" {
123123
name = "tf-git-repository-name" # Required
124124
125125
namespace_name = "tf-namespace" #Required
@@ -139,7 +139,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
139139
140140
spec {
141141
url = "testGitRepositoryURL" # Required
142-
secret_ref = tanzu-mission-control_repository_credential.create_cluster_source_secret_username_password.name
142+
secret_ref = tanzu-mission-control_repository_credential.cluster_source_secret_username_password.name
143143
interval = "10m" # Default: 5m
144144
git_implementation = "GO_GIT" # Default: GO_GIT
145145
ref {
@@ -152,7 +152,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
152152
}
153153
154154
# Create cluster level Kustomization
155-
resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
155+
resource "tanzu-mission-control_kustomization" "cluster_kustomization" {
156156
name = "tf-kustomization-name" # Required
157157
158158
namespace_name = "tf-namespace" #Required
@@ -176,8 +176,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
176176
interval = "10m" # Default: 5m
177177
target_namespace = "testTargetNamespace"
178178
source {
179-
name = tanzu-mission-control_git_repository.create_cluster_git_repository.name # Required
180-
namespace = tanzu-mission-control_git_repository.create_cluster_git_repository.namespace_name # Required
179+
name = tanzu-mission-control_git_repository.cluster_git_repository.name # Required
180+
namespace = tanzu-mission-control_git_repository.cluster_git_repository.namespace_name # Required
181181
}
182182
}
183183
}
@@ -200,7 +200,7 @@ terraform {
200200
}
201201
202202
# Create cluster group
203-
resource "tanzu-mission-control_cluster_group" "create_cluster_group" {
203+
resource "tanzu-mission-control_cluster_group" "cluster_group" {
204204
name = "demo-cluster-group"
205205
}
206206
@@ -222,15 +222,15 @@ resource "tanzu-mission-control_cluster" "attach_cluster_with_kubeconfig" {
222222
}
223223
224224
spec {
225-
cluster_group = tanzu-mission-control_cluster_group.create_cluster_group.name // Default: default
225+
cluster_group = tanzu-mission-control_cluster_group.cluster_group.name // Default: default
226226
}
227227
228228
ready_wait_timeout = "15m" # Default: waits until 3 min for the cluster to become ready
229229
// The deployment link and the command needed to be run to attach this cluster would be provided in the output.status.execution_cmd
230230
}
231231
232232
# Create cluster level Git Repository
233-
resource "tanzu-mission-control_git_repository" "create_cluster_git_repository" {
233+
resource "tanzu-mission-control_git_repository" "cluster_git_repository" {
234234
name = "tf-git-repository-name" # Required
235235
236236
namespace_name = "tf-namespace" #Required
@@ -262,7 +262,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
262262
}
263263
264264
# Create cluster level Kustomization
265-
resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
265+
resource "tanzu-mission-control_kustomization" "cluster_kustomization" {
266266
name = "tf-kustomization-name" # Required
267267
268268
namespace_name = "tf-namespace" #Required
@@ -286,8 +286,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
286286
interval = "10m" # Default: 5m
287287
target_namespace = "testTargetNamespace"
288288
source {
289-
name = tanzu-mission-control_git_repository.create_cluster_git_repository.name # Required
290-
namespace = tanzu-mission-control_git_repository.create_cluster_git_repository.namespace_name # Required
289+
name = tanzu-mission-control_git_repository.cluster_git_repository.name # Required
290+
namespace = tanzu-mission-control_git_repository.cluster_git_repository.namespace_name # Required
291291
}
292292
}
293293
}
@@ -312,7 +312,7 @@ terraform {
312312
}
313313
314314
# Create cluster group
315-
resource "tanzu-mission-control_cluster_group" "create_cluster_group" {
315+
resource "tanzu-mission-control_cluster_group" "cluster_group" {
316316
name = "demo-cluster-group"
317317
}
318318
@@ -334,15 +334,15 @@ resource "tanzu-mission-control_cluster" "attach_cluster_with_kubeconfig" {
334334
}
335335
336336
spec {
337-
cluster_group = tanzu-mission-control_cluster_group.create_cluster_group.name // Default: default
337+
cluster_group = tanzu-mission-control_cluster_group.cluster_group.name // Default: default
338338
}
339339
340340
ready_wait_timeout = "15m" # Default: waits until 3 min for the cluster to become ready
341341
// The deployment link and the command needed to be run to attach this cluster would be provided in the output.status.execution_cmd
342342
}
343343
344344
# Create cluster level Repository Credential
345-
resource "tanzu-mission-control_repository_credential" "create_cluster_source_secret_ssh" {
345+
resource "tanzu-mission-control_repository_credential" "cluster_source_secret_ssh" {
346346
name = "tf-secret" # Required
347347
348348
scope {
@@ -386,17 +386,17 @@ terraform {
386386
}
387387
388388
# Create cluster group
389-
resource "tanzu-mission-control_cluster_group" "create_cluster_group" {
389+
resource "tanzu-mission-control_cluster_group" "cluster_group" {
390390
name = "demo-cluster-group"
391391
}
392392
393393
# Create cluster group level SSH key type Repository Credential
394-
resource "tanzu-mission-control_repository_credential" "create_cluster_source_secret_ssh" {
394+
resource "tanzu-mission-control_repository_credential" "cluster_source_secret_ssh" {
395395
name = "tf-secret" # Required
396396
397397
scope {
398398
cluster_group {
399-
name = tanzu-mission-control_cluster_group.create_cluster_group.name
399+
name = tanzu-mission-control_cluster_group.cluster_group.name
400400
}
401401
}
402402
@@ -417,14 +417,14 @@ resource "tanzu-mission-control_repository_credential" "create_cluster_source_se
417417
418418
419419
# Create cluster group level Git Repository with SSH key type authentication
420-
resource "tanzu-mission-control_git_repository" "create_cluster_group_git_repository" {
420+
resource "tanzu-mission-control_git_repository" "cluster_group_git_repository" {
421421
name = "tf-git-repository-name" # Required
422422
423423
namespace_name = "tf-namespace" #Required
424424
425425
scope {
426426
cluster_group {
427-
cluster_group = tanzu-mission-control_cluster_group.create_cluster_group.name
427+
cluster_group = tanzu-mission-control_cluster_group.cluster_group.name
428428
}
429429
}
430430
@@ -435,7 +435,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_group_git_reposi
435435
436436
spec {
437437
url = "testGitRepositoryURL" # Required
438-
secret_ref = tanzu-mission-control_repository_credential.create_cluster_source_secret_ssh.name
438+
secret_ref = tanzu-mission-control_repository_credential.cluster_source_secret_ssh.name
439439
interval = "10m" # Default: 5m
440440
git_implementation = "GO_GIT" # Default: GO_GIT
441441
ref {
@@ -449,14 +449,14 @@ resource "tanzu-mission-control_git_repository" "create_cluster_group_git_reposi
449449
450450
451451
# Create cluster group level Kustomization
452-
resource "tanzu-mission-control_kustomization" "create_cluster_group_kustomization" {
452+
resource "tanzu-mission-control_kustomization" "cluster_group_kustomization" {
453453
name = "tf-kustomization-name" # Required
454454
455455
namespace_name = "tf-namespace" #Required
456456
457457
scope {
458458
cluster_group {
459-
cluster_group = tanzu-mission-control_cluster_group.create_cluster_group.name
459+
cluster_group = tanzu-mission-control_cluster_group.cluster_group.name
460460
}
461461
}
462462
@@ -471,8 +471,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_group_kustomizati
471471
interval = "10m" # Default: 5m
472472
target_namespace = "testTargetNamespace"
473473
source {
474-
name = tanzu-mission-control_git_repository.create_cluster_group_git_repository.name # Required
475-
namespace = tanzu-mission-control_git_repository.create_cluster_group_git_repository.namespace_name # Required
474+
name = tanzu-mission-control_git_repository.cluster_group_git_repository.name # Required
475+
namespace = tanzu-mission-control_git_repository.cluster_group_git_repository.namespace_name # Required
476476
}
477477
}
478478
}
@@ -495,19 +495,19 @@ terraform {
495495
}
496496
497497
# Create cluster group
498-
resource "tanzu-mission-control_cluster_group" "create_cluster_group" {
498+
resource "tanzu-mission-control_cluster_group" "cluster_group" {
499499
name = "demo-cluster-group"
500500
}
501501
502502
# Create cluster group level Git Repository
503-
resource "tanzu-mission-control_git_repository" "create_cluster_git_repository" {
503+
resource "tanzu-mission-control_git_repository" "cluster_git_repository" {
504504
name = "tf-git-repository-name" # Required
505505
506506
namespace_name = "tf-namespace" #Required
507507
508508
scope {
509509
cluster_group {
510-
name = tanzu-mission-control_cluster_group.create_cluster_group.name
510+
name = tanzu-mission-control_cluster_group.cluster_group.name
511511
}
512512
}
513513
@@ -530,14 +530,14 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
530530
}
531531
532532
# Create cluster group level Kustomization
533-
resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
533+
resource "tanzu-mission-control_kustomization" "cluster_kustomization" {
534534
name = "tf-kustomization-name" # Required
535535
536536
namespace_name = "tf-namespace" #Required
537537
538538
scope {
539539
cluster_group {
540-
name = tanzu-mission-control_cluster_group.create_cluster_group.name
540+
name = tanzu-mission-control_cluster_group.cluster_group.name
541541
}
542542
}
543543
@@ -552,8 +552,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
552552
interval = "10m" # Default: 5m
553553
target_namespace = "testTargetNamespace"
554554
source {
555-
name = tanzu-mission-control_git_repository.create_cluster_git_repository.name # Required
556-
namespace = tanzu-mission-control_git_repository.create_cluster_git_repository.namespace_name # Required
555+
name = tanzu-mission-control_git_repository.cluster_git_repository.name # Required
556+
namespace = tanzu-mission-control_git_repository.cluster_git_repository.namespace_name # Required
557557
}
558558
}
559559
}

0 commit comments

Comments
 (0)