Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: DanielGrunbergerCA <[email protected]>
  • Loading branch information
Daniel-GrunbergerCA committed Dec 4, 2023
1 parent f263f2f commit 80bf9fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/networkmanager/network_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ func (am *NetworkManager) handleContainerStarted(ctx context.Context, container
am.deleteResources(container)
}

func getSelectorFromWorkload(parentWL k8sinterface.IWorkload) (*metav1.LabelSelector, error) {
if parentWL.GetKind() == "CronJob" {
obj := parentWL.GetObject()
func getSelectorFromWorkload(workload k8sinterface.IWorkload) (*metav1.LabelSelector, error) {
if workload.GetKind() == "CronJob" {
obj := workload.GetObject()
jsonBytes, err := json.Marshal(obj)
if err != nil {
return nil, err
Expand All @@ -225,7 +225,7 @@ func getSelectorFromWorkload(parentWL k8sinterface.IWorkload) (*metav1.LabelSele
return selector, nil
}

selector, err := parentWL.GetSelector()
selector, err := workload.GetSelector()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 80bf9fe

Please sign in to comment.