Skip to content

Docs: reference to old boilerplate code  #3460

@deepak1725

Description

@deepak1725

Bug Report

Docs are still referring to old Boilerplate code.
https://sdk.operatorframework.io/docs/golang/quickstart/#manager

Docs refers:

manager.New(cfg, manager.Options{Namespace: namespace}) which doesn't exists.

Example Ref.
https://github.com/operator-framework/operator-sdk-samples/tree/master/go/kubebuilder/memcached-operator

What did you do?
Operator Migration v0.18 -> 0.19

What did you expect to see?

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
		...
		Namespace: 			"mynamespace"
	})

What did you see instead? Under which circumstances?

manager.New(cfg, manager.Options{Namespace: namespace}) doesn't exists.

Environment

  • operator-sdk version: 0.19

  • go version: 0.14

  • Kubernetes version information: 1.18

  • Kubernetes cluster kind: minikube

  • Are you writing your operator in ansible, helm, or go? Go

Possible Solution
Docs Fix

Additional context
Please traverse docs and follow each and every instruction written there Practically.
Only then we can identify Gaps.

It's Problematic to raise issues at every step.

Metadata

Metadata

Labels

kind/documentationCategorizes issue or PR as related to documentation.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions