Skip to content

feat: add imagespec feature for RegistryMapping - #158

Open
ANJANA-A-R-K wants to merge 2 commits into
ibm-hyper-protect:mainfrom
ANJANA-A-R-K:Feature/image-spec
Open

feat: add imagespec feature for RegistryMapping#158
ANJANA-A-R-K wants to merge 2 commits into
ibm-hyper-protect:mainfrom
ANJANA-A-R-K:Feature/image-spec

Conversation

@ANJANA-A-R-K

Copy link
Copy Markdown

Description

Add new image-spec subcommand that wraps the contract-go imagespec
package to generate a Kubernetes pod spec snippet from an OCI image
reference.

Usage:
contract-cli image-spec --in [--container-name ]
[--out ] [--username ] [--password

]

Related Issue

Fixes #

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactor (no functional changes)
  • CI/CD or build changes

Target Platform

  • HPVS (IBM Hyper Protect Virtual Servers for VPC)
  • CCRT (IBM Confidential Computing Container Runtime)
  • CCRV (IBM Confidential Computing Container Runtime for Red Hat Virtualization Solutions)
  • CCCO (IBM Confidential Computing Containers for Red Hat OpenShift Container Platform)
  • All platforms
  • Not platform-specific

Testing

  • make test passes
  • make fmt applied (no formatting changes needed)
  • New tests added for new functionality (if applicable)

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my code
  • I have added/updated GoDoc comments for public functions
  • I have updated documentation (README, docs/README.md) if needed
  • All new and existing tests pass (make test)
  • I have verified there are no breaking changes (or documented them above)

Add new image-spec subcommand that wraps the contract-go imagespec
package to generate a Kubernetes pod spec snippet from an OCI image
reference.

Usage:
  contract-cli image-spec --in <image-ref> [--container-name <name>]
                          [--out <file>] [--username <u>] [--password <p>]

Signed-off-by: Anjana A R K <anjana.a.r.k1@ibm.com>
Change README docs to include image-spec changes

Signed-off-by: Anjana A R K <anjana.a.r.k1@ibm.com>
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.

1 participant