@@ -23,7 +23,6 @@ import (
2323
2424 "gitee.com/zongzw/bigip-kubernetes-gateway/pkg"
2525 "gitee.com/zongzw/f5-bigip-rest/utils"
26- v1 "k8s.io/api/core/v1"
2726 "k8s.io/apimachinery/pkg/runtime"
2827 ctrl "sigs.k8s.io/controller-runtime"
2928 "sigs.k8s.io/controller-runtime/pkg/client"
@@ -69,35 +68,6 @@ func (r *GatewayClassReconciler) Reconcile(ctx context.Context, req ctrl.Request
6968 }
7069 } else {
7170 ngwc := obj .DeepCopy ()
72- // TODO: add logic more here. but don't want to compare configmap modifications and execute each time?
73- // create partiton in the bigip here since we consider gwc name to be partiton name
74- if ngwc .Spec .ParametersRef != nil {
75- if string (ngwc .Spec .ParametersRef .Group ) != "" ||
76- string (ngwc .Spec .ParametersRef .Kind ) != "ConfigMap" {
77- return ctrl.Result {}, fmt .Errorf ("not supported parameter ref type: %v/%v" ,
78- ngwc .Spec .ParametersRef .Group , ngwc .Spec .ParametersRef .Kind )
79- }
80-
81- if ngwc .Spec .ParametersRef .Namespace == nil {
82- zlog .V (1 ).Info ("parameterRef's namespace cannot be nil" )
83- return ctrl.Result {}, err
84- }
85-
86- key := client.ObjectKey {
87- Namespace : string (* ngwc .Spec .ParametersRef .Namespace ),
88- Name : ngwc .Spec .ParametersRef .Name ,
89- }
90-
91- cm := & v1.ConfigMap {}
92- if err := r .Get (ctx , key , cm ); err != nil {
93- return ctrl.Result {}, err
94- } else {
95- zlog .V (1 ).Info ("to handle configmap: " + utils .Keyname (cm .Namespace , cm .Name ))
96-
97- // TODO: add more config for bigip here
98- // e.g. pkg.ActiveSIGs.Bigip.CreateVxlanTunnel(cm.Data["flannel_vxlan_tunnel_name"], cm.Data["flannel_vxlan_tunnel_port"])
99- }
100- }
10171
10272 ngwc .Status .Conditions = []metav1.Condition {
10373 {
0 commit comments