Skip to content

Commit

Permalink
Rename to openstack-operator-controller-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dprince committed Jan 9, 2025
1 parent 595b1e5 commit d57aa83
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ endif
bundle: build manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
$(OPERATOR_SDK) generate kustomize manifests -q
cd config/operator/deployment/ && $(KUSTOMIZE) edit set image controller=$(IMG) && \
$(KUSTOMIZE) edit add patch --kind Deployment --name controller-operator --namespace system --patch "[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/0/env/0\", \"value\": {\"name\": \"OPENSTACK_RELEASE_VERSION\", \"value\": \"$(OPENSTACK_RELEASE_VERSION)\"}}]"
$(KUSTOMIZE) edit add patch --kind Deployment --name openstack-operator-controller-operator --namespace system --patch "[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/0/env/0\", \"value\": {\"name\": \"OPENSTACK_RELEASE_VERSION\", \"value\": \"$(OPENSTACK_RELEASE_VERSION)\"}}]"
sed -i -e 's|operator:image|$(IMG)|' config/operator/deployment/deployment.yaml
$(KUSTOMIZE) build config/operator --load-restrictor='LoadRestrictionsNone' | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
$(OPERATOR_SDK) bundle validate ./bundle
Expand Down
10 changes: 5 additions & 5 deletions config/operator/deployment/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-operator
control-plane: openstack-operator-controller-operator
openstack.org/operator-name: openstack
name: system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-operator
name: openstack-operator-controller-operator
namespace: system
labels:
control-plane: controller-operator
control-plane: openstack-operator-controller-operator
openstack.org/operator-name: openstack-controller
spec:
selector:
Expand All @@ -24,7 +24,7 @@ spec:
annotations:
kubectl.kubernetes.io/default-container: operator
labels:
control-plane: controller-operator
control-plane: openstack-operator-controller-operator
openstack.org/operator-name: openstack-controller
spec:
securityContext:
Expand Down Expand Up @@ -77,5 +77,5 @@ spec:
requests:
cpu: 10m
memory: 128Mi
serviceAccountName: controller-operator
serviceAccountName: openstack-operator-controller-operator
terminationGracePeriodSeconds: 10
2 changes: 1 addition & 1 deletion config/operator/manager_operator_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-operator
name: openstack-operator-controller-operator
namespace: system
spec:
template:
Expand Down
2 changes: 1 addition & 1 deletion config/operator/rbac/auth_proxy_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: proxy-role-operator
subjects:
- kind: ServiceAccount
name: controller-operator
name: openstack-operator-controller-operator
namespace: system
2 changes: 1 addition & 1 deletion config/operator/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
control-plane: controller-operator
control-plane: openstack-operator-controller-operator
name: controller-operator-metrics-service-operator
namespace: system
spec:
Expand Down
2 changes: 1 addition & 1 deletion config/operator/rbac/leader_election_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: leader-election-role-operator
subjects:
- kind: ServiceAccount
name: controller-operator
name: openstack-operator-controller-operator
namespace: system
2 changes: 1 addition & 1 deletion config/operator/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: operator-role
subjects:
- kind: ServiceAccount
name: controller-operator
name: openstack-operator-controller-operator
namespace: system
2 changes: 1 addition & 1 deletion hack/sync-bindata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ cat > ../config/operator/manager_operator_images.yaml <<EOF_CAT
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-operator
name: openstack-operator-controller-operator
namespace: system
spec:
template:
Expand Down

0 comments on commit d57aa83

Please sign in to comment.