Skip to content

Commit f25e2da

Browse files
committed
creating libsonnet for dapr.io componenets
1 parent 07661b3 commit f25e2da

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,46 @@
10111011
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
10121012
"if": "steps.filter.outputs.workflows == 'true'"
10131013
"run": "make libs/crossplane-core"
1014+
"dapr":
1015+
"name": "Generate dapr Jsonnet library and docs"
1016+
"needs":
1017+
- "build"
1018+
- "repos"
1019+
"runs-on": "ubuntu-latest"
1020+
"steps":
1021+
- "uses": "actions/checkout@v4"
1022+
- "id": "filter"
1023+
"uses": "dorny/paths-filter@v3"
1024+
"with":
1025+
"filters": |
1026+
workflows:
1027+
- '.github/**'
1028+
- 'bin/**'
1029+
- 'Dockerfile'
1030+
- 'go.mod'
1031+
- 'go.sum'
1032+
- 'jsonnet/**'
1033+
- 'main.go'
1034+
- 'Makefile'
1035+
- 'pkg/**'
1036+
- 'scripts/**'
1037+
- 'tf/**'
1038+
- 'libs/dapr/**'
1039+
- "if": "steps.filter.outputs.workflows == 'true'"
1040+
"uses": "actions/download-artifact@v4"
1041+
"with":
1042+
"name": "docker-artifact"
1043+
"path": "artifacts"
1044+
- "if": "steps.filter.outputs.workflows == 'true'"
1045+
"run": "make load"
1046+
- "env":
1047+
"DIFF": "true"
1048+
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
1049+
"GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com"
1050+
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
1051+
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
1052+
"if": "steps.filter.outputs.workflows == 'true'"
1053+
"run": "make libs/dapr"
10141054
"datadog-operator":
10151055
"name": "Generate datadog-operator Jsonnet library and docs"
10161056
"needs":
@@ -2803,6 +2843,7 @@
28032843
- "contour"
28042844
- "crossplane"
28052845
- "crossplane-core"
2846+
- "dapr"
28062847
- "datadog-operator"
28072848
- "eck-operator"
28082849
- "edp-keycloak-operator"

libs/dapr/config.jsonnet

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
local config = import 'jsonnet/config.jsonnet';
2+
3+
local versions = [
4+
{ version: '1.16.8', tag: 'v1.16.8' },
5+
];
6+
7+
config.new(
8+
name='dapr',
9+
specs=[
10+
{
11+
output: v.version,
12+
prefix: '^io\\.dapr\\..*',
13+
crds: [
14+
'https://raw.githubusercontent.com/dapr/dapr/%s/charts/dapr/crds/components.yaml' % [v.tag],
15+
'https://raw.githubusercontent.com/dapr/dapr/%s/charts/dapr/crds/configuration.yaml' % [v.tag],
16+
'https://raw.githubusercontent.com/dapr/dapr/%s/charts/dapr/crds/httpendpoints.yaml' % [v.tag],
17+
'https://raw.githubusercontent.com/dapr/dapr/%s/charts/dapr/crds/resiliency.yaml' % [v.tag],
18+
'https://raw.githubusercontent.com/dapr/dapr/%s/charts/dapr/crds/subscription.yaml' % [v.tag],
19+
],
20+
localName: 'dapr',
21+
}
22+
for v in versions
23+
]
24+
)

0 commit comments

Comments
 (0)