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
|`+kubebuilder:scaffold:imports`|`main.go`| Marks where imports for new controllers, webhooks, or APIs should be injected. |
101
+
|`+kubebuilder:scaffold:scheme`|`init()` in `main.go`| Used to add API versions to the scheme for runtime. |
102
+
|`+kubebuilder:scaffold:builder`|`main.go`| Marks where new controllers should be registered with the manager. |
103
+
|`+kubebuilder:scaffold:webhook`|`webhooks suite tests` files | Marks where webhook setup functions are added. |
104
+
|`+kubebuilder:scaffold:crdkustomizeresource`|`config/crd`| Marks where CRD custom resource patches are added. |
105
+
|`+kubebuilder:scaffold:crdkustomizewebhookpatch`|`config/crd`| Marks where CRD webhook patches are added. |
106
+
|`+kubebuilder:scaffold:crdkustomizecainjectionpatch`|`config/crd`| Marks where CA injection patches are added for the webhook. |
107
+
|`+kubebuilder:scaffold:manifestskustomizesamples`|`config/samples`| Marks where Kustomize sample manifests are injected. |
108
+
|`+kubebuilder:scaffold:e2e-webhooks-checks`|`test/e2e`| Adds e2e checks for webhooks depending on the types of webhooks scaffolded. |
109
+
|`+kubebuilder:scaffold:check-external-api`|`main.go`| If a controller is scaffolded for an External Type then, adds a new check for the API to ensure that the API/CRD exist on cluster since it become a prerequisite. |
110
+
|`+kubebuilder:scaffold:add-method-check-external-api`|`main.go`| If a controller is scaffolded for an External Type then, adds the method to do verify if the API/version exist on the cluster since it become a prerequisite. |
| `layout` | Defines the global plugins, e.g. a project `init` with `--plugins="go/v4,deploy-image/v1-alpha"` means that any sub-command used will always call its implementation for both plugins in a chain. |
136
-
| `domain` | Store the domain of the project. This information can be provided by the user when the project is generate with the `init` sub-command and the `domain` flag. |
137
-
| `plugins` | Defines the plugins used to do custom scaffolding, e.g. to use the optional `deploy-image/v1-alpha` plugin to do scaffolding for just a specific api via the command `kubebuider create api [options] --plugins=deploy-image/v1-alpha`. |
138
-
| `projectName` | The name of the project. This will be used to scaffold the manager data. By default it is the name of the project directory, however, it can be provided by the user in the `init` sub-command via the `--project-name` flag. |
139
-
| `repo` | The project repository which is the Golang module, e.g `github.com/example/myproject-operator`. |
140
-
| `resources` | An array of all resources which were scaffolded in the project. |
141
-
| `resources.api` | The API scaffolded in the project via the sub-command `create api`. |
142
-
| `resources.api.crdVersion` | The Kubernetes API version (`apiVersion`) used to do the scaffolding for the CRD resource. |
143
-
| `resources.api.namespaced` | The API RBAC permissions which can be namespaced or cluster scoped. |
144
-
| `resources.controller` | Indicates whether a controller was scaffolded for the API. |
145
-
| `resources.domain` | The domain of the resource which is provided by the `--domain` flag when the sub-command `create api` is used. |
146
-
| `resources.group` | The GKV group of the resource which is provided by the `--group` flag when the sub-command `create api` is used. |
147
-
| `resources.version` | The GKV version of the resource which is provided by the `--version` flag when the sub-command `create api` is used. |
148
-
| `resources.kind` | Store GKV Kind of the resource which is provided by the `--kind` flag when the sub-command `create api` is used. |
149
-
| `resources.path` | The import path for the API resource. It will be `<repo>/api/<kind>` unless the API added to the project is an external or core-type. For the core-types scenarios, the paths used are mapped [here][core-types]. |
150
-
| `resources.webhooks`| Store the webhooks data when the sub-command `create webhook` is used. |
151
-
| `resources.webhooks.webhookVersion` | The Kubernetes API version (`apiVersion`) used to scaffold the webhook resource. |
152
-
| `resources.webhooks.conversion` | It is `true` when the webhook was scaffold with the `--conversion` flag which means that is a conversion webhook. |
153
-
| `resources.webhooks.defaulting` | It is `true` when the webhook was scaffold with the `--defaulting` flag which means that is a defaulting webhook. |
154
-
| `resources.webhooks.validation` | It is `true` when the webhook was scaffold with the `--programmatic-validation` flag which means that is a validation webhook. |
| `layout` | Defines the global plugins, e.g. a project `init` with `--plugins="go/v4,deploy-image/v1-alpha"` means that any sub-command used will always call its implementation for both plugins in a chain. |
136
+
| `domain` | Store the domain of the project. This information can be provided by the user when the project is generate with the `init` sub-command and the `domain` flag. |
137
+
| `plugins` | Defines the plugins used to do custom scaffolding, e.g. to use the optional `deploy-image/v1-alpha` plugin to do scaffolding for just a specific api via the command `kubebuider create api [options] --plugins=deploy-image/v1-alpha`. |
138
+
| `projectName` | The name of the project. This will be used to scaffold the manager data. By default it is the name of the project directory, however, it can be provided by the user in the `init` sub-command via the `--project-name` flag. |
139
+
| `repo` | The project repository which is the Golang module, e.g `github.com/example/myproject-operator`. |
140
+
| `resources` | An array of all resources which were scaffolded in the project. |
141
+
| `resources.api` | The API scaffolded in the project via the sub-command `create api`. |
142
+
| `resources.api.crdVersion` | The Kubernetes API version (`apiVersion`) used to do the scaffolding for the CRD resource. |
143
+
| `resources.api.namespaced` | The API RBAC permissions which can be namespaced or cluster scoped. |
144
+
| `resources.controller` | Indicates whether a controller was scaffolded for the API. |
145
+
| `resources.domain` | The domain of the resource which was provided by the `--domain` flag when the project was initialized or via the flag `--external-api-domain` when it was used to scaffold controllers for an [External Type][external-type]. |
146
+
| `resources.group` | The GKV group of the resource which is provided by the `--group` flag when the sub-command `create api` is used. |
147
+
| `resources.version` | The GKV version of the resource which is provided by the `--version` flag when the sub-command `create api` is used. |
148
+
| `resources.kind` | Store GKV Kind of the resource which is provided by the `--kind` flag when the sub-command `create api` is used. |
149
+
| `resources.path` | The import path for the API resource. It will be `<repo>/api/<kind>` unless the API added to the project is an external or core-type. For the core-types scenarios, the paths used are mapped [here][core-types]. Or either the path informed by the flag `--external-api-path` |
150
+
| `resources.external` | It is `true` when the flag `--external-api-path` was used to generated the scaffold for an [External Type][external-type]. |
151
+
| `resources.webhooks` | Store the webhooks data when the sub-command `create webhook` is used. |
152
+
| `resources.webhooks.webhookVersion` | The Kubernetes API version (`apiVersion`) used to scaffold the webhook resource. |
153
+
| `resources.webhooks.conversion` | It is `true` when the webhook was scaffold with the `--conversion` flag which means that is a conversion webhook. |
154
+
| `resources.webhooks.defaulting` | It is `true` when the webhook was scaffold with the `--defaulting` flag which means that is a defaulting webhook. |
155
+
| `resources.webhooks.validation` | It is `true` when the webhook was scaffold with the `--programmatic-validation` flag which means that is a validation webhook. |
0 commit comments