Skip to content

Commit

Permalink
change print method
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Feb 13, 2024
1 parent 3ea199a commit 1abf5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/controller/resource/ciliumnetpol/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error {
}

ciliumnetpol, err := r.dynamicK8sClient.Resource(resource).Get(ctx, desired.GetName(), metav1.GetOptions{})
r.logger.Log(ciliumnetpol)
r.logger.Debugf(ctx, "ciliumnetpol: %#v", ciliumnetpol)
if apierrors.IsNotFound(err) {
_, err = r.dynamicK8sClient.Resource(resource).Namespace(desired.GetNamespace()).Create(ctx, desired, metav1.CreateOptions{})
}
Expand Down

0 comments on commit 1abf5c3

Please sign in to comment.