Skip to content

Commit b0b6b63

Browse files
authored
migrate to ICR (#162)
* migrate to ICR * fix lint error
1 parent bdb5b50 commit b0b6b63

10 files changed

+18
-15
lines changed

api/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle-restricted/manifests/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
}
2323
]
2424
capabilities: Seamless Upgrades
25-
containerImage: quay.io/opencloudio/ibm-namespace-scope-operator:latest
25+
containerImage: icr.io/cpopen/ibm-namespace-scope-operator:latest
2626
createdAt: "2022-04-12T10:37:01Z"
2727
olm.skipRange: '<1.12.0'
2828
operators.operatorframework.io/builder: operator-sdk-v1.11.0+git
@@ -90,7 +90,7 @@ spec:
9090
fieldRef:
9191
apiVersion: v1
9292
fieldPath: metadata.namespace
93-
image: quay.io/opencloudio/ibm-namespace-scope-operator:latest
93+
image: icr.io/cpopen/ibm-namespace-scope-operator:latest
9494
imagePullPolicy: Always
9595
name: ibm-namespace-scope-operator
9696
resources:
@@ -157,6 +157,6 @@ spec:
157157
provider:
158158
name: IBM
159159
relatedImages:
160-
- image: quay.io/opencloudio/ibm-namespace-scope-operator:1.12.0
160+
- image: icr.io/cpopen/ibm-namespace-scope-operator:1.12.0
161161
name: IBM_NAMESPACE_SCOPE_OPERATOR_IMAGE
162162
version: 1.12.0

bundle/manifests/ibm-namespace-scope-operator.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
}
2323
]
2424
capabilities: Seamless Upgrades
25-
containerImage: quay.io/opencloudio/ibm-namespace-scope-operator:latest
25+
containerImage: icr.io/cpopen/ibm-namespace-scope-operator:latest
2626
createdAt: "2022-04-12T10:37:01Z"
2727
olm.skipRange: '<1.12.0'
2828
operators.operatorframework.io/builder: operator-sdk-v1.11.0+git
@@ -113,7 +113,7 @@ spec:
113113
fieldRef:
114114
apiVersion: v1
115115
fieldPath: metadata.namespace
116-
image: quay.io/opencloudio/ibm-namespace-scope-operator:latest
116+
image: icr.io/cpopen/ibm-namespace-scope-operator:latest
117117
imagePullPolicy: Always
118118
name: ibm-namespace-scope-operator
119119
resources:
@@ -157,6 +157,6 @@ spec:
157157
provider:
158158
name: IBM
159159
relatedImages:
160-
- image: quay.io/opencloudio/ibm-namespace-scope-operator:1.12.0
160+
- image: icr.io/cpopen/ibm-namespace-scope-operator:1.12.0
161161
name: IBM_NAMESPACE_SCOPE_OPERATOR_IMAGE
162162
version: 1.12.0

config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
containers:
4545
- command:
4646
- /namespace-scope-operator-manager
47-
image: quay.io/opencloudio/ibm-namespace-scope-operator:latest
47+
image: icr.io/cpopen/ibm-namespace-scope-operator:latest
4848
imagePullPolicy: Always
4949
name: ibm-namespace-scope-operator
5050
env:

config/manifests/bases/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
alm-examples: '[]'
66
capabilities: Seamless Upgrades
7-
containerImage: quay.io/opencloudio/ibm-namespace-scope-operator:latest
7+
containerImage: icr.io/cpopen/ibm-namespace-scope-operator:latest
88
createdAt: "2020-11-2T15:38:33Z"
99
operators.operatorframework.io/builder: operator-sdk-v1.1.0
1010
operators.operatorframework.io/project_layout: go.kubebuilder.io/v2
@@ -53,6 +53,6 @@ spec:
5353
provider:
5454
name: IBM
5555
relatedImages:
56-
- image: quay.io/opencloudio/ibm-namespace-scope-operator
56+
- image: icr.io/cpopen/ibm-namespace-scope-operator
5757
name: IBM_NAMESPACE_SCOPE_OPERATOR_IMAGE
5858
version: 0.0.0

config/manifests/bases/ibm-namespace-scope-operator.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
alm-examples: '[]'
66
capabilities: Seamless Upgrades
7-
containerImage: quay.io/opencloudio/ibm-namespace-scope-operator:latest
7+
containerImage: icr.io/cpopen/ibm-namespace-scope-operator:latest
88
createdAt: "2020-11-2T15:38:33Z"
99
operators.operatorframework.io/builder: operator-sdk-v1.1.0
1010
operators.operatorframework.io/project_layout: go.kubebuilder.io/v2
@@ -54,6 +54,6 @@ spec:
5454
provider:
5555
name: IBM
5656
relatedImages:
57-
- image: quay.io/opencloudio/ibm-namespace-scope-operator
57+
- image: icr.io/cpopen/ibm-namespace-scope-operator
5858
name: IBM_NAMESPACE_SCOPE_OPERATOR_IMAGE
5959
version: 0.0.0

controllers/namespacescope_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ func (r *NamespaceScopeReconciler) RestartPods(labels map[string]string, cm *cor
765765
daemonSetNameList := make([]string, 0)
766766
statefulSetNameList := make([]string, 0)
767767
for _, pod := range podList.Items {
768+
pod := pod
768769
// Check if the pod is required to be refreshed
769770
if !needRestart(pod, cm.Name) {
770771
continue

controllers/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestAPIs(t *testing.T) {
5050
}
5151

5252
var _ = BeforeSuite(func(done Done) {
53-
logf.SetLogger(zap.LoggerTo(GinkgoWriter, true))
53+
logf.SetLogger(zap.New(zap.UseDevMode(true), zap.WriteTo(GinkgoWriter)))
5454

5555
By("bootstrapping test environment")
5656
testEnv = &envtest.Environment{

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/IBM/ibm-namespace-scope-operator
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/IBM/controller-filtered-cache v0.2.1
@@ -55,7 +55,7 @@ require (
5555
golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f // indirect
5656
golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect
5757
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect
58-
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f // indirect
58+
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
5959
golang.org/x/text v0.3.3 // indirect
6060
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
6161
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,9 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w
433433
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
434434
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
435435
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
436-
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA=
437436
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
437+
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 h1:xHms4gcpe1YE7A3yIllJXP16CMAGuqwO2lX1mTyyRRc=
438+
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
438439
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
439440
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
440441
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

0 commit comments

Comments
 (0)