Skip to content

Commit 8bd61ee

Browse files
feat: Add CRDs for NFD (#622)
1 parent 74362b8 commit 8bd61ee

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,6 +2979,46 @@
29792979
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
29802980
"if": "steps.filter.outputs.workflows == 'true'"
29812981
"run": "make libs/nats"
2982+
"node-feature-discovery":
2983+
"name": "Generate node-feature-discovery Jsonnet library and docs"
2984+
"needs":
2985+
- "build"
2986+
- "repos"
2987+
"runs-on": "ubuntu-latest"
2988+
"steps":
2989+
- "uses": "actions/checkout@v4"
2990+
- "id": "filter"
2991+
"uses": "dorny/paths-filter@v3"
2992+
"with":
2993+
"filters": |
2994+
workflows:
2995+
- '.github/**'
2996+
- 'bin/**'
2997+
- 'Dockerfile'
2998+
- 'go.mod'
2999+
- 'go.sum'
3000+
- 'jsonnet/**'
3001+
- 'main.go'
3002+
- 'Makefile'
3003+
- 'pkg/**'
3004+
- 'scripts/**'
3005+
- 'tf/**'
3006+
- 'libs/node-feature-discovery/**'
3007+
- "if": "steps.filter.outputs.workflows == 'true'"
3008+
"uses": "actions/download-artifact@v4"
3009+
"with":
3010+
"name": "docker-artifact"
3011+
"path": "artifacts"
3012+
- "if": "steps.filter.outputs.workflows == 'true'"
3013+
"run": "make load"
3014+
- "env":
3015+
"DIFF": "true"
3016+
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
3017+
"GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com"
3018+
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
3019+
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
3020+
"if": "steps.filter.outputs.workflows == 'true'"
3021+
"run": "make libs/node-feature-discovery"
29823022
"openshift":
29833023
"name": "Generate openshift Jsonnet library and docs"
29843024
"needs":
@@ -3292,6 +3332,7 @@
32923332
- "minio-operator"
32933333
- "mysql-operator"
32943334
- "nats"
3335+
- "node-feature-discovery"
32953336
- "openshift"
32963337
- "prometheus-operator"
32973338
- "pyrra"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
local config = import 'jsonnet/config.jsonnet';
2+
3+
local versions = [
4+
{ version: '0.15', tag: 'v0.15.7' },
5+
{ version: '0.16', tag: 'v0.16.9' },
6+
{ version: '0.17', tag: 'v0.17.4' },
7+
{ version: '0.18', tag: 'v0.18.3' },
8+
];
9+
10+
config.new(
11+
name='node-feature-discovery',
12+
specs=[
13+
{
14+
output: v.version,
15+
prefix: '^io\\.k8s-sigs\\.nfd\\..*',
16+
crds: ['https://raw.githubusercontent.com/kubernetes-sigs/node-feature-discovery/refs/tags/%s/deployment/base/nfd-crds/nfd-api-crds.yaml' % v.tag],
17+
localName: 'node-feature-discovery',
18+
}
19+
for v in versions
20+
]
21+
)

0 commit comments

Comments
 (0)