@@ -62,7 +62,7 @@ terraform {
62
62
}
63
63
64
64
# Create cluster group
65
- resource "tanzu-mission-control_cluster_group" "create_cluster_group " {
65
+ resource "tanzu-mission-control_cluster_group" "cluster_group " {
66
66
name = "demo-cluster-group"
67
67
}
68
68
@@ -84,15 +84,15 @@ resource "tanzu-mission-control_cluster" "attach_cluster_with_kubeconfig" {
84
84
}
85
85
86
86
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
88
88
}
89
89
90
90
ready_wait_timeout = "15m" # Default: waits until 3 min for the cluster to become ready
91
91
// The deployment link and the command needed to be run to attach this cluster would be provided in the output.status.execution_cmd
92
92
}
93
93
94
94
# 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 " {
96
96
name = "tf-secret" # Required
97
97
98
98
scope {
@@ -119,7 +119,7 @@ resource "tanzu-mission-control_repository_credential" "create_cluster_source_se
119
119
}
120
120
121
121
# 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 " {
123
123
name = "tf-git-repository-name" # Required
124
124
125
125
namespace_name = "tf-namespace" #Required
@@ -139,7 +139,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
139
139
140
140
spec {
141
141
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
143
143
interval = "10m" # Default: 5m
144
144
git_implementation = "GO_GIT" # Default: GO_GIT
145
145
ref {
@@ -152,7 +152,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
152
152
}
153
153
154
154
# Create cluster level Kustomization
155
- resource "tanzu-mission-control_kustomization" "create_cluster_kustomization " {
155
+ resource "tanzu-mission-control_kustomization" "cluster_kustomization " {
156
156
name = "tf-kustomization-name" # Required
157
157
158
158
namespace_name = "tf-namespace" #Required
@@ -176,8 +176,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
176
176
interval = "10m" # Default: 5m
177
177
target_namespace = "testTargetNamespace"
178
178
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
181
181
}
182
182
}
183
183
}
@@ -200,7 +200,7 @@ terraform {
200
200
}
201
201
202
202
# Create cluster group
203
- resource "tanzu-mission-control_cluster_group" "create_cluster_group " {
203
+ resource "tanzu-mission-control_cluster_group" "cluster_group " {
204
204
name = "demo-cluster-group"
205
205
}
206
206
@@ -222,15 +222,15 @@ resource "tanzu-mission-control_cluster" "attach_cluster_with_kubeconfig" {
222
222
}
223
223
224
224
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
226
226
}
227
227
228
228
ready_wait_timeout = "15m" # Default: waits until 3 min for the cluster to become ready
229
229
// The deployment link and the command needed to be run to attach this cluster would be provided in the output.status.execution_cmd
230
230
}
231
231
232
232
# 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 " {
234
234
name = "tf-git-repository-name" # Required
235
235
236
236
namespace_name = "tf-namespace" #Required
@@ -262,7 +262,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
262
262
}
263
263
264
264
# Create cluster level Kustomization
265
- resource "tanzu-mission-control_kustomization" "create_cluster_kustomization " {
265
+ resource "tanzu-mission-control_kustomization" "cluster_kustomization " {
266
266
name = "tf-kustomization-name" # Required
267
267
268
268
namespace_name = "tf-namespace" #Required
@@ -286,8 +286,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
286
286
interval = "10m" # Default: 5m
287
287
target_namespace = "testTargetNamespace"
288
288
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
291
291
}
292
292
}
293
293
}
@@ -312,7 +312,7 @@ terraform {
312
312
}
313
313
314
314
# Create cluster group
315
- resource "tanzu-mission-control_cluster_group" "create_cluster_group " {
315
+ resource "tanzu-mission-control_cluster_group" "cluster_group " {
316
316
name = "demo-cluster-group"
317
317
}
318
318
@@ -334,15 +334,15 @@ resource "tanzu-mission-control_cluster" "attach_cluster_with_kubeconfig" {
334
334
}
335
335
336
336
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
338
338
}
339
339
340
340
ready_wait_timeout = "15m" # Default: waits until 3 min for the cluster to become ready
341
341
// The deployment link and the command needed to be run to attach this cluster would be provided in the output.status.execution_cmd
342
342
}
343
343
344
344
# 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 " {
346
346
name = "tf-secret" # Required
347
347
348
348
scope {
@@ -386,17 +386,17 @@ terraform {
386
386
}
387
387
388
388
# Create cluster group
389
- resource "tanzu-mission-control_cluster_group" "create_cluster_group " {
389
+ resource "tanzu-mission-control_cluster_group" "cluster_group " {
390
390
name = "demo-cluster-group"
391
391
}
392
392
393
393
# 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 " {
395
395
name = "tf-secret" # Required
396
396
397
397
scope {
398
398
cluster_group {
399
- name = tanzu-mission-control_cluster_group.create_cluster_group .name
399
+ name = tanzu-mission-control_cluster_group.cluster_group .name
400
400
}
401
401
}
402
402
@@ -417,14 +417,14 @@ resource "tanzu-mission-control_repository_credential" "create_cluster_source_se
417
417
418
418
419
419
# 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 " {
421
421
name = "tf-git-repository-name" # Required
422
422
423
423
namespace_name = "tf-namespace" #Required
424
424
425
425
scope {
426
426
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
428
428
}
429
429
}
430
430
@@ -435,7 +435,7 @@ resource "tanzu-mission-control_git_repository" "create_cluster_group_git_reposi
435
435
436
436
spec {
437
437
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
439
439
interval = "10m" # Default: 5m
440
440
git_implementation = "GO_GIT" # Default: GO_GIT
441
441
ref {
@@ -449,14 +449,14 @@ resource "tanzu-mission-control_git_repository" "create_cluster_group_git_reposi
449
449
450
450
451
451
# Create cluster group level Kustomization
452
- resource "tanzu-mission-control_kustomization" "create_cluster_group_kustomization " {
452
+ resource "tanzu-mission-control_kustomization" "cluster_group_kustomization " {
453
453
name = "tf-kustomization-name" # Required
454
454
455
455
namespace_name = "tf-namespace" #Required
456
456
457
457
scope {
458
458
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
460
460
}
461
461
}
462
462
@@ -471,8 +471,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_group_kustomizati
471
471
interval = "10m" # Default: 5m
472
472
target_namespace = "testTargetNamespace"
473
473
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
476
476
}
477
477
}
478
478
}
@@ -495,19 +495,19 @@ terraform {
495
495
}
496
496
497
497
# Create cluster group
498
- resource "tanzu-mission-control_cluster_group" "create_cluster_group " {
498
+ resource "tanzu-mission-control_cluster_group" "cluster_group " {
499
499
name = "demo-cluster-group"
500
500
}
501
501
502
502
# 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 " {
504
504
name = "tf-git-repository-name" # Required
505
505
506
506
namespace_name = "tf-namespace" #Required
507
507
508
508
scope {
509
509
cluster_group {
510
- name = tanzu-mission-control_cluster_group.create_cluster_group .name
510
+ name = tanzu-mission-control_cluster_group.cluster_group .name
511
511
}
512
512
}
513
513
@@ -530,14 +530,14 @@ resource "tanzu-mission-control_git_repository" "create_cluster_git_repository"
530
530
}
531
531
532
532
# Create cluster group level Kustomization
533
- resource "tanzu-mission-control_kustomization" "create_cluster_kustomization " {
533
+ resource "tanzu-mission-control_kustomization" "cluster_kustomization " {
534
534
name = "tf-kustomization-name" # Required
535
535
536
536
namespace_name = "tf-namespace" #Required
537
537
538
538
scope {
539
539
cluster_group {
540
- name = tanzu-mission-control_cluster_group.create_cluster_group .name
540
+ name = tanzu-mission-control_cluster_group.cluster_group .name
541
541
}
542
542
}
543
543
@@ -552,8 +552,8 @@ resource "tanzu-mission-control_kustomization" "create_cluster_kustomization" {
552
552
interval = "10m" # Default: 5m
553
553
target_namespace = "testTargetNamespace"
554
554
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
557
557
}
558
558
}
559
559
}
0 commit comments