Skip to content

Conversation

@lapentad
Copy link
Contributor

Replacing #261

@nephio-prow nephio-prow bot requested review from arora-sagar and henderiw October 17, 2025 09:41
@lapentad lapentad requested review from Catalin-Stratulat-Ericsson and efiacor and removed request for arora-sagar and henderiw October 17, 2025 09:41
@lapentad lapentad changed the base branch from porch-docs-refactor to main October 20, 2025 08:12
@lapentad
Copy link
Contributor Author

Rebased on main

@nephio-prow
Copy link
Contributor

nephio-prow bot commented Oct 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lovesprung for approval by writing /assign @lovesprung in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for nephio ready!

Name Link
🔨 Latest commit 1a0ff99
🔍 Latest deploy log https://app.netlify.com/projects/nephio/deploys/690ccb68bd918500084b5a99
😎 Deploy Preview https://deploy-preview-275--nephio.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.

@nephio-project nephio-project deleted a comment from netlify bot Oct 21, 2025
@lapentad lapentad force-pushed the tutorial-upgrades-section branch from e1e16be to 64b4a4a Compare October 29, 2025 12:10
@lapentad lapentad force-pushed the tutorial-upgrades-section branch from 64b4a4a to 85b2a82 Compare October 29, 2025 12:16
@lapentad
Copy link
Contributor Author

Rebased

Comment on lines 96 to 109
## Package Lifecycle Workflow
Packages managed by Porch progress through several states, from creation to final publication. This workflow ensures that packages are reviewed and approved before they are published and consumed.
The typical lifecycle of a package is as follows:
1. **Draft:** A user initializes a new package or clones an existing one. The package is in a `Draft` state, allowing the user to make changes freely in their local workspace.
2. **Proposed:** Once the changes are ready for review, the user pushes the package, which transitions it to the `Proposed` state. In this stage, the package is available for review by other team members.
3. **Review and Approval:**
* **Approved:** If the package is approved, it is ready to be published.
* **Rejected:** If changes are required, the package is rejected. The user must pull the package, make the necessary modifications, and re-propose it for another review.
4. **Published:** After approval, the package is published. Published packages are considered stable and are available for deployment and consumption by other systems or clusters. They typically become the "latest" version of a package.
![Flowchart](../static/flowchart.drawio.svg)

Choose a reason for hiding this comment

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

i dont think this section should be here why is this relevant to setting up the dev env?

Choose a reason for hiding this comment

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

perhaps it should be moved to its own section in the tutorials called package lifecycle workflow which goes into a bit more detail and is referred to in the tutorials and the diagram should be a bit more in depth?

Choose a reason for hiding this comment

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

ill provide a sample diagram using your current one as an example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok in the meantime i moved the package lifecycle section

Signed-off-by: lapentafd <[email protected]>
## Overview

Lorem Ipsum
> Note: The tutorials in this section assume you have a local development environment running (Porch + Gitea in kind). If you plan to follow the walkthroughs locally, please set up the Local Dev Environment first: [Local Development Environment Setup]({{% relref "/docs/neo-porch/6_configuration_and_deployments/deployments/local-dev-env-deployment.md" %}}).
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think each tutorial should have it's own prerequisite section instead

---

## Lorem Ipsum
## Package Lifecycle Workflow
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should prob go with the Package Revision concept section

## Package Lifecycle Workflow

tutorial similar to getting started with first package in getting started section but this time in more detail and with package lifecycle diagram to clearly refference the different stages a package can be in and how it can change
Packages managed by Porch progress through several states, from creation to final publication. This workflow ensures that packages are reviewed and approved before they are published and consumed.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to explicitly differentiate between Package Revisions and KPT Packages?

---

## Lorem Ipsum
# Upgrading Porch Packages
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be removed

@@ -1,16 +1,239 @@
---
title: "Upgrading Packages"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again, I think it might be useful to refer to Package Revisions in the Porch docs to differentiate from the KPT Package. Others may disagree. The 2 are linked, but different IMHO


### Step 3: Clone Blueprint v1 into a Deployment Package

Now, a user clones the blueprint to create a "downstream" deployment package.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should prob have a Style Guide for this but we should stick to 1 style of "Step" instructions.

"Next, we'll create " -> "Create"
"Now, a user clones " -> "Clone"


Scenario: Upstream adds a new ConfigMap and local changes added an annotation to Kptfile. `resource-merge` should apply the upstream addition while preserving the local annotation.

Commands (happy path):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can remove "happy path"


### Command Flags

The `porchctl rpkg upgrade` command has several key flags:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be referenced at the top with a link to the cli guide

* **Separate Repositories:** For better organization and access control, keep blueprint packages and deployment packages in separate Git repositories.
* **Understand Your Strategy:** Before upgrading, be certain which merge strategy fits your use case to avoid accidentally losing important local customizations. When in doubt, the default `resource-merge` is the safest and most intelligent option.

### Cleanup
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice to have but prob not necessary.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants