Skip to content

Commit 557fc74

Browse files
TF-4.6.b-Epics (#596)
* PLT-1350: Added advance filter support for data source pack. (#595) * PLT-1450:Added support for restricted availability zone to workers in dynamic EKS cluster provisioning (#593) * PLT-1656: Added workspace default quota support (#594) * PLT-1656: Added workspace default quota support * reviewable fix * Update resource.tf * refreshed main * PLT-1615: Added Support for SSO support in terraform (#597) * dragt sso * Inital sso completion * PLT-1615:Added support for sso settings. * git leaks ignore * bulwark fix * fix bulwark * bulwark fix1 * fix * refresh examples for data-sources (#600) * refresh examples for data-sources * refresh data source examples * refreshed sdk * fix for advence filter search * fix * fixed version issue * fixed advance filter version issue * PLT-1693: Added validation for client-d, scrent and email (#601) * PLT-1692:Fixed day 2 operations on sso resource (#602) * PLT-1692:Fixed day 2 operations on sso resource * fix * PLT-1698 * fixed add on type docs * added vaidation for doamins * update tf to match palette-sdk swagger v0.31.0 (#604) * update tf to match palette-sdk swagger v0.31.0, * fix syntax * fix: unit tests * fix: unit tests --------- Co-authored-by: Sivaanand Murugesan <[email protected]> * downgraded go * upgraded terrfrom provider go to 1.23.8 * PLT-1706:Removed tech preview note from profile varaible docs. (#605) * PLT-1701: cluster profile day 2 fix for profile variable to pirioratise over packs update (#606) * PLT-1705:Fixed addon type results for integration (#607) * PLT-1670: Added tags_map support for eks and aws cluster. (#608) * eks tags_map * PLT-1709: Fixed advance filter latest version issue (#609) --------- Co-authored-by: Pavan Sokke Nagaraj <[email protected]>
1 parent 378e512 commit 557fc74

File tree

117 files changed

+2845
-517
lines changed

Some content is hidden

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

117 files changed

+2845
-517
lines changed

.gitleaksignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
a8602316863d79a93f32c703943f9c6c242912b2:test.tf:gitlab-pat:12
2+
b31282f23ff1bc599cdc238c470b6452df449b32:templates/resources/sso.md.tmpl:generic-api-key:45
3+
b31282f23ff1bc599cdc238c470b6452df449b32:docs/resources/sso.md:generic-api-key:45
4+
b31282f23ff1bc599cdc238c470b6452df449b32:examples/resources/spectrocloud_sso/resource.tf:generic-api-key:25

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ linters:
3434
- govet
3535
- ineffassign
3636
- staticcheck
37-
- typecheck
3837
- unused
3938
- cyclop
4039
- gocognit
40+
- typecheck
4141

4242
issues:
4343
max-issues-per-linter: 0

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ BIN_DIR ?= ./bin
5858
bin-dir:
5959
test -d $(BIN_DIR) || mkdir $(BIN_DIR)
6060

61-
GOLANGCI_VERSION ?= 1.54.2
61+
GOLANGCI_VERSION ?= 1.64.6
6262
golangci-lint: bin-dir
6363
if ! test -f $(BIN_DIR)/golangci-lint-linux-amd64; then \
6464
curl -LOs https://github.com/golangci/golangci-lint/releases/download/v$(GOLANGCI_VERSION)/golangci-lint-$(GOLANGCI_VERSION)-linux-amd64.tar.gz; \

docs/data-sources/appliance.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@ Provides details about a single appliance used for Edge Native cluster provision
1313
## Example Usage
1414

1515
```terraform
16-
data "spectrocloud_appliance" "test_appliance" {
17-
id = "test-dec9"
16+
data "provider_appliance" "example" {
17+
# You can specify either `id` or `name`, but not both.
18+
id = "appliance-1234"
19+
# name = "example-appliance"
1820
}
1921
20-
output "same" {
21-
value = data.spectrocloud_appliance.test_appliance
22+
output "appliance_details" {
23+
value = {
24+
id = data.provider_appliance.example.id
25+
name = data.provider_appliance.example.name
26+
tags = data.provider_appliance.example.tags
27+
status = data.provider_appliance.example.status
28+
health = data.provider_appliance.example.health
29+
architecture = data.provider_appliance.example.architecture
30+
}
2231
}
2332
```
2433

docs/data-sources/appliances.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ Provides details about a set of appliances used for Edge Native cluster provisio
1313
## Example Usage
1414

1515
```terraform
16-
data "spectrocloud_appliances" "appliances" {
16+
# Data source to retrieve details of appliances based on filters
17+
data "spectrocloud_appliances" "filtered_appliances" {
18+
context = "project" # Context can be "project" or "tenant"
19+
status = "ready" # Filter by status ready, in-use, unpaired
20+
health = "healthy" # Filter by health status
21+
architecture = "amd_64" # Filter by architecture type amd64, arm64
1722
tags = {
18-
"env" = "dev"
23+
environment = "production" # Filter by tag key-value pairs
1924
}
20-
status = "in-use"
21-
#status = "unpaired"
22-
health = "healthy"
23-
architecture = "amd64"
2425
}
2526
26-
output "same" {
27-
value = data.spectrocloud_appliances.appliances
28-
#value = [for a in data.spectrocloud_appliance.appliances : a.name]
27+
# Output the list of appliance IDs that match the filters
28+
output "appliance_ids" {
29+
value = [for a in data.spectrocloud_appliance.filtered_appliances : a.name]
2930
}
3031
```
3132

docs/data-sources/application_profile.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ description: |-
1212
## Example Usage
1313

1414
```hcl
15-
data "spectrocloud_application_profile" "my-app-profile" {
16-
name = "my-app-profile"
15+
# Retrieve details of a specific application profile
16+
data "spectrocloud_application_profile" "example_profile" {
17+
name = "my-app-profile" # Specify the name of the application profile
18+
}
19+
20+
# Output the retrieved application profile details
21+
output "application_profile_version" {
22+
value = data.spectrocloud_application_profile.example_profile.version
1723
}
1824
```
1925

docs/data-sources/cloudaccount_aws.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,28 @@ description: |-
1515
You can retrieve the details of an AWS cloud registered in Palette by specifying the ID of the cloud account.
1616

1717
```hcl
18-
data "spectrocloud_cloudaccount_aws" "aws_account" {
19-
id = "45bddf48b8fc3ea6c1774886"
18+
# Retrieve details of an AWS cloud account using name
19+
data "spectrocloud_cloud_account_aws" "example" {
20+
name = "example-aws-account" # Required if 'id' is not provided
21+
context = "project" # Optional: Allowed values are "project", "tenant", or "" (default)
22+
}
23+
24+
# Retrieve details of an AWS cloud account using ID
25+
data "spectrocloud_cloud_account_aws" "by_id" {
26+
id = "123e4567-e89b-12d3-a456-426614174000" # Required if 'name' is not provided
27+
}
28+
29+
# Output cloud account details
30+
output "aws_account_id" {
31+
value = data.spectrocloud_cloud_account_aws.example.id
32+
}
33+
34+
output "aws_account_name" {
35+
value = data.spectrocloud_cloud_account_aws.example.name
36+
}
37+
38+
output "aws_account_context" {
39+
value = data.spectrocloud_cloud_account_aws.example.context
2040
}
2141
```
2242

docs/data-sources/cloudaccount_azure.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,26 @@ description: |-
1515
You can retrieve the details of an Azure cloud registered in Palette by specifying the ID of the cloud account.
1616

1717
```hcl
18-
data "spectrocloud_cloudaccount_azure" "azure_account" {
19-
id = "45bddf48b8fc3ea6c1774886"
20-
}
21-
```
18+
# Retrieve details of an Azure cloud account using name
2219
23-
Alternatively, you specify the ID of the cloud account to retrieve the details of the Azure cloud account.
20+
data "spectrocloud_cloud_account_azure" "example" {
21+
name = "example-azure-account" # Required if 'id' is not provided
22+
context = "project" # Optional: Allowed values are "project", "tenant", or "" (default)
23+
}
2424
25-
```hcl
26-
data "spectrocloud_cloudaccount_azure" "azure_account" {
27-
name = "primary-azure-account"
25+
# Consolidated output as a map
26+
output "azure_account_details" {
27+
value = {
28+
id = data.spectrocloud_cloud_account_azure.example.id
29+
name = data.spectrocloud_cloud_account_azure.example.name
30+
azure_tenant_id = data.spectrocloud_cloud_account_azure.example.azure_tenant_id
31+
azure_client_id = data.spectrocloud_cloud_account_azure.example.azure_client_id
32+
tenant_name = data.spectrocloud_cloud_account_azure.example.tenant_name
33+
disable_properties_request = data.spectrocloud_cloud_account_azure.example.disable_properties_request
34+
context = data.spectrocloud_cloud_account_azure.example.context
35+
}
2836
}
37+
2938
```
3039

3140
<!-- schema generated by tfplugindocs -->

docs/data-sources/cloudaccount_gcp.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,22 @@ description: |-
1515
You can retrieve the details of a GCP cloud registered in Palette by specifying the ID of the cloud account.
1616

1717
```hcl
18-
data "spectrocloud_cloudaccount_gcp" "gcp_account" {
19-
id = "45bddf48b8fc3ea6c1774886"
20-
}
21-
```
2218
23-
Alternatively, you specify the ID of the cloud account to retrieve the details of the GCP cloud account.
19+
# Retrieve details of a GCP cloud account using name
20+
data "spectrocloud_cloud_account_gcp" "example" {
21+
name = "example-gcp-account" # Required if 'id' is not provided
22+
context = "project" # Optional: Allowed values are "project", "tenant", or "" (default)
23+
}
2424
25-
```hcl
26-
data "spectrocloud_cloudaccount_gcp" "gcp_account" {
27-
name = "primary-gcp-account"
25+
# Consolidated output as a map
26+
output "gcp_account_details" {
27+
value = {
28+
id = data.spectrocloud_cloud_account_gcp.example.id
29+
name = data.spectrocloud_cloud_account_gcp.example.name
30+
context = data.spectrocloud_cloud_account_gcp.example.context
31+
}
2832
}
33+
2934
```
3035

3136
<!-- schema generated by tfplugindocs -->

docs/data-sources/cluster.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ description: |-
1313
## Example Usage
1414

1515
```terraform
16-
data "spectrocloud_cluster" "cluster" {
17-
name = "client-101"
18-
context = "tenant"
16+
# Retrieve cluster details by name
17+
data "spectrocloud_cluster" "example_cluster" {
18+
name = "my-cluster" # Name of the cluster
19+
context = "project" # Context can be "project" or "tenant"
20+
virtual = false # Whether the cluster is virtual
1921
}
2022
21-
resource "local_file" "kubeconfig" {
23+
resource "local_file" "kube_config" {
2224
content = data.spectrocloud_cluster.cluster.kube_config
2325
filename = "client-101.kubeconfig"
2426
file_permission = "0644"
2527
directory_permission = "0755"
2628
}
2729
28-
resource "local_file" "adminkubeconfig" {
30+
resource "local_file" "admin_kube_config" {
2931
content = data.spectrocloud_cluster.cluster.admin_kube_config
3032
filename = "admin-client-101.kubeconfig"
3133
file_permission = "0644"

0 commit comments

Comments
 (0)