Skip to content

Conversation

@Catalin-Stratulat-Ericsson
Copy link
Contributor

@Catalin-Stratulat-Ericsson Catalin-Stratulat-Ericsson commented Dec 4, 2025

Adds an guide detailing how to perform the delete operation correctly, deleting at different stages of the lifecycle.
Explicitly detailing how the "main" revision should be taken care of in such situations also.

@nephio-prow
Copy link
Contributor

nephio-prow bot commented Dec 4, 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 ask for approval from catalin-stratulat-ericsson by writing /assign @catalin-stratulat-ericsson 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 Dec 4, 2025

Deploy Preview for nephio ready!

Name Link
🔨 Latest commit 6d2259c
🔍 Latest deploy log https://app.netlify.com/projects/nephio/deploys/6931af88bbfe1100084a234c
😎 Deploy Preview https://deploy-preview-292--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.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2025

Copy link
Contributor

@CsatariGergely CsatariGergely left a comment

Choose a reason for hiding this comment

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

Shoudn't we name the files *-package-revisions.md?

@Catalin-Stratulat-Ericsson
Copy link
Contributor Author

Shoudn't we name the files *-package-revisions.md?

sure thing! these file names were from before changing the wording in them to package-revision to try and clarify the term from "packages"

@Catalin-Stratulat-Ericsson
Copy link
Contributor Author

Shoudn't we name the files *-package-revisions.md?

thinking a bit further on this. would it be possible to do this in a separate PR for all guides under "working with package revisions" to avoid any relref link breaks like last time?

porchctl rpkg get --namespace=default
```

You should see output similar to:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
You should see output similar to:
You should see an output similar to:

- Deletes the corresponding Git branch (`draft/draft-v1`)
- No approval or confirmation required

**Verify deletion:**
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
**Verify deletion:**
**Verify the deletion:**

- Deletes the corresponding Git branch (`proposed/proposed-v1`)
- No approval process required

**Verify deletion:**
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
**Verify deletion:**
**Verify the deletion:**


## Step 5a: Approve Deletion Proposal

If you want to proceed with deletion, approve the deletion proposal:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
If you want to proceed with deletion, approve the deletion proposal:
If you want to proceed with the deletion, approve the deletion proposal:


- Permanently deletes the PackageRevision
- Removes the Git tag and any associated branches
- Cannot be undone once completed
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Cannot be undone once completed
- **Important**: This cannot be undone once completed

Copy link
Contributor

Choose a reason for hiding this comment

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

i'd try to highlight this somehow cause it looks important, hence the Important but other solutions are fine too. just wouldn't want the reader to skim over this


## Batch Deletion Operations

You can delete multiple PackageRevisions in a single command:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
You can delete multiple PackageRevisions in a single command:
You can delete multiple PackageRevisions with a single command:


**PackageRevision not found:**

- Verify the exact PackageRevision name: `porchctl rpkg get --namespace=default`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Verify the exact PackageRevision name: `porchctl rpkg get --namespace=default`
- Verify the exact PackageRevision name with the `porchctl rpkg get --namespace=default` command


**Permission denied:**

- Check RBAC permissions: `kubectl auth can-i delete packagerevisions -n default`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Check RBAC permissions: `kubectl auth can-i delete packagerevisions -n default`
- Check RBAC permissions with the `kubectl auth can-i delete packagerevisions -n default` command


**Deletion proposal stuck:**

- Check the PackageRevision status: `porchctl rpkg get <name> -o yaml`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Check the PackageRevision status: `porchctl rpkg get <name> -o yaml`
- Check the PackageRevision status with the `porchctl rpkg get <name> -o yaml` command

porchctl rpkg get --namespace=default
```

You might see output like:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
You might see output like:
You might see an output like:

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