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)
- 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
- Unable to List Secrets in Cluster Scope with Go Reconciler HOT 1
- The infinite increase of release version in Helm operator. HOT 5
- Go Operator Tutorial HOT 1
- Meta: Important Issues Needing Resolution Before New Release
- OLM doesn't add imagePullSecrets value to the operator service account after upgrading to SDK 1.34.1 HOT 5
- FATA[0008] Failed to run bundle: load bundle metadata: metadata not found HOT 2
- `+operator-sdk:csv:customresourcedefinitions:order` does not change order in bundle
- Not able to run update and upgrade to fix CVEs HOT 2
- Operator SDK + Kubebuilder compatibility matrix HOT 3
- Quickstart instructions leads runtime panic HOT 1
- Go Operator Tutorial: plugins version issue HOT 2
- `WATCH_NAMESPACE` environment variable doesn't work for the Helm Operator HOT 3
- olm-spec-descriptors test validates alm-examples with the incorrect CRD
- Unable to deploy CNF when there are some metrics apiservices are in False or FailedDiscoveryCheck HOT 8
- Enable OpenSSF Scorecard to enhance security practices across the project
- Does Reconcile have time constraints / How much time can reconcile consume?
- `generate bundle`: Support overwriting of `annotations.yaml`
- Support Go 1.22 (or 1.23) 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.