Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Molecule scenarios not generated as documented #32

Open
paterczm opened this issue Jul 4, 2023 · 3 comments
Open

Molecule scenarios not generated as documented #32

paterczm opened this issue Jul 4, 2023 · 3 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation.

Comments

@paterczm
Copy link

paterczm commented Jul 4, 2023

Hello!

I'm following the testing-guide for ansible operator generated with operator-sdk. The doc states that default, test-local and cluster directories/scenarios should be created inside the molecule directory. However, I only see default and kind directories. What am I missing? Should the documentation be updated?

Steps to reproduce:

$ operator-sdk version
operator-sdk version: "v1.30.0", commit: "b794fe909abc1affa1f28cfb75ceaf3bf79187e6", kubernetes version: "1.26.0", go version: "go1.19.10", GOOS: "linux", GOARCH: "amd64"

$ operator-sdk init --domain example.com --plugins ansible
Writing kustomize manifests for you to edit...
Next: define a resource with:
$ operator-sdk create api

$ operator-sdk create api --group cache --version v1alpha1 --kind Memcached --generate-role
Writing kustomize manifests for you to edit...

Actual results:

$ tree molecule/
molecule/
├── default
│   ├── converge.yml
│   ├── create.yml
│   ├── destroy.yml
│   ├── kustomize.yml
│   ├── molecule.yml
│   ├── prepare.yml
│   ├── tasks
│   │   └── memcached_test.yml
│   └── verify.yml
└── kind
    ├── converge.yml
    ├── create.yml
    ├── destroy.yml
    └── molecule.yml

Expected results:

Default, test-local and cluster directories/scenarios should be created inside the molecule directory, as documented.

@everettraven
Copy link
Collaborator

@paterczm Thanks for pointing this out! Looking at the git blame of these docs it looks like this particular doc is in need of an update as the last significant change to it was ~3 years ago.

/label kind/documentation

@openshift-ci
Copy link

openshift-ci bot commented Jul 5, 2023

@everettraven: The label(s) /label kind/documentation cannot be applied. These labels are supported: platform/aws, platform/azure, platform/baremetal, platform/google, platform/libvirt, platform/openstack, ga, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, px-approved, docs-approved, qe-approved, downstream-change-needed, rebase/manual, approved, backport-risk-assessed, bugzilla/valid-bug, cherry-pick-approved, jira/valid-bug, staff-eng-approved. Is this label configured under labels -> additional_labels or labels -> restricted_labels in plugin.yaml?

In response to this:

@paterczm Thanks for pointing this out! Looking at the git blame of these docs it looks like this particular doc is in need of an update as the last significant change to it was ~3 years ago.

/label kind/documentation

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@everettraven everettraven added the kind/documentation Categorizes issue or PR as related to documentation. label Jul 5, 2023
@everettraven
Copy link
Collaborator

@paterczm Would you be interested in helping update this documentation?

@everettraven everettraven removed their assignment Jul 10, 2023
@everettraven everettraven added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jul 10, 2023
@everettraven everettraven transferred this issue from operator-framework/operator-sdk Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

2 participants