Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit b5960b1

Browse files
committed
Fix CI
1 parent c10e513 commit b5960b1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
with:
4242
go-version: ${{ env.GO_VERSION }}
4343
- name: Build Binary
44-
run: make binary
44+
run: make build
4545
- name: Cache Artifacts
4646
uses: actions/[email protected]
4747
with:
48-
path: ${{ github.workspace }}/build/_output/bin/nginx-ingress-operator
48+
path: ${{ github.workspace }}/bin/manager
4949
key: nginx-ingress-operator-${{ github.run_id }}-${{ github.run_number }}
5050

5151
unit-tests:
@@ -71,7 +71,7 @@ jobs:
7171
- name: Fetch Cached Artifacts
7272
uses: actions/[email protected]
7373
with:
74-
path: ${{ github.workspace }}/build/_output/bin/nginx-ingress-operator
74+
path: ${{ github.workspace }}/bin/manager
7575
key: nginx-ingress-operator-${{ github.run_id }}-${{ github.run_number }}
7676
- name: Docker Buildx
7777
uses: docker/setup-buildx-action@v1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ build: generate fmt vet ## Build manager binary.
9797
go build -o bin/manager main.go
9898

9999
run: manifests generate fmt vet ## Run a controller from your host.
100-
go run ./main.go
100+
go run ./main.go $(ARGS)
101101

102102
docker-build: test ## Build docker image with the manager.
103103
docker build -t ${IMG} .

controllers/nginxingresscontroller_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (r *NginxIngressControllerReconciler) Reconcile(ctx context.Context, req ct
225225
extraLabels = instance.Spec.Service.ExtraLabels
226226
}
227227
res, err := controllerutil.CreateOrUpdate(ctx, r.Client, svc, serviceMutateFn(svc, instance.Spec.ServiceType, extraLabels))
228-
log.Info(fmt.Sprintf("Service %s %s", svc.Name, res))
228+
log.V(1).Info(fmt.Sprintf("Service %s %s", svc.Name, res))
229229
if err != nil {
230230
return ctrl.Result{}, err
231231
}
@@ -235,7 +235,7 @@ func (r *NginxIngressControllerReconciler) Reconcile(ctx context.Context, req ct
235235
return ctrl.Result{}, err
236236
}
237237
res, err = controllerutil.CreateOrUpdate(ctx, r.Client, cm, configMapMutateFn(cm, instance.Spec.ConfigMapData))
238-
log.Info(fmt.Sprintf("ConfigMap %s %s", svc.Name, res))
238+
log.V(1).Info(fmt.Sprintf("ConfigMap %s %s", svc.Name, res))
239239
if err != nil {
240240
return ctrl.Result{}, err
241241
}

0 commit comments

Comments
 (0)