Skip to content

Commit eee422a

Browse files
fix: deploy-image for sdk to generate the bundle with the apis created 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]>
1 parent c480817 commit eee422a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
(deploy-image/v1alpha plugin) Add support to generate SDK bundle manifests
6+
kind: "addition"
7+
breaking: false

internal/cmd/operator-sdk/cli/cli.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ func GetPluginsCLIAndRoot() (*cli.CLI, *cobra.Command) {
114114
manifestsv2.Plugin{},
115115
scorecardv2.Plugin{},
116116
)
117+
deployImageBundle, _ := plugin.NewBundle("deploy-image."+golang.DefaultNameQualifier, plugin.Version{Number: 1, Stage: stage.Alpha},
118+
deployimagev1alpha.Plugin{},
119+
manifestsv2.Plugin{},
120+
)
117121
c, err := cli.New(
118122
cli.WithCommandName("operator-sdk"),
119123
cli.WithVersion(makeVersionString()),
@@ -125,7 +129,7 @@ func GetPluginsCLIAndRoot() (*cli.CLI, *cobra.Command) {
125129
helmBundle,
126130
hybridBundle,
127131
grafanav1alpha.Plugin{},
128-
deployimagev1alpha.Plugin{},
132+
deployImageBundle,
129133
declarativev1.Plugin{},
130134
&quarkusv1.Plugin{},
131135
),

0 commit comments

Comments
 (0)