Skip to content

Conversation

JamesMcDermott
Copy link
Contributor

Part of #677.

  • add descriptions in porchctl-cli-guide.md
    • selected as place closest in concept although selector flags are only supported by kubectl
    • new paragraphs in "Package Revision Filtering" section
      • descriptions of --selector and --field-selector behaviour
      • example commands and output
      • list of selectable fields for --field-selector
      • include note that changing selectable fields requires code changes due to aggregated-API nature of PackageRevision kind

…Revisions

- add descriptions in porchctl-cli-guide.md
  - selected as place closest in concept although selector flags are only
    supported by kubectl
  - new paragraphs in "Package Revision Filtering" section
    - descriptions of --selector and --field-selector
    - example commands and output
    - list of selectable fields for --field-selector
    - include note that changing selectable fields requires code changes
      due to aggregated-API nature of PackageRevision
- fixed a typo

nephio-project/nephio#677
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for nephio ready!

Name Link
🔨 Latest commit f5f3eeb
🔍 Latest deploy log https://app.netlify.com/projects/nephio/deploys/68c15c7236ebc90008ddbb33
😎 Deploy Preview https://deploy-preview-257--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.

@JamesMcDermott JamesMcDermott changed the title Document existing list/filter behaviour for Packagerevisions Document existing list/filter behaviour for PackageRevisions Sep 9, 2025
The common `kubectl` flags that control output format are available as well:
You can also filter package revisions using the `kubectl` CLI with the `--selector` and `--field-selector` flags under the same conventions as for other KRM objects.

`--selector` filters by the values of one or more metadata labels (see [Kubernetes documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering) for full details):

Choose a reason for hiding this comment

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

might just be nit picking here but i don't think we should start sentences with the variable this way. something like "The --selector variable filters by ..." instead i think would be a better way to proceed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True - done


`--field-selector` filters by the values of one or more package revision fields (see [Kubernetes documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/)):

Choose a reason for hiding this comment

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

same as above comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


{{% /alert %}}

The common `kubectl` flags that control output format are available as well:

Choose a reason for hiding this comment

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

perhaps we should link to the kubernetes docs here also https://kubernetes.io/docs/reference/kubectl/#output-options

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines 353 to 356
| Kind | Fields |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PackageRevision | `metadata.name`<br/>`metadata.namespace`<br/>`spec.revision`<br/>`spec.packageName`<br/>`spec.repository`<br/>`spec.workspaceName`<br/>`spec.lifecycle` |

Choose a reason for hiding this comment

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

perhaps if we can make the table scale to the entire length of the page instead of cropped to a subsection. looks a bit odd compared to the rest of the page and a bit hard to read e.g. https://docs.nephio.org/docs/porch/package-mutation-pipeline-order/#key-differences-and-use-cases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After offline discussion, changed to a bullet list

Copy link

@Catalin-Stratulat-Ericsson
Copy link
Contributor

Looks Great!
/approve

Copy link
Contributor

nephio-prow bot commented Sep 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Catalin-Stratulat-Ericsson
Once this PR has been reviewed and has the lgtm label, please assign timop62 for approval by writing /assign @timop62 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants