Bug 1888550 - [Doc] operator-sdk new command doesn't support the Golang type anymore
Summary: [Doc] operator-sdk new command doesn't support the Golang type anymore
Status: NEW
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.6.0
Assignee: Vikram Goyal
QA Contact: Jian Zhang
Vikram Goyal
Depends On:
TreeView+ depends on / blocked
Reported: 2020-10-15 07:49 UTC by Jian Zhang
Modified: 2020-10-16 07:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Jian Zhang 2020-10-15 07:49:03 UTC
Document URL: 

Section Number and Name: 

Building a Go-based Operator using the Operator SDK

Describe the issue: 
For 4.6, the operator-sdk version is v.0.19.x, But, it doesn't support the Golang type.
[root@preserve-olm-env example-inc]# operator-sdk version
operator-sdk version: "v0.19.4-5-gef0bc88", commit: "ef0bc885e40e6c86c0c079bea612b4eb908f6ec5", kubernetes version: "v1.18.2", go version: "go1.14 linux/amd64"

[root@preserve-olm-env example-inc]# operator-sdk new memcached-operator
Error: required flag(s) "type" not set
      --type string                 Type of operator to initialize (choices: "ansible" or "helm")
FATA[0000] required flag(s) "type" not set 

Suggestions for improvement: 
We can use the Helm or the Ansible type instead, or still use the Golang type by using the "operator-sdk init", but the following steps are need to be updates bigly. You can refer to the steps for Golang type: https://v0-19-x.sdk.operatorframework.io/docs/golang/quickstart/

Additional information:

Note You need to log in before you can comment on or make changes to this bug.