Comments (6)
It depends.
For the behavior, if the input is deterministic, and output is deterministic, then it is safe to skip anything that already exists.
if app-operator folder has been created already
IMHO, this is not enough to determine if the output is what we want to generate.
from operator-sdk.
this is not enough to determine if the output is what we want to generate
@hongchaodeng Can you explain your concern a bit more.
I was thinking that the expected behavior from operator-sdk new <project-name>
is to simply create a new project if it does not exist.
So there are two cases:
- If a directory with
<project-name>
already exists in the current working directory then the command should output an error saying it already exists. Doesn't matter are the contents of that directory. - If there is no directory, then create a new project.
from operator-sdk.
I think the solution @hasbro17 mentioned above is good enough.
Can you explain your concern a bit more.
Not really a concern. As mentioned above, in order to skip some files and generate the rest, it needs both the input and output to be deterministic. Just checking the folder exists not enough.
from operator-sdk.
Sounds good. @fanminshi We'll proceed with the above mentioned behavior for now.
from operator-sdk.
yep!
from operator-sdk.
fixed via #85
from operator-sdk.
Related Issues (20)
- My helm operator hang after I upgraded helm-operator from v1.33.0 to v1.34.0 HOT 7
- Helm operator does not create pods for new CR instance after I switch helm-operator from v1.33.0 to v1.34.0 HOT 4
- go.opentelemetry.io/otel/trace broken when scaffolding webhook HOT 3
- Go Operator Tutorial: Not able to create Initial Project HOT 2
- Helm operator does not update CR child serviceaccount ImagePullSecret when watched CR ImagePullSecret changed. HOT 3
- r.Recorder is nil. Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference HOT 1
- Version `1.34.1` `make bundle` Produces an Incomplete/Unusable Bundle
- Can operator-sdk run bundle use local image? HOT 2
- Update golang Operator docs for "Advanced Topics - Leader Election - Leader-with-lease"
- Go Operator Tutorial Page: Incorrect Link(s) and some file path corrections HOT 2
- Bundle generation issues warnings for APIs removed in k8s 1.25 but their v2 is still available HOT 1
- Default labels do not comply with recommendation HOT 1
- operator sdk 1.34 broken with ansible
- Helm-based operator does not reconcile operand with base image v1.34.0 HOT 3
- Release name must not be longer than 53 HOT 1
- Struct Type String Value Empty on Reconciliation HOT 1
- SyncPeriod for controllers HOT 1
- 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
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.