Skip to content

Commit 0ae9f7f

Browse files
authored
Merge pull request #551 from averdagu/feat/daemonSetExportGetter
[daemonset] Make get method public
2 parents 719002a + 321e10b commit 0ae9f7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/common/daemonset/daemonset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (d *DaemonSet) CreateOrPatch(
8383
}
8484

8585
// update the daemonset object of the daemonset type
86-
d.daemonset, err = getDaemonSetWithName(ctx, h, daemonset.GetName(), daemonset.GetNamespace())
86+
d.daemonset, err = GetDaemonSetWithName(ctx, h, daemonset.GetName(), daemonset.GetNamespace())
8787
if err != nil {
8888
if k8s_errors.IsNotFound(err) {
8989
return ctrl.Result{RequeueAfter: d.timeout}, nil
@@ -112,7 +112,8 @@ func (d *DaemonSet) GetDaemonSet() appsv1.DaemonSet {
112112
return *d.daemonset
113113
}
114114

115-
func getDaemonSetWithName(
115+
// GetDaemonSetWithName - get the daemonset object with a given name.
116+
func GetDaemonSetWithName(
116117
ctx context.Context,
117118
h *helper.Helper,
118119
name string,

0 commit comments

Comments
 (0)