Skip to content

Commit

Permalink
Deprecated: fileoption.NewCompArch()
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmarf committed Jan 17, 2025
1 parent 0296603 commit 4615981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
3 changes: 2 additions & 1 deletion cmds/ocm/commands/ocmcmds/common/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ it is possible to add extra identity attributes. Explicitly specified options
override values specified by the <code>--%s</code> 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)
}

Expand Down Expand Up @@ -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(""),
Expand Down

0 comments on commit 4615981

Please sign in to comment.