Skip to content

Conversation

@camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Aug 23, 2025

Description

This PR adds support for using AI in both the alpha update command and the Auto Update plugin.
The update process now provides context-aware information to help users understand how to update their projects effectively.

Key Features

  • AI-Powered Guidance: Both the CLI command and plugin now use AI to generate helpful insights during updates.
  • Improved Developer Experience: Users receive clearer instructions and summaries, making it easier to resolve conflicts and complete updates.
  • Integration with GitHub: The update process can create issues and add AI-generated overview comments, optionally using gh models run.

Examples

  • Running the alpha update command will now provide AI-assisted explanations alongside traditional update logic.
  • The Auto Update plugin leverages the same AI-powered insights to guide users through upgrading.

Screenshots

AI Output Example:

Screenshot 2025-08-25 at 02 35 08

Files Changed:

Screenshot 2025-08-25 at 02 35 21

Conflicts Example:

Screenshot 2025-08-25 at 02 35 29

Outcome

This enhancement makes the update workflow more intuitive by combining Git-based automation with AI-powered context, helping contributors keep projects up to date with less friction.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 23, 2025
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 23, 2025
@camilamacedo86 camilamacedo86 force-pushed the add-gh-model branch 4 times, most recently from 9266990 to 149662a Compare August 23, 2025 19:03
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 23, 2025
@camilamacedo86 camilamacedo86 force-pushed the add-gh-model branch 5 times, most recently from 31f3624 to f72ef6c Compare August 24, 2025 01:50
- If you want to add the `autoupdate` plugin to your project:

```shell
kubebuilder edit --plugins="autoupdate.kubebuilder.io/v1-alpha"
Copy link
Member Author

Choose a reason for hiding this comment

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

@vitorfloriano that is the final result :-)

@camilamacedo86 camilamacedo86 changed the title WIP Add Option to use AI with alpha update ✨ (alpha update) Add Option to use AI with alpha update Aug 24, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 24, 2025
@camilamacedo86 camilamacedo86 force-pushed the add-gh-model branch 2 times, most recently from 6c93f85 to 0748663 Compare August 24, 2025 02:07
@camilamacedo86 camilamacedo86 force-pushed the add-gh-model branch 3 times, most recently from 58a62a8 to 6df30ec Compare August 24, 2025 07:56
Copy link
Contributor

@vitorfloriano vitorfloriano left a comment

Choose a reason for hiding this comment

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

LGTM.

I guess now we can say that Kubebuilder checks the "AI" box. Well done! This is going to be really helpful.

</aside>
>
> Moreover, you will be able to get help from AI models to understand what changes are needed to keep your project up to date
and how to solve conflicts if any be faced.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
and how to solve conflicts if any be faced.
and how to solve conflicts if any are faced.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, vitorfloriano

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

The pull request process is described here

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 size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 24, 2025
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 25, 2025
@camilamacedo86 camilamacedo86 force-pushed the add-gh-model branch 3 times, most recently from c0b9d3f to 6051307 Compare August 25, 2025 01:41
Assisted-by: ChatGPT (OpenAI)

Co-authored-by: Vitor Floriano <vitorfloriano@users.noreply.github.com>
@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 25, 2025
@k8s-ci-robot k8s-ci-robot merged commit f49c452 into kubernetes-sigs:master Aug 25, 2025
36 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants