From 72633d65767ada9a08c813706a7758a2a102ac29 Mon Sep 17 00:00:00 2001 From: Flavius Lacatusu Date: Tue, 19 Sep 2023 14:31:59 +0200 Subject: [PATCH] Remove unused vars --- .tekton/backend-quality-dashboard-pull-request.yaml | 2 +- .tekton/backend-quality-dashboard-push.yaml | 2 +- .tekton/dex-quality-dashboard-pull-request.yaml | 2 +- .tekton/dex-quality-dashboard-push.yaml | 2 +- .tekton/frontend-quality-dashboard-pull-request.yaml | 2 +- .tekton/frontend-quality-dashboard-push.yaml | 2 +- backend/api/server/rotate.go | 11 ----------- backend/go.mod | 1 - backend/go.sum | 3 --- 9 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.tekton/backend-quality-dashboard-pull-request.yaml b/.tekton/backend-quality-dashboard-pull-request.yaml index ab3dd97e..fce544bf 100644 --- a/.tekton/backend-quality-dashboard-pull-request.yaml +++ b/.tekton/backend-quality-dashboard-pull-request.yaml @@ -292,7 +292,7 @@ spec: - name: name value: clair-scan - name: bundle - value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:c5602d9d6dd797da98e98fde8471ea55a788c30f74f2192807910ce5436e9b66 + value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8 - name: kind value: task resolver: bundles diff --git a/.tekton/backend-quality-dashboard-push.yaml b/.tekton/backend-quality-dashboard-push.yaml index 40d01103..0d441d53 100644 --- a/.tekton/backend-quality-dashboard-push.yaml +++ b/.tekton/backend-quality-dashboard-push.yaml @@ -289,7 +289,7 @@ spec: - name: name value: clair-scan - name: bundle - value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:c5602d9d6dd797da98e98fde8471ea55a788c30f74f2192807910ce5436e9b66 + value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8 - name: kind value: task resolver: bundles diff --git a/.tekton/dex-quality-dashboard-pull-request.yaml b/.tekton/dex-quality-dashboard-pull-request.yaml index b82f97af..00a86dc1 100644 --- a/.tekton/dex-quality-dashboard-pull-request.yaml +++ b/.tekton/dex-quality-dashboard-pull-request.yaml @@ -292,7 +292,7 @@ spec: - name: name value: clair-scan - name: bundle - value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:c5602d9d6dd797da98e98fde8471ea55a788c30f74f2192807910ce5436e9b66 + value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8 - name: kind value: task resolver: bundles diff --git a/.tekton/dex-quality-dashboard-push.yaml b/.tekton/dex-quality-dashboard-push.yaml index a20e6458..c9c84599 100644 --- a/.tekton/dex-quality-dashboard-push.yaml +++ b/.tekton/dex-quality-dashboard-push.yaml @@ -289,7 +289,7 @@ spec: - name: name value: clair-scan - name: bundle - value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:c5602d9d6dd797da98e98fde8471ea55a788c30f74f2192807910ce5436e9b66 + value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8 - name: kind value: task resolver: bundles diff --git a/.tekton/frontend-quality-dashboard-pull-request.yaml b/.tekton/frontend-quality-dashboard-pull-request.yaml index a82c0013..c11cc3f6 100644 --- a/.tekton/frontend-quality-dashboard-pull-request.yaml +++ b/.tekton/frontend-quality-dashboard-pull-request.yaml @@ -292,7 +292,7 @@ spec: - name: name value: clair-scan - name: bundle - value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:c5602d9d6dd797da98e98fde8471ea55a788c30f74f2192807910ce5436e9b66 + value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8 - name: kind value: task resolver: bundles diff --git a/.tekton/frontend-quality-dashboard-push.yaml b/.tekton/frontend-quality-dashboard-push.yaml index 56a8749a..01cf6e18 100644 --- a/.tekton/frontend-quality-dashboard-push.yaml +++ b/.tekton/frontend-quality-dashboard-push.yaml @@ -289,7 +289,7 @@ spec: - name: name value: clair-scan - name: bundle - value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:c5602d9d6dd797da98e98fde8471ea55a788c30f74f2192807910ce5436e9b66 + value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8 - name: kind value: task resolver: bundles diff --git a/backend/api/server/rotate.go b/backend/api/server/rotate.go index 7f60a4df..c93ea72b 100644 --- a/backend/api/server/rotate.go +++ b/backend/api/server/rotate.go @@ -71,17 +71,6 @@ func staticRotationStrategy() rotationStrategy { } } -/** -bugs := s.Jira.GetBugsByJQLQuery(fmt.Sprintf("project in (%s) AND type = Bug", teams.JiraKeys)) -if err := s.Storage.CreateJiraBug(bugs, teams); err != nil { - return httputils.WriteJSON(w, http.StatusInternalServerError, &types.ErrorResponse{ - Message: err.Error(), - StatusCode: http.StatusInternalServerError, - }) -} - -*/ - func (s *Server) rotateJiraBugs(jiraKeys string, team *db.Teams) error { bugs := s.cfg.Jira.GetBugsByJQLQuery(fmt.Sprintf("project in (%s) AND type = Bug", team.JiraKeys)) if err := s.cfg.Storage.CreateJiraBug(bugs, team); err != nil { diff --git a/backend/go.mod b/backend/go.mod index 782a55dd..059bfed0 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -7,7 +7,6 @@ require ( github.com/andygrunwald/go-jira v1.16.0 github.com/coreos/go-oidc v2.1.0+incompatible github.com/devfile/library v1.3.0 - github.com/etherlabsio/healthcheck/v2 v2.0.0 github.com/google/go-github/v44 v44.1.0 github.com/google/uuid v1.3.0 github.com/gorilla/mux v1.8.0 diff --git a/backend/go.sum b/backend/go.sum index ca7f4a1f..635fbd20 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -351,8 +351,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/etherlabsio/healthcheck/v2 v2.0.0 h1:oKq8cbpwM/yNGPXf2Sff6MIjVUjx/pGYFydWzeK2MpA= -github.com/etherlabsio/healthcheck/v2 v2.0.0/go.mod h1:huNVOjKzu6FI1eaO1CGD3ZjhrmPWf5Obu/pzpI6/wog= github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= @@ -938,7 +936,6 @@ github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3 github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=