Skip to content

Commit a159db5

Browse files
authored
Merge pull request #2 from spicehq/evgenii/2025-12-10/cleanup
Cleanup
2 parents ed3ceee + 7b30862 commit a159db5

35 files changed

Lines changed: 450 additions & 583 deletions

File tree

.copywrite.hcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# NOTE: This file is for HashiCorp specific licensing automation and can be deleted after creating a new repo with this template.
21
schema_version = 1
32

43
project {
54
license = "MPL-2.0"
6-
copyright_year = 2021
5+
copyright_year = 2025
76

87
header_ignore = [
98
# internal catalog metadata (prose)
@@ -21,4 +20,4 @@ project {
2120
# GoReleaser tooling configuration
2221
".goreleaser.yml",
2322
]
24-
}
23+
}

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/issue-comment-triage.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 375 deletions
This file was deleted.

META.d/_summary.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema: 1.1
44
partition: tf-ecosystem
55

66
summary:
7-
owner: team-tf-core-plugins
7+
owner: spiceai
88
description: |
9-
Quick start repository for creating a Terraform provider using terraform-plugin-framework
10-
visibility: public
9+
Terraform provider for managing Spice.ai resources including apps, configurations, and deployments
10+
visibility: public

Makefile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Makefile for terraform-provider-spiceai
22

3+
default: build
4+
35
BINARY_NAME=terraform-provider-spiceai
46
VERSION?=dev
57
GOOS?=$(shell go env GOOS)
@@ -12,7 +14,7 @@ LDFLAGS=-ldflags "-X main.version=$(VERSION)"
1214
PROJECT_DIR=$(shell pwd)
1315
TEST_DIR=$(PROJECT_DIR)/examples/test
1416

15-
.PHONY: all build clean test testacc fmt vet lint install setup plan apply destroy help
17+
.PHONY: all build clean test testacc fmt vet lint install setup plan apply destroy help generate
1618

1719
# Default target
1820
all: build
@@ -103,7 +105,11 @@ clean:
103105
rm -f $(TEST_DIR)/terraform.tfstate.backup
104106
@echo "Clean complete"
105107

106-
## Documentation
108+
## Documentation and Code Generation
109+
110+
generate:
111+
@echo "Running code generation..."
112+
cd tools && go generate ./...
107113

108114
docs:
109115
@echo "Generating documentation..."
@@ -138,6 +144,10 @@ help:
138144
@echo " make vet - Run go vet"
139145
@echo " make lint - Run linter"
140146
@echo ""
147+
@echo "Code Generation:"
148+
@echo " make generate - Run all code generation (docs, formatting, headers)"
149+
@echo " make docs - Generate provider documentation only"
150+
@echo ""
141151
@echo "Development:"
142152
@echo " make setup - Set up ~/.terraformrc with dev_overrides"
143153
@echo " make plan - Build and run terraform plan"
@@ -148,10 +158,9 @@ help:
148158
@echo " make clean - Clean build artifacts and state files"
149159
@echo ""
150160
@echo "Other:"
151-
@echo " make docs - Generate provider documentation"
152161
@echo " make deps - Download dependencies"
153162
@echo " make tidy - Tidy dependencies"
154163
@echo ""
155164
@echo "Environment variables for plan/apply/destroy:"
156165
@echo " SPICEAI_CLIENT_ID - OAuth client ID"
157-
@echo " SPICEAI_CLIENT_SECRET - OAuth client secret"
166+
@echo " SPICEAI_CLIENT_SECRET - OAuth client secret"

docs/data-sources/app.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "spiceai_app Data Source - spiceai"
4+
subcategory: ""
5+
description: |-
6+
Retrieves details about a Spice.ai app by its ID.
7+
---
8+
9+
# spiceai_app (Data Source)
10+
11+
Retrieves details about a Spice.ai app by its ID.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "spiceai_app" "example" {
17+
id = "12345"
18+
}
19+
20+
output "app_name" {
21+
value = data.spiceai_app.example.name
22+
}
23+
24+
output "app_api_key" {
25+
value = data.spiceai_app.example.api_key
26+
sensitive = true
27+
}
28+
```
29+
30+
<!-- schema generated by tfplugindocs -->
31+
## Schema
32+
33+
### Required
34+
35+
- `id` (String) The unique identifier of the app.
36+
37+
### Read-Only
38+
39+
- `api_key` (String, Sensitive) The API key for the app.
40+
- `config` (Attributes) The configuration of the app. (see [below for nested schema](#nestedatt--config))
41+
- `created_at` (String) The timestamp when the app was created.
42+
- `description` (String) A description of the app.
43+
- `name` (String) The name of the app.
44+
- `production_branch` (String) The production branch for the app.
45+
- `region` (String) The region where the app is deployed.
46+
- `visibility` (String) The visibility of the app (public or private).
47+
48+
<a id="nestedatt--config"></a>
49+
### Nested Schema for `config`
50+
51+
Read-Only:
52+
53+
- `image_tag` (String) The Spice.ai runtime image tag.
54+
- `node_group` (String) The node group for the app.
55+
- `replicas` (Number) The number of replicas.
56+
- `spicepod` (String) The spicepod configuration as a JSON string.
57+
- `storage_claim_size_gb` (Number) The storage claim size in GB.

docs/data-sources/apps.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "spiceai_apps Data Source - spiceai"
4+
subcategory: ""
5+
description: |-
6+
Retrieves a list of all Spice.ai apps in the authenticated organization.
7+
---
8+
9+
# spiceai_apps (Data Source)
10+
11+
Retrieves a list of all Spice.ai apps in the authenticated organization.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "spiceai_apps" "all" {}
17+
18+
output "all_app_names" {
19+
value = [for app in data.spiceai_apps.all.apps : app.name]
20+
}
21+
```
22+
23+
<!-- schema generated by tfplugindocs -->
24+
## Schema
25+
26+
### Read-Only
27+
28+
- `apps` (Attributes List) List of apps. (see [below for nested schema](#nestedatt--apps))
29+
30+
<a id="nestedatt--apps"></a>
31+
### Nested Schema for `apps`
32+
33+
Read-Only:
34+
35+
- `api_key` (String, Sensitive) The API key for the app.
36+
- `config` (Attributes) The configuration of the app. (see [below for nested schema](#nestedatt--apps--config))
37+
- `created_at` (String) The timestamp when the app was created.
38+
- `description` (String) A description of the app.
39+
- `id` (String) The unique identifier of the app.
40+
- `name` (String) The name of the app.
41+
- `production_branch` (String) The production branch for the app.
42+
- `region` (String) The region where the app is deployed.
43+
- `visibility` (String) The visibility of the app (public or private).
44+
45+
<a id="nestedatt--apps--config"></a>
46+
### Nested Schema for `apps.config`
47+
48+
Read-Only:
49+
50+
- `image_tag` (String) The Spice.ai runtime image tag.
51+
- `node_group` (String) The node group for the app.
52+
- `replicas` (Number) The number of replicas.
53+
- `spicepod` (String) The spicepod configuration as a JSON string.
54+
- `storage_claim_size_gb` (Number) The storage claim size in GB.

docs/data-sources/example.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)