Skip to content

Commit 31808bf

Browse files
bcbrockwayBobby Brockway
andauthored
Add HCP Terraform Operator (#500)
* add hcp-terraform-operator * removed old versions --------- Co-authored-by: Bobby Brockway <bbrockway@mintel.com>
1 parent 0743ec0 commit 31808bf

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,46 @@
15391539
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
15401540
"if": "steps.filter.outputs.workflows == 'true'"
15411541
"run": "make libs/harbor-operator"
1542+
"hcp-terraform-operator":
1543+
"name": "Generate hcp-terraform-operator Jsonnet library and docs"
1544+
"needs":
1545+
- "build"
1546+
- "repos"
1547+
"runs-on": "ubuntu-latest"
1548+
"steps":
1549+
- "uses": "actions/checkout@v4"
1550+
- "id": "filter"
1551+
"uses": "dorny/paths-filter@v3"
1552+
"with":
1553+
"filters": |
1554+
workflows:
1555+
- '.github/**'
1556+
- 'bin/**'
1557+
- 'Dockerfile'
1558+
- 'go.mod'
1559+
- 'go.sum'
1560+
- 'jsonnet/**'
1561+
- 'main.go'
1562+
- 'Makefile'
1563+
- 'pkg/**'
1564+
- 'scripts/**'
1565+
- 'tf/**'
1566+
- 'libs/hcp-terraform-operator/**'
1567+
- "if": "steps.filter.outputs.workflows == 'true'"
1568+
"uses": "actions/download-artifact@v4"
1569+
"with":
1570+
"name": "docker-artifact"
1571+
"path": "artifacts"
1572+
- "if": "steps.filter.outputs.workflows == 'true'"
1573+
"run": "make load"
1574+
- "env":
1575+
"DIFF": "true"
1576+
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
1577+
"GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com"
1578+
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
1579+
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
1580+
"if": "steps.filter.outputs.workflows == 'true'"
1581+
"run": "make libs/hcp-terraform-operator"
15421582
"istio":
15431583
"name": "Generate istio Jsonnet library and docs"
15441584
"needs":
@@ -2456,6 +2496,7 @@
24562496
- "grafana-alloy"
24572497
- "grafana-operator"
24582498
- "harbor-operator"
2499+
- "hcp-terraform-operator"
24592500
- "istio"
24602501
- "k8s"
24612502
- "karpenter"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// libs/hcp-terraform-operator/config.jsonnet
2+
local config = import 'jsonnet/config.jsonnet';
3+
4+
local versions = [
5+
'2.7.1',
6+
];
7+
8+
config.new(
9+
name='hcp-terraform-operator',
10+
specs=[
11+
{
12+
crds: [
13+
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_agentpools.yaml' %v,
14+
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_modules.yaml' %v,
15+
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_projects.yaml' %v,
16+
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_workspaces.yaml' %v,
17+
],
18+
localName: 'hcp-terraform-operator',
19+
output: v,
20+
prefix: '^io\\.terraform\\..*',
21+
}
22+
for v in versions
23+
]
24+
)

0 commit comments

Comments
 (0)