Skip to content

Commit

Permalink
feat: add crossplane 1.15 (#395)
Browse files Browse the repository at this point in the history
* feat: add crossplane 1.15

- add upbound aws 1.x versions

* fix: replace doc.crds.devs with github

* fix(crossplane): generate CRDs list

---------

Co-authored-by: Duologic <[email protected]>
  • Loading branch information
gopisaba and Duologic authored Oct 11, 2024
1 parent c211705 commit 7fa879a
Show file tree
Hide file tree
Showing 3 changed files with 974 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/crossplane/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TMP:=$(shell mktemp -d)
AWS_VERSION?=v1.6.1

upbound_aws_crds.libsonnet:
cd $(TMP) && \
jb init && \
jb install github.com/crossplane-contrib/provider-upjet-aws/package/crds@$(AWS_VERSION) && \
echo '[' > $(ROOT_DIR)/upbound_aws_crds.libsonnet && \
cd vendor/github.com/crossplane-contrib/provider-upjet-aws/package/crds && \
find . -type f -printf "%f\n" | sort | xargs -I {} echo "'{}'," >> $(ROOT_DIR)/upbound_aws_crds.libsonnet && \
echo ']' >> $(ROOT_DIR)/upbound_aws_crds.libsonnet && \
jsonnetfmt -i $(ROOT_DIR)/upbound_aws_crds.libsonnet && \
rm -rf $(TMP) || \
rm -rf $(TMP)
15 changes: 15 additions & 0 deletions libs/crossplane/config.jsonnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
local config = import 'jsonnet/config.jsonnet';

local upbound_aws_crds = import './upbound_aws_crds.libsonnet';

config.new(
name='crossplane',
specs=[
// Crossplane itself
// Release support table: https://github.com/crossplane/crossplane#releases
{
output: 'crossplane/1.15',
prefix: '^io\\.crossplane\\.(pkg|apiextensions)\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane',
patchDir: 'custom/crossplane',
},
{
output: 'crossplane/1.14',
prefix: '^io\\.crossplane\\.(pkg|apiextensions)\\..*',
Expand Down Expand Up @@ -93,6 +102,12 @@ config.new(
crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
localName: 'upbound_aws',
},
{
output: 'upbound-provider-aws/1.6',
prefix: '^io\\.upbound\\.aws\\..*',
crds: ['https://raw.githubusercontent.com/crossplane-contrib/provider-upjet-aws/v1.6.1/package/crds/%s' % crd for crd in upbound_aws_crds],
localName: 'upbound_aws',
},
{
output: 'upbound-provider-azure/0.29',
prefix: '^io\\.upbound\\.azure\\..*',
Expand Down
Loading

0 comments on commit 7fa879a

Please sign in to comment.