Skip to content

Commit

Permalink
OPCT-289: CI fixes/linters added on #57
Browse files Browse the repository at this point in the history
Fix linter recommendations left behind in PR #57
  • Loading branch information
mtulio committed Aug 8, 2024
1 parent 99abdda commit 73318f9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reviewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- uses: actions/checkout@v4
- uses: reviewdog/action-misspell@v1
with:
#reporter: github-check
level: warning
# reporter: github-check
# level: warning
locale: "US"

# reviewdog / suggester: https://github.com/reviewdog/action-suggester
Expand Down
4 changes: 2 additions & 2 deletions artifacts-collector/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Multi-layer images for dependencies.
ARG BUILD_VERSION=latest
ARG PLUGIN_REPO=quay.io/opct/plugin-openshift-tests
FROM ${PLUGIN_REPO}:${BUILD_VERSION} as plugin
FROM ${PLUGIN_REPO}:${BUILD_VERSION} AS plugin

FROM quay.io/opct/tools:v0.4.0 as tools
FROM quay.io/opct/tools:v0.4.0 AS tools

# Main image
FROM quay.io/fedora/fedora-minimal:40
Expand Down
6 changes: 3 additions & 3 deletions must-gather-monitoring/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#
## Base image for must-gather-monitoring plugin
#
FROM quay.io/opct/tools:v0.4.0 as tools
FROM quay.io/opct/tools:v0.4.0 AS tools

FROM quay.io/fedora/fedora-minimal:40 as base
FROM quay.io/fedora/fedora-minimal:40 AS base
ARG QUAY_EXPIRATION=never
LABEL io.k8s.display-name="OPCT Must-Gather Monitoring" \
io.k8s.description="Collect Prometheus raw metrics from OpenShift/OCP Clusters." \
Expand All @@ -26,4 +26,4 @@ COPY runner_plugin /usr/bin/

RUN chmod u+x /usr/bin/gather* /usr/bin/runner_plugin

ENTRYPOINT /usr/bin/gather
ENTRYPOINT ["/usr/bin/gather"]
2 changes: 1 addition & 1 deletion openshift-tests-plugin/Containerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
## Base image
#
FROM quay.io/fedora/fedora-minimal:40 as base
FROM quay.io/fedora/fedora-minimal:40 AS base
RUN microdnf clean all

#
Expand Down
4 changes: 2 additions & 2 deletions openshift-tests-plugin/pkg/plugin/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,13 @@ type pluginProgressService struct {
// Send send message to sonobuoy worker service.
// TODO(mtulio): re-use keepalive HTTP connections.
func (s *pluginProgressService) Send() {
marshalled, err := json.Marshal(s)
marshaled, err := json.Marshal(s)
if err != nil {
log.WithError(err).Error("unable to marshall")
return
}

req, err := http.NewRequest("POST", s.url, bytes.NewBuffer(marshalled))
req, err := http.NewRequest("POST", s.url, bytes.NewBuffer(marshaled))
if err != nil {
log.WithError(err).Error("error creating request")
return
Expand Down

0 comments on commit 73318f9

Please sign in to comment.