Skip to content

Commit

Permalink
[daemonset] Make get method public
Browse files Browse the repository at this point in the history
Needed-by: openstack-k8s-operators/ovn-operator#337
Related: OSPRH-7463
  • Loading branch information
averdagu committed Aug 13, 2024
1 parent 719002a commit 44ac575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/common/daemonset/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (d *DaemonSet) CreateOrPatch(
}

// update the daemonset object of the daemonset type
d.daemonset, err = getDaemonSetWithName(ctx, h, daemonset.GetName(), daemonset.GetNamespace())
d.daemonset, err = GetDaemonSetWithName(ctx, h, daemonset.GetName(), daemonset.GetNamespace())
if err != nil {
if k8s_errors.IsNotFound(err) {
return ctrl.Result{RequeueAfter: d.timeout}, nil
Expand Down Expand Up @@ -112,7 +112,7 @@ func (d *DaemonSet) GetDaemonSet() appsv1.DaemonSet {
return *d.daemonset
}

func getDaemonSetWithName(
func GetDaemonSetWithName(
ctx context.Context,
h *helper.Helper,
name string,
Expand Down

0 comments on commit 44ac575

Please sign in to comment.