-
Notifications
You must be signed in to change notification settings - Fork 255
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
Use of kustomize appears to prevent the use of operator-sdk #500
Comments
/cc @Xenwar |
The layout kustomize wants and the layout operator-sdk wants are incompatible. It is possible to specify a different location for the files for kustomize, so move those to their own directory and restore the old versions of the deploy files from the operator-sdk. Fixes metal3-io#500 Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
@dhellmann is it not possible to instruct operator-sdk to use |
The problem is it wants The SDK output is how we manage the generated code. The kustomize files are one particular way to deploy that code. Ideally the kustomize stuff would be in its own repository, since there are going to be other opinionated ways to deploy (OpenShift has a different way, for example). But it's fine with me to keep everything here in this repository for convenience, as long as we don't have the tools fighting with each other over who owns which files. |
Sorry my mistake, I meant is it not possible to instruct operator-sdk to use |
The point is that the contents of the deploy directory are owned by the operator-sdk. It generates those files and does not expect anything else to be moving them around or heavily modifying them. Is there a technical reason for us to have the kustomize versions of the files also under the deploy directory? |
Nope. It was a curious query. I was thinking would it be a good idea to keep multiple copies of same files in different locations and then it would also require back-porting the changes from one to the other (whenever there is any). Instead I am thinking if we can keep those files which operator-sdk needs in deploy/ folder instead of their own subdirectories and still use the same for kustomize. Kustomize is not modifying |
The layout kustomize wants and the layout operator-sdk wants are incompatible. It is possible to specify a different location for the files for kustomize, so move those to their own directory and restore the old versions of the deploy files from the operator-sdk. Fixes metal3-io#500 Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
Create a symlink from deploy/role.yaml to deploy/rbac/role.yaml so that the operator-sdk will find the role file it needs for the `add api` command. We cannot make the link in the opposite direction because kustomize refuses to follow symlinks outside of the directory where its configuration is. Fixes metal3-io#500 Related to metal3-io#434 Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
The changes started in 4c170b0 to add kustomize support seem to have broken the operator-sdk code generator, so adding a new API version to fix #434 is going to be harder.
The role file has been moved
The text was updated successfully, but these errors were encountered: