Skip to content

Commit

Permalink
Bump Upbound Provider GCP to 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
artych committed Oct 16, 2024
1 parent 49a39ce commit d9b5511
Show file tree
Hide file tree
Showing 3 changed files with 501 additions and 121 deletions.
16 changes: 16 additions & 0 deletions libs/crossplane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@ upbound_aws_crds.libsonnet:
jsonnetfmt -i $(ROOT_DIR)/upbound_aws_crds.libsonnet && \
rm -rf $(TMP) || \
rm -rf $(TMP)


GCP_VERSION?=v1.8.3

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

local upbound_aws_crds = import './upbound_aws_crds.libsonnet';
local upbound_gcp_crds = import './upbound_gcp_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)\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane',
patchDir: 'custom/crossplane',
},
{
output: 'crossplane/1.13',
prefix: '^io\\.crossplane\\.(pkg|apiextensions)\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane',
patchDir: 'custom/crossplane',
},
{
output: 'crossplane/1.12',
prefix: '^io\\.crossplane\\.(pkg|apiextensions)\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane',
patchDir: 'custom/crossplane',
},
// // 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)\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
// localName: 'crossplane',
// patchDir: 'custom/crossplane',
// },
// {
// output: 'crossplane/1.13',
// prefix: '^io\\.crossplane\\.(pkg|apiextensions)\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
// localName: 'crossplane',
// patchDir: 'custom/crossplane',
// },
// {
// output: 'crossplane/1.12',
// prefix: '^io\\.crossplane\\.(pkg|apiextensions)\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
// localName: 'crossplane',
// patchDir: 'custom/crossplane',
// },

// crossplane-contrib
{
output: 'provider-aws/0.36',
prefix: '^io\\.crossplane\\.aws\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane_aws',
},
{
output: 'provider-gcp/0.22',
prefix: '^io\\.crossplane\\.gcp\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane_gcp',
},
{
output: 'provider-azure/0.20',
prefix: '^io\\.crossplane\\.azure\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
localName: 'crossplane_azure',
},
{
output: 'provider-sql/0.7',
prefix: '^io\\.crossplane\\.sql\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
localName: 'crossplane_sql',
},
{
output: 'provider-kubernetes/0.9',
prefix: '^io\\.crossplane\\.kubernetes\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
localName: 'crossplane_kubernetes',
},
{
output: 'provider-helm/0.13',
prefix: '^io\\.crossplane\\.helm\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
localName: 'crossplane_helm',
},
{
output: 'provider-jet-mongodbatlas/0.3',
prefix: '^io\\.crossplane\\.jet\\.mongodbatlas\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
localName: 'crossplane_jet_mongodbatlas',
},
{
output: 'provider-nop/0.2.0',
prefix: '^io\\.crossplane\\.nop\\..*',
crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
localName: 'crossplane_nop',
},
// // crossplane-contrib
// {
// output: 'provider-aws/0.36',
// prefix: '^io\\.crossplane\\.aws\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
// localName: 'crossplane_aws',
// },
// {
// output: 'provider-gcp/0.22',
// prefix: '^io\\.crossplane\\.gcp\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
// localName: 'crossplane_gcp',
// },
// {
// output: 'provider-azure/0.20',
// prefix: '^io\\.crossplane\\.azure\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane/[email protected]'],
// localName: 'crossplane_azure',
// },
// {
// output: 'provider-sql/0.7',
// prefix: '^io\\.crossplane\\.sql\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
// localName: 'crossplane_sql',
// },
// {
// output: 'provider-kubernetes/0.9',
// prefix: '^io\\.crossplane\\.kubernetes\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
// localName: 'crossplane_kubernetes',
// },
// {
// output: 'provider-helm/0.13',
// prefix: '^io\\.crossplane\\.helm\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
// localName: 'crossplane_helm',
// },
// {
// output: 'provider-jet-mongodbatlas/0.3',
// prefix: '^io\\.crossplane\\.jet\\.mongodbatlas\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
// localName: 'crossplane_jet_mongodbatlas',
// },
// {
// output: 'provider-nop/0.2.0',
// prefix: '^io\\.crossplane\\.nop\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/crossplane-contrib/[email protected]'],
// localName: 'crossplane_nop',
// },

