-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
3 changed files
with
974 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)\\..*', | ||
|
@@ -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\\..*', | ||
|
Oops, something went wrong.