Skip to content

Commit 2628448

Browse files
README, MAKE file updated along with copyright information
Updating the README and adding Acceptance test section to MAKE Signed-off-by: Vasundhara Shukla <vasundharas@vmware.com>
1 parent 9155cd8 commit 2628448

File tree

5 files changed

+30
-25
lines changed

5 files changed

+30
-25
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ vet:
2525
lint: gofmt
2626
golangci-lint run -c ./.golangci.yml ./internal/... .
2727

28+
set-tf-acc:
29+
@echo Setting Acceptance test env variable
30+
export TF_ACC=true;\
31+
echo $$TF_ACC
32+
33+
acc-test: set-tf-acc test
34+
2835
website-lint:
2936
@echo "==> Checking website against linters..."
3037
@misspell -error -source=text website/ || (echo; \

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Terraform Tanzu TMC Provider
1+
# Terraform VMware Tanzu Mission Control Provider
22

3-
This is the repository for the Terraform Tanzu TMC Provider, which one can use with
4-
Terraform to work with [VMware Tanzu TMC][vmware-tanzu-tmc].
3+
This is the repository for the Terraform Tanzu Mission Control Provider, which one can use with Terraform to work with
4+
[VMware Tanzu Mission Control][vmware-tanzu-tmc].
55

66
[vmware-tanzu-tmc]: https://tanzu.vmware.com/mission-control
77

@@ -27,8 +27,8 @@ provider "tmc" {
2727
}
2828
```
2929

30-
Version locking uses a pessimistic operator, so this version lock would mean
31-
anything within the 1.x namespace, including or after 1.0.0. [Read more][provider-vc] on provider version control.
30+
Version locking uses a pessimistic operator, so this version lock would mean anything within the 1.x namespace, including or after 1.0.0.
31+
[Read more][provider-vc] on provider version control.
3232

3333
[provider-vc]: https://docs.vmware.com/en/VMware-Tanzu-Mission-Control/index.html
3434

@@ -86,34 +86,34 @@ provider.
8686
**Flattening and Helper Tests:** These can be run by `make test` directly.
8787

8888
**Acceptance Tests:** Set the environment variables in your IDE configurations or Terminal.
89-
Environment variables that are required to be set universally are `TMC_ENDPOINT`, `TMC_CSP_ENDPOINT`, `TMC_CSP_TOKEN` and `TF_ACC`. `TF_ACC` has to be set as `true`.
89+
Environment variables that are required to be set universally are `TMC_ENDPOINT`, `TMC_CSP_ENDPOINT` and `TMC_CSP_TOKEN`.
9090

9191
Environment variables specific to particular resources:
9292

9393
- **Attach Cluster with Kubeconfig and Namespace Resource** - `KUBECONFIG`
9494
- **TKGs workload cluster** - `MANAGEMENT_CLUSTER`, `PROVISIONER_NAME`, `VERSION` and `STORAGE_CLASS`.
9595
- **TKGm Vsphere workload cluster** - `MANAGEMENT_CLUSTER` and `CONTROL_PLANE_ENDPOINT`.
9696

97-
After the environment variables are set, run the respective tests.
97+
After the environment variables are set, run `make acc-test`.
9898

9999
## Provider Documentation
100100

101-
TMC Terraform provider documentation is autogenerated using [tfplugindocs][tfplugindocs-link].
101+
Tanzu Mission Control Terraform provider documentation is autogenerated using [tfplugindocs][tfplugindocs-link].
102102

103-
Use the tfplugindocs tool to automatically generate documentation for your provider in the format required by the Terraform Registry.
103+
Use the tfplugindocs tool to generate documentation for your provider in the format required by the Terraform Registry.
104104
The plugin will read the descriptions and schema of each resource and data source in your provider and generate the relevant Markdown files for you.
105105

106106
[tfplugindocs-link]: https://github.com/hashicorp/terraform-plugin-docs
107-
## Utilising TMC provider
107+
## Using Tanzu Mission Control Provider
108108

109-
Please refer to `examples` folder to perform CRUD operations with TMC provider for various resources
109+
Please refer to `examples` folder to perform CRUD operations with Tanzu Mission Control provider for various resources
110110

111111
# Support
112112

113-
The TMC Terraform provider is now VMware supported as well as community supported. For bugs and feature requests please open a Github Issue and label it appropriately or contact VMware support.
113+
The Tanzu Mission Control Terraform provider is now VMware supported as well as community supported. For bugs and feature requests please open a Github Issue and label it appropriately or contact VMware support.
114114

115115
# License
116116

117117
Copyright © 2015-2021 VMware, Inc. All Rights Reserved.
118118

119-
The TMC Terraform provider is available under [MPL2.0 license](https://github.com/vmware-tanzu/terraform-provider-tanzu-mission-control/blob/main/LICENSE).
119+
The Tanzu Mission Control Terraform provider is available under [MPL2.0 license](https://github.com/vmware-tanzu/terraform-provider-tanzu-mission-control/blob/main/LICENSE).

internal/models/cluster/method_get.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
Copyright © 2021 VMware, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
package clustermodel
27

38
import (

internal/resources/cluster/manifest/helper.go

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
/*
2-
Copyright (c) 2021 VMware, Inc. All rights reserved.
3-
4-
Proprietary and confidential.
5-
6-
Unauthorized copying or use of this file, in any medium or form,
7-
is strictly prohibited.
2+
Copyright © 2021 VMware, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: MPL-2.0
84
*/
5+
96
package manifest
107

118
import (

internal/resources/cluster/manifest/manifest.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/*
2-
Copyright (c) 2020 VMware, Inc. All rights reserved.
3-
4-
Proprietary and confidential.
5-
6-
Unauthorized copying or use of this file, in any medium or form,
7-
is strictly prohibited.
2+
Copyright © 2021 VMware, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: MPL-2.0
84
*/
95

106
package manifest

0 commit comments

Comments
 (0)