-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major issues since at least 1.5.2 #152
Closed
maxemann96 opened this issue
Sep 24, 2024
· 3 comments
· Fixed by pulumi/pulumi-kubernetes#3237 or #153
Closed
Major issues since at least 1.5.2 #152
maxemann96 opened this issue
Sep 24, 2024
· 3 comments
· Fixed by pulumi/pulumi-kubernetes#3237 or #153
Labels
area/codegen
Affects quality or correctness of generated code
area/schema
Related to support for CRD or Pulumi schema support
impact/regression
Something that used to work, but is now broken
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
Milestone
Comments
Thanks for reporting the issues and apologies for the issues you're running into.
We'll add this to our backlog and issue a fix for the first two issues. |
rquitales
added
area/codegen
Affects quality or correctness of generated code
area/schema
Related to support for CRD or Pulumi schema support
and removed
needs-triage
Needs attention from the triage team
labels
Sep 25, 2024
mjeffryes
added
the
impact/regression
Something that used to work, but is now broken
label
Sep 27, 2024
This was referenced Sep 30, 2024
Merged
rquitales
added a commit
that referenced
this issue
Oct 1, 2024
## Proposed Changes This PR ensures the correct CRD versions are used when parsing. Previously, the Swagger version generated by `builder.BuildOpenAPIV2` defaulted to `0.1.0`, but we should be pulling the version directly from the CRD spec itself. This change ensures that SDKs are generated for all CRD versions. Additionally, this PR incorporates the latest updates from p-k to prevent package collisions. ## Related Issues (optional) Closes: #152
I've just cut a v1.5.3 release which contains fixes for the first 2 describe issues. #103 will continue tracking the fix for strimzi CRDs. |
This PR has been shipped in release v1.5.3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/codegen
Affects quality or correctness of generated code
area/schema
Related to support for CRD or Pulumi schema support
impact/regression
Something that used to work, but is now broken
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
What happended
Since version at least 1.5.2, the produced output is not usable and has some serious issues. To point the issue out, I minimized my setup to Karpenter, Keycloak, MariaDB and Strimzi custom resource definitions. You can use the following script to produce the same output, as I got (BEWARE: This will delete the folders
k8s
andnodejs
from the directory, the script is residing in, if existent!)Karpenter
nodejs/karpenter/v1beta1
is generated, butnodejs/karpenter/v1
not. Works with 1.4.0.Keycloak
The generated pulumi type is
kubernetes:k8s.mariadb.com/v2alpha1:Keycloak
. There is nomariadb
in the Keycloak crds. Works with 1.4.0Strimzi
From
nodejs/types/input.ts
, the hyphen is not escaped:Previous behaviour
Keycloak and MariaDB worked before (don't know, if the contain hyphens, I have another workaround to fix hyphens here, not part of the script above). For strimzi, I opened #103 a while ago, this was closed as fixed with 1.5.0.
Useful information
Output of
crd2pulumi version
:v1.5.2
. Directly downloaded from the GitHub releases page.The text was updated successfully, but these errors were encountered: