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
newCmd.Flags().StringVar(&apiVersion, "api-version", "", "Kubernetes apiVersion and has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1)")
Scaffolds a Go Operator for a corresponding Helm Chart.
13
11
14
12
### Args
15
13
*`operator-name` - name of the new operator
16
14
17
15
### Flags
18
-
*`--helm-chart` - Name of the helm chart. If using an external repo, specify the name within the repo i.e. `nginx`. If using a local chart provide `path/to/chart`
19
-
*`--helm-chart-repo` - Specify external chart repo if necessary.
20
-
*`--helm-chart-version` - Specify external chart version if necessary.
21
-
*`--username` - Specify external repo username if necessary.
22
-
*`--password` - Specify external repo password if necessary.
23
-
*`--helm-chart-cert-file` - Specify Cert File for external repo if necessary.
24
-
*`--helm-chart-key-file` - Specify Key File for external repo if necessary.
25
-
*`--helm-chart-ca-file` - Specify CA File for external repo if necessary.
26
-
*`--api-version` - Kubernetes API Version and has a format of `<groupName>/<version>` i.e. `app.example.com/v1alpha1`
***Required:**`--helm-chart` - Name of the helm chart. If using an external repo, specify the name within the repo i.e. `nginx`. If using a local chart provide `path/to/chart`
17
+
*`--helm-chart-repo` - Specify external chart repo if necessary.
18
+
*`--helm-chart-version` - Specify external chart version if necessary.
19
+
*`--username` - Specify external repo username if necessary.
20
+
*`--password` - Specify external repo password if necessary.
21
+
*`--helm-chart-cert-file` - Specify Cert File for external repo if necessary.
22
+
*`--helm-chart-key-file` - Specify Key File for external repo if necessary.
23
+
*`--helm-chart-ca-file` - Specify CA File for external repo if necessary.
24
+
***Required:**`--api-version` - Kubernetes API Version and has a format of `<groupName>/<version>` i.e. `app.example.com/v1alpha1`
fmt.Printf("Resource: %v has a deprecated API version. Please enter 'continue' to proceed without this resource or 'stop' to exit the program: ", reflect.TypeOf(rconfig.r))
32
+
fmt.Printf("Resource: %v has a deprecated API version. Please enter 'continue' to proceed without this resource or 'stop' to exit the program: ", reflect.TypeOf(rconfig.resource))
35
33
text, _:=reader.ReadString('\n')
36
34
ifisStop(text) {
37
-
cleanUpAndExit()
35
+
cleanUpAndExit(resourcesPath)
38
36
}
39
37
ifisContinue(text) {
40
-
addResourceToContinue(&validMap, f.Name())
38
+
addResourceToContinue(&validMap, file.Name())
41
39
}
42
40
} elseife=="unsupported" {
43
41
44
-
fmt.Printf("Resource: %v is unsupported. Please enter 'continue' to proceed without this resource, or 'stop' to exit the program: ", reflect.TypeOf(rconfig.r))
42
+
fmt.Printf("Resource: %v is unsupported. Please enter 'continue' to proceed without this resource, or 'stop' to exit the program: ", reflect.TypeOf(rconfig.resource))
0 commit comments