Skip to content

Commit

Permalink
Add metallb CRDs (#465)
Browse files Browse the repository at this point in the history
Co-authored-by: Hemanth Bollamreddi <[email protected]>
  • Loading branch information
Duologic and blmhemu authored Oct 11, 2024
1 parent 7af19c5 commit 7e8e5e9
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/litmus-chaos"
"metallb":
"name": "Generate metallb Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v4"
- "id": "filter"
"uses": "dorny/paths-filter@v3"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/metallb/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v4"
"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/metallb"
"milvus-operator":
"name": "Generate milvus-operator Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -2346,6 +2386,7 @@
- "kubevela"
- "kyverno"
- "litmus-chaos"
- "metallb"
- "milvus-operator"
- "minio-operator"
- "mysql-operator"
Expand Down
28 changes: 28 additions & 0 deletions libs/metallb/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
local config = import 'jsonnet/config.jsonnet';
local versions = ['0.14.8'];
local manifests = [
'bfdprofiles',
'bgpadvertisements',
'bgppeers',
'communities',
'ipaddresspools',
'l2advertisements',
'servicel2statuses',
];

config.new(
name='metallb',
specs=[
{
localName: 'metallb',
output: std.join('.', std.split(version, '.')[:2]),
prefix: '^io\\.metallb\\..*',
crds: [
'https://raw.githubusercontent.com/metallb/metallb/v%s/config/crd/bases/metallb.io_%s.yaml'
% [version, manifest]
for manifest in manifests
],
}
for version in versions
]
)

0 comments on commit 7e8e5e9

Please sign in to comment.