diff --git a/libs/metallb/config.jsonnet b/libs/metallb/config.jsonnet new file mode 100644 index 0000000..d814a96 --- /dev/null +++ b/libs/metallb/config.jsonnet @@ -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='argo-cd', + 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 + ] +)