Skip to content

Commit b1a78bf

Browse files
authored
Rename repo to deployment-validation-operator (#16)
While dv-operator is shorter, it does not tell anything about the purpose of the operator. The convention of openshift operators is to have long and descriptive names, so let's follow it. Signed-off-by: Rafa Porres Molina <[email protected]>
1 parent 7410989 commit b1a78bf

13 files changed

+27
-27
lines changed

Diff for: build/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
22

3-
ENV OPERATOR=/usr/local/bin/dv-operator \
3+
ENV OPERATOR=/usr/local/bin/deployment-validation-operator \
44
USER_UID=1001 \
5-
USER_NAME=dv-operator
5+
USER_NAME=deployment-validation-operator
66

77
# install operator binary
8-
COPY build/_output/bin/dv-operator ${OPERATOR}
8+
COPY build/_output/bin/deployment-validation-operator ${OPERATOR}
99

1010
COPY build/bin /usr/local/bin
1111
RUN /usr/local/bin/user_setup

Diff for: cmd/manager/main.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import (
1616
_ "k8s.io/client-go/plugin/pkg/client/auth"
1717
"k8s.io/client-go/rest"
1818

19-
dv_config "github.com/app-sre/dv-operator/config"
20-
"github.com/app-sre/dv-operator/pkg/apis"
21-
"github.com/app-sre/dv-operator/pkg/controller"
22-
"github.com/app-sre/dv-operator/version"
19+
dv_config "github.com/app-sre/deployment-validation-operator/config"
20+
"github.com/app-sre/deployment-validation-operator/pkg/apis"
21+
"github.com/app-sre/deployment-validation-operator/pkg/controller"
22+
"github.com/app-sre/deployment-validation-operator/version"
2323

2424
"github.com/operator-framework/operator-sdk/pkg/k8sutil"
2525
kubemetrics "github.com/operator-framework/operator-sdk/pkg/kube-metrics"
@@ -43,7 +43,7 @@ var (
4343
metricsPort int32 = 8383
4444
operatorMetricsPort int32 = 8686
4545
)
46-
var log = logf.Log.WithName("DeploymentValidator")
46+
var log = logf.Log.WithName("DeploymentValidation")
4747

4848
func printVersion() {
4949
log.Info(fmt.Sprintf("Operator Version: %s", version.Version))
@@ -93,7 +93,7 @@ func main() {
9393

9494
ctx := context.TODO()
9595
// Become the leader before proceeding
96-
err = leader.Become(ctx, "dv-operator-lock")
96+
err = leader.Become(ctx, "deployment-validation-operator-lock")
9797
if err != nil {
9898
log.Error(err, "Failed to get leader lock")
9999
os.Exit(1)

Diff for: config/config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package config
22

33
const (
4-
// OperatorName stores the name used by this code for the Deployment Validator Operator
5-
OperatorName string = "dv-operator"
4+
// OperatorName stores the name used by this code for the Deployment Validation Operator
5+
OperatorName string = "deployment-validation-operator"
66

77
// OperatorNamespace stores a string indicating the Kubernetes namespace in which the operator runs
8-
OperatorNamespace string = "dv-operator"
8+
OperatorNamespace string = "deployment-validation-operator"
99
)

Diff for: deploy/bundle/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ IMAGE_TAG=latest
77
endif
88

99
ifndef OPERATOR_IMAGE
10-
OPERATOR_IMAGE=quay.io/deployment-validation-operator/dv-operator
10+
OPERATOR_IMAGE=quay.io/deployment-validation-operator/deployment-validation-operator
1111
endif
1212

1313
ifndef OPERATOR_IMAGE_TAG

Diff for: deploy/bundle/template/deploymentvalidationoperator.clusterserviceversion.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ objects:
1414
containerImage: ${IMAGE}:${IMAGE_TAG}
1515
createdAt: 08/25/2020
1616
support: Best Effort
17-
repository: https://github.com/app-sre/dv-operator
17+
repository: https://github.com/app-sre/deployment-validation-operator
1818
description: |-
1919
The deployment validation operator
2020
name: deployment-validation-operator.v${VERSION}
2121
namespace: placeholder
2222
spec:
23-
description: 'The Deployment Validator Operator for Kubernetes monitors workloads
23+
description: 'The Deployment Validation Operator for Kubernetes monitors workloads
2424
on a cluster a provides suggestions for best practices.
2525
'
2626
displayName: Deployment Validation Operator
@@ -50,7 +50,7 @@ objects:
5050
operated-by: deployment-validation-operator
5151
links:
5252
- name: repository
53-
url: https://github.com/app-sre/dv-operator
53+
url: https://github.com/app-sre/deployment-validation-operator
5454
- name: containerImage
5555
url: https://${IMAGE}:${IMAGE_TAG}
5656
maturity: alpha
@@ -64,7 +64,7 @@ objects:
6464
version: ${VERSION}
6565
parameters:
6666
- name: IMAGE
67-
value: "quay.io/deployment-validation-operator/dv-operator"
67+
value: "quay.io/deployment-validation-operator/deployment-validation-operator"
6868
- name: IMAGE_TAG
6969
value: "latest"
7070
- name: VERSION

Diff for: deploy/openshift/operator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
app: deployment-validation-operator
2323
spec:
2424
containers:
25-
- image: quay.io/deployment-validation-operator/dv-operator:latest
25+
- image: quay.io/deployment-validation-operator/deployment-validation-operator:latest
2626
imagePullPolicy: Always
2727
name: deployment-validation-operator
2828
env:

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/app-sre/dv-operator
1+
module github.com/app-sre/deployment-validation-operator
22

33
go 1.13
44

Diff for: pkg/controller/generic_reconciler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"reflect"
77
"strings"
88

9-
"github.com/app-sre/dv-operator/pkg/validations"
9+
"github.com/app-sre/deployment-validation-operator/pkg/validations"
1010

1111
"k8s.io/apimachinery/pkg/api/errors"
1212
"k8s.io/apimachinery/pkg/runtime"

Diff for: pkg/controller/generic_reconciler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package controller
33
import (
44
"testing"
55

6-
"github.com/app-sre/dv-operator/pkg/testutils"
6+
"github.com/app-sre/deployment-validation-operator/pkg/testutils"
77
"k8s.io/apimachinery/pkg/runtime"
88
"k8s.io/apimachinery/pkg/types"
99
"sigs.k8s.io/controller-runtime/pkg/client/fake"

Diff for: pkg/validations/base_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package validations
33
import (
44
"testing"
55

6-
"github.com/app-sre/dv-operator/pkg/testutils"
6+
"github.com/app-sre/deployment-validation-operator/pkg/testutils"
77
"k8s.io/apimachinery/pkg/types"
88
"sigs.k8s.io/controller-runtime/pkg/reconcile"
99
)

Diff for: pkg/validations/replicas_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package validations
33
import (
44
"testing"
55

6-
"github.com/app-sre/dv-operator/pkg/testutils"
7-
dv_tu "github.com/app-sre/dv-operator/pkg/testutils"
6+
"github.com/app-sre/deployment-validation-operator/pkg/testutils"
7+
dv_tu "github.com/app-sre/deployment-validation-operator/pkg/testutils"
88
"github.com/prometheus/client_golang/prometheus"
99
prom_tu "github.com/prometheus/client_golang/prometheus/testutil"
1010
"k8s.io/apimachinery/pkg/types"

Diff for: pkg/validations/requests_limits_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package validations
33
import (
44
"testing"
55

6-
"github.com/app-sre/dv-operator/pkg/testutils"
7-
dv_tu "github.com/app-sre/dv-operator/pkg/testutils"
6+
"github.com/app-sre/deployment-validation-operator/pkg/testutils"
7+
dv_tu "github.com/app-sre/deployment-validation-operator/pkg/testutils"
88
"github.com/prometheus/client_golang/prometheus"
99
prom_tu "github.com/prometheus/client_golang/prometheus/testutil"
1010
"k8s.io/apimachinery/pkg/types"

Diff for: pkg/validations/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/app-sre/dv-operator/config"
7+
"github.com/app-sre/deployment-validation-operator/config"
88
"github.com/prometheus/client_golang/prometheus"
99
)
1010

0 commit comments

Comments
 (0)