Skip to content

Commit b2920b9

Browse files
committed
feat: add nats support
1 parent 275c09a commit b2920b9

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,6 +2339,46 @@
23392339
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
23402340
"if": "steps.filter.outputs.workflows == 'true'"
23412341
"run": "make libs/mysql-operator"
2342+
"nats":
2343+
"name": "Generate nats Jsonnet library and docs"
2344+
"needs":
2345+
- "build"
2346+
- "repos"
2347+
"runs-on": "ubuntu-latest"
2348+
"steps":
2349+
- "uses": "actions/checkout@v4"
2350+
- "id": "filter"
2351+
"uses": "dorny/paths-filter@v3"
2352+
"with":
2353+
"filters": |
2354+
workflows:
2355+
- '.github/**'
2356+
- 'bin/**'
2357+
- 'Dockerfile'
2358+
- 'go.mod'
2359+
- 'go.sum'
2360+
- 'jsonnet/**'
2361+
- 'main.go'
2362+
- 'Makefile'
2363+
- 'pkg/**'
2364+
- 'scripts/**'
2365+
- 'tf/**'
2366+
- 'libs/nats/**'
2367+
- "if": "steps.filter.outputs.workflows == 'true'"
2368+
"uses": "actions/download-artifact@v4"
2369+
"with":
2370+
"name": "docker-artifact"
2371+
"path": "artifacts"
2372+
- "if": "steps.filter.outputs.workflows == 'true'"
2373+
"run": "make load"
2374+
- "env":
2375+
"DIFF": "true"
2376+
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
2377+
"GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com"
2378+
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
2379+
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
2380+
"if": "steps.filter.outputs.workflows == 'true'"
2381+
"run": "make libs/nats"
23422382
"openshift":
23432383
"name": "Generate openshift Jsonnet library and docs"
23442384
"needs":
@@ -2636,6 +2676,7 @@
26362676
- "milvus-operator"
26372677
- "minio-operator"
26382678
- "mysql-operator"
2679+
- "nats"
26392680
- "openshift"
26402681
- "prometheus-operator"
26412682
- "pyrra"

libs/nats/config.jsonnet

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
local config = import 'jsonnet/config.jsonnet';
2+
local versions = [
3+
{ version: '0.20', tag: 'v0.20.1' },
4+
];
5+
6+
config.new(
7+
name='nats',
8+
specs=[
9+
{
10+
output: v.version,
11+
prefix: '^io\\.nats\\.jetstream\\..*',
12+
crds: ['https://github.com/nats-io/nack/releases/download/%(tag)s/crds.yml' % { tag: v.tag }],
13+
localName: 'nats',
14+
}
15+
for v in versions
16+
]
17+
)

0 commit comments

Comments
 (0)