Skip to content

Commit

Permalink
add kube-secret-gen (jsonnet-libs#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-adam authored Jul 13, 2022
1 parent ece9d9d commit 5e3c53e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,28 @@
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"run": "make libs/kubernetes-nmstate"
"kubernetes-secret-generator":
"name": "Generate kubernetes-secret-generator Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v2"
- "uses": "actions/download-artifact@v2"
"with":
"name": "docker-artifact"
"path": "artifacts"
- "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 }}"
"run": "make libs/kubernetes-secret-generator"
"kubevela":
"name": "Generate KubeVela Jsonnet library and docs"
"name": "Generate kubevela Jsonnet library and docs"
"needs":
- "build"
- "repos"
Expand Down Expand Up @@ -703,6 +723,9 @@
- "k8s"
- "keda"
- "kube-prometheus"
- "kubernetes-nmstate"
- "kubernetes-secret-generator"
- "kubevela"
- "kyverno"
- "litmus-chaos"
- "openshift"
Expand Down Expand Up @@ -831,4 +854,4 @@
- "master"
"push":
"branches":
- "master"
- "master"
20 changes: 20 additions & 0 deletions libs/kubernetes-secret-generator/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
local config = import 'jsonnet/config.jsonnet';

local version = '3.4.0';

config.new(
name='kubernetes-secret-generator',
specs=[
{
local url = 'https://raw.githubusercontent.com/mittwald/kubernetes-secret-generator/v%s/deploy/crds/' % version,
output: version,
prefix: '^de\\.mittwald\\.secretgenerator\\..*',
crds: [
'%s/secretgenerator.mittwald.de_basicauths_crd.yaml' % url,
'%s/secretgenerator.mittwald.de_sshkeypairs_crd.yaml' % url,
'%s/secretgenerator.mittwald.de_stringsecrets_crd.yaml' % url,
],
localName: 'kubernetes_secret_generator',
},
],
)

0 comments on commit 5e3c53e

Please sign in to comment.