Skip to content

Unable to Create Deployment for Memcached example using operator-sdk #3590

@atef23

Description

@atef23

Type of question

Setting up a new project with operator sdk version 0.19

Question

What did you do?
Created a new Memcached golang operator using the guide for the operator-sdk here:

https://sdk.operatorframework.io/docs/golang/quickstart/

and the stock controller from the operator-sdk source:
https://github.com/operator-framework/operator-sdk/blob/master/example/memcached-operator/memcached_controller.go.tmpl

What did you expect to see?
A deployment created upon applying the cr for the Memcached CRD.

What did you see instead? Under which circumstances?

The Memcached CRD gets created and a pod with the controller using my Memcached operator image gets created but when I attempt to apply the CR and create instances of the Memcached operator which should create deployment objects, I don't see any events or errors but no deployment gets created either.

Environment

  • operator-sdk version:
    v0.19.0

  • Kubernetes version information:

4.3.1

  • Kubernetes cluster kind:

Additional context
I was able to get this working when creating an operator using the old scaffolding from operator-sdk v0.17

Screenshot from 2020-07-28 20-17-17

I see the instances of the Memcached operator but the controller doesn't create the deployment. Am I missing something with registering the controller with the manager or something?

Thanks,

Atef

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions