Skip to content

Commit

Permalink
update cs module version to v4 (#2154)
Browse files Browse the repository at this point in the history
* update cs module version to v4

Signed-off-by: Ben Luzarraga <[email protected]>

* revert go version change

Signed-off-by: Ben Luzarraga <[email protected]>

---------

Signed-off-by: Ben Luzarraga <[email protected]>
  • Loading branch information
bluzarraga authored Aug 26, 2024
1 parent 274bcb0 commit 356d60f
Show file tree
Hide file tree
Showing 22 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion api/v3/commonservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"

"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
Expand Down
8 changes: 4 additions & 4 deletions controllers/bootstrap/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/manager"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/controllers/deploy"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/deploy"
nssv1 "github.com/IBM/ibm-namespace-scope-operator/v4/api/v1"
odlm "github.com/IBM/operand-deployment-lifecycle-manager/v4/api/v1alpha1"

Expand Down
2 changes: 1 addition & 1 deletion controllers/cert-manager/certificaterefresh_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

certmanagerv1 "github.com/ibm/ibm-cert-manager-operator/apis/cert-manager/v1"

"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

var logd = log.Log.WithName("controller_certificaterefresh")
Expand Down
2 changes: 1 addition & 1 deletion controllers/cert-manager/v1_add_label_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

certmanagerv1 "github.com/ibm/ibm-cert-manager-operator/apis/cert-manager/v1"

"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

// V1AddLabelReconciler reconciles a Certificate object
Expand Down
4 changes: 2 additions & 2 deletions controllers/common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ import (
"k8s.io/klog"
"sigs.k8s.io/controller-runtime/pkg/client"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
nssv1 "github.com/IBM/ibm-namespace-scope-operator/v4/api/v1"
)

Expand Down
10 changes: 5 additions & 5 deletions controllers/commonservice_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"sigs.k8s.io/controller-runtime/pkg/source"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/configurationcollector"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/configurationcollector"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
odlm "github.com/IBM/operand-deployment-lifecycle-manager/v4/api/v1alpha1"
)

Expand Down
6 changes: 3 additions & 3 deletions controllers/commonservice_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

// +kubebuilder:docs-gen:collapse=Imports
Expand Down
6 changes: 3 additions & 3 deletions controllers/configurationcollector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/klog"

"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

func Buildconfig(config map[string]string, bs *bootstrap.Bootstrap) map[string]string {
Expand Down
2 changes: 1 addition & 1 deletion controllers/deploy/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/manager"

util "github.com/IBM/ibm-common-service-operator/controllers/common"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
)

type Manager struct {
Expand Down
6 changes: 3 additions & 3 deletions controllers/goroutines/cleanup_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"k8s.io/klog"

"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

// Cleanup_Keycloak_Cert will delete Keycloak Certificate when OperandConfig is updated to new version
Expand Down
6 changes: 3 additions & 3 deletions controllers/goroutines/operator_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/klog"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

var ctx = context.Background()
Expand Down
2 changes: 1 addition & 1 deletion controllers/goroutines/waitToCreateCsCR.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"k8s.io/klog"

"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
)

// WaitToCreateCsCR waits for the creation of the CommonService CR in the operator namespace.
Expand Down
8 changes: 4 additions & 4 deletions controllers/operandconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import (
"k8s.io/klog"
"sigs.k8s.io/controller-runtime/pkg/client"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/controllers/rules"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/rules"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions controllers/operatorconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/klog"

v3 "github.com/IBM/ibm-common-service-operator/api/v3"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
v3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
odlm "github.com/IBM/operand-deployment-lifecycle-manager/v4/api/v1alpha1"
)

Expand Down
2 changes: 1 addition & 1 deletion controllers/recocile_pause.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers
import (
"k8s.io/klog"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions controllers/render_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/klog"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/controllers/size"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/size"
)

func (r *CommonServiceReconciler) getNewConfigs(cs *unstructured.Unstructured) ([]interface{}, map[string]string, error) {
Expand Down
2 changes: 1 addition & 1 deletion controllers/render_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
)

var _ = Describe("Render Template", func() {
Expand Down
8 changes: 4 additions & 4 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

apiv3 "github.com/IBM/ibm-common-service-operator/api/v3"
"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/controllers/deploy"
apiv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/deploy"
// +kubebuilder:scaffold:imports
)

Expand Down
8 changes: 4 additions & 4 deletions controllers/webhooks/commonservice/validatingwebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

operatorv3 "github.com/IBM/ibm-common-service-operator/api/v3"
controller "github.com/IBM/ibm-common-service-operator/controllers"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
operatorv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
controller "github.com/IBM/ibm-common-service-operator/v4/controllers"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
)

// +kubebuilder:webhook:path=/validate-operator-ibm-com-v3-commonservice,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.ibm.com,resources=commonservices,verbs=create;update,versions=v3,name=vcommonservice.kb.io,admissionReviewVersions=v1
Expand Down
2 changes: 1 addition & 1 deletion controllers/webhooks/operandrequest/mutatingwebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

util "github.com/IBM/ibm-common-service-operator/controllers/common"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
odlm "github.com/IBM/operand-deployment-lifecycle-manager/v4/api/v1alpha1"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/IBM/ibm-common-service-operator
module github.com/IBM/ibm-common-service-operator/v4

go 1.23

Expand Down
18 changes: 9 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ import (

certmanagerv1 "github.com/ibm/ibm-cert-manager-operator/apis/cert-manager/v1"

operatorv3 "github.com/IBM/ibm-common-service-operator/api/v3"
"github.com/IBM/ibm-common-service-operator/controllers"
"github.com/IBM/ibm-common-service-operator/controllers/bootstrap"
certmanagerv1controllers "github.com/IBM/ibm-common-service-operator/controllers/cert-manager"
util "github.com/IBM/ibm-common-service-operator/controllers/common"
"github.com/IBM/ibm-common-service-operator/controllers/constant"
"github.com/IBM/ibm-common-service-operator/controllers/goroutines"
commonservicewebhook "github.com/IBM/ibm-common-service-operator/controllers/webhooks/commonservice"
operandrequestwebhook "github.com/IBM/ibm-common-service-operator/controllers/webhooks/operandrequest"
operatorv3 "github.com/IBM/ibm-common-service-operator/v4/api/v3"
"github.com/IBM/ibm-common-service-operator/v4/controllers"
"github.com/IBM/ibm-common-service-operator/v4/controllers/bootstrap"
certmanagerv1controllers "github.com/IBM/ibm-common-service-operator/v4/controllers/cert-manager"
util "github.com/IBM/ibm-common-service-operator/v4/controllers/common"
"github.com/IBM/ibm-common-service-operator/v4/controllers/constant"
"github.com/IBM/ibm-common-service-operator/v4/controllers/goroutines"
commonservicewebhook "github.com/IBM/ibm-common-service-operator/v4/controllers/webhooks/commonservice"
operandrequestwebhook "github.com/IBM/ibm-common-service-operator/v4/controllers/webhooks/operandrequest"
// +kubebuilder:scaffold:imports
)

Expand Down

0 comments on commit 356d60f

Please sign in to comment.