Skip to content

Commit b78574a

Browse files
Merge pull request #683 from pmorie/doc-install-mode
Add godoc for InstallModeTypes
2 parents 72dbe0d + bfb2162 commit b78574a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

pkg/api/apis/operators/v1alpha1/clusterserviceversion_types.go

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,21 @@ const (
2323
type InstallModeType string
2424

2525
const (
26-
InstallModeTypeOwnNamespace InstallModeType = "OwnNamespace"
26+
// InstallModeTypeOwnNamespace indicates that the operator can be configured
27+
// to watch the namespace it is installed into.
28+
InstallModeTypeOwnNamespace InstallModeType = "OwnNamespace"
29+
// InstallModeTypeSingleNamespace indicates that the operator can be
30+
// configured to watch a single namespace, which is configurable via
31+
// OperatorGroups' spec.targetNamespaces field.
2732
InstallModeTypeSingleNamespace InstallModeType = "SingleNamespace"
28-
InstallModeTypeMultiNamespace InstallModeType = "MultiNamespace"
29-
InstallModeTypeAllNamespaces InstallModeType = "AllNamespaces"
33+
// InstallModeTypeMultiNamespace indicates that the operator can be
34+
// configured to watch multiple namespaces via the OperatorGroup's
35+
// spec.targetNamespaces field.
36+
InstallModeTypeMultiNamespace InstallModeType = "MultiNamespace"
37+
// InstallModeTypeAllNamespaces indicates that the operator can configured
38+
// to wwatch all namespaces by setting the OperatorGroup's
39+
// spec.targetNamespaces field to "NamespaceAll".
40+
InstallModeTypeAllNamespaces InstallModeType = "AllNamespaces"
3041
)
3142

3243
// InstallMode associates an InstallModeType with a flag representing if the CSV supports it

0 commit comments

Comments
 (0)