-
Notifications
You must be signed in to change notification settings - Fork 25
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
Epic: rebuild the Submariner operator using current best practices #81
Comments
NOTE: if #89 is approved, it should be done first. |
This is the PR for submariner-io#81 Signed-off-by: Stephen Kitt <[email protected]>
This is the PR for submariner-io#81 Signed-off-by: Stephen Kitt <[email protected]>
This is the PR for submariner-io#81 Signed-off-by: Stephen Kitt <[email protected]>
This is the PR for submariner-io#81 Signed-off-by: Stephen Kitt <[email protected]>
This is the PR for submariner-io#81 Signed-off-by: Stephen Kitt <[email protected]>
This is the PR for #81 Signed-off-by: Stephen Kitt <[email protected]>
As Andrew McNamara pointed out on Slack, this will have implications downstream that we shouldn't forget. |
I was about to make some changes to this in order to remove the need for a workaround for operator-framework/operator-sdk#5760, but stopped when I realized there may be additional implications of an update in one place. One change that I was going to make was with
|
@tpantelis @Jaanki so this is no longer planned for 0.13? |
No there's not enough time to get the PRs pushed and reviewed by Fri. |
and use the new ctrl.NewManager, which is an alias of manager.Manager to create the manager. Various options are defined at https://godocs.io/sigs.k8s.io/controller-runtime/pkg/manager#Options. Health and readyness logic is not implemented yet but are added for future usage. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
and use the new ctrl.NewManager, which is an alias of manager.Manager to create the manager. Various options are defined at https://godocs.io/sigs.k8s.io/controller-runtime/pkg/manager#Options. Health and readyness logic is not implemented yet but are added for future usage. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
and use the new ctrl.NewManager, which is an alias of manager.Manager to create the manager. Various options are defined at https://godocs.io/sigs.k8s.io/controller-runtime/pkg/manager#Options. Health and readyness logic is not implemented yet but are added for future usage. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
and use the new ctrl.NewManager, which is an alias of manager.Manager to create the manager. Various options are defined at https://godocs.io/sigs.k8s.io/controller-runtime/pkg/manager#Options. Health and readyness logic is not implemented yet but are added for future usage. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
and use the new ctrl.NewManager, which is an alias of manager.Manager to create the manager. Various options are defined at https://godocs.io/sigs.k8s.io/controller-runtime/pkg/manager#Options. Health and readyness logic is not implemented yet but are added for future usage. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. 4. Don't create packagemanifests as bundle is the recommended way to ship the operator. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. 4. Don't create packagemanifests as bundle is the recommended way to ship the operator. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. 4. Don't create packagemanifests as bundle is the recommended way to ship the operator. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. 4. Don't create packagemanifests as bundle is the recommended way to ship the operator. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to accommodate changes after operator-sdk upgrade. 1. api/submariner/v1alpha1 -> api/v1alpha1 2. pkg/client usage removed 3. other submariner projects are also updated. Fixes: stolostron#481 Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
to use kubebuilder v3. This is in line with the config new operator-sdk framework autogenerates as evident from https://github.com/Jaanki/submariner-operator/pull/10/files#diff-d1fb402f1269ba7396dca9cbd03b44ac055874669bce1d0f239fa2f54ea3584b This also requires updating operator-sdk and kustomize versions. Other changes made are: 1. Install KUSTOMIZE only if it is not locally present using the install script provided at its repo. Remove our own provided script. 2. Install controller tools only if it is not locally present. 3. Add make targets to install kustomize, operator-sdk and controller tools. This will allow users to install these versions easily. 4. Don't create packagemanifests as bundle is the recommended way to ship the operator. Part of epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
epic: submariner-io/enhancements#81 Signed-off-by: Janki Chhatbar <[email protected]>
Epic Description
The operator was built using an old version of the Operator SDK. This causes a number of problems:
We need to upgrade our operator to use the current Operator SDK, following the migration guide.
Depends on #89
Related changes
stolostron/submariner-addon#318
submariner-io/submariner-operator#1105
submariner-io/submariner-operator#1415
submariner-io/submariner-operator#1824
Acceptance Criteria
The operator’s Operator framework dependencies are up-to-date, and all tests pass.
Definition of Done (Checklist)
[ ] Uninstall[ ] Troubleshooting (gather/diagnose) added[ ] Documentation added[ ] Release notes addedWork Items
An operator was written from scratch following the official operator tutorial. The code was pushed on a fork as a PR. This PR was then used as a reference to make required changes.
The operator-sdk version is upgraded to 1.23.0. Migration guide was followed to pin versions for dependencies.
The text was updated successfully, but these errors were encountered: