Skip to content

Commit 0de41fe

Browse files
authored
removing helm hybrid operator plugin (#6833)
Signed-off-by: Adam D. Cornett <[email protected]>
1 parent 5ddea3c commit 0de41fe

File tree

6 files changed

+33
-31
lines changed

6 files changed

+33
-31
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
(hybrid.helm/v1-alpha) Remove hybrid-helm v1-alpha support, due to low adoption, in favor of maintenance simplicity.
6+
7+
# kind is one of:
8+
# - addition
9+
# - change
10+
# - deprecation
11+
# - removal
12+
# - bugfix
13+
kind: "removal"
14+
15+
# Is this a breaking change?
16+
breaking: true
17+
18+
# Migration can be defined to automatically add a section to
19+
# the migration guide. This is required for breaking changes.
20+
migration:
21+
header: Remove hybrid-helm v1-alpha support
22+
body: |
23+
As an operator author you can switch to a go-based operator.

go.mod

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ require (
1515
github.com/onsi/gomega v1.33.0
1616
github.com/operator-framework/ansible-operator-plugins v1.35.0
1717
github.com/operator-framework/api v0.23.0
18-
github.com/operator-framework/helm-operator-plugins v0.2.2
1918
github.com/operator-framework/operator-lib v0.13.0
2019
github.com/operator-framework/operator-manifest-tools v0.6.0
2120
github.com/operator-framework/operator-registry v1.39.0

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,6 @@ github.com/operator-framework/ansible-operator-plugins v1.35.0 h1:ranI6NhcnAl2so
429429
github.com/operator-framework/ansible-operator-plugins v1.35.0/go.mod h1:ehsR1S7COaxHD54t7/1CXuvnTkSiMxUqgJhTGVcH6Fs=
430430
github.com/operator-framework/api v0.23.0 h1:kHymOwcHBpBVujT49SKOCd4EVG7Odwj4wl3NbOR2LLA=
431431
github.com/operator-framework/api v0.23.0/go.mod h1:oKcFOz+Xc1UhMi2Pzcp6qsO7wjS4r+yP7EQprQBXrfM=
432-
github.com/operator-framework/helm-operator-plugins v0.2.2 h1:xbVRXM4VIpixrjA9OwVF+Kky6DpYHpkOnME2HEoQUfg=
433-
github.com/operator-framework/helm-operator-plugins v0.2.2/go.mod h1:h8HwfHHr29GRpduxy5jCL/sIe4TDarS5XHExBHVDc8k=
434432
github.com/operator-framework/operator-lib v0.13.0 h1:+TWgJhbJqyNix9m1LmHK5gY/lb3CGqZX3Wvl7K0k+6I=
435433
github.com/operator-framework/operator-lib v0.13.0/go.mod h1:RDs1wGdOKWSMCO+BYSbqmmKGnD5jOP7TVP+KvoX8jMg=
436434
github.com/operator-framework/operator-manifest-tools v0.6.0 h1:1fUP0ki3plXM6WivlcE6m5cV8fO2ZZVPHJM93vlgWJo=

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

-13
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package cli
1616

1717
import (
18-
hybrid "github.com/operator-framework/helm-operator-plugins/pkg/plugins/hybrid/v1alpha"
1918
log "github.com/sirupsen/logrus"
2019
"github.com/spf13/cobra"
2120
"github.com/spf13/viper"
@@ -138,17 +137,6 @@ func GetPluginsCLIAndRoot() (*cli.CLI, *cobra.Command) {
138137
),
139138
)
140139

141-
hybridBundle, _ := plugin.NewBundleWithOptions(
142-
plugin.WithName("hybrid.helm"+plugins.DefaultNameQualifier),
143-
plugin.WithVersion(plugin.Version{Number: 1, Stage: stage.Alpha}),
144-
plugin.WithPlugins(
145-
kustomizev2.Plugin{},
146-
hybrid.Plugin{},
147-
manifestsv2.Plugin{},
148-
scorecardv2.Plugin{},
149-
),
150-
)
151-
152140
deployImageBundle, _ := plugin.NewBundleWithOptions(
153141
plugin.WithName("deploy-image."+golang.DefaultNameQualifier),
154142
plugin.WithVersion(plugin.Version{Number: 1, Stage: stage.Alpha}),
@@ -166,7 +154,6 @@ func GetPluginsCLIAndRoot() (*cli.CLI, *cobra.Command) {
166154
gov3Bundle, // Deprecated
167155
gov4Bundle,
168156
helmBundle,
169-
hybridBundle,
170157
grafanav1alpha.Plugin{},
171158
deployImageBundle,
172159
declarativev1.Plugin{},

internal/util/projutil/project_util.go

-4
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ const (
5454
OperatorTypeAnsible OperatorType = "ansible"
5555
// OperatorTypeHelm - helm type of operator.
5656
OperatorTypeHelm OperatorType = "helm"
57-
// OperatorTypeHybrid - hybrid type of operator.
58-
operatorTypeHybridHelm OperatorType = "hybridHelm"
5957
// OperatorTypeUnknown - unknown type of operator.
6058
OperatorTypeUnknown OperatorType = "unknown"
6159
)
@@ -106,8 +104,6 @@ func PluginChainToOperatorType(pluginKeys []string) OperatorType {
106104
return OperatorTypeHelm
107105
case strings.HasPrefix(pluginKey, "ansible"):
108106
return OperatorTypeAnsible
109-
case strings.HasPrefix(pluginKey, "hybrid"):
110-
return operatorTypeHybridHelm
111107
}
112108
}
113109
return OperatorTypeUnknown

website/content/en/docs/cli/operator-sdk.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@ The first step is to initialize your project:
2323
<PLUGIN KEYS> is a comma-separated list of plugin keys from the following table
2424
and <PROJECT VERSION> a supported project version for these plugins.
2525
26-
Plugin keys | Supported project versions
27-
-----------------------------------------------+----------------------------
28-
ansible.sdk.operatorframework.io/v1 | 3
29-
declarative.go.kubebuilder.io/v1 | 2, 3
30-
deploy-image.go.kubebuilder.io/v1-alpha | 3
31-
go.kubebuilder.io/v2 | 2, 3
32-
go.kubebuilder.io/v3 | 3
33-
go.kubebuilder.io/v4 | 3
34-
grafana.kubebuilder.io/v1-alpha | 3
35-
helm.sdk.operatorframework.io/v1 | 3
36-
hybrid.helm.sdk.operatorframework.io/v1-alpha | 3
26+
Plugin keys | Supported project versions
27+
-----------------------------------------+----------------------------
28+
ansible.sdk.operatorframework.io/v1 | 3
29+
declarative.go.kubebuilder.io/v1 | 2, 3
30+
deploy-image.go.kubebuilder.io/v1-alpha | 3
31+
go.kubebuilder.io/v2 | 2, 3
32+
go.kubebuilder.io/v3 | 3
33+
go.kubebuilder.io/v4 | 3
34+
grafana.kubebuilder.io/v1-alpha | 3
35+
helm.sdk.operatorframework.io/v1 | 3
3736
3837
For more specific help for the init command of a certain plugins and project version
3938
configuration please run:

0 commit comments

Comments
 (0)