Comments (1)
@itroyano Thanks for raising the issue. Some info on how this is done today:
When a new plugin is released (for ex. go/) and we would like to pull that into SDK, the developer:
- Creates a new branch and tries updating the
go.mod
. - Updates the template for scaffolding plugin in
cli.go
- - After which, the
testdata
(https://github.com/operator-framework/operator-sdk/tree/de40e5091cc33bbd08592aa1da0007d9bfad6eb9/testdata) is updated usingmake generate
. During the updation of testdata, theoperator-sdk
command then calls in the new plugin version and scaffolds out the files using theoperator-sdk <commands>
(operator-sdk/hack/generate/samples/generate_testdata.go
Lines 35 to 60 in de40e50
With this change if there is any issue during scaffolding the tests do not pass, and CI errors. There is no automation here though, but we do catch scaffolding issues before merging anything.
This works well currently with Helm and Go plugins. But with ansible (recently moved out external plugin), generation of testdata gets a bit complicated since we scaffold the templates in the external repository: https://github.com/operator-framework/ansible-operator-plugins/blob/4e8c78d21b6017ab0a280e3d274d97edf50b8fc4/hack/generate/samples/ansible/generate.go#L107. The scaffolded operator is tested in the plugin repository for any plugin update (https://github.com/operator-framework/ansible-operator-plugins/blob/main/test/e2e/ansible/suite_test.go) before updating it in SDK.
Having improvements in testing external scaffolds would be helpful, however to do so we need to discuss on how we would like to split tests between the external plugin and SDK repos.
from operator-sdk.
Related Issues (20)
- MultiNamespacedCacheBuilder is deprecated and can't be used to define the operator scope HOT 1
- Unable to (re)generate `roles.yaml` using RBAC markers HOT 4
- Operator SDK installs resources in the same namespace as the operator instead of the CRD namespace. HOT 1
- Create API/make generate controller-gen panics with a SIGSEGV HOT 3
- Support for Go version 1.21 HOT 5
- Docs website not updating HOT 1
- Error when running operator tutorial for Go HOT 3
- Meta Issue for k8s 1.30 bump HOT 1
- Operator-SDK version 1.34.1 removed RBAC privs that previous versions were correctly generating from Helm HOT 2
- Designing Lean Operators, example code is longer valid after `sigs.k8s.io/[email protected]` HOT 1
- A potential risk in operator-sdk that could lead to takeover of the cluster HOT 1
- Failed to initialize project: unable to scaffold with "base.ansible.sdk.operatorframework.io/v1" HOT 2
- Consider to support install wait for helm chart
- Unable to remove an operator
- Report the use of components with vulnerabilities in operator-sdk
- update ownership handling for consistency
- Can't generate ansible type operator with the latest operator-sdk HOT 3
- operator-sdk olm install fails on "Waiting for Deployment "olm/packageserver" to appear" HOT 1
- `make bundle` returns: error generating bundle manifests: error resolving image when `--use-image-digests` is added. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from operator-sdk.