Skip to content

Commit f5bbc4d

Browse files
committed
Initial commit: Complete terraform-provider-openai codebase with all resources, data sources, examples and documentation
0 parents  commit f5bbc4d

File tree

426 files changed

+64084
-0
lines changed

Some content is hidden

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

426 files changed

+64084
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### Terraform Version
10+
<!--- Run `terraform version` to show the version, and paste the result below. -->
11+
12+
### Provider Version
13+
<!--- Run `terraform providers` to show the provider version, and paste the result below. -->
14+
15+
### Affected Resource(s)
16+
<!--- List the affected resources and/or data sources. -->
17+
18+
### Terraform Configuration Files
19+
<!--- Paste the relevant parts of your Terraform configuration. -->
20+
21+
```hcl
22+
# Copy-paste your Terraform configuration here
23+
```
24+
25+
### Debug Output
26+
<!--- Provide a link to a GitHub Gist containing the complete debug output. -->
27+
28+
### Expected Behavior
29+
<!--- What should have happened? -->
30+
31+
### Actual Behavior
32+
<!--- What actually happened? -->
33+
34+
### Steps to Reproduce
35+
<!--- List the steps required to reproduce the issue. -->
36+
37+
### Important Factoids
38+
<!--- Is there anything atypical about your environment? -->
39+
40+
### References
41+
<!--- Are there any other GitHub issues or pull requests that should be linked here? -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature or resource
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
### Description
10+
<!--- Describe the feature and why it would be useful. -->
11+
12+
### New or Affected Resource(s)
13+
<!--- List the resources this feature request affects. -->
14+
15+
### Potential Terraform Configuration
16+
<!--- Show how you think this feature should work. -->
17+
18+
```hcl
19+
# Proposed configuration
20+
```
21+
22+
### References
23+
<!--- Are there any other GitHub issues, pull requests, or external links that should be linked here? -->

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "gomod"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Description
2+
3+
Please include a summary of the changes and which issue is fixed. Include relevant motivation and context.
4+
5+
Fixes # (issue)
6+
7+
## Type of change
8+
9+
Please delete options that are not relevant.
10+
11+
- [ ] Bug fix (non-breaking change which fixes an issue)
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
- [ ] Documentation update
15+
16+
## How Has This Been Tested?
17+
18+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
19+
20+
- [ ] Unit tests
21+
- [ ] Acceptance tests
22+
- [ ] Manual testing
23+
24+
## Checklist:
25+
26+
- [ ] My code follows the style guidelines of this project
27+
- [ ] I have performed a self-review of my own code
28+
- [ ] I have commented my code, particularly in hard-to-understand areas
29+
- [ ] I have made corresponding changes to the documentation
30+
- [ ] My changes generate no new warnings
31+
- [ ] I have added tests that prove my fix is effective or that my feature works
32+
- [ ] New and existing unit tests pass locally with my changes
33+
- [ ] Any dependent changes have been merged and published in downstream modules

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
timeout-minutes: 5
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-go@v5
16+
with:
17+
go-version-file: 'go.mod'
18+
cache: true
19+
- uses: hashicorp/setup-terraform@v3
20+
with:
21+
terraform_version: '1.12.*'
22+
terraform_wrapper: false
23+
- run: go mod download
24+
- run: make build
25+
- run: go generate ./...
26+
- name: Check for uncommitted changes
27+
run: |
28+
git add .
29+
git diff --staged --exit-code
30+
31+
test:
32+
runs-on: ubuntu-24.04
33+
timeout-minutes: 15
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
terraform:
38+
- '1.0.*'
39+
- '1.1.*'
40+
- '1.2.*'
41+
- '1.3.*'
42+
- '1.4.*'
43+
- '1.5.*'
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-go@v5
47+
with:
48+
go-version-file: 'go.mod'
49+
cache: true
50+
- uses: hashicorp/setup-terraform@v3
51+
with:
52+
terraform_version: ${{ matrix.terraform }}
53+
terraform_wrapper: false
54+
- run: go mod download
55+
- run: make test
56+
57+
golangci:
58+
runs-on: ubuntu-24.04
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: actions/setup-go@v5
62+
with:
63+
go-version-file: 'go.mod'
64+
cache: true
65+
- run: go mod download
66+
- uses: golangci/golangci-lint-action@v6
67+
with:
68+
version: latest

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: 'go.mod'
21+
cache: true
22+
- name: Import GPG key
23+
uses: crazy-max/ghaction-import-gpg@v6
24+
id: import_gpg
25+
with:
26+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
27+
passphrase: ${{ secrets.PASSPHRASE }}
28+
- name: Run GoReleaser
29+
uses: goreleaser/goreleaser-action@v5
30+
with:
31+
args: release --clean
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.gitignore

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# If you prefer the allow list template instead of the deny list, see community template:
2+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3+
#
4+
# Binaries for programs and plugins
5+
*.exe
6+
*.exe~
7+
*.dll
8+
*.so
9+
*.dylib
10+
11+
# Test binary, built with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool, specifically when used with LiteIDE
15+
*.out
16+
17+
# Dependency directories (remove the comment below to include it)
18+
# vendor/
19+
20+
# Go workspace file
21+
go.work
22+
go.work.sum
23+
24+
# env file
25+
.env
26+
.venv
27+
28+
# Archivos específicos de Terraform
29+
**/.terraform/*
30+
*.tfstate
31+
*.tfstate.*
32+
crash.log
33+
crash.*.log
34+
*.tfvars
35+
*.tfvars.json
36+
override.tf
37+
override.tf.json
38+
*_override.tf
39+
*_override.tf.json
40+
.terraformrc
41+
terraform.rc
42+
.terraform.lock.hcl
43+
**/.cursor/*
44+
45+
# Excepción específica del proyecto
46+
terraform-provider-openai/examples/basic/terraform.tfvars
47+
48+
# Archivos de respaldo generados por Terraform
49+
*.backup
50+
51+
# Logs
52+
logs
53+
*.log
54+
npm-debug.log*
55+
yarn-debug.log*
56+
yarn-error.log*
57+
58+
# Dependencias
59+
node_modules/
60+
jspm_packages/
61+
vendor/
62+
63+
# Archivos de IDE y editores
64+
.idea/
65+
.vscode/
66+
*.swp
67+
*.swo
68+
*~
69+
.DS_Store
70+
.project
71+
.classpath
72+
.settings/
73+
74+
# Archivos binarios
75+
bin/
76+
*.exe
77+
*.dll
78+
*.so
79+
*.dylib
80+
81+
# Archivos temporales
82+
*.tmp
83+
*.bak
84+
*.swp
85+
*~.nib
86+
local.properties
87+
.loadpath
88+
.recommenders
89+
90+
# Distribuciones y compilaciones
91+
dist/
92+
build/
93+
out/
94+
target/
95+
96+
# Variables de entorno y secretos
97+
.env
98+
.env.local
99+
.env.development.local
100+
.env.test.local
101+
.env.production.local
102+
.env.*.local
103+
104+
# Archivos de API Keys
105+
**/api_keys.txt
106+
**/*_key.txt
107+
**/secrets.yml
108+
109+
# Directorio de caché de Go
110+
.go-cache/
111+
112+
# Binarios compilados específicos
113+
terraform-provider-openai
114+
115+
# Provider binaries
116+
terraform-provider-openai
117+
bin/
118+
119+
# Terraform files
120+
.terraform/
121+
.terraform.lock.hcl
122+
terraform.tfstate
123+
terraform.tfstate.backup
124+
crash.log
125+
126+
# Go files
127+
vendor/
128+
129+
# Test binary, built with `go test -c`
130+
*.test
131+
132+
# Output of the go coverage tool
133+
*.out
134+
coverage.*
135+
136+
# IDE files
137+
.idea/
138+
.vscode/
139+
*.swp
140+
*.swo
141+
142+
# OS files
143+
.DS_Store
144+
._.DS_Store
145+
Thumbs.db
146+
147+
# Log files
148+
*.log
149+
150+
# Local environment files
151+
.env
152+
.env.local
153+
154+
# Release-specific entries
155+
example.tf
156+
terraform.tfplan
157+
modules-dev/
158+
/pkg/
159+
website/.vagrant
160+
website/.bundle
161+
website/build
162+
website/node_modules
163+
.vagrant/
164+
*.iml
165+
website/vendor

0 commit comments

Comments
 (0)