You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we do not have any strategy to update operator-sdk version used by the project. Last time we updated it, for example, was to fix problem fixed in newer releases. Reference #1398
But we only updated the executable version, without any updates to project structure, which can cause operator-sdk commands and functionalities not work properly.
Currently, some of operator-sdk functionalities are broken in the project.
Example
These lines are wrong, pointing to an object that does not exist (buckets.oadp.openshift.io)
mkdir current
mkdir new
cd current
# Run operator-sdk commands pointing to operator-sdk executable with the current versioncd ..
cd new
# Run operator-sdk commands pointing to operator-sdk executable with the new versioncd ..
diff -ruN current new > operator-sdk-upgrade.diff
patch -p1 --verbose -d ./ -i operator-sdk-upgrade.diff
# Resolve possible conflicts
Because last step can fail, needing human intervention, do not know if it is necessary to create a script
Pros
Ensures each update does not break any operator-sdk commands or functionalities
Get updates from newer versions (Example: if we already followed these steps, we could change between docker and podman in Makefile)
Problem
Currently, we do not have any strategy to update
operator-sdk
version used by the project. Last time we updated it, for example, was to fix problem fixed in newer releases. Reference #1398But we only updated the executable version, without any updates to project structure, which can cause
operator-sdk
commands and functionalities not work properly.Currently, some of
operator-sdk
functionalities are broken in the project.Example
These lines are wrong, pointing to an object that does not exist (
buckets.oadp.openshift.io
)oadp-operator/controllers/bucket_controller.go
Lines 44 to 47 in 5b0b9fc
If we update it and run
make bundle
,config/rbac/role.yaml
is not updated.oadp-operator/config/rbac/role.yaml
Line 51 in 5b0b9fc
Solution
As proposed previously in #1250 and already being applied in NAC project (references https://github.com/migtools/oadp-non-admin/blob/master/docs/CONTRIBUTING.md#upgrade-kubebuilder-version https://github.com/migtools/oadp-non-admin/blob/master/docs/architecture.md#kubebuilde), we should update all necessary places when updating
operator-sdk
version.To avoid human mistakes of forgetting to apply a change describe in
operator-sdk
documentation, we should do this update following these instructions:Download both current and new version of
operator-sdk
from https://github.com/operator-framework/operator-sdk/releases and runPros
operator-sdk
commands or functionalitiesdocker
andpodman
in Makefile)oadp-operator/bundle/tests/scorecard/config.yaml
Line 11 in 5b0b9fc
Cons
The text was updated successfully, but these errors were encountered: