You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/operator-sdk/add/controller.go
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -30,22 +30,21 @@ var (
30
30
crdVersionstring
31
31
)
32
32
33
-
//nolint:lll
34
33
funcnewAddControllerCmd() *cobra.Command {
35
34
controllerCmd:=&cobra.Command{
36
35
Use: "controller",
37
36
Short: "Adds a new controller pkg",
38
37
Long: `
39
38
Add a new controller package to your operator project.
40
39
41
-
This command creates a new controller package under pkg/controller/<kind> that, by default, reconciles on a custom resource for the specified apiversion and kind. The controller will expect to use the custom resource type that should already be defined under pkg/apis/<group>/<version> via the "operator-sdk add api" command.
40
+
This command creates a new controller package under pkg/controller/<kind> that, by default, reconciles on a custom resource for the specified apiversion and kind. The controller will expect to use the custom resource type that should already be defined under pkg/apis/<group>/<version> via the "operator-sdk add api" command.
42
41
43
42
Note that, if the controller pkg for that Kind already exists at pkg/controller/<kind> then the command will not overwrite and return an error.
44
43
45
44
This command MUST be run from the project root directory.`,
46
45
47
46
Example: `
48
-
The following example will create a controller to manage, watch and reconcile as primary resource the <v1.AppService> from the domain <app.example.com>.
47
+
The following example will create a controller to manage, watch and reconcile as primary resource the <v1.AppService> from the domain <app.example.com>.
49
48
50
49
Example:
51
50
@@ -57,7 +56,7 @@ Example:
57
56
│ └── appservice_controller.go
58
57
└── controller.go
59
58
60
-
The following example will create a controller to manage, watch and reconcile as a primary resource the <v1.Deployment> from the domain <k8s.io.api>, which is not defined in the project (external). Note that, it can be used to create controllers for any External API.
59
+
The following example will create a controller to manage, watch and reconcile as a primary resource the <v1.Deployment> from the domain <k8s.io.api>, which is not defined in the project (external). Note that, it can be used to create controllers for any External API.
0 commit comments