From c54065f3160f443b5344d6c7189cfd91c2813230 Mon Sep 17 00:00:00 2001 From: Camryn Carter Date: Wed, 7 Jan 2026 21:59:23 -0800 Subject: [PATCH] add experimental notes (#483) --- cmd/hauler/cli/store.go | 2 +- internal/flags/add.go | 6 ++---- internal/flags/sync.go | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cmd/hauler/cli/store.go b/cmd/hauler/cli/store.go index 6182233..b94995e 100644 --- a/cmd/hauler/cli/store.go +++ b/cmd/hauler/cli/store.go @@ -390,7 +390,7 @@ func addStoreDeleteArtifact(rso *flags.StoreRootOpts, ro *flags.CliRootOpts) *co o := &flags.DeleteArtifactOpts{} cmd := &cobra.Command{ Use: "delete-artifact ", - Short: "Delete an artifact from the content store", + Short: "Delete an artifact from the content store (experimental)", Aliases: []string{"del"}, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/internal/flags/add.go b/internal/flags/add.go index 7231e08..28b55db 100644 --- a/internal/flags/add.go +++ b/internal/flags/add.go @@ -29,11 +29,9 @@ func (o *AddImageOpts) AddFlags(cmd *cobra.Command) { f.StringVar(&o.CertGithubWorkflowRepository, "certificate-github-workflow-repository", "", "(Optional) Cosign certificate-github-workflow-repository option") f.BoolVarP(&o.Tlog, "use-tlog-verify", "v", false, "(Optional) Allow transparency log verification. (defaults to false)") f.StringVarP(&o.Platform, "platform", "p", "", "(Optional) Specifiy the platform of the image... i.e. linux/amd64 (defaults to all)") - f.StringVar(&o.Rewrite, "rewrite", "", "(Optional) Rewrite artifact path to specified string") + f.StringVar(&o.Rewrite, "rewrite", "", "(Optional) Rewrite artifact path to specified string (experimental)") } -//func (o *AddImageOpts) RewriteValue() string { return o.Rewrite } - type AddFileOpts struct { *StoreRootOpts Name string @@ -63,5 +61,5 @@ func (o *AddChartOpts) AddFlags(cmd *cobra.Command) { f.StringVar(&o.ChartOpts.KeyFile, "key-file", "", "(Optional) Location of the TLS Key to use for client authenication") f.BoolVar(&o.ChartOpts.InsecureSkipTLSverify, "insecure-skip-tls-verify", false, "(Optional) Skip TLS certificate verification") f.StringVar(&o.ChartOpts.CaFile, "ca-file", "", "(Optional) Location of CA Bundle to enable certification verification") - f.StringVar(&o.Rewrite, "rewrite", "", "(Optional) Rewrite artifact path to specified string") + f.StringVar(&o.Rewrite, "rewrite", "", "(Optional) Rewrite artifact path to specified string (experimental)") } diff --git a/internal/flags/sync.go b/internal/flags/sync.go index a888a92..8c73e64 100644 --- a/internal/flags/sync.go +++ b/internal/flags/sync.go @@ -37,7 +37,5 @@ func (o *SyncOpts) AddFlags(cmd *cobra.Command) { f.StringVarP(&o.Registry, "registry", "g", "", "(Optional) Specify the registry of the image for images that do not alredy define one") f.StringVarP(&o.ProductRegistry, "product-registry", "c", "", "(Optional) Specify the product registry. Defaults to RGS Carbide Registry (rgcrprod.azurecr.us)") f.BoolVarP(&o.Tlog, "use-tlog-verify", "v", false, "(Optional) Allow transparency log verification. (defaults to false)") - f.StringVar(&o.Rewrite, "rewrite", "", "(Optional) Rewrite artifact path to specified string") + f.StringVar(&o.Rewrite, "rewrite", "", "(Optional) Rewrite artifact path to specified string (experimental)") } - -//func (o *SyncOpts) RewriteValue() string { return o.Rewrite }