Skip to content

Commit

Permalink
fix: deploy-image for sdk to generate the bundle with the apis create…
Browse files Browse the repository at this point in the history
…d by it (#5997)

* fix: deploy-image for sdk to generate the bundle with the apis created by it

* Update changelog/fragments/fix-plugin.yaml

Co-authored-by: Varsha <[email protected]>

Co-authored-by: Varsha <[email protected]>
  • Loading branch information
camilamacedo86 and varshaprasad96 authored Aug 23, 2022
1 parent c480817 commit eee422a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions changelog/fragments/fix-plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
(deploy-image/v1alpha plugin) Add support to generate SDK bundle manifests
kind: "addition"
breaking: false
6 changes: 5 additions & 1 deletion internal/cmd/operator-sdk/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ func GetPluginsCLIAndRoot() (*cli.CLI, *cobra.Command) {
manifestsv2.Plugin{},
scorecardv2.Plugin{},
)
deployImageBundle, _ := plugin.NewBundle("deploy-image."+golang.DefaultNameQualifier, plugin.Version{Number: 1, Stage: stage.Alpha},
deployimagev1alpha.Plugin{},
manifestsv2.Plugin{},
)
c, err := cli.New(
cli.WithCommandName("operator-sdk"),
cli.WithVersion(makeVersionString()),
Expand All @@ -125,7 +129,7 @@ func GetPluginsCLIAndRoot() (*cli.CLI, *cobra.Command) {
helmBundle,
hybridBundle,
grafanav1alpha.Plugin{},
deployimagev1alpha.Plugin{},
deployImageBundle,
declarativev1.Plugin{},
&quarkusv1.Plugin{},
),
Expand Down

0 comments on commit eee422a

Please sign in to comment.