Skip to content
Snippets Groups Projects
Commit 03ed0545 authored by Alex ubuntu vm's avatar Alex ubuntu vm
Browse files

controller manager: removed innecesary prints

parent 720d2969
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
...@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 ...@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
images: images:
- name: controller - name: controller
newName: alexdecb/l2sm-operator newName: alexdecb/l2sm-controller-manager
newTag: "2.4" newTag: "2.4"
...@@ -20,14 +20,12 @@ type VnetPayload struct { ...@@ -20,14 +20,12 @@ type VnetPayload struct {
func (c *InternalClient) beginSessionController() bool { func (c *InternalClient) beginSessionController() bool {
resp, err := c.Session.Get("/vnets/api/status") resp, err := c.Session.Get("/vnets/api/status")
fmt.Println("Getting it")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
return false return false
} }
defer resp.Body.Close() defer resp.Body.Close()
fmt.Println(resp.StatusCode)
// Check if the status code indicates success (HTTP 200 OK). // Check if the status code indicates success (HTTP 200 OK).
return resp.StatusCode == http.StatusOK return resp.StatusCode == http.StatusOK
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment