Skip to content

Commit

Permalink
add hcp-terraform-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby Brockway committed Feb 6, 2025
1 parent 025e7df commit 4b990e0
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/harbor-operator"
"hcp-terraform-operator":
"name": "Generate hcp-terraform-operator Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v4"
- "id": "filter"
"uses": "dorny/paths-filter@v3"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/hcp-terraform-operator/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v4"
"with":
"name": "docker-artifact"
"path": "artifacts"
- "if": "steps.filter.outputs.workflows == 'true'"
"run": "make load"
- "env":
"DIFF": "true"
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
"GIT_COMMITTER_EMAIL": "[email protected]"
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/hcp-terraform-operator"
"istio":
"name": "Generate istio Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -2415,6 +2455,7 @@
- "grafana-agent"
- "grafana-operator"
- "harbor-operator"
- "hcp-terraform-operator"
- "istio"
- "k8s"
- "karpenter"
Expand Down
27 changes: 27 additions & 0 deletions libs/hcp-terraform-operator/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// libs/hcp-terraform-operator/config.jsonnet
local config = import 'jsonnet/config.jsonnet';

local versions = [
'2.7.1',
'2.7.0',
'2.6.0',
'2.4.1',
];

config.new(
name='hcp-terraform-operator',
specs=[
{
crds: [
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_agentpools.yaml' %v,
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_modules.yaml' %v,
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_projects.yaml' %v,
'https://raw.githubusercontent.com/hashicorp/hcp-terraform-operator/v%s/config/crd/bases/app.terraform.io_workspaces.yaml' %v,
],
localName: 'hcp-terraform-operator',
output: v,
prefix: '^io\\.terraform\\..*',
}
for v in versions
]
)

0 comments on commit 4b990e0

Please sign in to comment.