Skip to content

Ansible plugin is not scaffolding roles.  #3556

@camilamacedo86

Description

@camilamacedo86

What did you do?

operator-sdk init --plugins=ansible --group cache --version v1 --kind Memcached

What did you expect to see?

The same result of $ operator-sdk new memcached-operator --api-version=cache.example.com/v1 --kind=Memcached --type=ansible

  • The roles directory scaffolded with the Memcached:
$ tree
.
└── memcached
    ├── README.md
    ├── defaults
    │   └── main.yml
    ├── files
    ├── handlers
    │   └── main.yml
    ├── meta
    │   └── main.yml
    ├── tasks
    │   └── main.yml
    ├── templates
    └── vars
        └── main.yml
  • The watches updated with role: memcached
 $ cat watches.yaml 
---
- version: v1alpha1
  group: cache.example.com
  kind: Memcached
  role: memcached

What did you see instead? Under which circumstances?

  • The roles dir is empty
  • The watches.yaml not updated with role: memcached:
$ cat watches.yaml 
---
# Use the 'create api' subcommand to add watches to this file.
- version: v1
  group: cache.my.domain
  kind: Memcached
  # FIXME: Specify the role or playbook for this resource.
# +kubebuilder:scaffold:watch

Environment

  • operator-sdk version: master

Additional context
The issue is over a work that is WIP just is master and was tracked just for we know what needs to be done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.language/ansibleIssue is related to an Ansible operator project

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions