This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 529
Migrate code structure to kubebuilder v1.0.x #208
Comments
Thanks @shashidharatd . There is a WIP PR here #148 , hope we can get more comments from @marun to see when we can do the migration. |
Perhaps we can upgrade to kubebuilder to 1.0.3, as 1.0.3 release ships with k8s 1.11 binaries and controller-runtime/tools have also moved to k8s 1.11. |
I think the next steps for this issue are:
Here is an example of a call to a generated client: fedClient := fedclientset.NewForConfigOrDie(kubeConfig).
typeConfig, err := fedClient.CoreV1alpha1().FederatedTypeConfigs(namespace).Get(name, metav1.GetOptions{}) Here is an equivalent call with the generic client: // Assumes import of:
// - "context"
// - "sigs.k8s.io/controller-runtime/pkg/client"
genericClient, err := client.New(kubeConfig, client.Options{})
if err != nil {
...
}
typeConfig := &fedv1a1.FederatedTypeConfig{}
key := client.ObjectKey{Name: name, Namespace: namespace}
err := genericClient.Get(context.Background(), key, typeConfig) |
This was referenced Jan 2, 2019
k8s-ci-robot
pushed a commit
to kubernetes-sigs/cluster-api-provider-openstack
that referenced
this issue
Jan 4, 2019
* Basic implementation of creating networks Added ports for subnets to router Implemented cluster update Replaced glog by klog Changed usage of NetworService Now Reconcile creates an instance of NetworkService on each run. So in theory it will be possible to configure OS-Credentials per cluster. Added router to ClusterStatus Changed to only one Router Resynced Gopkg.lock Improved logs Reconciling of networks now log the default log level Added Docs to ClusterStatus.Network Recreated zz_generated with new types * Migrated to params of PR 136 * removed unneeded line * Updated Network to only hold a single subnet At the current point in time, we don't need multiple subnets, and we are not even able to configure them. Beside this, I refactored the reconciling code to return network, subnet and router instead of manipulating pointer data. * Removed unneeded clusterclient in favor of runtime.Client See also kubernetes-retired/kubefed#208 (comment) We don't need the clientset_generated any more. * Fixed typos, re-ordered fields
flaper87
pushed a commit
to flaper87/cluster-api-provider-openstack
that referenced
this issue
Jan 9, 2019
* Basic implementation of creating networks Added ports for subnets to router Implemented cluster update Replaced glog by klog Changed usage of NetworService Now Reconcile creates an instance of NetworkService on each run. So in theory it will be possible to configure OS-Credentials per cluster. Added router to ClusterStatus Changed to only one Router Resynced Gopkg.lock Improved logs Reconciling of networks now log the default log level Added Docs to ClusterStatus.Network Recreated zz_generated with new types * Migrated to params of PR 136 * removed unneeded line * Updated Network to only hold a single subnet At the current point in time, we don't need multiple subnets, and we are not even able to configure them. Beside this, I refactored the reconciling code to return network, subnet and router instead of manipulating pointer data. * Removed unneeded clusterclient in favor of runtime.Client See also kubernetes-retired/kubefed#208 (comment) We don't need the clientset_generated any more. * Fixed typos, re-ordered fields
2 tasks
This is addressed with #716 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I know this is not a urgent issue for us as of now. just adding it to backlog.
/cc @marun @gyliu513 @kubernetes-sigs/federation-wg
The text was updated successfully, but these errors were encountered: