Skip to content

Commit 750460b

Browse files
committed
scaffold: remove default for --group-name
1 parent 1a87bc4 commit 750460b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scaffold/scaffold.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func main() {
103103
pflag.BoolVar(&showVersion, "version", false, "Show version")
104104
pflag.StringVar(&config.Owner, "owner", "SAP SE", "Owner of this project, as written to the license header")
105105
pflag.BoolVar(&config.SpdxLicenseHeaders, "spdx-license-headers", false, "Whether to write license headers in SPDX format")
106-
pflag.StringVar(&config.GroupName, "group-name", "operator.kyma-project.io", "API group name")
106+
pflag.StringVar(&config.GroupName, "group-name", "", "API group name")
107107
pflag.StringVar(&config.GroupVersion, "group-version", "v1alpha1", "API group version")
108108
pflag.StringVar(&config.Kind, "kind", "", "API kind for the component")
109109
pflag.StringVar(&config.Resource, "resource", "", "API resource (plural) for the component; if empty, it will be the pluralized kind")

website/content/en/docs/usage/scaffolder.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ After installing the scaffolder, a new project can be created like this:
1414

1515
```bash
1616
scaffold \
17+
--group-name operator.kyma-project.io \
1718
--kind MyComponent \
1819
--operator-name mycomponent-operator.kyma-project.io \
1920
--go-module github.com/myorg/mycomponent-operator \
@@ -30,7 +31,7 @@ Usage: scaffold [options] [output directory]
3031
--version Show version
3132
--owner string Owner of this project, as written to the license header (default "SAP SE")
3233
--spdx-license-headers Whether to write license headers in SPDX format
33-
--group-name string API group name (default "operator.kyma-project.io")
34+
--group-name string API group name
3435
--group-version string API group version (default "v1alpha1")
3536
--kind string API kind for the component
3637
--resource string API resource (plural) for the component; if empty, it will be the pluralized kind

0 commit comments

Comments
 (0)