diff --git a/charts/k3k/values.yaml b/charts/k3k/values.yaml index 6b251aa..224bdf3 100644 --- a/charts/k3k/values.yaml +++ b/charts/k3k/values.yaml @@ -12,7 +12,8 @@ nameOverride: "" fullnameOverride: "" host: -# clusterCIDR specifies the clusterCIDR that will be added to the default networkpolicy for clustersets +# clusterCIDR specifies the clusterCIDR that will be added to the default networkpolicy for clustersets, if not set +# the controller will collect the PodCIDRs of all the nodes on the system. clusterCIDR: "" serviceAccount: diff --git a/pkg/controller/cluster/pod.go b/pkg/controller/cluster/pod.go index 2d019cc..77c9c7c 100644 --- a/pkg/controller/cluster/pod.go +++ b/pkg/controller/cluster/pod.go @@ -68,8 +68,7 @@ func (p *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r clusterName := s[1] var cluster v1alpha1.Cluster if err := p.Client.Get(ctx, types.NamespacedName{Name: clusterName}, &cluster); err != nil { - if apierrors.IsNotFound(err) { - } + if !apierrors.IsNotFound(err) { return reconcile.Result{}, err } }