Skip to content

Commit

Permalink
oc line issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalia Khater committed Jun 6, 2023
1 parent bf492ec commit 0297f17
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pkg/operator/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,22 +775,22 @@ func (optr *Operator) syncMachineOSBuilder(config *renderConfig) error {
return optr.syncControllerConfig(config)
}

func (optr *Operator) checkForOnClusterBuild(config *renderConfig) error {

pools, err := optr.mcpLister.List(labels.Everything())
if err != nil {
glog.Fatal(err)
}
for _, pool := range pools {
labels := pool.GetLabels()
if val, ok := labels["on-cluster-build"]; ok && val == "true" {
fmt.Printf("Pool %s is labeled with 'on-cluster-build'. Starting the build controller pod.\n", pool.Name)
startBuildControllerPod()
}
}

return nil
}
// func (optr *Operator) checkForOnClusterBuild(config *renderConfig) error {

// pools, err := optr.mcpLister.List(labels.Everything())
// if err != nil {
// glog.Fatal(err)
// }
// for _, pool := range pools {
// labels := pool.GetLabels()
// if val, ok := labels["on-cluster-build"]; ok && val == "true" {
// fmt.Printf("Pool %s is labeled with 'on-cluster-build'. Starting the build controller pod.\n", pool.Name)
// startBuildControllerPod()
// }
// }

// return nil
// }

func startBuildControllerPod() {
fmt.Printf("hello this starts the build controller pod\n")
Expand Down

0 comments on commit 0297f17

Please sign in to comment.