Skip to content

✨ Applyconfigs: Generate extract functions#1346

Merged
k8s-ci-robot merged 9 commits intokubernetes-sigs:mainfrom
alvaroaleman:applyconfigs
Feb 23, 2026
Merged

✨ Applyconfigs: Generate extract functions#1346
k8s-ci-robot merged 9 commits intokubernetes-sigs:mainfrom
alvaroaleman:applyconfigs

Conversation

@alvaroaleman
Copy link
Member

This change makes us generate the extract functions for applyconfigurations. It re-used the existing openapi generation with some adjustments and then feeds that into the applyconfig generator.

Contrary to CRD generation we do not flatten the schema because we can and because it will likely often reduce the overall size.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 17, 2026
@sbueringer
Copy link
Member

sbueringer commented Feb 17, 2026

/hold
Just to ensure PR doesn't get accidentally merged too early :)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 17, 2026
@alvaroaleman
Copy link
Member Author

Temporarily based this on top of #1348 so I can see if it passes CI

@alvaroaleman alvaroaleman added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Feb 19, 2026
// Commented out because structured-merge-diff's reflectcache includes
// unexported fields without JSON tags (a bug in lookupJsonTags which
// doesn't check reflect.StructField.PkgPath), causing ExtractInto to
// fail with "field not declared in schema".
Copy link
Member Author

Choose a reason for hiding this comment

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

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 19, 2026
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 19, 2026
This change makes us generate the extract functions for
applyconfigurations. It re-used the existing openapi generation with
some adjustments and then feeds that into the applyconfig generator.

Contrary to CRD generation we do not flatten the schema because we can
and because it will likely often reduce the overall size.
@sbueringer
Copy link
Member

/lgtm

Keeping hold for now in case Joel also wants to take a look

/assign @JoelSpeed

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 23, 2026
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

DetailsGit tree hash: e606182f62c7471826c694ddcda3be0fa78a78cb

@JoelSpeed
Copy link
Contributor

/lgtm
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 23, 2026
@k8s-ci-robot k8s-ci-robot merged commit 6e1b491 into kubernetes-sigs:main Feb 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants