Skip to content

Commit

Permalink
Bump Upbound Azure Provider to 1.3 (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
artych authored Oct 28, 2024
1 parent ae08cc8 commit f21687d
Show file tree
Hide file tree
Showing 3 changed files with 750 additions and 3 deletions.
16 changes: 16 additions & 0 deletions libs/crossplane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,19 @@ upbound_gcp_crds.libsonnet:
jsonnetfmt -i $(ROOT_DIR)/upbound_gcp_crds.libsonnet && \
rm -rf $(TMP) || \
rm -rf $(TMP)


AZURE_VERSION?=v1.3.0

.PHONY: upbound_azure_crds.libsonnet
upbound_azure_crds.libsonnet:
cd $(TMP) && \
jb init && \
jb install github.com/crossplane-contrib/provider-upjet-azure/package/crds@$(AZURE_VERSION) && \
echo '[' > $(ROOT_DIR)/upbound_azure_crds.libsonnet && \
cd vendor/github.com/crossplane-contrib/provider-upjet-azure/package/crds && \
find . -type f -printf "%f\n" | sort | xargs -I {} echo "'{}'," >> $(ROOT_DIR)/upbound_azure_crds.libsonnet && \
echo ']' >> $(ROOT_DIR)/upbound_azure_crds.libsonnet && \
jsonnetfmt -i $(ROOT_DIR)/upbound_azure_crds.libsonnet && \
rm -rf $(TMP) || \
rm -rf $(TMP)
8 changes: 5 additions & 3 deletions libs/crossplane/config.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local config = import 'jsonnet/config.jsonnet';

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

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

config.new(
name='crossplane',
Expand Down Expand Up @@ -106,10 +106,12 @@ config.new(
crds: ['https://raw.githubusercontent.com/crossplane-contrib/provider-upjet-aws/v1.14.0/package/crds/%s' % crd for crd in upbound_aws_crds],
localName: 'upbound_aws',
},
// WARNING: When bumping the version, ensure that you also update the
// version in the Makefile and run `make upbound_azure_crds.libsonnet` to update the CRDs list.
{
output: 'upbound-provider-azure/0.29',
output: 'upbound-provider-azure/1.3',
prefix: '^io\\.upbound\\.azure\\..*',
crds: ['https://doc.crds.dev/raw/github.com/upbound/provider-azure@v0.29.0'],
crds: ['https://raw.githubusercontent.com/crossplane-contrib/provider-upjet-azure/v1.3.0/package/crds/%s' % crd for crd in upbound_azure_crds],
localName: 'upbound_azure',
},
{
Expand Down
Loading

0 comments on commit f21687d

Please sign in to comment.