Skip to content

Conversation

@monestereo
Copy link

Hey,

i found a bug when generating crds for the crunch-data/pgo chart. I think there happened a switch-up of the "anyOf" condition.
it was generating the "type" and "format" patch, which is required in generator.nix, only when additionalProperties.anyOf was set.

can be tested with:

nixidy.packages.generators.fromChartCRD {
  name = "pgo";
  chartAttrs = {
    chart = "pgo";
    repo = "oci://registry.developers.crunchydata.com/crunchydata";
    version = "6.0.0";
    chartHash = "sha256-4O+qzsCz/NiYbBc0QTsOA0QFx2FkG472QlmhegnpFsg=";
  };
};

all my other charts still seem to work fine.

Copy link
Owner

@arnarg arnarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for catching this and fixing it! :)

@arnarg arnarg merged commit 8e2668b into arnarg:main Jan 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants