Skip to content

Commit

Permalink
Add support for Vault Secrets Operator (VSO) jsonnet library (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtomasr5 authored Sep 6, 2023
1 parent 2434ea9 commit 2eb8f88
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/traefik"
"vault-secrets-operator":
"name": "Generate vault-secrets-operator Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v3"
- "id": "filter"
"uses": "dorny/paths-filter@v2"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/vault-secrets-operator/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v2"
"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/vault-secrets-operator"
"vertical-pod-autoscaler":
"name": "Generate vertical-pod-autoscaler Jsonnet library and docs"
"needs":
Expand Down
26 changes: 26 additions & 0 deletions libs/vault-secrets-operator/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
local config = import 'jsonnet/config.jsonnet';

local versions = [
{ version: '0.1.0' },
{ version: '0.2.0' },
];

config.new(
name='vault-secrets-operator',
specs=[
{
local url = 'https://raw.githubusercontent.com/hashicorp/vault-secrets-operator/main/config/crd/bases',
prefix: '^com\\.hashicorp\\.secrets\\..*',
output: v.version,
crds: [
'%s/secrets.hashicorp.com_vaultauths.yaml' % url,
'%s/secrets.hashicorp.com_vaultconnections.yaml' % url,
'%s/secrets.hashicorp.com_vaultdynamicsecrets.yaml' % url,
'%s/secrets.hashicorp.com_vaultpkisecrets.yaml' % url,
'%s/secrets.hashicorp.com_vaultstaticsecrets.yaml' % url,
],
localName: 'vault-secrets-operator',
}
for v in versions
]
)

0 comments on commit 2eb8f88

Please sign in to comment.