// Grafana
{
output: 'provider-grafana/0.18',
prefix: '^io\\.crossplane\\.grafana\\..*',
crds: ['https://github.com/grafana/crossplane-provider-grafana/releases/download/v0.18.0/crds.yaml'],
localName: 'crossplane_grafana',
},
// // Grafana
// {
// output: 'provider-grafana/0.18',
// prefix: '^io\\.crossplane\\.grafana\\..*',
// crds: ['https://github.com/grafana/crossplane-provider-grafana/releases/download/v0.18.0/crds.yaml'],
// localName: 'crossplane_grafana',
// },

// Upbound official providers
// https://marketplace.upbound.io/
// // Upbound official providers
// // https://marketplace.upbound.io/
// // WARNING: When bumping the version, ensure that you also update the
// // version in the Makefile and run `make upbound_aws_crds.libsonnet` to update the CRDs list.
// {
// output: 'upbound-provider-aws/1.7',
// prefix: '^io\\.upbound\\.aws\\..*',
// crds: ['https://raw.githubusercontent.com/crossplane-contrib/provider-upjet-aws/v1.7.0/package/crds/%s' % crd for crd in upbound_aws_crds],
// localName: 'upbound_aws',
// },
// {
// output: 'upbound-provider-azure/0.29',
// prefix: '^io\\.upbound\\.azure\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
// localName: 'upbound_azure',
// },
// {
// output: 'upbound-provider-azuread/0.11',
// prefix: '^io\\.upbound\\.azuread\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
// localName: 'upbound_azuread',
// },
// WARNING: When bumping the version, ensure that you also update the
// version in the Makefile and run `make upbound_aws_crds.libsonnet` to update the CRDs list.
{
output: 'upbound-provider-aws/1.7',
prefix: '^io\\.upbound\\.aws\\..*',
crds: ['https://raw.githubusercontent.com/crossplane-contrib/provider-upjet-aws/v1.7.0/package/crds/%s' % crd for crd in upbound_aws_crds],
localName: 'upbound_aws',
},
{
output: 'upbound-provider-azure/0.29',
prefix: '^io\\.upbound\\.azure\\..*',
crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
localName: 'upbound_azure',
},
{
output: 'upbound-provider-azuread/0.11',
prefix: '^io\\.upbound\\.azuread\\..*',
crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
localName: 'upbound_azuread',
},
// version in the Makefile and run `make upbound_gcp_crds.libsonnet` to update the CRDs list.
{
output: 'upbound-provider-gcp/0.36',
output: 'upbound-provider-gcp/1.8',
prefix: '^io\\.upbound\\.gcp\\..*',
crds: ['https://doc.crds.dev/raw/github.com/upbound/provider-gcp@v0.36.0'],
crds: ['https://raw.githubusercontent.com/crossplane-contrib/provider-upjet-gcp/v1.8.3/package/crds/%s' % crd for crd in upbound_gcp_crds],
localName: 'upbound_gcp',
},
{
output: 'provider-terraform/0.10',
prefix: '^io\\.upbound\\.tf\\..*',
crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
localName: 'upbound_terraform',
},
{
output: 'provider-terraform/0.16',
prefix: '^io\\.upbound\\.tf\\..*',
crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
localName: 'upbound_terraform',
},
// {

// output: 'provider-terraform/0.10',
// prefix: '^io\\.upbound\\.tf\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
// localName: 'upbound_terraform',
// },
// {
// output: 'provider-terraform/0.16',
// prefix: '^io\\.upbound\\.tf\\..*',
// crds: ['https://doc.crds.dev/raw/github.com/upbound/[email protected]'],
// localName: 'upbound_terraform',
// },
]
)
Loading

0 comments on commit d9b5511

Please sign in to comment.