Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
chore: Rename starboard-security-operator to starboard-operator (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <[email protected]>
  • Loading branch information
danielpacak authored Sep 15, 2020
1 parent 40f476f commit 5c84e21
Show file tree
Hide file tree
Showing 18 changed files with 38 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ changelog:
dockers:
- dockerfile: Dockerfile.operator
image_templates:
- "docker.io/aquasec/starboard-security-operator:{{ .Version }}"
- "docker.io/aquasec/starboard-operator:{{ .Version }}"
binaries:
- operator
- dockerfile: Dockerfile.scanner
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export CGO_ENABLED=0

SOURCES := $(shell find . -name '*.go')
IMAGE_TAG := dev
OPERATOR_IMAGE := aquasec/starboard-security-operator:$(IMAGE_TAG)
OPERATOR_IMAGE := aquasec/starboard-operator:$(IMAGE_TAG)
SCANNER_IMAGE := aquasec/starboard-scanner-aqua:$(IMAGE_TAG)

.PHONY: modules
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# starboard-security-operator
# starboard-operator

[![GitHub Release][release-img]][release]
[![GitHub Build Actions][build-action-img]][actions]
Expand Down Expand Up @@ -55,9 +55,9 @@ a Kubernetes cluster - for example, initiating a vulnerability scan when a new p

![](docs/starboard-operator.png)

[release-img]: https://img.shields.io/github/release/aquasecurity/starboard-security-operator.svg?logo=github
[release]: https://github.com/aquasecurity/starboard-security-operator/releases
[build-action-img]: https://github.com/aquasecurity/starboard-security-operator/workflows/build/badge.svg
[actions]: https://github.com/aquasecurity/starboard-security-operator/actions
[cov-img]: https://codecov.io/github/aquasecurity/starboard-security-operator/branch/master/graph/badge.svg
[cov]: https://codecov.io/github/aquasecurity/starboard-security-operator
[release-img]: https://img.shields.io/github/release/aquasecurity/starboard-operator.svg?logo=github
[release]: https://github.com/aquasecurity/starboard-operator/releases
[build-action-img]: https://github.com/aquasecurity/starboard-operator/workflows/build/badge.svg
[actions]: https://github.com/aquasecurity/starboard-operator/actions
[cov-img]: https://codecov.io/github/aquasecurity/starboard-operator/branch/master/graph/badge.svg
[cov]: https://codecov.io/github/aquasecurity/starboard-operator
14 changes: 7 additions & 7 deletions cmd/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import (
"errors"
"fmt"

"github.com/aquasecurity/starboard-security-operator/pkg/logs"
"github.com/aquasecurity/starboard-operator/pkg/logs"
"k8s.io/client-go/kubernetes"

"github.com/aquasecurity/starboard-security-operator/pkg/aqua"
"github.com/aquasecurity/starboard-operator/pkg/aqua"

"github.com/aquasecurity/starboard-security-operator/pkg/scanner"
"github.com/aquasecurity/starboard-security-operator/pkg/trivy"
"github.com/aquasecurity/starboard-operator/pkg/scanner"
"github.com/aquasecurity/starboard-operator/pkg/trivy"

appsv1 "k8s.io/api/apps/v1"

"github.com/aquasecurity/starboard-security-operator/pkg/reports"
"github.com/aquasecurity/starboard-operator/pkg/reports"

"github.com/aquasecurity/starboard-security-operator/pkg/controllers"
"github.com/aquasecurity/starboard-security-operator/pkg/etc"
"github.com/aquasecurity/starboard-operator/pkg/controllers"
"github.com/aquasecurity/starboard-operator/pkg/etc"
starboardv1alpha1 "github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
batchv1 "k8s.io/api/batch/v1"

Expand Down
6 changes: 3 additions & 3 deletions cmd/scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/spf13/cobra"

"github.com/aquasecurity/starboard-security-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard-security-operator/pkg/aqua/scanner/api"
"github.com/aquasecurity/starboard-security-operator/pkg/aqua/scanner/cli"
"github.com/aquasecurity/starboard-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard-operator/pkg/aqua/scanner/api"
"github.com/aquasecurity/starboard-operator/pkg/aqua/scanner/cli"
"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
)

Expand Down
2 changes: 1 addition & 1 deletion deploy/starboard-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
fsGroup: 10000
containers:
- name: operator
image: aquasec/starboard-security-operator:dev
image: aquasec/starboard-operator:dev
imagePullPolicy: IfNotPresent
securityContext:
privileged: false
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/aquasecurity/starboard-security-operator
module github.com/aquasecurity/starboard-operator

go 1.14

Expand Down Expand Up @@ -26,5 +26,4 @@ replace (
k8s.io/cli-runtime => k8s.io/cli-runtime v0.18.4
k8s.io/client-go => k8s.io/client-go v0.18.4
k8s.io/code-generator => k8s.io/code-generator v0.18.4
k8s.io/metrics => k8s.io/metrics v0.18.4
)
8 changes: 0 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,11 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.2/go.mod h1:vNeuVxBJEsws4ogUvrchl83t
github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-retryablehttp v0.6.4/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
Expand Down Expand Up @@ -553,7 +551,6 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg=
github.com/onsi/ginkgo v1.12.1 h1:mFwc4LvZ0xpSvDZ3E+k8Yte0hLOMxXUlP+yXtJqkYfQ=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA=
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
Expand Down Expand Up @@ -581,7 +578,6 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w=
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
Expand Down Expand Up @@ -662,7 +658,6 @@ github.com/spf13/viper v1.6.1/go.mod h1:t3iDnF5Jlj76alVNuyFBk5oUMCvsrkbvZK0WQdfD
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
Expand Down Expand Up @@ -745,7 +740,6 @@ golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37 h1:cg5LA/zNPRzIXIWSCxQW10Rvpy94aQh3LT/ShoCpkHw=
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
Expand Down Expand Up @@ -819,7 +813,6 @@ golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/
golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 h1:eDrdRpKgkcCqKZQwyZRyeFZgfqt37SL7Kv3tok06cKE=
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200625001655-4c5254603344 h1:vGXIOMxbNfDTk/aXCmfdLgkrSV+Z2tcbze+pEc3v5W4=
Expand Down Expand Up @@ -888,7 +881,6 @@ golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200523222454-059865788121 h1:rITEj+UZHYC927n8GT97eC3zrpzXdb/voyeOuVKS46o=
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980 h1:OjiUf46hAmXblsZdnoSXsEUSKU8r1UEzcL5RVZ4gO9Y=
golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
2 changes: 1 addition & 1 deletion pkg/aqua/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client_test
import (
"net/http"

"github.com/aquasecurity/starboard-security-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard-operator/pkg/aqua/client"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/ghttp"
Expand Down
4 changes: 2 additions & 2 deletions pkg/aqua/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/google/uuid"

"github.com/aquasecurity/starboard-security-operator/pkg/scanner"
"github.com/aquasecurity/starboard-operator/pkg/scanner"

"github.com/aquasecurity/starboard-security-operator/pkg/etc"
"github.com/aquasecurity/starboard-operator/pkg/etc"
"github.com/aquasecurity/starboard/pkg/kube"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/aqua/scanner/api/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"strings"

"github.com/aquasecurity/starboard-security-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
"github.com/google/go-containerregistry/pkg/name"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/aqua/scanner/cli/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os/exec"

"github.com/aquasecurity/starboard-security-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard-operator/pkg/aqua/client"
"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
"github.com/google/go-containerregistry/pkg/name"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/controllers/job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"fmt"
"reflect"

"github.com/aquasecurity/starboard-security-operator/pkg/etc"
"github.com/aquasecurity/starboard-security-operator/pkg/logs"
"github.com/aquasecurity/starboard-security-operator/pkg/scanner"
"github.com/aquasecurity/starboard-operator/pkg/etc"
"github.com/aquasecurity/starboard-operator/pkg/logs"
"github.com/aquasecurity/starboard-operator/pkg/scanner"
"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
pods "github.com/aquasecurity/starboard/pkg/kube/pod"
corev1 "k8s.io/api/core/v1"

"github.com/aquasecurity/starboard-security-operator/pkg/reports"
"github.com/aquasecurity/starboard-operator/pkg/reports"
"github.com/aquasecurity/starboard/pkg/kube"
"k8s.io/apimachinery/pkg/api/errors"

Expand Down
6 changes: 3 additions & 3 deletions pkg/controllers/pod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"reflect"

"github.com/aquasecurity/starboard-security-operator/pkg/etc"
"github.com/aquasecurity/starboard-security-operator/pkg/reports"
"github.com/aquasecurity/starboard-security-operator/pkg/scanner"
"github.com/aquasecurity/starboard-operator/pkg/etc"
"github.com/aquasecurity/starboard-operator/pkg/reports"
"github.com/aquasecurity/starboard-operator/pkg/scanner"
"github.com/aquasecurity/starboard/pkg/docker"

batchv1 "k8s.io/api/batch/v1"
Expand Down
1 change: 1 addition & 0 deletions pkg/etc/config_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package etc_test
1 change: 1 addition & 0 deletions pkg/logs/reader_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package logs_test
3 changes: 2 additions & 1 deletion pkg/scanner/scanner.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package scanner

import (
"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
"io"
"time"

"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"

"github.com/aquasecurity/starboard/pkg/docker"
"github.com/aquasecurity/starboard/pkg/kube"
batchv1 "k8s.io/api/batch/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/trivy/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
"github.com/aquasecurity/starboard/pkg/scanners"

"github.com/aquasecurity/starboard-security-operator/pkg/scanner"
"github.com/aquasecurity/starboard-operator/pkg/scanner"
"github.com/aquasecurity/starboard/pkg/kube"
"github.com/google/uuid"
batchv1 "k8s.io/api/batch/v1"
Expand Down

0 comments on commit 5c84e21

Please sign in to comment.