Skip to content

docs: updates for PR #4405#4412

Open
dosubot[bot] wants to merge 3 commits intomainfrom
dosu/doc-update-4405
Open

docs: updates for PR #4405#4412
dosubot[bot] wants to merge 3 commits intomainfrom
dosu/doc-update-4405

Conversation

@dosubot
Copy link
Contributor

@dosubot dosubot bot commented Feb 25, 2026

Update documentation for #4405

Generated by Dosu

Copilot AI review requested due to automatic review settings February 25, 2026 08:31
@dosubot dosubot bot review requested due to automatic review settings February 25, 2026 08:31
@netlify
Copy link

netlify bot commented Feb 25, 2026

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit aadbc66
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/699ffb5a0327520007ca7622
😎 Deploy Preview https://deploy-preview-4412--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation Improvements or additions to documentation labels Feb 25, 2026
@liamfallon
Copy link
Contributor

This auto-generated PR contains documentation changes for PRs not merged yet: ie #4411

@CsatariGergely
Copy link
Contributor

Please resolve the conflicts

Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
Copilot AI review requested due to automatic review settings February 26, 2026 07:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates documentation to reflect the new auto-create directory feature introduced in PR #4405, which enables kpt pkg init to automatically create package directories.

Changes:

  • Updated documentation examples to remove manual mkdir steps before kpt pkg init
  • Clarified CI best practices regarding when not to use kpt pkg init
  • Added example output showing the directory creation message

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
local-config/_index.md Updated example to use kpt pkg init my-pkg instead of mkdir + kpt pkg init workflow
depends-on/_index.md Updated example to use kpt pkg init my-pkg instead of mkdir + kpt pkg init workflow
apply-time-mutation/_index.md Updated example to use kpt pkg init my-pkg instead of mkdir + kpt pkg init workflow
migration.md Updated migration guide description (note: contains trailing whitespace)
namespace-provisioning-cli.md Updated guide with new workflow and example output showing directory creation
08-ci-user-guide/_index.md Clarified anti-pattern to specify not creating package metadata in CI
03-packages/_index.md Contains unresolved merge conflicts between two versions describing package creation
02-concepts/_index.md Contains unresolved merge conflicts in Kptfile Annotations section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 317 to 331
<<<<<<< HEAD
Creating a new package is simple. Use the `pkg init` command to initialize a directory as a kpt package with a minimal `Kptfile` and `README` files:
=======
Creating a new package is simple. Use the `pkg init` command to create a package directory with a minimal `Kptfile` and `README` files:
>>>>>>> main

```shell
kpt pkg init awesomeapp
```

<<<<<<< HEAD
The command will automatically create the `awesomeapp` directory if it doesn't exist, eliminating the need to manually create the directory beforehand.
=======
This will create the `awesomeapp` directory if it doesn't exist, and initialize it with the necessary files.
>>>>>>> main
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

This file contains unresolved merge conflict markers (<<<<<<< HEAD, =======, >>>>>>> main). These must be resolved before the PR can be merged. The conflict appears to be between two slightly different phrasings of the same concept - one says "initialize a directory as a kpt package" while the other says "create a package directory". Choose one version and remove the conflict markers.

Copilot uses AI. Check for mistakes.
Comment on lines +93 to +106
<<<<<<< HEAD
The Kptfile supports annotations that control package-level behavior:

- **`kpt.dev/bfs-rendering`**: When set to `"true"`, renders the package hierarchy in breadth-first order instead of the default depth-first post-order.
- **`kpt.dev/save-on-render-failure`**: When set to `"true"`, saves partially rendered resources to disk even when rendering fails, instead of reverting all changes. This is particularly useful for debugging render failures and is essential for programmatic package rendering scenarios (e.g., Porch integration) where preserving partial progress is valuable.
=======
The Kptfile supports annotations that control package-level behaviour:

- **`kpt.dev/bfs-rendering`**: When set to `"true"`, renders the package hierarchy in breadth-first order instead of
the default depth-first post-order.
- **`kpt.dev/save-on-render-failure`**: When set to `"true"`, saves partially rendered resources to disk even when
rendering fails, instead of reverting all changes. This is particularly useful for debugging render failures and is
essential for programmatic package rendering scenarios where preserving partial progress is valuable.
>>>>>>> main
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

This file contains unresolved merge conflict markers (<<<<<<< HEAD, =======, >>>>>>> main). These must be resolved before the PR can be merged. The conflict is in the Kptfile Annotations section where there are two versions with slightly different formatting (one has single-line descriptions vs. multi-line descriptions). Choose one version and remove the conflict markers.

Copilot uses AI. Check for mistakes.
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] LOCAL_DEST_DIRECTORY [flags]` | `kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] [flags] [LOCAL_DEST_DIRECTORY]` <br> Fetch a remote package from a git subdirectory and writes it to a new local directory. |
| `kpt pkg init DIR [flags]` | `kpt pkg init [DIR] [flags]` <br> Initializes a directory as a kpt package by adding a Kptfile. Creates the directory if it does not exist. |
| `kpt pkg init DIR [flags]` | `kpt pkg init [DIR] [flags]` <br> Initializes a directory as a kpt package by adding a Kptfile. Creates the directory if it does not exist. |
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

This line appears to have unnecessary trailing whitespace added. While this doesn't affect functionality, it's generally a good practice to avoid trailing whitespace in documentation files to keep the source clean.

Copilot uses AI. Check for mistakes.
Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
@dosubot dosubot bot added the lgtm label Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants