pulumi-extra-crds 1.0.0 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.crd2pulumi-checksum +1 -0
- package/.github/workflows/generate.yml +31 -28
- package/CHANGELOG.md +100 -0
- package/LICENSE +201 -0
- package/README.md +325 -0
- package/crd2pulumi.tar.gz +0 -0
- package/generated/crds/README.md +14 -0
- package/generated/crds/acme/index.d.ts +2 -0
- package/generated/crds/acme/index.js +8 -0
- package/generated/crds/acme/index.ts +11 -0
- package/generated/crds/acme/v1/challenge.d.ts +64 -0
- package/generated/crds/acme/v1/challenge.js +63 -0
- package/generated/crds/acme/v1/challenge.ts +99 -0
- package/generated/crds/acme/v1/challengeList.d.ts +69 -0
- package/generated/crds/acme/v1/challengeList.js +64 -0
- package/generated/crds/acme/v1/challengeList.ts +105 -0
- package/generated/crds/acme/v1/challengePatch.d.ts +70 -0
- package/generated/crds/acme/v1/challengePatch.js +69 -0
- package/generated/crds/acme/v1/challengePatch.ts +105 -0
- package/generated/crds/acme/v1/index.d.ts +18 -0
- package/generated/crds/acme/v1/index.js +41 -0
- package/generated/crds/acme/v1/index.ts +60 -0
- package/generated/crds/acme/v1/order.d.ts +64 -0
- package/generated/crds/acme/v1/order.js +63 -0
- package/generated/crds/acme/v1/order.ts +99 -0
- package/generated/crds/acme/v1/orderList.d.ts +69 -0
- package/generated/crds/acme/v1/orderList.js +64 -0
- package/generated/crds/acme/v1/orderList.ts +105 -0
- package/generated/crds/acme/v1/orderPatch.d.ts +70 -0
- package/generated/crds/acme/v1/orderPatch.js +69 -0
- package/generated/crds/acme/v1/orderPatch.ts +105 -0
- package/generated/crds/cert_manager/index.d.ts +2 -0
- package/generated/crds/cert_manager/index.js +8 -0
- package/generated/crds/cert_manager/index.ts +11 -0
- package/generated/crds/cert_manager/v1/certificate.d.ts +67 -0
- package/generated/crds/cert_manager/v1/certificate.js +66 -0
- package/generated/crds/cert_manager/v1/certificate.ts +102 -0
- package/generated/crds/cert_manager/v1/certificateList.d.ts +69 -0
- package/generated/crds/cert_manager/v1/certificateList.js +64 -0
- package/generated/crds/cert_manager/v1/certificateList.ts +105 -0
- package/generated/crds/cert_manager/v1/certificatePatch.d.ts +73 -0
- package/generated/crds/cert_manager/v1/certificatePatch.js +72 -0
- package/generated/crds/cert_manager/v1/certificatePatch.ts +108 -0
- package/generated/crds/cert_manager/v1/certificateRequest.d.ts +72 -0
- package/generated/crds/cert_manager/v1/certificateRequest.js +71 -0
- package/generated/crds/cert_manager/v1/certificateRequest.ts +107 -0
- package/generated/crds/cert_manager/v1/certificateRequestList.d.ts +69 -0
- package/generated/crds/cert_manager/v1/certificateRequestList.js +64 -0
- package/generated/crds/cert_manager/v1/certificateRequestList.ts +105 -0
- package/generated/crds/cert_manager/v1/certificateRequestPatch.d.ts +78 -0
- package/generated/crds/cert_manager/v1/certificateRequestPatch.js +77 -0
- package/generated/crds/cert_manager/v1/certificateRequestPatch.ts +113 -0
- package/generated/crds/cert_manager/v1/clusterIssuer.d.ts +68 -0
- package/generated/crds/cert_manager/v1/clusterIssuer.js +67 -0
- package/generated/crds/cert_manager/v1/clusterIssuer.ts +103 -0
- package/generated/crds/cert_manager/v1/clusterIssuerList.d.ts +69 -0
- package/generated/crds/cert_manager/v1/clusterIssuerList.js +64 -0
- package/generated/crds/cert_manager/v1/clusterIssuerList.ts +105 -0
- package/generated/crds/cert_manager/v1/clusterIssuerPatch.d.ts +74 -0
- package/generated/crds/cert_manager/v1/clusterIssuerPatch.js +73 -0
- package/generated/crds/cert_manager/v1/clusterIssuerPatch.ts +109 -0
- package/generated/crds/cert_manager/v1/index.d.ts +36 -0
- package/generated/crds/cert_manager/v1/index.js +65 -0
- package/generated/crds/cert_manager/v1/index.ts +102 -0
- package/generated/crds/cert_manager/v1/issuer.d.ts +67 -0
- package/generated/crds/cert_manager/v1/issuer.js +66 -0
- package/generated/crds/cert_manager/v1/issuer.ts +102 -0
- package/generated/crds/cert_manager/v1/issuerList.d.ts +69 -0
- package/generated/crds/cert_manager/v1/issuerList.js +64 -0
- package/generated/crds/cert_manager/v1/issuerList.ts +105 -0
- package/generated/crds/cert_manager/v1/issuerPatch.d.ts +73 -0
- package/generated/crds/cert_manager/v1/issuerPatch.js +72 -0
- package/generated/crds/cert_manager/v1/issuerPatch.ts +108 -0
- package/generated/crds/gateway/index.d.ts +5 -0
- package/generated/crds/gateway/index.js +14 -0
- package/generated/crds/gateway/index.ts +17 -0
- package/generated/crds/gateway/v1/gateway.d.ts +65 -0
- package/generated/crds/gateway/v1/gateway.js +66 -0
- package/generated/crds/gateway/v1/gateway.ts +102 -0
- package/generated/crds/gateway/v1/gatewayClass.d.ts +80 -0
- package/generated/crds/gateway/v1/gatewayClass.js +81 -0
- package/generated/crds/gateway/v1/gatewayClass.ts +117 -0
- package/generated/crds/gateway/v1/gatewayClassList.d.ts +69 -0
- package/generated/crds/gateway/v1/gatewayClassList.js +64 -0
- package/generated/crds/gateway/v1/gatewayClassList.ts +105 -0
- package/generated/crds/gateway/v1/gatewayClassPatch.d.ts +86 -0
- package/generated/crds/gateway/v1/gatewayClassPatch.js +87 -0
- package/generated/crds/gateway/v1/gatewayClassPatch.ts +123 -0
- package/generated/crds/gateway/v1/gatewayList.d.ts +69 -0
- package/generated/crds/gateway/v1/gatewayList.js +64 -0
- package/generated/crds/gateway/v1/gatewayList.ts +105 -0
- package/generated/crds/gateway/v1/gatewayPatch.d.ts +71 -0
- package/generated/crds/gateway/v1/gatewayPatch.js +72 -0
- package/generated/crds/gateway/v1/gatewayPatch.ts +108 -0
- package/generated/crds/gateway/v1/grpcroute.d.ts +90 -0
- package/generated/crds/gateway/v1/grpcroute.js +91 -0
- package/generated/crds/gateway/v1/grpcroute.ts +127 -0
- package/generated/crds/gateway/v1/grpcrouteList.d.ts +69 -0
- package/generated/crds/gateway/v1/grpcrouteList.js +64 -0
- package/generated/crds/gateway/v1/grpcrouteList.ts +105 -0
- package/generated/crds/gateway/v1/grpcroutePatch.d.ts +96 -0
- package/generated/crds/gateway/v1/grpcroutePatch.js +97 -0
- package/generated/crds/gateway/v1/grpcroutePatch.ts +133 -0
- package/generated/crds/gateway/v1/httproute.d.ts +67 -0
- package/generated/crds/gateway/v1/httproute.js +68 -0
- package/generated/crds/gateway/v1/httproute.ts +104 -0
- package/generated/crds/gateway/v1/httprouteList.d.ts +69 -0
- package/generated/crds/gateway/v1/httprouteList.js +64 -0
- package/generated/crds/gateway/v1/httprouteList.ts +105 -0
- package/generated/crds/gateway/v1/httproutePatch.d.ts +73 -0
- package/generated/crds/gateway/v1/httproutePatch.js +74 -0
- package/generated/crds/gateway/v1/httproutePatch.ts +110 -0
- package/generated/crds/gateway/v1/index.d.ts +36 -0
- package/generated/crds/gateway/v1/index.js +65 -0
- package/generated/crds/gateway/v1/index.ts +102 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicy.d.ts +65 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicy.js +64 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicy.ts +100 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicyList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicyList.js +64 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicyList.ts +105 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicyPatch.d.ts +71 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicyPatch.js +70 -0
- package/generated/crds/gateway/v1alpha2/backendLBPolicyPatch.ts +106 -0
- package/generated/crds/gateway/v1alpha2/grpcroute.d.ts +90 -0
- package/generated/crds/gateway/v1alpha2/grpcroute.js +91 -0
- package/generated/crds/gateway/v1alpha2/grpcroute.ts +127 -0
- package/generated/crds/gateway/v1alpha2/grpcrouteList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/grpcrouteList.js +64 -0
- package/generated/crds/gateway/v1alpha2/grpcrouteList.ts +105 -0
- package/generated/crds/gateway/v1alpha2/grpcroutePatch.d.ts +96 -0
- package/generated/crds/gateway/v1alpha2/grpcroutePatch.js +97 -0
- package/generated/crds/gateway/v1alpha2/grpcroutePatch.ts +133 -0
- package/generated/crds/gateway/v1alpha2/index.d.ts +54 -0
- package/generated/crds/gateway/v1alpha2/index.js +89 -0
- package/generated/crds/gateway/v1alpha2/index.ts +144 -0
- package/generated/crds/gateway/v1alpha2/referenceGrant.d.ts +82 -0
- package/generated/crds/gateway/v1alpha2/referenceGrant.js +82 -0
- package/generated/crds/gateway/v1alpha2/referenceGrant.ts +117 -0
- package/generated/crds/gateway/v1alpha2/referenceGrantList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/referenceGrantList.js +64 -0
- package/generated/crds/gateway/v1alpha2/referenceGrantList.ts +105 -0
- package/generated/crds/gateway/v1alpha2/referenceGrantPatch.d.ts +88 -0
- package/generated/crds/gateway/v1alpha2/referenceGrantPatch.js +88 -0
- package/generated/crds/gateway/v1alpha2/referenceGrantPatch.ts +123 -0
- package/generated/crds/gateway/v1alpha2/tcproute.d.ts +66 -0
- package/generated/crds/gateway/v1alpha2/tcproute.js +65 -0
- package/generated/crds/gateway/v1alpha2/tcproute.ts +101 -0
- package/generated/crds/gateway/v1alpha2/tcprouteList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/tcprouteList.js +64 -0
- package/generated/crds/gateway/v1alpha2/tcprouteList.ts +105 -0
- package/generated/crds/gateway/v1alpha2/tcproutePatch.d.ts +72 -0
- package/generated/crds/gateway/v1alpha2/tcproutePatch.js +71 -0
- package/generated/crds/gateway/v1alpha2/tcproutePatch.ts +107 -0
- package/generated/crds/gateway/v1alpha2/tlsroute.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/tlsroute.js +68 -0
- package/generated/crds/gateway/v1alpha2/tlsroute.ts +104 -0
- package/generated/crds/gateway/v1alpha2/tlsrouteList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/tlsrouteList.js +64 -0
- package/generated/crds/gateway/v1alpha2/tlsrouteList.ts +105 -0
- package/generated/crds/gateway/v1alpha2/tlsroutePatch.d.ts +75 -0
- package/generated/crds/gateway/v1alpha2/tlsroutePatch.js +74 -0
- package/generated/crds/gateway/v1alpha2/tlsroutePatch.ts +110 -0
- package/generated/crds/gateway/v1alpha2/udproute.d.ts +66 -0
- package/generated/crds/gateway/v1alpha2/udproute.js +65 -0
- package/generated/crds/gateway/v1alpha2/udproute.ts +101 -0
- package/generated/crds/gateway/v1alpha2/udprouteList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha2/udprouteList.js +64 -0
- package/generated/crds/gateway/v1alpha2/udprouteList.ts +105 -0
- package/generated/crds/gateway/v1alpha2/udproutePatch.d.ts +72 -0
- package/generated/crds/gateway/v1alpha2/udproutePatch.js +71 -0
- package/generated/crds/gateway/v1alpha2/udproutePatch.ts +107 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicy.d.ts +65 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicy.js +64 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicy.ts +100 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicyList.d.ts +69 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicyList.js +64 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicyList.ts +105 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicyPatch.d.ts +71 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicyPatch.js +70 -0
- package/generated/crds/gateway/v1alpha3/backendTLSPolicyPatch.ts +106 -0
- package/generated/crds/gateway/v1alpha3/index.d.ts +9 -0
- package/generated/crds/gateway/v1alpha3/index.js +29 -0
- package/generated/crds/gateway/v1alpha3/index.ts +39 -0
- package/generated/crds/gateway/v1beta1/gateway.d.ts +65 -0
- package/generated/crds/gateway/v1beta1/gateway.js +66 -0
- package/generated/crds/gateway/v1beta1/gateway.ts +102 -0
- package/generated/crds/gateway/v1beta1/gatewayClass.d.ts +80 -0
- package/generated/crds/gateway/v1beta1/gatewayClass.js +81 -0
- package/generated/crds/gateway/v1beta1/gatewayClass.ts +117 -0
- package/generated/crds/gateway/v1beta1/gatewayClassList.d.ts +69 -0
- package/generated/crds/gateway/v1beta1/gatewayClassList.js +64 -0
- package/generated/crds/gateway/v1beta1/gatewayClassList.ts +105 -0
- package/generated/crds/gateway/v1beta1/gatewayClassPatch.d.ts +86 -0
- package/generated/crds/gateway/v1beta1/gatewayClassPatch.js +87 -0
- package/generated/crds/gateway/v1beta1/gatewayClassPatch.ts +123 -0
- package/generated/crds/gateway/v1beta1/gatewayList.d.ts +69 -0
- package/generated/crds/gateway/v1beta1/gatewayList.js +64 -0
- package/generated/crds/gateway/v1beta1/gatewayList.ts +105 -0
- package/generated/crds/gateway/v1beta1/gatewayPatch.d.ts +71 -0
- package/generated/crds/gateway/v1beta1/gatewayPatch.js +72 -0
- package/generated/crds/gateway/v1beta1/gatewayPatch.ts +108 -0
- package/generated/crds/gateway/v1beta1/httproute.d.ts +67 -0
- package/generated/crds/gateway/v1beta1/httproute.js +68 -0
- package/generated/crds/gateway/v1beta1/httproute.ts +104 -0
- package/generated/crds/gateway/v1beta1/httprouteList.d.ts +69 -0
- package/generated/crds/gateway/v1beta1/httprouteList.js +64 -0
- package/generated/crds/gateway/v1beta1/httprouteList.ts +105 -0
- package/generated/crds/gateway/v1beta1/httproutePatch.d.ts +73 -0
- package/generated/crds/gateway/v1beta1/httproutePatch.js +74 -0
- package/generated/crds/gateway/v1beta1/httproutePatch.ts +110 -0
- package/generated/crds/gateway/v1beta1/index.d.ts +36 -0
- package/generated/crds/gateway/v1beta1/index.js +65 -0
- package/generated/crds/gateway/v1beta1/index.ts +102 -0
- package/generated/crds/gateway/v1beta1/referenceGrant.d.ts +78 -0
- package/generated/crds/gateway/v1beta1/referenceGrant.js +78 -0
- package/generated/crds/gateway/v1beta1/referenceGrant.ts +113 -0
- package/generated/crds/gateway/v1beta1/referenceGrantList.d.ts +69 -0
- package/generated/crds/gateway/v1beta1/referenceGrantList.js +64 -0
- package/generated/crds/gateway/v1beta1/referenceGrantList.ts +105 -0
- package/generated/crds/gateway/v1beta1/referenceGrantPatch.d.ts +84 -0
- package/generated/crds/gateway/v1beta1/referenceGrantPatch.js +84 -0
- package/generated/crds/gateway/v1beta1/referenceGrantPatch.ts +119 -0
- package/generated/crds/index.d.ts +8 -0
- package/generated/crds/index.js +27 -0
- package/generated/crds/index.ts +34 -0
- package/generated/crds/meta/v1.d.ts +3 -0
- package/generated/crds/meta/v1.js +2 -0
- package/generated/crds/meta/v1.ts +4 -0
- package/generated/crds/package.json +32 -0
- package/generated/crds/provider.d.ts +23 -0
- package/generated/crds/provider.js +37 -0
- package/generated/crds/provider.ts +44 -0
- package/generated/crds/scripts/postinstall.js +13 -0
- package/generated/crds/tsconfig.json +15 -0
- package/generated/crds/types/index.d.ts +3 -0
- package/generated/crds/types/index.js +10 -0
- package/generated/crds/types/index.ts +13 -0
- package/generated/crds/types/input.d.ts +38601 -0
- package/generated/crds/types/input.js +4 -0
- package/generated/crds/types/input.ts +39421 -0
- package/generated/crds/types/output.d.ts +42150 -0
- package/generated/crds/types/output.js +4 -0
- package/generated/crds/types/output.ts +43038 -0
- package/generated/crds/utilities.d.ts +13 -0
- package/generated/crds/utilities.js +91 -0
- package/generated/crds/utilities.ts +98 -0
- package/package.json +9 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e522ddaad885daad3a5b9684988dacc4af9df36c76fe7fa057c7d4dfd078450e
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
name: Generate CRDs
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
workflow_dispatch:
|
|
4
|
+
workflow_dispatch:
|
|
5
5
|
schedule:
|
|
6
|
-
- cron: "0 3 * * 1"
|
|
6
|
+
- cron: "0 3 * * 1"
|
|
7
7
|
push:
|
|
8
8
|
branches: [ main ]
|
|
9
9
|
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
id-token: write
|
|
13
|
+
|
|
10
14
|
jobs:
|
|
11
|
-
generate-
|
|
15
|
+
generate-and-publish:
|
|
12
16
|
runs-on: ubuntu-latest
|
|
13
17
|
|
|
14
18
|
steps:
|
|
@@ -19,48 +23,47 @@ jobs:
|
|
|
19
23
|
uses: actions/setup-node@v4
|
|
20
24
|
with:
|
|
21
25
|
node-version: '20'
|
|
26
|
+
registry-url: 'https://registry.npmjs.org'
|
|
27
|
+
|
|
28
|
+
# Force latest NPM to support OIDC correctly
|
|
29
|
+
# https://github.com/orgs/community/discussions/173102
|
|
30
|
+
# Seriously, what the fuck Github.
|
|
31
|
+
- name: Update NPM
|
|
32
|
+
run: npm install -g npm@latest
|
|
22
33
|
|
|
23
|
-
- name: Install TypeScript
|
|
24
|
-
run: npm install -g typescript
|
|
25
|
-
|
|
26
34
|
- name: Install dependencies
|
|
27
|
-
run:
|
|
28
|
-
|
|
35
|
+
run: |
|
|
36
|
+
npm install -g typescript
|
|
37
|
+
npm install
|
|
29
38
|
|
|
30
|
-
- name: Fetch
|
|
39
|
+
- name: Fetch binaries & Generate
|
|
31
40
|
run: |
|
|
32
41
|
GW_VERSION=$(curl -s https://api.github.com/repos/kubernetes-sigs/gateway-api/releases/latest | jq -r .tag_name)
|
|
33
42
|
echo "GW_VERSION=$GW_VERSION" >> $GITHUB_ENV
|
|
34
|
-
|
|
35
|
-
- name: Fetch latest Cert-Manager release
|
|
36
|
-
run: |
|
|
43
|
+
|
|
37
44
|
CM_VERSION=$(curl -s https://api.github.com/repos/cert-manager/cert-manager/releases/latest | jq -r .tag_name)
|
|
38
45
|
echo "CM_VERSION=$CM_VERSION" >> $GITHUB_ENV
|
|
39
|
-
|
|
40
|
-
- name: Download crd2pulumi binary
|
|
41
|
-
run: |
|
|
46
|
+
|
|
42
47
|
CRD2PULUMI_VERSION=1.6.0
|
|
43
48
|
curl -L "https://github.com/pulumi/crd2pulumi/releases/download/v${CRD2PULUMI_VERSION}/crd2pulumi-v${CRD2PULUMI_VERSION}-linux-amd64.tar.gz" -o crd2pulumi.tar.gz
|
|
44
49
|
tar -xzf crd2pulumi.tar.gz
|
|
45
50
|
chmod +x crd2pulumi
|
|
46
51
|
sudo mv crd2pulumi /usr/local/bin/crd2pulumi
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- name: Run CRD generation script
|
|
50
|
-
run: node generate-crds.js
|
|
52
|
+
|
|
53
|
+
node generate-crds.js
|
|
51
54
|
|
|
52
|
-
- name: Commit
|
|
55
|
+
- name: Bump version and Commit
|
|
53
56
|
run: |
|
|
54
57
|
git config --global user.name "github-actions[bot]"
|
|
55
58
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
|
|
60
|
+
# Bump version (updates package.json)
|
|
61
|
+
npm version patch --no-git-tag-version
|
|
62
|
+
|
|
63
|
+
git add .
|
|
64
|
+
git commit -m "Update CRDs and bump version"
|
|
58
65
|
git push
|
|
59
|
-
env:
|
|
60
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
61
66
|
|
|
62
|
-
- name: Publish to npm
|
|
67
|
+
- name: Publish to npm (Trusted Publishing)
|
|
63
68
|
if: github.ref == 'refs/heads/main'
|
|
64
|
-
run: npm publish
|
|
65
|
-
env:
|
|
66
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
69
|
+
run: npm publish --provenance --access public
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
## 1.6.0 (2025-10-17)
|
|
4
|
+
|
|
5
|
+
- Configurable package namespaces/prefixes. (https://github.com/pulumi/crd2pulumi/pull/247)
|
|
6
|
+
|
|
7
|
+
## 1.5.4 (2024-11-13)
|
|
8
|
+
|
|
9
|
+
- NodeJS now uses correct input/output types for object metadata. (https://github.com/pulumi/crd2pulumi/issues/158)
|
|
10
|
+
|
|
11
|
+
## 1.5.3 (2024-09-30)
|
|
12
|
+
|
|
13
|
+
- Fix crd2pulumi not generating all CRD versions. [#152](https://github.com/pulumi/crd2pulumi/issues/152)
|
|
14
|
+
- Fix crd2pulumi generating packages and types with incorrect group names. [#152](https://github.com/pulumi/crd2pulumi/issues/152)
|
|
15
|
+
|
|
16
|
+
## 1.5.2 (2024-09-16)
|
|
17
|
+
|
|
18
|
+
- Set the pulumi-kubernetes dependency for Python packages to v4.18.0. [#148](https://github.com/pulumi/crd2pulumi/issues/148)
|
|
19
|
+
- Fixed generating Go types for StringMapArrayMap types. [#147](https://github.com/pulumi/crd2pulumi/issues/147)
|
|
20
|
+
|
|
21
|
+
## 1.5.1 (2024-09-13)
|
|
22
|
+
|
|
23
|
+
- Fixed Patch varaints not generated for types that end in List. [#146](https://github.com/pulumi/crd2pulumi/pull/146)
|
|
24
|
+
|
|
25
|
+
## 1.5.0 (2024-09-13)
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- Patch variant resources are now generated for all custom resources. Patch resources allow you to modify and an existing custom resource. For more details on using Patch resources, see our [documentation](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/#patch-a-resource).
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- The Pulumi schema generation now utilizes the library from the Pulumi Kubernetes provider, replacing the previous custom implementation. This resolves a number of correctness issues when generating code. [#143](https://github.com/pulumi/crd2pulumi/pull/143)
|
|
32
|
+
- Golang package generation now correctly adheres to the `--goPath` CLI flag, aligning with the behavior of other languages. [#89](https://github.com/pulumi/crd2pulumi/issues/89)
|
|
33
|
+
- CRDs with oneOf fields are now correctly typed and not generic. [#97](https://github.com/pulumi/crd2pulumi/issues/97)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
- Various code generation correctness issues have been addressed, including:
|
|
38
|
+
- Python packages can now be successfully imported and consumed by Pulumi Python programs. [#113](https://github.com/pulumi/crd2pulumi/issues/113)
|
|
39
|
+
- Golang packages no longer produce compilation errors due to duplicate declarations. [#104](https://github.com/pulumi/crd2pulumi/issues/104)
|
|
40
|
+
- NodeJS package names are now properly generated. [#70](https://github.com/pulumi/crd2pulumi/issues/70)
|
|
41
|
+
- Dotnet packages now include the correct imports. [#49](https://github.com/pulumi/crd2pulumi/issues/49)
|
|
42
|
+
- NodeJS object metadata types no longer accept undefined values. [#34](https://github.com/pulumi/crd2pulumi/issues/34)
|
|
43
|
+
|
|
44
|
+
## 1.4.0 (2024-05-29)
|
|
45
|
+
|
|
46
|
+
- Fix unpinned Kubernetes version in generated nodejs resources. [#121](https://github.com/pulumi/crd2pulumi/pull/121)
|
|
47
|
+
- Fix .NET generated code to use provider v4. [#134](https://github.com/pulumi/crd2pulumi/pull/134)
|
|
48
|
+
- Fix invalid generated code due to unnamed properties. [#135](https://github.com/pulumi/crd2pulumi/pull/135)
|
|
49
|
+
- Fix a panic when generating code with non-primitive defaults. [#136](https://github.com/pulumi/crd2pulumi/pull/136)
|
|
50
|
+
- Add Java generation support. [#129](https://github.com/pulumi/crd2pulumi/pull/129)
|
|
51
|
+
|
|
52
|
+
## 1.3.0 (2023-12-12)
|
|
53
|
+
|
|
54
|
+
- Fix: excluding files from unneededGoFiles was not working (<https://github.com/pulumi/crd2pulumi/pull/120>)
|
|
55
|
+
- Support kubernetes provider v4 (<https://github.com/pulumi/crd2pulumi/pull/119>)
|
|
56
|
+
|
|
57
|
+
## 1.2.5 (2023-05-31)
|
|
58
|
+
|
|
59
|
+
- Remove underscores in generated nested types (<https://github.com/pulumi/crd2pulumi/pull/114>)
|
|
60
|
+
|
|
61
|
+
## 1.2.4 (2023-03-23)
|
|
62
|
+
|
|
63
|
+
- Requires Go 1.19 or higher now to build
|
|
64
|
+
- Fix issue [#108](https://github.com/pulumi/crd2pulumi/issues/108) - crd2pulumi generator splits types apart into duplicate entires in pulumiTypes.go and pulumiTypes1.go
|
|
65
|
+
|
|
66
|
+
## 1.2.3 (2022-10-18)
|
|
67
|
+
|
|
68
|
+
- Fix issue [#43: crd properties with - in name](https://github.com/pulumi/crd2pulumi/issues/43) (<https://github.com/pulumi/crd2pulumi/pull/99>)
|
|
69
|
+
|
|
70
|
+
## 1.2.2 (2022-07-20)
|
|
71
|
+
|
|
72
|
+
- Fix regression that caused code in all languages to be generated regardless of selection.
|
|
73
|
+
|
|
74
|
+
## 1.2.1 (2022-07-19)
|
|
75
|
+
|
|
76
|
+
This release is a refactor with no user-affecting changes.
|
|
77
|
+
|
|
78
|
+
- Create public interface for codegen in the `pkg/codegen` namespace
|
|
79
|
+
while placing internal utilities under `internal/`
|
|
80
|
+
- Simplify cobra usage, simplify program config substantially
|
|
81
|
+
- A new test env var, `TEST_SKIP_CLEANUP`, can be set to instruct the
|
|
82
|
+
`crds_test.go` tests to not perform temp dir cleanup after the test
|
|
83
|
+
run, for the purposes of investigating bad output during test failure.
|
|
84
|
+
Generated code is now placed in temp dirs with friendly, identifiable
|
|
85
|
+
names for each test case.
|
|
86
|
+
- General refactoring: removal of dead code, reorganizing functions into
|
|
87
|
+
more appropriately named files or packages.
|
|
88
|
+
- Update to latest Pulumi SDK as well as update all other dependencies.
|
|
89
|
+
- Update to Go 1.18
|
|
90
|
+
- Upgrade to go 1.17 (<https://github.com/pulumi/crd2pulumi/pull/75>)
|
|
91
|
+
|
|
92
|
+
## 1.2.0 (2022-02-07)
|
|
93
|
+
|
|
94
|
+
- [python] Do not overwrite _utilities.py (<https://github.com/pulumi/crd2pulumi/pull/73/>)
|
|
95
|
+
|
|
96
|
+
## 1.1.0 (2022-01-04)
|
|
97
|
+
|
|
98
|
+
- Update to Pulumi v3.21.0 (<https://github.com/pulumi/crd2pulumi/pull/63>)
|
|
99
|
+
- Fix x-kubernetes-int-or-string precedence (<https://github.com/pulumi/crd2pulumi/pull/60>)
|
|
100
|
+
- Add generating CRD from URL (<https://github.com/pulumi/crd2pulumi/pull/62>)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|