From 461598132d7eadac2467afe93c8ba8fde67f0b4f Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Fri, 17 Jan 2025 14:47:11 +0100 Subject: [PATCH] Deprecated: fileoption.NewCompArch() --- cmds/ocm/commands/ocmcmds/common/options/fileoption/option.go | 1 + cmds/ocm/commands/ocmcmds/common/resources.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmds/ocm/commands/ocmcmds/common/options/fileoption/option.go b/cmds/ocm/commands/ocmcmds/common/options/fileoption/option.go index 69a0894747..7fb0e4910b 100644 --- a/cmds/ocm/commands/ocmcmds/common/options/fileoption/option.go +++ b/cmds/ocm/commands/ocmcmds/common/options/fileoption/option.go @@ -19,6 +19,7 @@ func From(o options.OptionSetProvider) *Option { return opt } +// Deprecated: Component Archive (CA) - https://kubernetes.slack.com/archives/C05UWBE8R1D/p1734357630853489 func NewCompArch() *Option { return New("component-archive") } diff --git a/cmds/ocm/commands/ocmcmds/common/resources.go b/cmds/ocm/commands/ocmcmds/common/resources.go index 9886b15ad6..3ef2840856 100644 --- a/cmds/ocm/commands/ocmcmds/common/resources.go +++ b/cmds/ocm/commands/ocmcmds/common/resources.go @@ -192,7 +192,7 @@ it is possible to add extra identity attributes. Explicitly specified options override values specified by the --%s option. (Note: Go templates are not supported for YAML-based option values. Besides this restriction, the finally composed element description is still processed -by the selected template engine.) +by the selected template engine.) `, a.typename, a.typename, a.typename) } @@ -388,6 +388,7 @@ func NewResourceAdderCommand(ctx clictx.Context, h ResourceSpecHandler, provider } return ResourceAdderCommand{ BaseCommand: utils.NewBaseCommand(ctx, sliceutils.CopyAppend[options.Options](opts, + //nolint:staticcheck // Deprecated: Component Archive (CA) - https://kubernetes.slack.com/archives/C05UWBE8R1D/p1734357630853489 fileoption.NewCompArch(), dryrunoption.New(fmt.Sprintf("evaluate and print %s specifications", h.Key()), true), templateroption.New(""),