Skip to content

Commit 4e82e05

Browse files
authored
Rename stackrox-operator* to rhacs-operator* (stackrox/rox#8497)
1 parent 053fd2b commit 4e82e05

15 files changed

Lines changed: 23 additions & 21 deletions

‎operator/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ bundle-post-process: operator-sdk ## Post-process CSV file to include correct op
265265
. bundle_helpers/.venv/bin/activate ;\
266266
pip3 install --upgrade pip setuptools ;\
267267
pip3 install -r bundle_helpers/requirements.txt ;\
268-
./bundle_helpers/patch-csv.py --use-version $(VERSION) < bundle/manifests/stackrox-operator.clusterserviceversion.yaml > build/bundle/manifests/stackrox-operator.clusterserviceversion.yaml
268+
./bundle_helpers/patch-csv.py --use-version $(VERSION) < bundle/manifests/rhacs-operator.clusterserviceversion.yaml > build/bundle/manifests/rhacs-operator.clusterserviceversion.yaml
269269
# Check that the resulting bundle still passes validations.
270270
$(OPERATOR_SDK) bundle validate ./build/bundle --select-optional suite=operatorframework
271271

‎operator/PROJECT‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: go.kubebuilder.io/v3
33
plugins:
44
manifests.sdk.operatorframework.io/v2: {}
55
scorecard.sdk.operatorframework.io/v2: {}
6-
projectName: stackrox-operator
6+
projectName: rhacs-operator
77
repo: github.com/stackrox/rox/operator
88
resources:
99
- api:

‎operator/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ $ bin/operator-sdk-1.9.0 run bundle \
175175
# Note that serviceaccount might not exist for a few moments.
176176
# Rerun this command until it succeeds.
177177
# We hope that in OpenShift world things will be different and we will not have to do this.
178-
$ kubectl -n bundle-test patch serviceaccount stackrox-operator-controller-manager -p '{"imagePullSecrets": [{"name": "my-opm-image-pull-secrets"}]}'
178+
$ kubectl -n bundle-test patch serviceaccount rhacs-operator-controller-manager -p '{"imagePullSecrets": [{"name": "my-opm-image-pull-secrets"}]}'
179179
# You may need to bounce operator pods after this if they can't pull images for a while.
180180
$ kubectl -n bundle-test delete pod -l control-plane=controller-manager
181181

@@ -188,11 +188,11 @@ $ kubectl -n bundle-test get pods
188188
Once done, cleanup with
189189

190190
```bash
191-
kubectl -n bundle-test delete clusterserviceversions.operators.coreos.com -l operators.coreos.com/stackrox-operator.bundle-test
191+
kubectl -n bundle-test delete clusterserviceversions.operators.coreos.com -l operators.coreos.com/rhacs-operator.bundle-test
192192

193-
kubectl -n bundle-test delete subscriptions.operators.coreos.com -l operators.coreos.com/stackrox-operator.bundle-test
193+
kubectl -n bundle-test delete subscriptions.operators.coreos.com -l operators.coreos.com/rhacs-operator.bundle-test
194194

195-
kubectl -n bundle-test delete catalogsources.operators.coreos.com stackrox-operator-catalog
195+
kubectl -n bundle-test delete catalogsources.operators.coreos.com rhacs-operator-catalog
196196
```
197197

198198
Also, you can blow everything away with

‎operator/bundle.Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM scratch
44
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
55
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
66
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
7-
LABEL operators.operatorframework.io.bundle.package.v1=stackrox-operator
7+
LABEL operators.operatorframework.io.bundle.package.v1=rhacs-operator
88
LABEL operators.operatorframework.io.bundle.channels.v1=preview
99
LABEL operators.operatorframework.io.bundle.channel.default.v1=preview
1010
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.5.0+git

operator/bundle/manifests/stackrox-operator-controller-manager-metrics-service_v1_service.yaml renamed to operator/bundle/manifests/rhacs-operator-controller-manager-metrics-service_v1_service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
creationTimestamp: null
55
labels:
66
control-plane: controller-manager
7-
name: stackrox-operator-controller-manager-metrics-service
7+
name: rhacs-operator-controller-manager-metrics-service
88
spec:
99
ports:
1010
- name: https

operator/bundle/manifests/stackrox-operator-controller-manager_v1_serviceaccount.yaml renamed to operator/bundle/manifests/rhacs-operator-controller-manager_v1_serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v1
22
kind: ServiceAccount
33
metadata:
44
creationTimestamp: null
5-
name: stackrox-operator-controller-manager
5+
name: rhacs-operator-controller-manager

operator/bundle/manifests/stackrox-operator-manager-config_v1_configmap.yaml renamed to operator/bundle/manifests/rhacs-operator-manager-config_v1_configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ data:
1414
resourceName: bf7ea6a2.stackrox.io
1515
kind: ConfigMap
1616
metadata:
17-
name: stackrox-operator-manager-config
17+
name: rhacs-operator-manager-config

operator/bundle/manifests/stackrox-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml renamed to operator/bundle/manifests/rhacs-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
44
creationTimestamp: null
5-
name: stackrox-operator-metrics-reader
5+
name: rhacs-operator-metrics-reader
66
rules:
77
- nonResourceURLs:
88
- /metrics

operator/bundle/manifests/stackrox-operator.clusterserviceversion.yaml renamed to operator/bundle/manifests/rhacs-operator.clusterserviceversion.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ metadata:
3434
operators.operatorframework.io/builder: operator-sdk-v1.5.0+git
3535
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
3636
support: Red Hat
37-
name: stackrox-operator.v0.0.1
37+
name: rhacs-operator.v0.0.1
3838
namespace: placeholder
3939
spec:
4040
apiservicedefinitions: {}
@@ -209,6 +209,7 @@ spec:
209209
resources:
210210
- secrets
211211
verbs:
212+
- create
212213
- get
213214
- list
214215
- watch
@@ -276,9 +277,9 @@ spec:
276277
- subjectaccessreviews
277278
verbs:
278279
- create
279-
serviceAccountName: stackrox-operator-controller-manager
280+
serviceAccountName: rhacs-operator-controller-manager
280281
deployments:
281-
- name: stackrox-operator-controller-manager
282+
- name: rhacs-operator-controller-manager
282283
spec:
283284
replicas: 1
284285
selector:
@@ -331,7 +332,7 @@ spec:
331332
allowPrivilegeEscalation: false
332333
securityContext:
333334
runAsNonRoot: true
334-
serviceAccountName: stackrox-operator-controller-manager
335+
serviceAccountName: rhacs-operator-controller-manager
335336
terminationGracePeriodSeconds: 10
336337
permissions:
337338
- rules:
@@ -356,7 +357,7 @@ spec:
356357
verbs:
357358
- create
358359
- patch
359-
serviceAccountName: stackrox-operator-controller-manager
360+
serviceAccountName: rhacs-operator-controller-manager
360361
strategy: deployment
361362
installModes:
362363
- supported: false

‎operator/bundle/metadata/annotations.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ annotations:
33
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
44
operators.operatorframework.io.bundle.manifests.v1: manifests/
55
operators.operatorframework.io.bundle.metadata.v1: metadata/
6-
operators.operatorframework.io.bundle.package.v1: stackrox-operator
6+
operators.operatorframework.io.bundle.package.v1: rhacs-operator
77
operators.operatorframework.io.bundle.channels.v1: preview
88
operators.operatorframework.io.bundle.channel.default.v1: preview
99
operators.operatorframework.io.metrics.builder: operator-sdk-v1.5.0+git

0 commit comments

Comments
 (0)